/* ==========================================================================
   INP Investing s.r.o. - statický web (HTML/CSS/JS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokeny
   -------------------------------------------------------------------------- */
:root {
  --slate-ink: 210 38% 16%;
  --slate-soft: 210 24% 28%;
  --slate-mute: 210 16% 45%;
  --amber: 36 92% 48%;
  --amber-deep: 30 80% 38%;
  --paper: 0 0% 100%;
  --mist: 210 20% 97%;
  --mist-strong: 210 16% 93%;
  --rule: 210 14% 86%;
  --destructive: 0 72% 42%;

  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* --------------------------------------------------------------------------
   2. Reset a základ
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
  font-family: var(--font-sans);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: hsl(var(--paper));
  color: hsl(var(--slate-ink));
  font-family: var(--font-sans);
}

main {
  flex: 1 1 auto;
  /* Sekce se při animaci posouvají do stran - ořez drží stránku v šířce okna.
     Vlastnost clip (na rozdíl od hidden) nedělá z prvku posuvnou plochu. */
  overflow-x: hidden;
}

@supports (overflow: clip) {
  main {
    overflow-x: clip;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  cursor: pointer;
}

/* Datum: bez implicitního vnitřního odsazení, aby mělo stejnou výšku jako
   ostatní pole. Každý selektor musí být v samostatném pravidle - prohlížeč
   zahodí celé pravidlo, pokud jeden selektor v seznamu nezná. */
::-webkit-date-and-time-value {
  min-height: 1lh;
  text-align: inherit;
}
::-webkit-datetime-edit {
  display: inline-flex;
}
::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}
::-webkit-datetime-edit {
  padding-block: 0;
}
::-webkit-datetime-edit-year-field {
  padding-block: 0;
}
::-webkit-datetime-edit-month-field {
  padding-block: 0;
}
::-webkit-datetime-edit-day-field {
  padding-block: 0;
}
::-webkit-datetime-edit-hour-field {
  padding-block: 0;
}
::-webkit-datetime-edit-minute-field {
  padding-block: 0;
}
::-webkit-datetime-edit-second-field {
  padding-block: 0;
}
::-webkit-datetime-edit-millisecond-field {
  padding-block: 0;
}
::-webkit-datetime-edit-meridiem-field {
  padding-block: 0;
}
::-webkit-calendar-picker-indicator {
  line-height: 1;
}

h1,
h2,
h3 {
  font-size: inherit;
  font-weight: inherit;
}

/* --------------------------------------------------------------------------
   3. Pomocné třídy
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.wrap--narrow {
  max-width: 48rem;
}

.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border-width: 0;
}

[hidden] {
  display: none !important;
}

.grid {
  display: grid;
}

.g-3 { gap: 0.75rem; }
.g-4 { gap: 1rem; }
.g-5 { gap: 1.25rem; }
.g-6 { gap: 1.5rem; }
.g-8 { gap: 2rem; }
.g-10 { gap: 2.5rem; }

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

.icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--lg {
  width: 1.25rem;
  height: 1.25rem;
}

.icon--sm {
  width: 0.875rem;
  height: 0.875rem;
}

.icon--amber {
  color: hsl(var(--amber-deep));
}

/* --------------------------------------------------------------------------
   4. Sekce a nadpisy
   -------------------------------------------------------------------------- */
.section {
  padding-block: 4rem;
}

.section--tight {
  padding-block: 3rem;
}

.section--mist {
  background-color: hsl(var(--mist));
}

.section--ruled {
  border-bottom: 1px solid hsl(var(--rule));
}

.sec-head {
  max-width: 42rem;
  text-align: left;
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: hsl(var(--amber-deep));
}

.sec-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: hsl(var(--slate-ink));
}

.sec-lead {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.625;
  color: hsl(var(--slate-mute));
}

/* --------------------------------------------------------------------------
   5. Hlavička
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--rule));
  background-color: hsl(var(--paper) / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.brand__logo {
  width: auto;
  height: 2.375rem;
}

.brand__tag {
  font-size: 0.7rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: hsl(var(--slate-mute));
}

/* V pásmu, kde už je vodorovná navigace, ale ještě není dost místa vedle ní,
   podtitulek skryjeme - jinak by se zalomil a natáhl hlavičku. */
@media (min-width: 768px) and (max-width: 899px) {
  .brand__tag {
    display: none;
  }
}

.nav-desktop {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--slate-soft));
  transition: background-color 0.15s, color 0.15s;
}

.nav-link:hover {
  background-color: hsl(var(--mist));
  color: hsl(var(--slate-ink));
}

.nav-link.is-active {
  background-color: hsl(var(--mist));
  color: hsl(var(--slate-ink));
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-md);
  color: hsl(var(--slate-ink));
}

.nav-mobile {
  display: none;
  border-top: 1px solid hsl(var(--rule));
  background-color: hsl(var(--paper));
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile ul {
  padding-block: 0.5rem;
}

.nav-mobile__link {
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--slate-soft));
  transition: background-color 0.15s, color 0.15s;
}

.nav-mobile__link:hover,
.nav-mobile__link.is-active {
  background-color: hsl(var(--mist));
  color: hsl(var(--slate-ink));
}

/* --------------------------------------------------------------------------
   6. Tlačítka
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition: background-color 0.15s, color 0.15s;
}

.btn:focus-visible {
  outline: none;
}

.btn--amber {
  padding: 0.75rem 1.5rem;
  background-color: hsl(var(--amber));
  color: hsl(var(--slate-ink));
}

.btn--amber:hover {
  background-color: hsl(var(--amber-deep));
  color: hsl(var(--paper));
}

.btn--amber:focus-visible {
  box-shadow: 0 0 0 2px hsl(var(--paper) / 0.4);
}

.btn--ghost {
  padding: 0.75rem 1.5rem;
  border: 1px solid hsl(var(--paper) / 0.3);
  color: hsl(var(--paper));
}

/* Světlá varianta obrysového tlačítka - stejné rozměry jako .btn--submit,
   aby v cookie liště nebylo odmítnutí hůř dostupné než souhlas. */
.btn--outline {
  padding: 0.625rem 1.25rem;
  border: 1px solid hsl(var(--rule));
  color: hsl(var(--slate-ink));
}

.btn--outline:hover {
  background-color: hsl(var(--mist));
  border-color: hsl(var(--slate-mute));
}

.btn--outline:focus-visible {
  box-shadow: 0 0 0 2px hsl(var(--amber) / 0.5);
}

.btn--ghost:hover {
  background-color: hsl(var(--paper) / 0.1);
}

.btn--ghost:focus-visible {
  box-shadow: 0 0 0 2px hsl(var(--paper) / 0.4);
}

.btn--ink {
  flex: none;
  padding: 0.75rem 1.5rem;
  background-color: hsl(var(--slate-ink));
  color: hsl(var(--paper));
}

.btn--ink:hover {
  background-color: hsl(var(--slate-soft));
}

.btn--ink:focus-visible {
  box-shadow: 0 0 0 2px hsl(var(--amber) / 0.5);
}

.btn--submit {
  padding: 0.625rem 1.25rem;
  background-color: hsl(var(--slate-ink));
  color: hsl(var(--paper));
}

.btn--submit:hover {
  background-color: hsl(var(--slate-soft));
}

.btn--submit:focus-visible {
  box-shadow: 0 0 0 2px hsl(var(--amber) / 0.5);
}

.btn--submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
/* Výšku drží min-height, ne délka textu - všechny úvodní fotografie na webu
   tak mají stejný pruh. Obsah je v něm vycentrovaný na výšku, padding uvnitř
   je jen minimální odstup pro případ, že se text hodně zalomí. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 30rem;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom right,
    hsl(var(--slate-ink) / 0.95),
    hsl(var(--slate-ink) / 0.8) 50%,
    hsl(var(--slate-ink) / 0.6)
  );
}

.hero__veil--soft {
  background-image: linear-gradient(
    to bottom right,
    hsl(var(--slate-ink) / 0.95),
    hsl(var(--slate-ink) / 0.82) 50%,
    hsl(var(--slate-ink) / 0.6)
  );
}

.hero__veil--top {
  background-image: linear-gradient(
    to top,
    hsl(var(--slate-ink) / 0.9),
    transparent 50%,
    hsl(var(--slate-ink) / 0.3)
  );
}

.hero__inner {
  position: relative;
  width: 100%;
  padding-block: 4rem;
}

.hero__body {
  max-width: 42rem;
}

.hero .eyebrow {
  margin-bottom: 1rem;
  letter-spacing: 0.18em;
  color: hsl(var(--amber));
}

.hero__title {
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: hsl(var(--paper));
}

.hero__slogan {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: hsl(var(--amber));
}

.hero__lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.625;
  color: hsl(var(--paper) / 0.8);
}

.hero__slogan + .hero__lead {
  margin-top: 0.75rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Podstránkový hero (světlý pruh) */
.page-hero {
  border-bottom: 1px solid hsl(var(--rule));
  background-color: hsl(var(--mist));
}

.page-hero__inner {
  padding-block: 3rem;
}

.page-hero__body {
  max-width: 42rem;
}

.page-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: hsl(var(--slate-ink));
}

.page-lead {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.625;
  color: hsl(var(--slate-mute));
}

/* --------------------------------------------------------------------------
   8. Pruh s údaji (homepage)
   -------------------------------------------------------------------------- */
.stats {
  border-bottom: 1px solid hsl(var(--rule));
  background-color: hsl(var(--mist));
}

.stats__inner {
  padding-block: 1.5rem;
}

.stat {
  text-align: center;
}

.stat__label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: hsl(var(--slate-ink));
}

.stat__meta {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--slate-mute));
}

/* --------------------------------------------------------------------------
   9. Karty
   -------------------------------------------------------------------------- */
.card {
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-lg);
  background-color: hsl(var(--paper));
  padding: 1.5rem;
}

.card--sm {
  padding: 1.25rem;
}

.card--link {
  display: flex;
  flex-direction: column;
  transition: background-color 0.15s, border-color 0.15s;
}

.card--link:hover {
  border-color: hsl(var(--amber) / 0.5);
  background-color: hsl(var(--mist));
}

.card__title {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: hsl(var(--slate-ink));
}

.card__title--tight {
  letter-spacing: -0.025em;
}

.card__text {
  flex: 1 1 auto;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--slate-mute));
}

.card__more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--amber-deep));
  transition: color 0.15s;
}

.card--link:hover .card__more {
  color: hsl(var(--slate-ink));
}

/* Malá karta bez pozadí (uvnitř panelu) */
.mini-card {
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-md);
  padding: 1rem;
}

.mini-card__name {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: hsl(var(--slate-ink));
}

/* Karta s poznámkou (bílé pozadí na mist sekci) */
.note-card {
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-md);
  background-color: hsl(var(--paper));
  padding: 1.25rem;
}

.note-card__title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: hsl(var(--slate-ink));
}

.note-card__text {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--slate-mute));
}

.stack-4 > * + * {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   10. Galerie referencí
   -------------------------------------------------------------------------- */
.shot {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-lg);
  background-color: hsl(var(--paper));
  transition: border-color 0.15s;
}

.shot:hover {
  border-color: hsl(var(--amber) / 0.5);
}

.shot__btn {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.shot__btn:focus-visible {
  outline: 2px solid hsl(var(--amber));
  outline-offset: -2px;
}

.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shot img.is-top {
  object-position: top;
}

/* Vrstva přes fotografii - napoví, že kliknutí otevře náhled. */
.shot__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: hsl(var(--slate-ink) / 0.55);
  color: hsl(var(--paper));
  font-size: 0.8125rem;
  line-height: 1;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.shot__zoom svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shot__btn:hover .shot__zoom,
.shot__btn:focus-visible .shot__zoom {
  opacity: 1;
}

.shot figcaption {
  background-color: hsl(var(--paper));
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: hsl(var(--slate-soft));
}

/* Náhled fotografie -------------------------------------------------------
   Celé okno je naše - lišta s popiskem, plocha s fotografií a ovládání
   uvnitř rámu, aby nic nepřečnívalo mimo dialog.
   ------------------------------------------------------------------------- */
.preview {
  width: min(94vw, 64rem);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background-color: transparent;
  color: hsl(var(--paper));
  overflow: visible;
  /* Reset výše nuluje marginy všemu - tady je ale potřeba vrátit auto,
     jinak zůstane otevřené okno v levém horním rohu místo uprostřed. */
  margin: auto;
}

.preview::backdrop {
  background-color: hsl(var(--slate-ink) / 0.9);
}

.preview__frame {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid hsl(var(--paper) / 0.14);
  border-radius: var(--radius-lg);
  background-color: hsl(var(--slate-ink));
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
}

/* Otevření řešíme animací, ne přepínáním třídy - okno se nikdy nemůže
   zaseknout v neviditelném stavu. */
.preview[open] .preview__frame {
  animation: preview-in 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes preview-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.625rem 0.625rem 1.25rem;
  border-bottom: 1px solid hsl(var(--paper) / 0.12);
}

.preview__caption {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.preview__count {
  flex: none;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--paper) / 0.6);
}

.preview__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  color: hsl(var(--paper));
  transition: background-color 0.15s;
}

.preview__close:hover {
  background-color: hsl(var(--paper) / 0.12);
}

.preview__close:focus-visible {
  outline: 2px solid hsl(var(--amber));
  outline-offset: -2px;
}

.preview__close svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.preview__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  background-color: hsl(210 38% 10%);
}

.preview__img {
  width: 100%;
  max-height: calc(92vh - 6rem);
  object-fit: contain;
}

.preview__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  border: 1px solid hsl(var(--paper) / 0.25);
  border-radius: var(--radius-full);
  background-color: hsl(var(--slate-ink) / 0.72);
  color: hsl(var(--paper));
  transition: background-color 0.15s, border-color 0.15s;
}

.preview__nav:hover {
  background-color: hsl(var(--amber-deep));
  border-color: hsl(var(--amber-deep));
}

.preview__nav:focus-visible {
  outline: 2px solid hsl(var(--amber));
  outline-offset: 2px;
}

.preview__nav svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview__nav--prev {
  left: 0.75rem;
}

.preview__nav--next {
  right: 0.75rem;
}

/* --------------------------------------------------------------------------
   11. Tým
   -------------------------------------------------------------------------- */
.person {
  display: flex;
  gap: 1.25rem;
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-lg);
  background-color: hsl(var(--paper));
  padding: 1.5rem;
}

.person--compact {
  gap: 1rem;
  padding: 1.25rem;
}

.person__body {
  min-width: 0;
}

.person__name {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: hsl(var(--slate-ink));
}

.person__role {
  margin-top: 0.125rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--slate-mute));
}

.person__role--xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.person__links {
  margin-top: 0.75rem;
}

.person__links--tight {
  margin-top: 0.5rem;
}

.person__link {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--slate-soft));
  transition: color 0.15s;
}

.person__link + .person__link {
  margin-top: 0.25rem;
}

.person__link:hover {
  color: hsl(var(--amber-deep));
}

.person__link--truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.break-all {
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   12. Kontaktní panel
   -------------------------------------------------------------------------- */
.panel {
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-lg);
  background-color: hsl(var(--paper));
  padding: 1.5rem;
}

.panel__title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: hsl(var(--slate-ink));
}

.panel__lead {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--slate-mute));
}

.panel__body > * + * {
  margin-top: 1.5rem;
}

.panel__body {
  margin-top: 1.5rem;
}

.addr {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.addr .icon {
  margin-top: 0.125rem;
}

.label-xs {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: hsl(var(--slate-soft));
}

.addr__lines {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--slate-ink));
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--slate-mute));
  transition: color 0.15s;
}

.contact-line + .contact-line {
  margin-top: 0.25rem;
}

.contact-line:hover {
  color: hsl(var(--slate-ink));
}

.note-box {
  border-radius: var(--radius-md);
  background-color: hsl(var(--mist));
  padding: 1rem;
}

.note-box .contact-line {
  margin-top: 0.25rem;
  color: hsl(var(--slate-ink));
}

.note-box .contact-line:hover {
  color: hsl(var(--amber-deep));
}

.stack-6 > * + * {
  margin-top: 1.5rem;
}

/* Formulář vyplní celou výšku svého sloupce - dorůstá pole se zprávou. */
.panel--form {
  display: flex;
  flex-direction: column;
}

.panel--form .form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.panel--form .field-grow {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.panel--form .field-grow .input {
  flex: 1 1 auto;
  min-height: 8rem;
}

/* --------------------------------------------------------------------------
   13. Formuláře
   -------------------------------------------------------------------------- */
.form {
  margin-top: 1.5rem;
}

.form > * + * {
  margin-top: 1.25rem;
}

.form--bare {
  margin-top: 0;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--slate-soft));
}

.req {
  color: hsl(var(--amber-deep));
}

.input {
  display: block;
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-md);
  background-color: hsl(var(--paper));
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--slate-ink));
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea.input {
  resize: vertical;
}

.input:focus {
  outline: none;
  border-color: hsl(var(--amber));
  box-shadow: var(--shadow-sm), 0 0 0 2px hsl(var(--amber) / 0.4);
}

.input:disabled {
  opacity: 0.6;
}

.input[aria-invalid="true"] {
  border-color: hsl(var(--destructive) / 0.6);
}

.field-error {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--destructive));
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-actions--stacked {
  flex-direction: column;
  align-items: stretch;
}

.form-note {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--slate-mute));
}

/* Past na roboty - pro člověka neviditelné pole. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.alert[hidden] {
  display: none;
}

.alert--ok {
  margin-top: 1.25rem;
  border: 1px solid hsl(var(--amber) / 0.4);
  background-color: hsl(var(--mist));
  color: hsl(var(--slate-ink));
}

.alert--err {
  margin-top: 1.25rem;
  border: 1px solid hsl(var(--destructive) / 0.3);
  background-color: hsl(var(--destructive) / 0.05);
  color: hsl(var(--destructive));
}

.alert--lead .alert__icon {
  margin-top: 0.125rem;
  color: hsl(var(--amber-deep));
}

.form-card .alert--ok,
.form-card .alert--err {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.form-card {
  margin-top: 2.5rem;
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-lg);
  background-color: hsl(var(--paper));
  padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   14. Ceník
   -------------------------------------------------------------------------- */
.price-table {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-lg);
  background-color: hsl(var(--paper));
}

.price-table__head {
  border-bottom: 1px solid hsl(var(--rule));
  background-color: hsl(var(--mist));
  padding: 0.875rem 1.25rem;
}

.price-table__foot {
  border-top: 1px solid hsl(var(--rule));
  background-color: hsl(var(--mist));
  padding: 0.875rem 1.25rem;
}

.price-table__foot p {
  font-size: 0.75rem;
  line-height: 1.625;
  color: hsl(var(--slate-mute));
}

.price-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.25rem;
}

.price-row + .price-row {
  border-top: 1px solid hsl(var(--rule));
}

.price-row__label {
  font-size: 0.875rem;
  /* Bezrozměrná hodnota - při 14 px dá 20 px, při 15,2 px na sm 21,7 px. */
  line-height: 1.4285714;
  font-weight: 500;
  color: hsl(var(--slate-ink));
}

.price-row__value {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: hsl(var(--amber-deep));
}

.price-note {
  margin-top: 1.5rem;
  max-width: 48rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--slate-mute));
}

.ico-line {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--slate-mute));
}

.text-soft {
  color: hsl(var(--slate-soft));
}

/* --------------------------------------------------------------------------
   15. Kroky procesu
   -------------------------------------------------------------------------- */
.step {
  display: flex;
  flex-direction: column;
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-lg);
  background-color: hsl(var(--paper));
  padding: 1.25rem;
}

.step__num {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: hsl(var(--amber-deep));
}

.step__title {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: hsl(var(--slate-ink));
}

.step__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--slate-mute));
}

/* --------------------------------------------------------------------------
   16. Seznam kontrolních bodů
   -------------------------------------------------------------------------- */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-md);
  background-color: hsl(var(--paper));
  padding: 1rem;
}

.check-item .dot {
  flex: none;
  margin-top: 0.25rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: var(--radius-full);
  background-color: hsl(var(--amber-deep));
}

.check-item span:last-child {
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--slate-soft));
}

/* Odrážka i text uprostřed dlaždice, tečka na střed prvního řádku. */
.check-item--center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.check-item--center .dot {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   17. Oblasti inspekce
   -------------------------------------------------------------------------- */
.area__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.area__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background-color: hsl(var(--slate-ink));
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--paper));
}

.area__title {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: hsl(var(--slate-ink));
}

.area__list {
  margin-top: 1rem;
}

.area__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--slate-mute));
}

.area__list li + li {
  margin-top: 0.625rem;
}

.area__list .icon {
  margin-top: 0.125rem;
  stroke-width: 1.8;
}

/* --------------------------------------------------------------------------
   18. Závěrečná výzva
   -------------------------------------------------------------------------- */
.cta {
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-lg);
  background-color: hsl(var(--mist));
  padding: 1.5rem;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cta__body {
  max-width: 36rem;
}

.cta__title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: hsl(var(--slate-ink));
}

.cta__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--slate-mute));
}

/* --------------------------------------------------------------------------
   19. Mapa (stránka Kontakt)
   -------------------------------------------------------------------------- */
.map-figure {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-lg);
  background-color: hsl(var(--paper));
}

/* Uvnitř sloupce s dalšími bloky drží stejný rozestup jako oni (.stack-6). */
.map-figure--stacked {
  margin-top: 1.5rem;
}

.map-figure__canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: hsl(var(--mist));
}

.map-figure__canvas iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Zástupná plocha, dokud návštěvník nepovolí načtení mapy od Googlu. */
.map-consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background-image: linear-gradient(to right, hsl(var(--rule) / 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--rule) / 0.5) 1px, transparent 1px);
  background-size: 48px 48px;
}

.map-consent__card {
  max-width: 26rem;
  border: 1px solid hsl(var(--rule));
  border-radius: var(--radius-md);
  background-color: hsl(var(--paper));
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.map-consent__text {
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--slate-mute));
}

.map-consent .btn {
  margin-top: 1rem;
}

/* Mapa má prostor i tam, kde býval pruh s adresou pod ní. */
.map-figure--tall .map-figure__canvas,
.map-figure--fill .map-figure__canvas {
  aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   20. Patička
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid hsl(var(--rule));
  background-color: hsl(var(--mist));
}

.site-footer__inner {
  padding-block: 2.5rem;
}

.footer-brand__logo {
  width: auto;
  height: 2.25rem;
}

.footer-slogan {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: hsl(var(--amber-deep));
}

.footer-addr {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--slate-mute));
}

.footer-ico {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--slate-mute));
}

.footer-heading {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: hsl(var(--slate-soft));
}

/* Jeden sloupec - položky pod sebou. */
.footer-nav__list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--slate-mute));
  transition: color 0.15s;
}

.footer-link:hover {
  color: hsl(var(--slate-ink));
}

.footer-contacts {
  margin-top: 0.75rem;
}

.footer-contacts > li + li {
  margin-top: 0.5rem;
}

.footer-contacts li {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--slate-mute));
}

.footer-contacts strong {
  font-weight: 500;
  color: hsl(var(--slate-ink));
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: hsl(var(--slate-mute));
  transition: color 0.15s;
}

.footer-contacts a:hover {
  color: hsl(var(--slate-ink));
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--rule));
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--slate-mute));
}

.footer-cookies {
  padding: 0;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--slate-mute));
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.footer-cookies:hover {
  color: hsl(var(--slate-ink));
}

/* --------------------------------------------------------------------------
   Cookie lišta
   -------------------------------------------------------------------------- */
.cookiebar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  border-top: 1px solid hsl(var(--rule));
  background-color: hsl(var(--paper));
  box-shadow: 0 -4px 20px rgb(0 0 0 / 0.08);
}

.cookiebar__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.25rem;
}

.cookiebar__body {
  max-width: 46rem;
}

.cookiebar__title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: hsl(var(--slate-ink));
}

.cookiebar__text {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: hsl(var(--slate-mute));
}

.cookiebar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookiebar__actions .btn {
  flex: 1 1 auto;
}

/* --------------------------------------------------------------------------
   Animace obsahu

   Třídy nasazuje skript až za běhu - bez JavaScriptu se obsah zobrazí
   normálně a nikdy nezůstane schovaný. Vodorovné posunutí se ořezává uvnitř
   prvku, aby se stránka nedala odsunout do strany.
   -------------------------------------------------------------------------- */
.anim {
  opacity: 0;
  transform: translateX(-2.5rem);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim--right {
  transform: translateX(2.5rem);
}

.anim.is-in {
  opacity: 1;
  transform: none;
}

/* Úvodní blok se po načtení stránky přiblíží do místa. Je to čistě CSS, takže
   se nemá jak zaseknout - konec animace drží obsah viditelný. */
.hero__inner,
.page-hero__inner {
  animation: uvod-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes uvod-in {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* --------------------------------------------------------------------------
   21. Kotvy
   -------------------------------------------------------------------------- */
[id="sluzby"],
[id="poptavka"],
[id="reference"],
[id="fotogalerie"] {
  scroll-margin-top: 5rem;
}

/* --------------------------------------------------------------------------
   22. Breakpoint sm - 640px
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .wrap {
    padding-inline: 1.5rem;
  }

  .section {
    padding-block: 5rem;
  }

  .section--tight {
    padding-block: 4rem;
  }

  .sm-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sm-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    min-height: 31rem;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__slogan {
    font-size: 1.5rem;
  }

  .hero__lead {
    font-size: 1.125rem;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .page-hero__inner {
    padding-block: 4rem;
  }

  .page-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .page-lead {
    font-size: 1.125rem;
  }

  .sec-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .stat {
    text-align: left;
  }

  .panel,
  .form-card {
    padding: 2rem;
  }

  .person--compact,
  .card--sm {
    padding: 1.5rem;
  }

  .price-table__head,
  .price-table__foot,
  .price-row {
    padding-inline: 1.5rem;
  }

  .map-figure__canvas {
    aspect-ratio: 21 / 9;
  }

  .map-figure--tall .map-figure__canvas {
    aspect-ratio: 21 / 10;
  }

  .map-figure--fill .map-figure__canvas {
    aspect-ratio: 21 / 9;
  }

  .price-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .price-row__label {
    font-size: 0.95rem;
  }

  .price-row__value {
    font-size: 1rem;
    line-height: 1.5rem;
    white-space: nowrap;
  }

  .cta {
    padding: 2.5rem;
  }

  .cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cta__title {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .form-actions--stacked {
    flex-direction: row;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }

  .cookiebar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .cookiebar__actions {
    flex: none;
    flex-wrap: nowrap;
  }

  .cookiebar__actions .btn {
    flex: none;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   23. Breakpoint md - 768px
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile,
  .nav-mobile.is-open {
    display: none;
  }

  .md-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md-center {
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   24. Breakpoint lg - 1024px
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .lg-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    min-height: 37rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  /* Kontaktní sloupec: mapa dorovná výšku sousedního formuláře. */
  .contact-col {
    display: flex;
    flex-direction: column;
  }

  .map-figure--fill {
    display: flex;
    flex: 1 1 auto;
  }

  .map-figure--fill .map-figure__canvas {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 18rem;
  }
}

/* --------------------------------------------------------------------------
   25. Omezení pohybu
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }

  /* Pojistka, kdyby skript animaci přesto nasadil. */
  .anim {
    opacity: 1;
    transform: none;
  }

  .hero__inner,
  .page-hero__inner,
  .preview[open] .preview__frame {
    animation: none;
  }
}
