/* Strešné centrum Višňové – štýly webu */

/* ---------- Písma (uložené priamo na webe, bez Google Fonts) ---------- */
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/zilla-slab-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/zilla-slab-latin-600-normal.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: 'Zilla Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/zilla-slab-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/zilla-slab-latin-700-normal.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: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/atkinson-hyperlegible-next-latin-wght-normal.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;
}

/* ---------- Základ ---------- */
:root {
  --red: #a00000;          /* farba loga */
  --red-dark: #7a0000;
  --slate: #2b3236;        /* bridlica */
  --slate-deep: #20262a;
  --slate-2: #4b555b;
  --zinc: #e8ecee;         /* plech */
  --zinc-2: #d2d9dc;
  --white: #fff;
  --head: 'Zilla Slab', Rockwell, 'Roboto Slab', Georgia, serif;
  --body: 'Atkinson Hyperlegible Next', 'Segoe UI', Roboto, system-ui, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.5rem;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
}

body:has(dialog[open]) { overflow: hidden; }

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

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover { color: var(--red-dark); text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  margin: 0 0 .5em;
  font-variant-numeric: lining-nums;
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--slate);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.125rem); line-height: 1.04; letter-spacing: -.01em; }
h2 { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }

p { margin: 0 0 1em; max-width: 38em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

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

.skip-link {
  position: absolute;
  top: -4rem;
  left: .75rem;
  z-index: 100;
  padding: .6rem .9rem;
  background: var(--slate);
  color: #fff;
}
.skip-link:focus { top: .75rem; color: #fff; }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 2px;
  font: 700 1.125rem/1.2 var(--head);
  font-variant-numeric: lining-nums;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { border-color: var(--slate); color: var(--slate); }
.btn-secondary:hover { background: var(--slate); color: #fff; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--zinc-2);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: var(--header-h);
}
.brand { display: block; flex-shrink: 0; margin-right: auto; }
.brand img { width: auto; height: 2.75rem; }

.main-nav ul { display: flex; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  padding-block: .5rem;
  color: var(--slate);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .45em;
}

.btn-call { padding: .6rem 1rem; }
.call-short { display: none; }
.menu-toggle { display: none; }

@media (max-width: 62rem) {
  .header-inner { gap: .75rem; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border: 2px solid var(--zinc-2);
    border-radius: 2px;
    background: none;
    color: var(--slate);
    font: 600 1rem/1.2 var(--body);
    cursor: pointer;
  }
  .menu-toggle svg { width: 1.2em; height: 1.2em; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--zinc-2);
    box-shadow: 0 14px 24px rgba(32, 38, 42, .08);
  }
  .menu-open .main-nav { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
    padding-block: .25rem 1rem;
  }
  .main-nav a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--zinc); }
  .call-number { display: none; }
  .call-short { display: inline; }
}

@media (max-width: 30rem) {
  .brand img { height: 2.375rem; }
  .btn-call { padding: .6rem .7rem; }
  .btn-call .call-short { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn-call svg { width: 1.3em; height: 1.3em; }
}

@media (max-width: 22rem) {
  .brand img { height: 2rem; }
  .menu-toggle { padding: .5rem .6rem; }
}

/* ---------- Úvod (hero) ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); overflow-x: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero .lead {
  max-width: 30em;
  color: var(--slate-2);
  font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem);
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Fotka v tvare domu so strechou – sklon ako v logu */
.gable { position: relative; margin: 6% 5% 0; }
.gable img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% 72%;
  clip-path: polygon(0 44.44%, 50% 0, 100% 44.44%, 100% 100%, 0 100%);
}
.gable svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .gable { max-width: 34rem; }
}

/* Krátke fakty pod úvodom */
.facts { background: var(--zinc); }
.facts ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  margin: 0;
  padding: 2rem 0;
  list-style: none;
}
.facts li { position: relative; padding-left: 2.4rem; color: var(--slate-2); font-size: 1rem; }
.facts strong {
  display: block;
  margin-bottom: .1rem;
  color: var(--slate);
  font: 700 1.3125rem/1.25 var(--head);
}
.facts li::before,
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  background: var(--red);
  clip-path: polygon(0 40%, 50% 0, 100% 40%, 100% 100%, 50% 60%, 0 100%);
}
.facts li::before { top: .3rem; width: 1.5rem; height: 1.25rem; }

@media (max-width: 52rem) {
  .facts ul { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ---------- Sekcie ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--zinc { background: var(--zinc); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-bottom: 2rem;
}
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }

/* O nás */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-text p { font-size: 1.1875rem; }

@media (max-width: 52rem) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 34rem; }
}

/* Služby */
.service-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.service-lead img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-lead h3 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); font-weight: 700; }

.ticks { display: grid; gap: .45rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.85rem; }
.ticks li::before { top: .38em; width: 1.05rem; height: .875rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.75rem;
  border-top: 4px solid var(--red);
  background: var(--white);
  color: var(--slate);
  text-decoration: none;
}
.service .pic { display: flex; align-items: center; justify-content: center; height: 11rem; margin-bottom: 1.25rem; }
.service .pic img { width: auto; max-width: 85%; height: auto; max-height: 100%; min-height: 0; object-fit: contain; }
.service h3 { margin-bottom: .4rem; }
.service p { margin-bottom: 1rem; color: var(--slate-2); font-size: 1rem; }
.service .more {
  margin-top: auto;
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.service:hover { color: var(--slate); }
.service:hover h3 { color: var(--red); }
.service:hover .more { text-decoration-thickness: 2px; }

@media (max-width: 56rem) {
  .service-lead { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0 1.25rem;
    align-items: start;
  }
  .service .pic { grid-row: span 3; height: 6rem; margin: 0; }
  .service .pic img { max-width: 100%; }
}

/* Postup */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: krok;
}
.steps li { padding-top: 1.25rem; border-top: 2px solid var(--slate); counter-increment: krok; }
.steps li::before {
  content: counter(krok);
  display: block;
  margin-bottom: .75rem;
  color: var(--red);
  font: 700 3rem/1 var(--head);
  font-variant-numeric: lining-nums;
}
.steps h3 { font-size: 1.3125rem; }
.steps p { color: var(--slate-2); font-size: 1rem; }

@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Referencie a galéria */
.ref-grid,
.gallery { display: grid; margin: 0; padding: 0; list-style: none; }
.ref-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 2rem 1.25rem; }
.ref-grid figure,
.gallery figure { margin: 0; }
.ref-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ref-grid a,
.gallery a { display: block; }
.ref-grid a:hover img,
.gallery a:hover img { filter: brightness(1.07); }
figcaption { margin-top: .55rem; color: var(--slate-2); font-size: .9375rem; line-height: 1.4; }
figcaption a { color: var(--slate); font-weight: 600; }
figcaption a:hover { color: var(--red); }
.lightbox figcaption { pointer-events: auto; }
.lightbox figcaption a { color: #fff; font-weight: 600; }

.gallery.certs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.certs img { aspect-ratio: 1 / 1.414; border: 1px solid var(--zinc-2); }

@media (max-width: 56rem) { .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Značky – text na úvodnej stránke */
.brand-names {
  max-width: 30em;
  margin: 0;
  color: var(--slate);
  font: 600 clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem)/1.35 var(--head);
}
.brand-names a {
  color: inherit;
  text-decoration-color: var(--zinc-2);
  text-decoration-thickness: 2px;
  text-underline-offset: .15em;
}
.brand-names a:hover { color: var(--red); text-decoration-color: currentColor; }
.brand-note { margin-top: 1.5rem; color: var(--slate-2); }

/* ---------- Kontakt ---------- */
.contact {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--slate);
  color: #e3e9ec;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(../img/textura-sindel-1400.webp) center / cover;
  opacity: .16;
  mix-blend-mode: luminosity;
}
.contact h2,
.contact h3 { color: #fff; }
.contact a { color: #fff; }
.contact :focus-visible { outline-color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.contact-lead { font-size: 1.1875rem; }
.contact-big { margin: 0 0 .3em; font: 700 clamp(1.75rem, 1.2rem + 2.2vw, 3rem)/1.2 var(--head); font-variant-numeric: lining-nums; }
.contact-big a { text-decoration: none; border-bottom: 3px solid rgba(255, 255, 255, .35); }
.contact-big a:hover { border-bottom-color: #fff; }
.contact address { margin-bottom: 1rem; font-style: normal; }
.contact h3 { font-size: 1.375rem; }
.ids {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .15rem 1rem;
  margin: 1.5rem 0 0;
  color: #c9d2d6;
  font-size: 1rem;
}
.ids dt { color: #fff; font-weight: 600; }
.ids dd { margin: 0; }

@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

/* ---------- Pätička ---------- */
.site-footer { padding-block: 2.5rem; background: var(--slate-deep); color: #b9c3c8; font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.site-footer img { width: auto; height: 2.25rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #e9eef0; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer p { max-width: none; margin: 0; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ---------- Podstránky ---------- */
.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--slate);
  color: #e3e9ec;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: center;
  background-size: cover;
  opacity: .22;
  mix-blend-mode: luminosity;
}
.page-head--sindel::before { background-image: url(../img/textura-sindel-1400.webp); }
.page-head--tehla::before { background-image: url(../img/textura-tehla-720.webp); background-size: 22rem; opacity: .3; }
.page-head--titanium::before { background-image: url(../img/textura-titanium-920.webp); background-size: 26rem; opacity: .3; }
.page-head h1 { margin-bottom: .35em; color: #fff; }
.page-head p { max-width: 34em; margin: 0; color: #d5dde0; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); }

/* Zoznam značiek a krytín */
.group + .group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.group > h2 { margin-bottom: 1.5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--slate); }

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: 2.25rem;
  border-top: 1px solid var(--zinc-2);
}
.brand-row:first-child,
.group > h2 + .brand-row { padding-top: .5rem; border-top: 0; }
.brand-row .pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 1.25rem; background: var(--zinc); }
.brand-row .pic img { width: auto; max-width: 100%; height: auto; max-height: 100%; min-height: 0; object-fit: contain; }
.brand-row h2,
.brand-row h3 { margin-bottom: .15em; }
.brand-row h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); }
.kind { margin-bottom: .6rem; color: var(--red); font-weight: 600; }
.brand-row p:not(.kind) { color: var(--slate-2); }
.brand-row p:last-child { margin-bottom: 0; }

@media (max-width: 40rem) {
  .brand-row { grid-template-columns: 1fr; }
  .brand-row .pic { max-width: 20rem; }
}

/* Text (ochrana osobných údajov) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.75rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.25rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { max-width: 40em; margin-bottom: .4rem; }
.updated { margin-top: 2.5rem; color: var(--slate-2); font-size: .9375rem; }

/* 404 */
.notfound .actions { margin-top: 1.5rem; }

/* ---------- Zväčšenie fotiek ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(23, 27, 30, .95);
  color: #fff;
}
.lightbox::backdrop { background: rgba(23, 27, 30, .6); }
.lightbox figure {
  position: absolute;
  inset: 3.75rem 4.75rem 3.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  pointer-events: none;
}
.lightbox img { max-width: 100%; max-height: calc(100% - 3rem); object-fit: contain; pointer-events: auto; }
.lightbox figcaption { margin-top: .75rem; color: #e9eef0; font-size: 1rem; text-align: center; }
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: 400 2rem/1 var(--body);
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox :focus-visible { outline-color: #fff; }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { top: 50%; left: .75rem; translate: 0 -50%; }
.lb-next { top: 50%; right: .75rem; translate: 0 -50%; }
.lb-count { position: absolute; top: 1.2rem; left: 1.25rem; margin: 0; color: #c9d2d6; font-size: .9375rem; }

@media (max-width: 40rem) {
  .lightbox figure { inset: 3.75rem .75rem 4.75rem; }
  .lb-prev, .lb-next { top: auto; bottom: .9rem; translate: none; }
  .lb-prev { left: calc(50% - 3.75rem); }
  .lb-next { right: calc(50% - 3.75rem); }
}

/* ---------- Tlač ---------- */
@media print {
  .site-header, .menu-toggle, .contact::before, .page-head::before { display: none; }
  .contact, .page-head { background: none; color: #000; }
  .contact h2, .contact h3, .contact a, .page-head h1, .page-head p { color: #000; }
}
