/* B2B landing — firemní tašky z netkané textilie */
/* Paleta: images/colors-palette.jpeg */
:root {
  --palette-mauve: #987284;
  --palette-sage: #9dbf9e;
  --palette-beige: #d0d6b5;
  --palette-melon: #f9b5ac;
  --palette-coral: #ee7674;

  --color-bg: #f4f5ec;
  --color-surface: #fffdfb;
  --color-text: #3a3034;
  --color-muted: #6e6569;
  --color-border: rgba(152, 114, 132, 0.28);
  --color-accent: var(--palette-coral);
  --color-accent-hover: #d96563;
  --color-kicker: #713552;
  --color-peach: var(--palette-melon);
  --color-yellow: var(--palette-beige);
  --color-sage: var(--palette-sage);
  --color-cyan: var(--palette-sage);
  --color-focus: var(--palette-sage);
  --color-accent-soft: rgba(238, 118, 116, 0.14);
  --color-peach-soft: rgba(249, 181, 172, 0.38);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Sans", var(--font-sans);
  --radius: 12px;
  --shadow: 0 1px 3px rgba(60, 40, 50, 0.06);
  --shadow-lg: 0 12px 40px rgba(60, 40, 50, 0.08);
  --max-width: 1120px;
  --header-h: 72px;
  --header-offset: 4.75rem;
  --header-bg: #977284;
  --header-bg-edge: #7f5f70;
  --header-on-bar: #4a3538;
  --color-h2: #977284;
}

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

html {
  scroll-behavior: smooth;
}

html[lang="zh-Hans"] body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h2 {
  color: var(--color-h2);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header — pozadí #977284, nahoře jemný přechod do tmavšího odstínu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    var(--header-bg-edge) 0%,
    var(--header-bg) 32%,
    var(--header-bg) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(1.125rem * 1.5);
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.logo:hover {
  text-decoration: none;
  color: #fff;
  opacity: 0.92;
}

.site-header__side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-switch__link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}

.lang-switch__link:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}

.lang-switch__link.is-active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}


.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

/* Hamburger — jen na úzkých displejích */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-toggle:hover {
  opacity: 0.92;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.nav a {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.nav a:not(.btn):hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}

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

@media (max-width: 767px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav.nav {
    position: fixed;
    top: var(--site-header-h, 4.75rem);
    left: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 20rem);
    max-width: 100%;
    margin-left: auto;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 1rem 1.5rem 2rem;
    gap: 0.25rem;
    background: linear-gradient(
      180deg,
      var(--header-bg-edge) 0%,
      var(--header-bg) 32%,
      var(--header-bg) 100%
    );
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
    z-index: 100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header.is-open .site-nav.nav {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: var(--site-header-h, 4.75rem);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(40, 30, 35, 0.45);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-backdrop[hidden] {
    display: none !important;
  }

  body.nav-menu-open {
    overflow: hidden;
    touch-action: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

/* na broskvovém pruhu — bílý text na tyrkysovém tlačítku (kontrast) */
.nav .btn--primary.nav__cta {
  color: #fff;
}

.nav .btn--primary.nav__cta:hover {
  color: #fff;
  background: var(--color-accent-hover);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  background: #e6e6e6;
}

.section--alt {
  background: #fdeae7;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-kicker);
  margin: 0 0 0.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.section__title--reference-follow {
  margin-top: 3rem;
  font-size: clamp(1.375rem, 3.2vw, 1.875rem);
  color: var(--color-h2);
}

.section__lead {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 42rem;
  margin: 0 0 2rem;
}

/* Hero — imerzivní pozadí + čtverec vpravo (viz firemnidestniky.cz) */
.hero--immersive {
  position: relative;
  margin-top: calc(-1 * var(--header-offset));
  padding: calc(var(--header-offset) + 2.25rem) 1.5rem 3.5rem;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg .hero__slide-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  will-change: transform, opacity;
}

.hero__bg .hero__slide-layer.is-active {
  opacity: 1;
  z-index: 2;
}

.hero__bg .hero__slide-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    105deg,
    rgba(72, 48, 62, 0.9) 0%,
    rgba(152, 114, 132, 0.62) 38%,
    rgba(238, 118, 116, 0.28) 62%,
    rgba(255, 255, 255, 0.12) 100%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 4;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 2.5rem 3rem;
  }
}

.hero__copy {
  max-width: 38rem;
}

.hero--immersive .hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero--immersive .hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--color-peach-soft);
  border: 1px solid rgba(238, 118, 116, 0.35);
  border-radius: 999px;
  color: var(--color-text);
}

.badge--on-dark {
  background: var(--header-bg);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: none;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero--immersive .btn--on-dark {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero--immersive .btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.hero__showcase {
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero__showcase {
    justify-content: flex-end;
  }
}

.hero__square {
  width: 100%;
  max-width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero__square-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.hero__square .hero__slide-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 1;
  background: #fff;
  will-change: transform, opacity;
}

.hero__square .hero__slide-layer.is-active {
  opacity: 1;
  z-index: 2;
}

.hero__square .hero__slide-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg .hero__slide-layer,
  .hero__square .hero__slide-layer {
    will-change: auto;
  }
}

/* Grids */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

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

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

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

.card {
  background: #fed0c9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* Sekce „Odolnost…“ — karta Laminace: dvakrát o ~20 % světlejší než základ .card */
.card--lighter-20 {
  background: #fee1dc;
  background: color-mix(
    in srgb,
    color-mix(in srgb, #fed0c9 80%, white 20%) 80%,
    white 20%
  );
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

/* Process steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

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

.step {
  position: relative;
  padding: 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* Zakázka — kroky 1 a 3: o ~10 % tmavší pozadí než základ .step */
.step--darker-10 {
  background: #dcddd4;
  background: color-mix(in srgb, var(--color-bg) 90%, black 10%);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Galerie sekce „Typy tašek“ — mřížka miniatur (bez velkého náhledu nad mřížkou) */
.gallery-showcase {
  margin-top: 0.5rem;
  border-radius: var(--radius);
  outline: none;
}

.gallery-showcase:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.gallery-showcase__thumbs-wrap {
  margin-top: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

/* Všech 20 náhledů najednou — stejná logika mřížky jako dříve u .gallery */
.gallery-showcase__thumbs {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, 1fr);
  padding: 0.25rem 0 0.75rem;
}

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

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

.gallery-showcase__thumb {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gallery-showcase__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-showcase__thumb:hover {
  border-color: #bbb;
}

.gallery-showcase__thumb.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.gallery-showcase__thumb:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.gallery-showcase__caption {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
  text-align: center;
}

.gallery-showcase__note {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.5;
}

/* Stock filters */
.stock-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-muted);
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.stock-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

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

.stock-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stock-card__img {
  aspect-ratio: 1;
  background: linear-gradient(
    145deg,
    rgba(157, 191, 158, 0.55),
    rgba(238, 118, 116, 0.22)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Malá výchozí ikona jen když není fotka (.stock-card__img--photo) */
.stock-card__img:not(.stock-card__img--photo) img,
.stock-card__img:not(.stock-card__img--photo) svg {
  width: 48%;
  max-width: 48%;
  height: auto;
  opacity: 0.55;
}

/* Skutečné fotky produktů — celá plocha náhledu, bez zesvětlení */
.stock-card__img--photo {
  position: relative;
  padding: 0;
}

.stock-card__img--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.stock-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stock-card__cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.stock-card__name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.stock-card dl {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.stock-card dt {
  font-weight: 600;
  color: var(--color-text);
  display: inline;
}

.stock-card dd {
  display: inline;
  margin: 0;
}

.stock-card dd::after {
  content: "";
  display: block;
  margin-bottom: 0.35rem;
}

.stock-card .note {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--color-muted);
}

/* Reference — Primasoft */
.reference-primasoft__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .reference-primasoft__gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.reference-primasoft__thumb {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
  text-align: left;
}

.reference-primasoft__thumb:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.reference-primasoft__thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1;
}

/* Lightbox — plovoucí fotogalerie Primasoft, šipky &lt; &gt; */
/* Bez [open] musí zůstat skrytý — samotné `display: flex` na dialogu přebije UA a okno je „natvrdo“ vidět a close() nefunguje. */
.lightbox-primasoft:not([open]) {
  display: none;
}

.lightbox-primasoft[open] {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  margin: 0;
  padding: 1rem;
  box-sizing: border-box;
  border: none;
  background: transparent;
  overflow: auto;
  color: var(--color-text);
}

.lightbox-primasoft::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.lightbox-primasoft__scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  cursor: pointer;
}

.lightbox-primasoft__panel {
  /* Celý „papír“ včetně × a šipek je čtverec (vejde se do viewportu). */
  --lb-panel: min(82vmin, min(calc(100vw - 2rem), calc(100vh - 2rem)));
  position: relative;
  z-index: 1;
  width: var(--lb-panel);
  aspect-ratio: 1;
  max-width: min(calc(100vw - 2rem), calc(100vh - 2rem));
  max-height: min(calc(100vw - 2rem), calc(100vh - 2rem));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.4rem;
  padding-top: 2.35rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.lightbox-primasoft__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-primasoft__close:hover {
  background: var(--color-peach-soft);
}

.lightbox-primasoft__close:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.lightbox-primasoft__stage {
  container-type: size;
  container-name: lightbox-stage;
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  gap: 0.35rem;
  align-items: center;
  padding: 0 0.2rem;
}

.lightbox-primasoft__nav {
  justify-self: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-h2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.lightbox-primasoft__nav:hover {
  background: var(--color-peach-soft);
  border-color: var(--color-accent);
}

.lightbox-primasoft__nav:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.lightbox-primasoft__nav-label {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.lightbox-primasoft__img-wrap {
  grid-column: 2;
  box-sizing: border-box;
  justify-self: center;
  align-self: center;
  /* Největší čtverec ve stage (min rozměr kontejneru × šířka sloupce) */
  width: min(min(100cqw, 100cqh), 100%);
  max-width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.lightbox-primasoft__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius) - 2px);
}

.lightbox-primasoft__caption {
  flex-shrink: 0;
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.25rem 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
  color: var(--color-muted);
}

/* Starší prohlížeče bez container query jednotek */
@supports not (width: 1cqw) {
  .lightbox-primasoft__img-wrap {
    width: min(62vmin, calc(100% - 0.5rem));
  }
}

@media (max-width: 520px) {
  .lightbox-primasoft__panel {
    --lb-panel: min(92vmin, min(calc(100vw - 1rem), calc(100vh - 1rem)));
  }

  .lightbox-primasoft__stage {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    gap: 0.25rem;
    padding: 0 0.1rem;
  }

  .lightbox-primasoft__nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Contact form */
.form {
  max-width: 36rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.form-hint {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  max-width: 36rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-sage);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-success p {
  margin: 0;
}

.form-success__extra {
  margin-top: 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
}

.form-success__extra a {
  color: var(--color-accent);
}

/* Footer — stejné pozadí jako záhlaví */
.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: none;
  background: linear-gradient(
    180deg,
    var(--header-bg-edge) 0%,
    var(--header-bg) 32%,
    var(--header-bg) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

.footer-nav {
  width: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
}

.site-footer__copy {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  opacity: 0.95;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}

/* Legal pages */
.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.legal h2 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal p,
.legal li {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}
