/* ==========================================================================
   Plaváček webdesign – hlavní styly
   Písma jsou součástí webu (složka fonts), nic se nenačítá z cizích serverů.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Barvy. Světlý (den) a tmavý (noc) motiv, všechny dvojice mají kontrast
   aspoň 4,5 : 1 (běžný text) a 3 : 1 (ohraničení polí a tlačítek).
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --sky: #83bee4;
  --paper: #f7f4ec;
  --paper-2: #eee8d9;
  --card: #ffffff;
  --ink: #0e2a3d;
  --soft: #41596a;
  --link: #135f8f;
  --wine: #7a3f45;
  --lime: #a4d233;
  --lime-hover: #b9e255;
  --lime-ink: #0e2a3d;
  --line: #d9d1bf;
  --field-line: #5d7587;
  --focus: #0b3d91;
  --error: #a3202a;
  --ok: #1d6b34;
  --chip: #e4eef3;
  --deep: #12466b;
  --on-deep: #e6f0f7;
  --pano-btn-bg: rgba(255, 255, 255, .88);
  --pano-btn-ink: #0e2a3d;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --sky: #40579a;
  --paper: #0a1a29;
  --paper-2: #0e2336;
  --card: #112a40;
  --ink: #e8eef5;
  --soft: #a9bccb;
  --link: #8cc9f0;
  --wine: #f2b9bf;
  --line: #27425a;
  --field-line: #7f9db5;
  --focus: #ffd54a;
  --error: #ff9aa2;
  --ok: #8fe0a4;
  --chip: #1b3a55;
  --deep: #06111b;
  --on-deep: #dbe7f0;
  --pano-btn-bg: rgba(10, 26, 41, .85);
  --pano-btn-ink: #e8eef5;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --sky: #40579a;
    --paper: #0a1a29;
    --paper-2: #0e2336;
    --card: #112a40;
    --ink: #e8eef5;
    --soft: #a9bccb;
    --link: #8cc9f0;
    --wine: #f2b9bf;
    --line: #27425a;
    --field-line: #7f9db5;
    --focus: #ffd54a;
    --error: #ff9aa2;
    --ok: #8fe0a4;
    --chip: #1b3a55;
    --deep: #06111b;
    --on-deep: #dbe7f0;
    --pano-btn-bg: rgba(10, 26, 41, .85);
    --pano-btn-ink: #e8eef5;
  }
}

/* --------------------------------------------------------------------------
   Základ
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .3em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; color: var(--wine); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--link);
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
}
a:hover { text-decoration-thickness: .2em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

.wrap {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 1000;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Šipka u odkazů, které vedou mimo tento web */
a[rel~="external"]::after,
.ref-title .nw::after,
.weby-link .nw::after,
.arrow-link::after {
  content: "";
  display: inline-block;
  width: .72em; height: .72em;
  margin-left: .3em;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
          mask: var(--arrow) center / contain no-repeat;
}
.arrow-link::after { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 5.5 19.5 12 13 18.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
a[rel~="external"] { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 17.5 17.5 6.5M8 6h10v10' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.arrow-link { font-weight: 700; }

/* --------------------------------------------------------------------------
   Hlavička
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--sky);
  color: var(--ink);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1.25rem;
  padding-block: .55rem;
}
.brand { margin-right: auto; display: block; line-height: 0; border-radius: 6px; }
.brand img { display: block; width: 220px; height: auto; }

.site-header :focus-visible { outline-color: var(--ink); }

.main-nav ul { display: flex; flex-wrap: wrap; gap: .1rem .4rem; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .3rem .85rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 999px;
}
.main-nav a:hover { background: rgba(255, 255, 255, .35); }
:root[data-theme="dark"] .main-nav a:hover { background: rgba(255, 255, 255, .14); }
:root[data-theme="dark"] .main-nav a[aria-current="page"] { background: rgba(6, 17, 27, .38); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .main-nav a:hover { background: rgba(255, 255, 255, .14); }
  :root:not([data-theme="light"]) .main-nav a[aria-current="page"] { background: rgba(6, 17, 27, .38); }
}
.main-nav a[aria-current="page"] {
  background: rgba(14, 42, 61, .16);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .3rem .95rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: rgba(255, 255, 255, .3); }
.theme-toggle .icon { fill: currentColor; flex: none; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

@media (max-width: 40rem) {
  .brand { margin-right: 0; }
  .brand img { width: 190px; }
  .header-inner { justify-content: space-between; padding-block: .4rem .2rem; }
  .main-nav { order: 3; width: 100%; margin-inline: -.5rem; }
  /* Na mobilu zůstane jen ikona, popisek čtou čtečky dál */
  .theme-toggle { width: 46px; padding: 0; justify-content: center; }
  .theme-toggle span {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Panorama (úvodní stránka) a pruhy s výřezem na ostatních stránkách
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--sky); height: clamp(290px, 56vh, 620px); overflow: hidden; }
.panorama {
  position: absolute;
  inset: 0;
  background-color: var(--sky);
  background-image: url("../img/movie.jpg");
  background-image: image-set(url("../img/movie.webp") type("image/webp"), url("../img/movie.jpg") type("image/jpeg"));
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 0;
  touch-action: pan-y;
}
.panorama.is-draggable { cursor: grab; }
.panorama.is-dragging { cursor: grabbing; }

:root[data-theme="dark"] .panorama,
:root[data-theme="dark"] .banner {
  background-image: url("../img/movie_night.jpg");
  background-image: image-set(url("../img/movie_night.webp") type("image/webp"), url("../img/movie_night.jpg") type("image/jpeg"));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .panorama,
  :root:not([data-theme="light"]) .banner {
    background-image: url("../img/movie_night.jpg");
    background-image: image-set(url("../img/movie_night.webp") type("image/webp"), url("../img/movie_night.jpg") type("image/jpeg"));
  }
}

/* Vlnka, kterou pruh přechází do papíru */
.hero::after,
.banner::after,
.final::before,
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 30px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V14c75 12 150 12 225 0s150-12 225 0 150 12 225 0 150-12 225 0v16z' fill='%23000'/%3E%3C/svg%3E") repeat-x bottom left / 900px 30px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V14c75 12 150 12 225 0s150-12 225 0 150 12 225 0 150-12 225 0v16z' fill='%23000'/%3E%3C/svg%3E") repeat-x bottom left / 900px 30px;
  pointer-events: none;
}
.hero::after, .banner::after { bottom: -1px; background: var(--paper); }

.pano-controls {
  position: absolute;
  left: 1rem;
  bottom: 2.4rem;
  display: flex;
  gap: .6rem;
  z-index: 2;
}
.pano-controls[hidden] { display: none; }
.pano-controls button {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  color: var(--pano-btn-ink);
  background: var(--pano-btn-bg);
  border: 2px solid var(--pano-btn-ink);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(3px);
}
.pano-controls button:hover { background: var(--lime); color: #0e2a3d; border-color: #0e2a3d; }
.pano-controls button[aria-pressed="true"] { background: var(--lime); color: #0e2a3d; border-color: #0e2a3d; }
.pano-controls :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.banner {
  position: relative;
  height: clamp(190px, 31vw, 340px);
  background-color: var(--sky);
  background-image: url("../img/movie.jpg");
  background-image: image-set(url("../img/movie.webp") type("image/webp"), url("../img/movie.jpg") type("image/jpeg"));
  background-repeat: repeat-x;
  background-size: auto 650px;
  background-position: calc(var(--bx, 0px) * -1) calc(var(--by, 0px) * -1);
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 36px;
  background: linear-gradient(var(--sky), transparent);
}

/* --------------------------------------------------------------------------
   Úvod
   -------------------------------------------------------------------------- */
.intro {
  display: grid;
  gap: 1.6rem;
  padding-block: 1.5rem 1rem;
}
.intro > h1 { margin-bottom: 0; }
@media (min-width: 56rem) {
  /* Nadpis přes celou šířku, pod ním text vlevo a obrázek vpravo od první věty */
  .intro { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; gap: 1.2rem 3.5rem; padding-block: 2rem 1.5rem; }
  .intro > h1 { grid-column: 1 / -1; }
}
.lead p { font-size: 1.25rem; max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.intro-figs { display: grid; gap: 1.4rem; align-content: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
@media (min-width: 56rem) { .intro-figs { grid-template-columns: 1fr; } }
.fisher {
  margin: 0;
  padding: .7rem .7rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(14, 42, 61, .12);
  max-width: 22rem;
}
.fisher img { display: block; width: 100%; border-radius: 8px; }
.fisher figcaption { margin-top: .7rem; font-size: 1rem; color: var(--soft); font-style: italic; }
.fisher-small { text-align: center; }
.fisher-small img { width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.fisher-link { display: block; margin-top: .6rem; font-style: normal; font-size: 1.05rem; }
.fisher-link a { padding-block: .35rem; display: inline-block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .55rem 1.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.btn:hover { background: var(--chip); }
.btn-ghost { background: var(--card); }
.btn-ghost:hover { background: var(--chip); }
.btn-primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime-ink); }
.btn-primary:hover { background: var(--lime-hover); }
:root[data-theme="dark"] .btn-primary { border-color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { border-color: var(--lime); } }

.section { padding-block: 3.5rem; }
.section-alt { background: var(--paper-2); }
.section > .wrap > h2 { margin-bottom: 1.2rem; }

.cards {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--lime);
  border-radius: 14px;
  padding: 1.3rem 1.4rem 1.4rem;
}
.card h3 { margin-bottom: .45em; }
.card p { font-size: 1.05rem; }

.steps {
  list-style: none;
  counter-reset: krok;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.6rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.steps li { counter-increment: krok; position: relative; padding-top: 4rem; }
.steps li::before {
  content: counter(krok);
  position: absolute;
  top: 0; left: 0;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--lime-ink);
  background: var(--lime);
  border-radius: 50%;
}

.about { display: grid; gap: 1.5rem 3rem; align-items: start; }
@media (min-width: 44rem) { .about { grid-template-columns: minmax(0, 40rem) minmax(0, 20rem); justify-content: space-between; } }
.about-fig { width: 100%; max-width: 20rem; }
.about-fig .fisher { margin-top: .4rem; }

.more { margin-top: 1.6rem; text-align: center; }

/* Reference */
.ref-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  align-items: stretch;
}
.ref-grid-page { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .ref-grid-page { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .ref-grid-page { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ref-wrap { padding-bottom: 3rem; }
.pager { margin-top: 2.2rem; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; justify-content: center; }
.pager-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; min-height: 46px; padding: .3rem .9rem; gap: .4rem;
  font-weight: 700; text-decoration: none;
  color: var(--ink); background: var(--card);
  border: 2px solid var(--ink); border-radius: 999px;
}
a.pager-link:hover { background: var(--chip); }
.pager-link.is-current { background: var(--lime); color: var(--lime-ink); border-color: var(--lime-ink); }
:root[data-theme="dark"] .pager-link.is-current { border-color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pager-link.is-current { border-color: var(--lime); } }
.ref-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Všechny náhledy mají stejný poměr stran; vyšší screenshoty se ořežou zespodu, nahoře zůstane začátek stránky */
.ref-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top center; }
.ref-body { padding: 1.2rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.ref-title { margin-bottom: .1em; }
.ref-card h2.ref-title { font-size: 1.7rem; color: var(--wine); }
.ref-title a { color: inherit; }                       /* nadpis zůstane vínový, podtržení ho prozradí jako odkaz */
.ref-title a::after, a.weby-link::after { display: none; }                /* šipka se ukáže až za posledním slovem (viz .nw) */
.nw { white-space: nowrap; }
.ref-title .nw::after { width: .55em; height: .55em; margin-left: .28em; }
.ref-meta { color: var(--soft); font-size: .95rem; margin-bottom: .8em; }
.ref-link { margin: auto 0 0; padding-top: 1.2rem; text-align: center; }  /* tlačítko je vždy dole, ať je text kratší nebo delší */

.page-head { padding-block: 1.5rem 2rem; }
.empty { max-width: 40rem; }

/* Závěrečná výzva */
.final {
  position: relative;
  margin-top: 3.5rem;
  padding: 4.5rem 0 3.5rem;
  background: var(--deep);
  color: var(--on-deep);
}
.section-alt + .final { margin-top: 0; }   /* žádný světlý pruh mezi okrovým pozadím a vlnkou */
.final::before { top: -29px; background: var(--deep); }
.final h2, .final a:not(.btn) { color: #fff; }
.final-inner { display: grid; gap: 1.8rem 3rem; align-items: center; }
@media (min-width: 44rem) { .final-inner { grid-template-columns: 20rem minmax(0, 1fr); } }
.final-img { display: block; width: 100%; max-width: 20rem; border-radius: 14px; }
.final .btn-primary { border-color: var(--lime); }
:root[data-theme="dark"] .final { background: var(--deep); }

/* Lupa u náhledů a okno se zvětšeným obrázkem */
.zoom { display: block; position: relative; line-height: 0; color: inherit; text-decoration: none; cursor: zoom-in; }
.zoom:focus-visible { outline-offset: -6px; }
.zoom-icon {
  position: absolute;
  right: .75rem; bottom: .75rem;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--pano-btn-ink);
  background: var(--pano-btn-bg);
  border: 2px solid var(--pano-btn-ink);
  border-radius: 50%;
  pointer-events: none;
}
.zoom:hover .zoom-icon, .zoom:focus-visible .zoom-icon { background: var(--lime); color: #0e2a3d; border-color: #0e2a3d; }

body.lb-open { overflow: hidden; }
.lightbox {
  width: fit-content;
  max-width: 96vw;
  max-height: 94vh;
  padding: .7rem .8rem .8rem;
  color: var(--ink);
  background: var(--card);
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 12, 20, .84); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; }
.lb-title { margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.3rem; line-height: 1.2; color: var(--wine); }
.lb-close {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; padding: 0;
  color: var(--ink); background: transparent;
  border: 2px solid var(--ink); border-radius: 50%;
  cursor: pointer;
}
.lb-close:hover { background: var(--lime); color: #0e2a3d; border-color: #0e2a3d; }
.lb-scroll { overflow: auto; max-height: calc(94vh - 5.5rem); border-radius: 8px; }
.lb-scroll img { display: block; width: auto; max-width: 100%; height: auto; }
@media (max-width: 56rem) {
  /* Na malém displeji se obrázek nezmenšuje, dá se posouvat prstem a číst */
  .lb-scroll img { max-width: none; width: 900px; }
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 1.6rem 2.5rem; padding-block: 1.5rem 4rem; }
.contact-h1 { margin-bottom: 0; }
.contact-main .lead { margin-bottom: 2rem; }
@media (min-width: 56rem) {
  /* Nadpis přes celou šířku, pod ním vlevo text a formulář, vpravo sloupec od prvního odstavce */
  .contact-grid { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; gap: 1.2rem 4rem; }
  .contact-h1 { grid-column: 1 / -1; }
}

.form { max-width: 40rem; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.req, .opt { font-weight: 400; font-size: .95rem; color: var(--soft); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: .65rem .85rem;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--field-line);
  border-radius: 10px;
}
.form textarea { min-height: 11rem; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.form [aria-invalid="true"] { border-color: var(--error); border-width: 3px; }
.field-error { margin: .4rem 0 0; color: var(--error); font-weight: 700; }
.field-error::before { content: "Chyba: "; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { margin-top: 1rem; font-size: .95rem; color: var(--soft); }

.alert { padding: 1rem 1.3rem; margin-bottom: 1.8rem; background: var(--card); border: 3px solid; border-radius: 14px; max-width: 40rem; }
.alert h2 { font-size: 1.4rem; margin-bottom: .4em; }
.alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.alert-error { border-color: var(--error); }
.alert-error h2 { color: var(--error); }
.alert-ok { border-color: var(--ok); }
.alert-ok h2 { color: var(--ok); }
.alert:focus { outline: 3px solid var(--focus); outline-offset: 3px; }

.contact-side h2 { font-size: 1.5rem; }
.side-fig { max-width: 20rem; margin-bottom: 1.6rem; }
.direct { list-style: none; margin: 0 0 1rem; padding: 0; }
.direct li { margin-bottom: .6rem; }
.direct .k { display: block; font-size: .9rem; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.company { color: var(--soft); font-size: 1rem; }
.weby-box { margin-top: 1.8rem; padding: 1.1rem 1.3rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.weby-box h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.weby-box ul { list-style: none; margin: 0; padding: 0; }
.weby-box li { padding-block: .45rem; }
.weby-box li + li { border-top: 1px dashed var(--line); }
.weby-link { font-weight: 700; display: inline-block; padding-block: .2rem; }
.weby-text { display: block; color: var(--soft); font-size: .95rem; line-height: 1.4; }

/* --------------------------------------------------------------------------
   Patička
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: 3.5rem;
  padding: 2.2rem 0 2.4rem;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1rem;
}
.site-footer::before { top: -29px; background: var(--paper-2); }
.page-home .site-footer { margin-top: 0; }
.site-footer a:not(.btn) { color: var(--link); }
.direct a { display: inline-block; padding-block: .35rem; }
.foot-inner { text-align: center; }
.foot-lead { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; margin: 0 0 .9rem; }
.foot-social { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 0 0 2rem; padding: 0; }
.foot-social a.btn { min-height: 46px; padding-inline: 1.3rem; }
.foot-share { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.foot-share .btn { gap: .6rem; }
.foot-share [hidden] { display: none; }
.social-icon { flex: none; margin-right: .5rem; }
.btn-print { background: var(--wine); color: var(--card); border-color: var(--wine); }
.btn-print:hover { background: var(--wine); filter: brightness(1.12); }
:root[data-theme="dark"] .btn-print { color: #0a1a29; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-print { color: #0a1a29; } }
body:focus { outline: none; }
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 20;
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink);
  border: 2px solid var(--lime-ink);
  box-shadow: 0 4px 14px rgba(14, 42, 61, .3);
  text-decoration: none;
}
.to-top:hover { background: var(--lime-hover); }
.to-top[hidden] { display: none; }
:root[data-theme="dark"] .to-top { border-color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .to-top { border-color: var(--lime); } }
.foot-share .icon { flex: none; }
.foot-status { min-height: 1.5em; margin: .8rem 0 0; font-weight: 700; }

/* --------------------------------------------------------------------------
   Tisk
   -------------------------------------------------------------------------- */
.print-only { display: none; }
@media print {
  @page { margin: 14mm 16mm; }

  /* Na papíře nemají smysl ovládací prvky, ilustrace, formulář ani tlačítka */
  .skip-link, .site-header, .hero, .banner, .pano-controls, .theme-toggle, .lightbox, .zoom-icon, .to-top,
  .site-footer, .final, .btn, .actions, .more, .pager,
  .intro-figs, .about-fig, .fisher, .zoom, .ref-img, .final-img,
  .form, .privacy, .foot-social, .foot-share, .foot-status { display: none !important; }

  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; line-height: 1.4; }
  .wrap { width: auto; max-width: none; margin-inline: 0; padding-inline: 0; }
  main { padding: 0; }
  .section, .section-alt { padding-block: .5rem; background: none; }
  .section > .wrap > h2 { margin-bottom: .4rem; }
  .intro, .contact-grid, .about { display: block; padding-block: 0; }
  h1 { font-size: 22pt; margin: 0 0 .6rem; color: #000; }
  h2 { font-size: 15pt; margin: 1rem 0 .3rem; color: #000; break-after: avoid; }
  h3, .ref-title, .ref-card h2.ref-title { font-size: 12.5pt; color: #000; break-after: avoid; }
  p, li { orphans: 3; widows: 3; text-wrap: auto; }
  main p, main li { font-size: 10.5pt !important; line-height: 1.4; margin-block: 0 .45em; }
  .lead p { font-size: 11pt; max-width: none; }
  .page-head { padding: 0; }

  /* Karty a seznamy jako prostý text */
  .cards, .steps, .ref-grid { display: block; list-style: none; margin: 0; padding: 0; }
  .card, .ref-card, .steps li, .weby-box { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0; margin: 0 0 .7rem; break-inside: avoid; }
  .card::before, .steps li::before { display: none; }
  .steps { counter-reset: krok; }
  .ref-body { padding: 0; display: block; }
  .ref-card { border-bottom: 1px solid #999; padding-bottom: .5rem; }
  .ref-meta { color: #000; margin-bottom: .3em; }
  .weby-box h2 { font-size: 12.5pt; }
  .weby-box li { border: 0; padding: 0; margin: 0 0 .3rem; }
  .weby-text { color: #000; }

  /* Odkazy: bez barev, bez šipek a bez vypisování adres */
  a { color: #000 !important; text-decoration: none; }
  a[rel~="external"]::after, .ref-title .nw::after, .weby-link .nw::after, .arrow-link::after { display: none !important; }
  /* Jedině u referencí je adresa webu užitečná, tak se vytiskne obyčejným textem */
  .ref-link { display: block !important; margin: .3rem 0 0; padding: 0; text-align: left; }
  .ref-link a.btn { display: inline !important; padding: 0; min-height: 0; border: 0; background: none; font-size: 10.5pt; font-weight: 400; }
  .ref-link a.btn::after { content: " – " attr(href); display: inline !important; background: none; width: auto; height: auto; -webkit-mask: none; mask: none; margin: 0; }

  /* Jednořádková tisková hlavička a patička */
  .print-only { display: block; }
  .print-brand { margin: 0 0 .8rem; padding-bottom: .3rem; border-bottom: 1px solid #000; font-size: 10pt; letter-spacing: .04em; text-transform: uppercase; }
  .print-foot { margin: 1.2rem 0 0; padding-top: .4rem; border-top: 1px solid #000; font-size: 9.5pt; }
}
