/* ==========================================================================
   E1 Autoservis – styly
   Obsah: 1. písma a proměnné  2. základ  3. tlačítka a drobnosti
          4. hlavička a menu   5. úvodní stránka  6. podstránky
          7. patička  8. galerie a lightbox  9. tisk a pohyb
   ========================================================================== */

/* 1. Písma a proměnné ---------------------------------------------------- */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --red: #be0601;
  --red-hover: #a30500;
  --ink: #111;
  --muted: #595959;
  --soft: #f4f6f8;
  --line: #e2e6ea;
  --dark: #000;
  --dark-2: #2d2d2d;
  --skew: -17.5deg;
  --header-h: 4.75rem;
  --container: 77rem;
  --gutter: 1rem;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* 2. Základ --------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

img,
svg,
iframe {
  max-width: 100%;
}
img {
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0 0 1.25rem;
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.75rem);
}
h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.footer :focus-visible,
.contact__box :focus-visible,
.lightbox :focus-visible,
.banner :focus-visible {
  outline-color: #fff;
}
main:focus {
  outline: none;
}

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

.section {
  margin-block: 4.5rem;
}
.section--tight {
  margin-block: 2rem 4rem;
}

.c-primary {
  color: var(--red);
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 44rem;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.link {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.link:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}

/* 3. Tlačítka a drobnosti -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.9rem;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transform: skewX(var(--skew));
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn__in {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transform: skewX(calc(var(--skew) * -1));
}
.btn:hover {
  transform: translateY(-2px) skewX(var(--skew));
}
.btn:active {
  transform: skewX(var(--skew));
}
.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.btn--primary:hover {
  background: var(--red-hover);
}
.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
}
.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}
.btn--inline {
  margin-top: 1rem;
}

.red-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0.35rem;
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 600;
}
.red-link:hover {
  text-decoration: underline;
}

.list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid var(--red);
  border-right: 2px solid var(--red);
  transform: rotate(45deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.chips--center {
  justify-content: center;
}
.chips a {
  display: block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  background: var(--soft);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.chips a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* 4. Hlavička a menu ------------------------------------------------------ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
}
.logo {
  display: block;
  margin-right: auto;
}
.logo img {
  display: block;
  height: clamp(2.1rem, 1.6rem + 2vw, 2.8rem);
  width: auto;
}

.header__call,
.menu-toggle {
  display: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.menu__list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.menu__item {
  position: relative;
  display: block;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.menu__item:hover,
.menu__item[aria-current="page"] {
  color: var(--red);
}
.menu__item[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.4rem;
  height: 4px;
  background: var(--red);
  transform: skewX(var(--skew));
}

@media (max-width: 56.24em) {
  .header__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--red);
    color: #fff;
    font-size: 1.1rem;
    transform: skewX(var(--skew));
  }
  .header__call .icon {
    transform: skewX(calc(var(--skew) * -1));
  }

  /* Bez JavaScriptu zůstane menu rozbalené pod logem. */
  .header__inner {
    flex-wrap: wrap;
  }
  .menu {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.5rem 0 1.5rem;
  }
  .menu__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .menu__item {
    padding: 1rem 0.25rem;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
  }
  .menu__item[aria-current="page"]::after {
    display: none;
  }
  .menu__btn {
    margin-inline: 0.75rem;
  }

  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3rem;
    margin-left: 0.5rem;
    padding: 0 0.5rem;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
  }
  .menu-toggle__bars {
    position: relative;
    display: block;
    width: 1.6rem;
    height: 1.1rem;
  }
  .menu-toggle__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s, opacity 0.2s;
  }
  .menu-toggle__bars span:nth-child(1) {
    top: 0;
  }
  .menu-toggle__bars span:nth-child(2) {
    top: calc(50% - 1.5px);
  }
  .menu-toggle__bars span:nth-child(3) {
    bottom: 0;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
    transform: translateY(0.45rem) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
    transform: translateY(-0.45rem) rotate(-45deg);
  }

  .js .menu {
    display: none;
  }
  .js .menu.is-open {
    display: flex;
  }
}

/* 5. Úvodní stránka ------------------------------------------------------- */

.intro {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: 1.5rem 2rem;
  text-align: center;
}
.intro__image {
  width: min(100%, 22rem);
  margin-inline: auto;
}
.intro .lead {
  margin-inline: auto;
}
.intro__actions,
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  padding-inline: 0.75rem;
}

@media (min-width: 48em) {
  .intro {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: min(70vh, 40rem);
    padding-block: 2.5rem;
    text-align: left;
  }
  .intro__image {
    width: 100%;
  }
  .intro .lead {
    margin-inline: 0;
  }
  .intro__actions {
    justify-content: flex-start;
  }
}

.boxes {
  display: grid;
  gap: 1.25rem;
  margin-block: 1rem 3rem;
}
@media (min-width: 56.25em) {
  .boxes {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.9rem;
  }
}
.box {
  padding: 1.4rem 1.6rem;
  background: #fff;
  box-shadow: var(--shadow);
}
.box__heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.box__heading .icon {
  font-size: 1.3rem;
  color: var(--red);
}
.box__value {
  margin-bottom: 0.4rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
}
.box__value a:hover {
  color: var(--red);
}
.box__value--hours {
  display: flex;
  gap: 1rem;
  font-variant-numeric: tabular-nums;
}
.box__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Výjimky v otevírací době – karta v úvodu pod tlačítkem Zavolat */
.special {
  margin: 2rem 0 0;
  padding: 1.1rem 1.4rem 0.6rem;
  background: #fff;
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow);
  text-align: left;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.special__title {
  margin: 0 0 0.3rem;
  color: var(--red);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.special__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.75rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.special__item:last-child {
  border-bottom: 0;
}
.special__date {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.special__state {
  font-size: 1.0625rem;
}
.special__state--closed {
  color: var(--red);
}
.special__state--open {
  color: #14622a;
}
.special__note {
  color: var(--muted);
}

/* Pruh nahoře na každé stránce v den, kdy výjimka platí */
.topbar {
  background: var(--red);
  color: #fff;
  font-size: 0.9375rem;
}
.topbar--open {
  background: #14622a;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem 1rem;
  padding-block: 0.7rem;
  text-align: center;
}
.topbar__state {
  font-size: 1.0625rem;
}
.topbar__link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.topbar :focus-visible {
  outline-color: #fff;
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  margin-top: 2rem;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.6rem 1.3rem;
  background: var(--soft);
}
.card__title {
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--muted);
}
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-block: 0.35rem;
  font-weight: 700;
}
.card__more:hover {
  text-decoration: underline;
}
.card--more {
  background: var(--red);
  color: #fff;
}
.card--more p {
  color: #fff;
}
.card--more :focus-visible {
  outline-color: #fff;
}

.part {
  position: relative;
  isolation: isolate;
  margin-block: 3.5rem;
}
.part__container {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.part__image {
  width: 100%;
}
@media (min-width: 56.25em) {
  .part {
    margin-block: 7rem;
  }
  .part::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -2.5rem;
    bottom: -2.5rem;
    left: 0;
    width: 62%;
    background: var(--soft);
  }
  .part--switch::before {
    left: auto;
    right: 0;
  }
  .part__container {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 3rem;
  }
  .part__image {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 21.5% 100%);
  }
  .part--switch .part__content {
    order: 2;
  }
  .part--switch .part__image {
    clip-path: polygon(0 0, 100% 0, 78.5% 100%, 0 100%);
  }
}

.reviews {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin-top: 2rem;
}
.review {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  background: var(--soft);
  border-left: 4px solid var(--red);
}
.review blockquote {
  margin: 0 0 1.25rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.5;
}
.review blockquote p {
  margin: 0;
}
.review blockquote p::before {
  content: "„";
}
.review blockquote p::after {
  content: "“";
}
.review__author {
  margin: auto 0 0;
  font-size: 0.875rem;
  font-weight: 700;
}
.review__author span {
  font-weight: 400;
  color: var(--muted);
}
.review--links {
  align-items: flex-start;
  background: none;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
}
.review__lead {
  color: var(--muted);
}

/* Pruh s fotkou. Fotka je vyšší než pruh a při rolování se posouvá
   pomaleji než stránka (paralaxa, viz main.js). */
.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
}
.banner__bg {
  position: absolute;
  z-index: -2;
  top: -20%;
  left: 0;
  width: 100%;
  max-width: none;
  height: 140%;
  object-fit: cover;
  will-change: transform;
}
.banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.65));
}
.banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(20rem, 42vw, 32rem);
  padding-block: 3rem;
}
.banner h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem);
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.cta {
  text-align: center;
}
.cta .lead {
  margin: 0 auto 2rem;
}

/* 6. Podstránky ----------------------------------------------------------- */

.page-head {
  padding-block: 3rem 1rem;
}
.page-head h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
}
.page-head--center {
  padding-block: 5rem 2rem;
  text-align: center;
}
.page-head--center .lead {
  margin-inline: auto;
}

/* Ceník */
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-spacing: 0;
  text-align: left;
  font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1rem);
}
.table th,
.table td {
  padding: 1rem 0.9rem;
  font-weight: 400;
  vertical-align: top;
}
.table thead th {
  background: var(--red);
  color: #fff;
  font-weight: 600;
}
.table td:last-child,
.table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.table tbody td:last-child {
  font-weight: 600;
}
.table tbody td:nth-child(2) {
  color: var(--muted);
}
.table tbody tr:not(.table__group) > * {
  border-bottom: 1px solid var(--line);
}
.table tbody tr:not(.table__group):hover > * {
  background: var(--soft);
}
.table .table__group th {
  padding-top: 1.75rem;
  padding-bottom: 0.6rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid var(--ink);
}
.table-note {
  margin-top: 1.75rem;
  color: var(--muted);
}

/* Služby */
.services {
  display: grid;
  gap: 1.25rem;
}
.service {
  display: grid;
  gap: 0.5rem 3rem;
  padding: 1.75rem 1.5rem;
  background: var(--soft);
  border-left: 4px solid var(--red);
}
.service__title {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
}
.service__price {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
@media (min-width: 56.25em) {
  .service {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    padding: 2.5rem;
  }
  .list--cols {
    columns: 2;
    column-gap: 2.5rem;
  }
  .list--cols li {
    break-inside: avoid;
  }
}

/* Kontakt */
.contact {
  display: grid;
  gap: 1.5rem;
}
.contact__box {
  padding: 1.5rem 1.5rem 0.5rem;
  background: var(--dark);
  color: #fff;
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  border: 0;
}
/* Od tabletu výš jsou kontakty ve dvou sloupcích, ať blok není zbytečně vysoký. */
@media (min-width: 40em) {
  .contact__box .biglist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
  .contact__box .biglist__item,
  .contact__box .biglist__item:first-child {
    padding-block: 1rem;
  }
  .contact__box .biglist__item:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
}
@media (min-width: 56.25em) {
  .contact {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

.company {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #d9d9d9;
}
.company strong {
  color: #fff;
}

.hours {
  border-spacing: 0;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.hours th,
.hours td {
  padding: 0.2rem 1.5rem 0.2rem 0;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}
.hours__special th,
.hours__special td {
  color: #ff8d89;
}

/* 7. Patička -------------------------------------------------------------- */

.footer {
  margin-top: 4rem;
  padding-block: 3.5rem 2rem;
  background: var(--dark);
  color: #fff;
}
.footer__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 40em) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 56.25em) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.footer__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 19rem;
  border: 0;
}
@media (min-width: 40em) and (max-width: 56.24em) {
  .footer__map {
    grid-column: 1 / -1;
  }
}

.biglist,
.biglist dd {
  margin: 0;
}
.biglist__item {
  padding-block: 1.1rem;
  border-bottom: 1px solid #2b2b2b;
}
.biglist__item:first-child {
  padding-top: 0;
}
.biglist dt {
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  color: #a6a6a6;
}
.biglist__value {
  display: block;
  font-size: 1.25rem;
  line-height: 1.45;
}
a.biglist__value:hover {
  text-decoration: underline;
}
.footer .red-link,
.contact__box .red-link {
  color: #ff6b66;
}

.flags li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.2rem;
}

.underfooter {
  padding-block: 1rem;
  background: var(--dark-2);
  color: #d0d0d0;
  font-size: 0.8125rem;
}
.underfooter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 2rem;
  text-align: center;
}
.underfooter p {
  margin: 0;
}
.underfooter a {
  display: inline-block;
  padding-block: 0.5rem;
}
.underfooter a:hover {
  color: #fff;
  text-decoration: underline;
}
@media (min-width: 56.25em) {
  .underfooter__inner {
    justify-content: space-between;
  }
}

/* 8. Galerie a lightbox --------------------------------------------------- */

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  margin-top: 2rem;
}
.gallery__item {
  display: block;
  overflow: hidden;
  background: var(--soft);
}
.gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s;
}
.gallery__item:hover img {
  transform: scale(1.04);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: #fff;
}
.lightbox::backdrop {
  background: #000;
}
.lightbox__figure {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4rem 0.5rem 1rem;
}
.lightbox__img {
  flex: 0 1 auto;
  min-height: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox__caption {
  flex: none;
  padding: 0.9rem 1rem 0;
  font-size: 0.9375rem;
  text-align: center;
  color: #e0e0e0;
}
.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.85);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lightbox__btn:hover {
  background: var(--red);
}
.lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  margin-top: -1.5rem;
}
.lightbox__prev {
  left: 0.75rem;
}
.lightbox__next {
  right: 0.75rem;
}
@media (min-width: 56.25em) {
  .lightbox__figure {
    padding-inline: 5rem;
  }
}

/* 9. Tisk a omezení pohybu ----------------------------------------------- */

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

@media print {
  .header,
  .banner,
  .cta,
  .contact__map,
  .footer__map,
  .skip-link {
    display: none !important;
  }
  .footer,
  .contact__box,
  .underfooter {
    background: none;
    color: #000;
  }
  .biglist dt {
    color: #444;
  }
}
