@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-VariableFont_slnt,wght.woff2") format("woff2");
}

:root {
  --font-main: "Inter", Arial, Helvetica, sans-serif;
  --red: #d32519;
  --ink: #181b1f;
  --muted: #5f6872;
  --line: #dfe3e8;
  --soft: #f4f6f8;
  --panel: #ffffff;
  --dark: #252a30;
  --max: 1180px;
  --nav-max: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-main);
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--nav-max), calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.logo {
  width: 118px;
  flex: 0 0 auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: #30363d;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

.menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-bottom: 3px solid transparent;
}

.menu > a:hover,
.menu > a.active,
.menu-item > a:hover,
.menu-item > a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.menu-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  grid-auto-flow: column;
  grid-template-rows: auto repeat(8, auto);
  gap: 0;
  min-width: 580px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(22, 28, 34, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dropdown-menu::after {
  content: "";
  position: absolute;
  top: 55px;
  bottom: 14px;
  left: 50%;
  width: 1px;
  background: var(--line);
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  min-width: 0;
  min-height: 42px;
  padding: 10px 20px;
  color: #30363d;
  border-bottom: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dropdown-heading {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 12px 14px;
  color: #5f6872;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: normal;
}

.dropdown-heading::before {
  content: "";
  width: 28px;
  height: 3px;
  flex: 0 0 auto;
  background: var(--red);
}

.dropdown-menu a:nth-of-type(n + 9) {
  padding-left: 34px;
}

.dropdown-menu a:hover {
  color: var(--red);
  background: var(--soft);
}

.dropdown-menu a.active {
  color: var(--red);
  background: var(--soft);
}

.private-dropdown {
  grid-template-columns: minmax(260px, 1fr);
  grid-template-rows: auto repeat(3, auto);
  min-width: 310px;
}

.private-dropdown::after {
  display: none;
}

.private-dropdown a:nth-of-type(n) {
  grid-column: 1;
  padding-left: 12px;
}

.garage-menu-heading {
  display: flex;
  align-items: center;
}

.garage-menu-group {
  grid-column: 1;
}

.garage-menu-heading > a {
  flex: 1;
}

.garage-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--red);
  cursor: pointer;
}

.garage-menu-toggle span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.garage-menu-toggle[aria-expanded="true"] span {
  transform: rotate(225deg);
}

.garage-submenu {
  display: flex;
  flex-direction: column;
  margin: 0 0 8px 20px;
  border-left: 1px solid var(--line);
}

.private-dropdown .garage-submenu a {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
}

.garage-menu-toggle:focus-visible,
.private-dropdown a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

@media (max-width: 980px) {
  .garage-menu-group {
    grid-column: auto;
  }

  .garage-menu-ready .garage-menu-toggle {
    display: inline-flex;
  }

  .garage-menu-ready .garage-submenu[hidden] {
    display: none;
  }

  .private-dropdown .garage-submenu a {
    min-height: 44px;
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  font-weight: 800;
  font-size: 14px;
}

.nav-cta {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: max-content;
}

.nav-service {
  box-shadow: 0 10px 24px rgba(211, 37, 25, 0.22);
}

.button:hover,
.button:focus-visible {
  color: #fff;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--ink);
}

.button.document-button {
  gap: 8px;
  color: #414852;
  background: #f0f1f3;
  border-color: #dfe2e6;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.button.document-button:hover {
  color: #252b33;
  background: #e3e6ea;
  border-color: #c6cbd2;
}

.button.document-button:focus-visible {
  outline: 2px solid #606b79;
  outline-offset: 3px;
}

.button.dark {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.hero {
  min-height: 690px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.78) 0%, rgba(11, 14, 18, 0.48) 45%, rgba(11, 14, 18, 0.08) 100%),
    url("../../uploads/2026/09/hero.jpg") center / cover no-repeat;
}

.hero.compact {
  min-height: 480px;
}

.hero.service-hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.78) 0%, rgba(11, 14, 18, 0.48) 45%, rgba(11, 14, 18, 0.08) 100%),
    url("../../uploads/2026/09/hero-servis.jpg") center / cover no-repeat;
}

.hero.rychlobezne {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.78) 0%, rgba(11, 14, 18, 0.48) 45%, rgba(11, 14, 18, 0.08) 100%),
    url("../../uploads/2026/09/rychlobezne-brany-hero.jpg") center / cover no-repeat;
}

.automaticke-dvere-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.82) 0%, rgba(11, 14, 18, 0.5) 46%, rgba(11, 14, 18, 0.12) 100%),
    url("../../uploads/2026/09/automaticke-dvere-hero.jpg") center bottom / cover no-repeat;
}

.dopravne-zabrany-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.82) 0%, rgba(11, 14, 18, 0.5) 46%, rgba(11, 14, 18, 0.12) 100%),
    url("../../uploads/2026/09/dopravne-zabrany-hero.jpg") center bottom / cover no-repeat;
}

.dvere-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/dvere-hero.jpg") center center / cover no-repeat;
}

.garazove-brany-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/garazove-brany-hero.jpg") center center / cover no-repeat;
}

.hlinikove-brany-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/hlinikove-brany-a-ploty-01.jpg") center center / cover no-repeat;
}

.nakladacia-technika-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/nakladacia-technika-hero.jpg") center center / cover no-repeat;
}

.poziarne-odvetranie-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/poziarne-odvetranie-01.jpg") center center / cover no-repeat;
}

.rolovacie-brany-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/rolovacie-brany-01.jpg") center center / cover no-repeat;
}

.rolovacie-mreze-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/rolovacie-mreze-01.jpg") center center / cover no-repeat;
}

.poziarne-uzavery-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/poziarne-uzavery-hero.jpg") center center / cover no-repeat;
}

.sekcionalne-brany-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/sekcionalne-brany-hero.jpg") center center / cover no-repeat;
}

.skladacie-brany-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/skladacie-brany-hero.jpg") center center / cover no-repeat;
}

.sklenene-steny-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/sklenene-steny-hero.jpg") center center / cover no-repeat;
}

.zamocnicka-vyroba-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/zamocnicka-vyroba-hero.jpg") center center / cover no-repeat;
}

.zavory-posuvne-brany-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/zavory-posuvne-brany-hero.jpg") center center / cover no-repeat;
}

.pre-domacnosti-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.5) 48%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/garazove-brany-01.jpg") center center / cover no-repeat;
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 64px;
  color: #fff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 600;
}

.breadcrumbs a {
  color: #fff;
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.breadcrumbs .separator {
  color: rgba(255, 255, 255, 0.48);
}

.breadcrumbs [aria-current="page"] {
  color: rgba(255, 255, 255, 0.76);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--red);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 78px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
}

.hero-copy {
  max-width: 690px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.stats-strip {
  width: min(var(--max), calc(100% - 40px));
  margin: -38px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 22px 50px rgba(22, 28, 34, 0.12);
}

.stat {
  min-height: 112px;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--red);
  font-size: 44px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 96px 0;
}

.section.soft {
  background: var(--soft);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-panel,
.product-card,
.service-item,
.sector,
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
}

.info-panel {
  padding: 32px;
}

.marker {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.intro-icon {
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 24px;
  color: var(--red);
  background: rgba(211, 37, 25, 0.08);
  border: 1px solid rgba(211, 37, 25, 0.18);
}

.intro-icon i {
  font-size: 40px;
}

.info-panel p,
.product-card p,
.service-item p,
.sector p,
.feature-card p,
.copy-block p,
.contact-card p {
  margin-top: 12px;
  color: var(--muted);
}

.contact-card .button {
  margin-top: 22px;
}

.copy-block .external-site-button {
  margin-top: 22px;
}

.contact-detail-break {
  margin-top: 20px !important;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.garage-type-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1020px) {
  .garage-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .garage-type-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  min-height: 330px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
}

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(218, 32, 45, 0.08), rgba(24, 27, 31, 0.03)),
    repeating-linear-gradient(45deg, #eef1f4 0 12px, #f7f8fa 12px 24px);
  border-bottom: 1px solid var(--line);
}

.product-image-placeholder::after {
  content: "Fotografia";
  color: #7b858f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.product-image-placeholder.missing-image-placeholder::after {
  content: "Chýba obrazový podklad";
}

.product-card-body {
  min-height: 170px;
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.link-line {
  margin-top: 22px;
  color: var(--red);
  font-weight: 900;
}

.product-card.is-disabled {
  cursor: default;
}

.product-card.is-disabled .link-line {
  color: #9aa2ab;
}

.photo-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #5d6670;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(211, 37, 25, 0.08), rgba(37, 42, 48, 0.04)),
    repeating-linear-gradient(45deg, #f3f5f7 0 12px, #e8ecef 12px 24px);
  border: 1px dashed #b8c0c8;
}

.photo-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.photo-placeholder span {
  max-width: 360px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 18px 20px 20px;
  color: #5d6670;
  font-size: 0.96rem;
  font-style: normal;
  line-height: 1.55;
}

.photo-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.realization-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 30px;
}

.gallery-main,
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gallery-main:hover,
.gallery-grid figure:hover {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red), 0 12px 28px rgba(24, 27, 31, 0.16);
  transform: translateY(-2px);
}

.gallery-main a,
.gallery-grid figure a {
  display: block;
  height: 100%;
}

.gallery-main img,
.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 240ms ease;
}

.gallery-main:hover img,
.gallery-grid figure:hover img {
  transform: scale(1.025);
}

body.scroll-reveal-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

body.scroll-reveal-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body.scroll-reveal-ready .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

.gallery-main {
  min-height: 520px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery-grid figure {
  min-height: 250px;
}

.protiprievanove-riesenia-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/protiprievanove-riesenia-hero.jpg") center center / cover no-repeat;
}

.protipovodnove-bariery-page .hero {
  background:
    linear-gradient(90deg, rgba(11, 14, 18, 0.84) 0%, rgba(11, 14, 18, 0.52) 46%, rgba(11, 14, 18, 0.1) 100%),
    url("../../uploads/2026/09/protipovodnove-bariery-hero.jpg") center center / cover no-repeat;
}

.automaticke-dvere-page .realization-gallery,
.dopravne-zabrany-page .realization-gallery,
.dvere-page .realization-gallery,
.garazove-brany-page .realization-gallery,
.hlinikove-brany-page .realization-gallery,
.nakladacia-technika-page .realization-gallery,
.poziarne-odvetranie-page .realization-gallery,
.rolovacie-brany-page .realization-gallery,
.rolovacie-mreze-page .realization-gallery,
.poziarne-uzavery-page .realization-gallery,
.rychlobezne-brany-page .realization-gallery,
.sekcionalne-brany-page .realization-gallery,
.skladacie-brany-page .realization-gallery,
.sklenene-steny-page .realization-gallery,
.zamocnicka-vyroba-page .realization-gallery,
.zavory-posuvne-brany-page .realization-gallery,
.protiprievanove-riesenia-page .realization-gallery {
  grid-template-columns: 1fr;
}

.automaticke-dvere-page .gallery-main,
.dopravne-zabrany-page .gallery-main,
.dvere-page .gallery-main,
.garazove-brany-page .gallery-main,
.hlinikove-brany-page .gallery-main,
.nakladacia-technika-page .gallery-main,
.poziarne-odvetranie-page .gallery-main,
.rolovacie-brany-page .gallery-main,
.rolovacie-mreze-page .gallery-main,
.poziarne-uzavery-page .gallery-main,
.rychlobezne-brany-page .gallery-main,
.sekcionalne-brany-page .gallery-main,
.skladacie-brany-page .gallery-main,
.sklenene-steny-page .gallery-main,
.zamocnicka-vyroba-page .gallery-main,
.zavory-posuvne-brany-page .gallery-main,
.protiprievanove-riesenia-page .gallery-main {
  min-height: 0;
  aspect-ratio: 16 / 8;
}

.automaticke-dvere-page .gallery-grid,
.dopravne-zabrany-page .gallery-grid,
.dvere-page .gallery-grid,
.garazove-brany-page .gallery-grid,
.hlinikove-brany-page .gallery-grid,
.nakladacia-technika-page .gallery-grid,
.poziarne-odvetranie-page .gallery-grid,
.rolovacie-brany-page .gallery-grid,
.rolovacie-mreze-page .gallery-grid,
.poziarne-uzavery-page .gallery-grid,
.rychlobezne-brany-page .gallery-grid,
.sekcionalne-brany-page .gallery-grid,
.skladacie-brany-page .gallery-grid,
.sklenene-steny-page .gallery-grid,
.zamocnicka-vyroba-page .gallery-grid,
.zavory-posuvne-brany-page .gallery-grid,
.protiprievanove-riesenia-page .gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.automaticke-dvere-page .gallery-grid figure,
.dopravne-zabrany-page .gallery-grid figure,
.dvere-page .gallery-grid figure,
.garazove-brany-page .gallery-grid figure,
.hlinikove-brany-page .gallery-grid figure,
.nakladacia-technika-page .gallery-grid figure,
.poziarne-odvetranie-page .gallery-grid figure,
.rolovacie-brany-page .gallery-grid figure,
.rolovacie-mreze-page .gallery-grid figure,
.poziarne-uzavery-page .gallery-grid figure,
.rychlobezne-brany-page .gallery-grid figure,
.sekcionalne-brany-page .gallery-grid figure,
.skladacie-brany-page .gallery-grid figure,
.sklenene-steny-page .gallery-grid figure,
.zamocnicka-vyroba-page .gallery-grid figure,
.zavory-posuvne-brany-page .gallery-grid figure,
.protiprievanove-riesenia-page .gallery-grid figure {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.protipovodnove-bariery-page .realization-gallery {
  grid-template-columns: 1fr;
}

.protipovodnove-bariery-page .gallery-main {
  min-height: 0;
  aspect-ratio: 16 / 8;
}

.protipovodnove-bariery-page .gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.protipovodnove-bariery-page .gallery-grid figure {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: 72px 84px 38px;
  background: rgba(12, 15, 18, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-frame {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  background: #111;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  text-align: center;
}

button.lightbox-close,
button.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

button.lightbox-close:hover,
button.lightbox-nav:hover,
button.lightbox-close:focus-visible,
button.lightbox-nav:focus-visible,
button.lightbox-close:focus,
button.lightbox-nav:focus,
button.lightbox-close:active,
button.lightbox-nav:active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.2);
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.about-page .about-story,
.about-page .about-service {
  align-items: start;
}

.about-page .about-year {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.about-page .about-year strong {
  color: var(--red);
  font-size: clamp(52px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -3px;
}

.about-page .about-year span {
  max-width: 190px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.about-page .copy-block .section-head {
  margin-bottom: 22px;
}

.about-page .about-automotive {
  border-top: 4px solid var(--red);
  background: var(--soft);
}

.about-page .about-facts {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.about-page .about-facts li {
  padding-left: 16px;
  border-left: 2px solid var(--red);
}

.about-page .about-facts strong,
.about-page .about-facts span {
  display: block;
}

.about-page .about-facts span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.about-page .about-takeaway {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.about-page .about-sectors .intro-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.about-page .about-sectors .intro-icon i {
  font-size: 26px;
}

.about-page .about-sectors .info-panel {
  padding: 28px;
}

.about-page .about-projects {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.about-page .about-projects li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.about-page .about-projects strong {
  color: var(--red);
}

.about-page .about-subheading {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 21px;
}

.about-page .about-efaflex {
  background: var(--soft);
  border-top: 4px solid var(--red);
}

.about-page .about-expertise {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.about-page .about-expertise li {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.about-page .about-efaflex-note {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-page .about-efaflex-note h4 {
  margin: 0;
  font-size: 18px;
}

.about-page .about-store-label {
  font-weight: 700;
}

.about-page .about-store-list {
  display: grid;
  gap: 8px;
  padding: 0 24px 0 44px;
  margin: 14px 0 24px;
  color: var(--muted);
}

.about-page .about-store-list li::marker {
  color: var(--red);
}

@media (max-width: 700px) {
  .about-page .about-automotive,
  .about-page .about-efaflex,
  .about-page .about-sectors .info-panel {
    padding: 24px;
  }
}

.media-frame {
  min-height: 430px;
  background: url("../../uploads/2026/09/servis-sekcionalne-brany.jpg") center / cover no-repeat;
}

.zavory-posuvne-brany-page .media-frame {
  background: url("../../uploads/2026/09/servis-zavory-posuvne-brany.jpg") center / cover no-repeat;
}

.garazove-brany-page .media-frame,
.hlinikove-brany-page .media-frame {
  background: url("../../uploads/2026/09/servis-zavory-posuvne-brany.jpg") center / cover no-repeat;
}

.sekcionalne-brany-page .media-frame {
  background: url("../../uploads/2026/09/servis-sekcionalne-brany.jpg") center / cover no-repeat;
}

.copy-block p + p {
  margin-top: 16px;
}

.check-list,
.plain-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 28px;
  color: #38404a;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: var(--red);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 2px;
  background: var(--red);
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-item {
  padding: 28px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  color: var(--red);
  background: rgba(211, 37, 25, 0.08);
  border: 1px solid rgba(211, 37, 25, 0.18);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  font-size: 25px;
}

.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.benefit {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
}

.benefit strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 15px;
  text-transform: uppercase;
}

.benefit p {
  color: var(--muted);
}

.sectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sector {
  padding: 22px;
}

.sector-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  font-size: 19px;
}

.cta-band {
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(90deg, #23272d, #3a4047);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-row p {
  max-width: 650px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 42px;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.did-you-know {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 34px;
  padding: 30px;
  color: #fff;
  background: #242a31;
  border: 1px solid #343c45;
}

.did-you-know-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--red);
  background: #fff;
}

.did-you-know-icon i {
  font-size: 24px;
}

.did-you-know-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.did-you-know h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.18;
}

.did-you-know h2 + p {
  max-width: 760px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.document-group {
  padding: 32px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.document-group + .document-group {
  margin-top: 32px;
}

.document-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font-size: 22px;
}

.document-group-title::before {
  width: 4px;
  height: 28px;
  content: "";
  background: var(--red);
}

.document-group .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.document-group .feature-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  padding: 26px;
}

.document-group .feature-card .text-link {
  margin-top: auto;
  padding-top: 22px;
}

.document-group .feature-card .document-button {
  align-self: flex-start;
  margin-top: auto;
}

.document-group .feature-card:has(.document-button) {
  gap: 22px;
}

.about-page #dokumenty .document-group {
  padding: 0;
  background: transparent;
  border: 0;
}

.about-page #dokumenty .document-group + .document-group {
  margin-top: 40px;
}

.about-page #dokumenty .document-group .feature-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  padding: 20px 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  transition: background-color 160ms ease;
}

.about-page #dokumenty .document-group .feature-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.about-page #dokumenty .feature-card:hover,
.about-page #dokumenty .feature-card:focus-within {
  background: #f6f7f8;
}

.about-page #dokumenty .document-group-title {
  margin-bottom: 12px;
}

.about-page #dokumenty .document-group-title::before {
  display: none;
}

.about-page #dokumenty .document-file-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border-radius: 6px;
  background: #eef0f2;
  color: #69737f;
  font-size: 22px;
}

.about-page #dokumenty .feature-card h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.about-page #dokumenty .feature-card .document-button {
  margin-top: 0;
  align-self: center;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .about-page #dokumenty .document-group .feature-card {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 20px 8px;
  }

  .about-page #dokumenty .feature-card .document-button {
    grid-column: 2;
    justify-self: start;
  }

  .about-page #dokumenty .document-file-icon {
    width: 32px;
    height: 38px;
    font-size: 19px;
  }
}

.service-document-card {
  margin-top: 38px;
}

.service-form-title {
  margin-top: 38px;
}

.service-document-card .feature-card {
  padding: 26px;
}

.service-document-card .feature-card .text-link {
  display: inline-block;
  margin-top: 22px;
}

.feature-card {
  padding: 28px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--red);
  background: rgba(211, 37, 25, 0.08);
  border: 1px solid rgba(211, 37, 25, 0.18);
}

.feature-icon i {
  font-size: 20px;
}

.energy-panel {
  margin-top: 40px;
  padding: 34px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.energy-panel h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.energy-panel > p {
  max-width: 780px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.energy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.energy-item {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.energy-item .feature-icon {
  margin-bottom: 16px;
}

.energy-item p {
  margin-top: 10px;
  color: var(--muted);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.spec-table th,
.spec-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  width: 34%;
  color: #2e343b;
  background: var(--soft);
}

.sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.contact-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-card.dark-card {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.contact-card.dark-card p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-email-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.contact-email-list a {
  display: block;
}

.branch-block {
  display: grid;
  gap: 26px;
}

.branch-info {
  display: grid;
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 0.6fr);
  gap: 30px;
  align-items: stretch;
}

.branch-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
}

.branch-copy h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.branch-copy .eyebrow {
  color: #5f6872;
}

.branch-copy p,
.branch-copy a:not(.button) {
  margin: 0;
  color: var(--muted);
}

.branch-copy a:not(.button) {
  font-weight: 400;
}

.branch-map {
  width: 100%;
  height: 560px;
  min-height: 560px;
  background: #fff;
  border: 1px solid var(--line);
}

.branch-photo-gallery {
  margin-top: 0;
}

.service-overview .service-item {
  display: flex;
  flex-direction: column;
}

.service-card-link,
a.product-card {
  color: var(--ink);
  text-decoration: none;
}

.service-card-link:hover,
a.product-card:hover {
  border-color: var(--red);
}

.service-card-link:hover h3,
a.product-card:hover h3 {
  color: var(--red);
}

.service-card-link:focus-visible,
a.product-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.service-detail-heading {
  position: sticky;
  top: 120px;
}

.service-detail-heading .intro-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
}

.service-detail-heading .intro-icon i {
  font-size: 28px;
}

.service-detail-heading h2 {
  max-width: 420px;
}

.service-detail-copy .lead {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.35;
}

.service-detail-copy > p:not(.lead) {
  color: var(--muted);
  font-size: 17px;
}

.service-detail-copy .check-list {
  margin: 28px 0;
}

.service-more-button {
  margin-top: 16px;
}

#revizie .inspection-title {
  margin: 44px 0 22px;
  padding-left: 16px;
  border-left: 4px solid var(--red);
  font-size: 22px;
  line-height: 1.35;
}

#revizie .service-detail-copy > .inspection-note {
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 14px;
  line-height: 1.6;
}

#revizie .service-detail-copy > .button {
  margin-top: 16px;
}

.service-page-document {
  margin-top: 38px;
}

#servis-detail .service-page-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
}

.service-main-copy > h2 {
  margin-bottom: 24px;
}

.service-section-head {
  margin-top: 56px;
}

.service-main-copy > p + p {
  margin-top: 16px;
}

.service-benefits {
  margin: 36px 0 44px;
}

.service-resource-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.service-sidebar {
  position: static;
  align-self: start;
}

.service-sidebar .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.service-sidebar .text-link:hover,
.service-sidebar .text-link:focus-visible {
  border-bottom-color: currentColor;
}

@media (max-width: 980px) {
  #servis-detail .service-page-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

.service-page-document .feature-grid {
  grid-template-columns: 1fr;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.card-actions .button {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 13px;
}

.editor-note {
  margin-top: 20px;
  padding: 14px 16px;
  color: #59636e;
  background: #f6f8fa;
  border: 1px dashed #c7ced6;
}

.editor-note summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.editor-note p {
  margin-top: 10px;
  font-size: 14px;
}

.album-grid,
.store-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.store-grid {
  grid-template-columns: repeat(2, 1fr);
}

.store-card .realization-gallery {
  grid-template-columns: 1fr;
}

.store-card .gallery-main {
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.store-card .gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.store-card .gallery-grid figure {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.contact-grid {
  grid-template-columns: repeat(3, 1fr);
}

.album-card,
.store-card,
.case-card {
  background: #fff;
  border: 1px solid var(--line);
}

.album-card h3,
.album-card p,
.store-card h3,
.store-card p {
  padding-inline: 24px;
}

.album-card h3,
.store-card h3 {
  margin-top: 22px;
}

.album-card p,
.store-card p {
  margin: 10px 0 24px;
  color: var(--muted);
}

.case-grid {
  display: grid;
  gap: 22px;
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 24px;
  align-items: center;
}

.case-photos {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

.case-photos .photo-placeholder {
  min-height: 170px;
}

.case-photos .photo-placeholder:first-child {
  grid-row: span 2;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.reference-showcase {
  display: grid;
  gap: 34px;
}

.reference-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.reference-block:nth-child(even) {
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
}

.reference-block:nth-child(even) .reference-copy {
  order: 2;
}

.reference-copy h3 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

.reference-copy p {
  margin: 16px 0 0;
  color: var(--muted);
}

.reference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.reference-tags li {
  padding: 8px 11px;
  color: #3f4852;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.reference-gallery {
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: repeat(3, minmax(118px, 1fr));
  gap: 10px;
  height: clamp(360px, 34vw, 430px);
  margin-top: 0;
}

.reference-gallery figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.reference-gallery .featured {
  grid-row: 1 / -1;
}

.reference-gallery figure:hover {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red), 0 12px 28px rgba(24, 27, 31, 0.16);
  transform: translateY(-2px);
}

.reference-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 240ms ease;
}

.reference-gallery figure:not(.featured) img {
  min-height: 0;
}

.reference-gallery figure:hover img {
  transform: scale(1.025);
}

.customers-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 40px;
}

.customers-heading .eyebrow {
  margin-top: 0;
  color: var(--muted);
}

.customers-heading h2 {
  margin-bottom: 0;
}

.customers-heading > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

.customers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 3px solid var(--red);
  list-style: none;
}

.customers-list li {
  max-width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .customers-heading { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .customers-list { gap: 8px; padding-top: 16px; }
  .customers-list li { padding: 11px 14px; font-size: 14px; }
  .customers-heading { margin-bottom: 28px; }
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.logo-grid span {
  min-height: 86px;
  display: grid;
  place-items: center;
  color: #66717c;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
}

.prototype-form {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
}

.page-grid > .wpcf7 {
  min-width: 0;
}

.prototype-form .wpcf7-form-control-wrap {
  min-width: 0;
  display: block;
}

.prototype-form input[type="submit"] {
  width: auto;
  min-height: 44px;
  padding: 12px 18px;
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  font-weight: 800;
  cursor: pointer;
}

.prototype-form input[type="submit"]:hover,
.prototype-form input[type="submit"]:focus-visible {
  color: #fff;
  background: #b9281d;
  border-color: #b9281d;
}

.prototype-form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  line-height: 1.5;
}

.prototype-form .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
}

.prototype-form .wpcf7-list-item {
  margin: 0;
}

.prototype-form .wpcf7-list-item label,
.prototype-form .wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #38404a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.prototype-form .wpcf7-list-item input[type="checkbox"],
.prototype-form .wpcf7-list-item input[type="radio"],
.prototype-form .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.prototype-form .wpcf7-acceptance .wpcf7-list-item-label {
  font-weight: 400;
}

.prototype-form .wpcf7-acceptance a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

.prototype-form .wpcf7-spinner {
  vertical-align: middle;
}

.prototype-form h2 {
  margin-bottom: 22px;
  font-size: 28px;
}

.prototype-form hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid label,
.prototype-form > label {
  display: grid;
  gap: 8px;
  color: #38404a;
  font-size: 14px;
  font-weight: 800;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.prototype-form input,
.prototype-form select,
.prototype-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd6dd;
  font: inherit;
}

.prototype-form textarea {
  resize: vertical;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0;
}

.check-field {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
  font-weight: 700 !important;
}

.check-field input {
  width: 18px;
  min-height: 18px;
}

.prototype-form .check-field span {
  font-weight: 400;
  line-height: 1.45;
}

.prototype-form .check-field a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prototype-form .check-field a:hover,
.prototype-form .check-field a:focus-visible {
  color: #9e1b13;
}

.prototype-form .check-field a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.form-help {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.quote-page-grid {
  grid-template-columns: minmax(0, 1fr) 310px;
}

.quote-form {
  padding: 34px;
}

/* Hello Elementor shortens form text to a single-line line height. */
.quote-form label,
.quote-form label span,
.quote-form input,
.quote-form select,
.quote-form textarea,
.quote-form small,
.quote-form strong {
  line-height: 1.55;
}

.quote-form small {
  font-size: 0.8333em;
}

.quote-form .measurement-guide figcaption {
  line-height: 1.55;
}

.quote-form .form-section > label:not([class]) {
  display: inline;
}

.quote-form .form-section > label.wide {
  display: block;
}

.quote-form .option-list input[type="checkbox"] {
  margin: 3px 3px 3px 4px;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 0 0 32px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-section + .form-section {
  padding-top: 0;
}

.form-section + .form-section legend {
  padding-top: 32px;
}

.form-section legend {
  display: block;
  width: 100%;
  margin: 0 0 22px;
  padding: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}

.form-section legend span {
  display: inline;
  color: inherit;
  background: none;
  font-size: inherit;
}

.form-section-intro {
  margin: -10px 0 22px;
  color: var(--muted);
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.choice-grid-three {
  display: flex;
}

.choice-grid > .wpcf7-form-control-wrap,
.option-list > .wpcf7-form-control-wrap {
  width: 100%;
}

.choice-grid .wpcf7-radio,
.option-list .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.choice-card {
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  background: transparent;
  box-shadow: none;
}

.choice-card input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.choice-card span {
  color: #38404a;
  font-weight: 700;
}

.measurement-guide {
  margin: 0 0 24px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.measurement-guide img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.measurement-guide img:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.measurement-guide figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.measurement-lightbox .lightbox-frame {
  max-width: 1400px;
  margin: 0 auto;
}

.measurement-lightbox .lightbox-image {
  background: #fff;
}

.input-unit {
  position: relative;
  display: block;
}

.input-unit > .wpcf7-form-control-wrap {
  position: static;
  width: 100%;
  color: inherit;
  transform: none;
}

.input-unit input {
  padding-right: 48px;
}

.input-unit > span:not(.wpcf7-form-control-wrap) {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--muted);
  font-size: 13px;
  transform: translateY(-50%);
}

.field-help {
  position: relative;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0;
  color: var(--red);
  background: #fff5f4;
  border: 1px solid #efaaa5;
  border-radius: 50%;
  font: 800 12px/18px inherit;
  cursor: help;
}

.field-help::before {
  content: "";
  position: absolute;
  z-index: 21;
  bottom: calc(100% + 5px);
  left: 50%;
  border: 6px solid transparent;
  border-top-color: #252a30;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.field-help::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 16px);
  left: 50%;
  width: max-content;
  max-width: min(260px, 75vw);
  padding: 9px 11px;
  color: #fff;
  background: #252a30;
  border-radius: 3px;
  box-shadow: 0 8px 20px rgba(24, 27, 31, 0.2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.field-help:hover::before,
.field-help:hover::after,
.field-help:focus-visible::before,
.field-help:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.field-help:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.remote-count {
  max-width: 310px;
  margin-top: 18px;
}

.remote-count[hidden] {
  display: none !important;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 20px;
}

.file-upload {
  display: flex !important;
  align-items: center;
  gap: 18px !important;
  padding: 22px;
  background: #fff;
  border: 1px solid #cfd6dd;
  cursor: pointer;
}

.file-upload:hover {
  border-color: var(--red);
}

.file-upload i {
  color: var(--red);
  font-size: 28px;
}

.file-upload span {
  display: grid;
  gap: 4px;
}

.file-upload small {
  color: var(--muted);
  font-weight: 500;
}

.file-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
}

.file-feedback {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.quote-file-upload {
  cursor: default;
}

.quote-upload-fields {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.quote-upload-fields label {
  display: grid;
  gap: 6px;
  color: #38404a;
  font-size: 14px;
  font-weight: 700;
}

.quote-form .quote-upload-fields input[type="file"] {
  position: static;
  width: 100%;
  height: auto;
  min-height: 46px;
  padding: 9px 12px;
  opacity: 1;
  cursor: pointer;
}

.quote-form .quote-upload-fields input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 12px;
  color: var(--red);
  background: #fff5f4;
  border: 1px solid #efaaa5;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.quote-submit {
  margin: 28px 0 8px;
}

.submit-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 760px) {
  .page-grid.quote-page-grid,
  .measurement-grid {
    grid-template-columns: 1fr;
  }

  .quote-form {
    padding: 24px 20px;
  }

  .form-section {
    padding-bottom: 26px;
  }

  .form-section + .form-section {
    padding-top: 0;
  }

  .form-section + .form-section legend {
    padding-top: 26px;
  }

  .form-section legend {
    font-size: 20px;
  }

  .quote-submit {
    width: 100%;
    margin: 24px 0 8px;
  }

  .submit-note {
    margin: 0;
  }
}

.map-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #66717c;
  background:
    linear-gradient(135deg, rgba(211, 37, 25, 0.08), rgba(37, 42, 48, 0.04)),
    repeating-linear-gradient(45deg, #f3f5f7 0 12px, #e8ecef 12px 24px);
  border: 1px dashed #b8c0c8;
  font-weight: 900;
}

.private-preview {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.private-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.private-preview-body {
  padding: 26px;
}

.private-preview-body p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.site-footer {
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #191c20;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 17px;
}

.footer-grid a,
.footer-grid span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid a {
  width: fit-content;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration-color: var(--red);
}

@media (max-width: 980px) {
  .nav {
    min-height: auto;
    padding: 16px 0;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav.menu-open {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    width: 100%;
    order: 3;
    display: none;
    margin-left: 0;
    padding: 10px 0 6px;
    overflow-x: visible;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
    font-size: 16px;
    border-top: 1px solid var(--line);
  }

  .nav.menu-open .menu {
    display: flex;
  }

  .menu a {
    min-height: 48px;
    padding: 0;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
  }

  .menu-item {
    width: 100%;
  }

  .menu-item > a {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: auto repeat(8, auto);
    min-width: 0;
    padding: 0 0 8px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .private-dropdown {
    grid-template-columns: 1fr;
    grid-template-rows: auto repeat(3, auto);
  }

  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    transform: none;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu::after {
    display: none;
  }

  .dropdown-menu a {
    grid-column: auto;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    border-bottom: 0;
  }

  .dropdown-heading {
    padding: 10px 10px 6px;
    font-size: 11px;
  }

  .dropdown-menu a:nth-of-type(n),
  .private-dropdown a:nth-of-type(n) {
    grid-column: auto;
    padding-left: 12px;
  }

  .nav-cta {
    order: 4;
    width: 100%;
    margin: 10px 0 0;
  }

  .hero,
  .hero.compact {
    min-height: 580px;
  }

  .stats-strip,
  .three-columns,
  .product-grid,
  .album-grid,
  .store-grid,
  .contact-grid,
  .logo-grid,
  .benefit-row,
  .photo-strip,
  .realization-gallery,
  .energy-grid,
  .services,
  .sectors,
  .split,
  .page-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .branch-info {
    grid-template-columns: 1fr;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .reference-block,
  .reference-block:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .reference-block:nth-child(even) .reference-copy {
    order: 0;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .nav,
  .container,
  .hero-inner,
  .stats-strip {
    width: min(100% - 28px, var(--max));
  }

  .logo {
    width: 108px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .hero,
  .hero.compact {
    min-height: 620px;
    background-position: 58% center;
  }

  .hero-inner {
    padding: 96px 0 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .stats-strip,
  .three-columns,
  .product-grid,
  .album-grid,
  .store-grid,
  .contact-grid,
  .logo-grid,
  .form-grid,
  .benefit-row,
  .photo-strip,
  .realization-gallery,
  .energy-grid,
  .services,
  .sectors,
  .split,
  .page-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gallery-main,
  .gallery-grid figure {
    min-height: 260px;
  }

  .did-you-know {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .reference-block {
    padding: 18px;
    gap: 22px;
  }

  .reference-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .reference-gallery .featured {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .reference-gallery figure:not(.featured) {
    aspect-ratio: 1 / 1;
  }

  .reference-gallery img {
    min-height: 0;
  }

  .reference-gallery figure:not(.featured) img {
    min-height: 0;
  }

  .automaticke-dvere-page .gallery-main,
  .automaticke-dvere-page .gallery-grid figure,
  .dopravne-zabrany-page .gallery-main,
  .dopravne-zabrany-page .gallery-grid figure,
  .dvere-page .gallery-main,
  .dvere-page .gallery-grid figure,
  .garazove-brany-page .gallery-main,
  .garazove-brany-page .gallery-grid figure,
  .hlinikove-brany-page .gallery-main,
  .hlinikove-brany-page .gallery-grid figure,
  .nakladacia-technika-page .gallery-main,
  .nakladacia-technika-page .gallery-grid figure,
  .poziarne-odvetranie-page .gallery-main,
  .poziarne-odvetranie-page .gallery-grid figure,
  .rolovacie-brany-page .gallery-main,
  .rolovacie-brany-page .gallery-grid figure,
  .rolovacie-mreze-page .gallery-main,
  .rolovacie-mreze-page .gallery-grid figure,
  .poziarne-uzavery-page .gallery-main,
  .poziarne-uzavery-page .gallery-grid figure,
  .rychlobezne-brany-page .gallery-main,
  .rychlobezne-brany-page .gallery-grid figure,
  .sekcionalne-brany-page .gallery-main,
  .sekcionalne-brany-page .gallery-grid figure,
  .skladacie-brany-page .gallery-main,
  .skladacie-brany-page .gallery-grid figure,
  .sklenene-steny-page .gallery-main,
  .sklenene-steny-page .gallery-grid figure,
  .zamocnicka-vyroba-page .gallery-main,
  .zamocnicka-vyroba-page .gallery-grid figure,
  .zavory-posuvne-brany-page .gallery-main,
  .zavory-posuvne-brany-page .gallery-grid figure,
  .protiprievanove-riesenia-page .gallery-main,
  .protiprievanove-riesenia-page .gallery-grid figure {
    min-height: 0;
  }

  .automaticke-dvere-page .gallery-main,
  .dopravne-zabrany-page .gallery-main,
  .dvere-page .gallery-main,
  .garazove-brany-page .gallery-main,
  .hlinikove-brany-page .gallery-main,
  .nakladacia-technika-page .gallery-main,
  .poziarne-odvetranie-page .gallery-main,
  .rolovacie-brany-page .gallery-main,
  .rolovacie-mreze-page .gallery-main,
  .poziarne-uzavery-page .gallery-main,
  .rychlobezne-brany-page .gallery-main,
  .sekcionalne-brany-page .gallery-main,
  .skladacie-brany-page .gallery-main,
  .sklenene-steny-page .gallery-main,
  .zamocnicka-vyroba-page .gallery-main,
  .zavory-posuvne-brany-page .gallery-main,
  .protiprievanove-riesenia-page .gallery-main {
    aspect-ratio: 4 / 3;
  }

  .automaticke-dvere-page .gallery-grid,
  .dopravne-zabrany-page .gallery-grid,
  .dvere-page .gallery-grid,
  .garazove-brany-page .gallery-grid,
  .hlinikove-brany-page .gallery-grid,
  .nakladacia-technika-page .gallery-grid,
  .poziarne-odvetranie-page .gallery-grid,
  .rolovacie-brany-page .gallery-grid,
  .rolovacie-mreze-page .gallery-grid,
  .poziarne-uzavery-page .gallery-grid,
  .rychlobezne-brany-page .gallery-grid,
  .sekcionalne-brany-page .gallery-grid,
  .skladacie-brany-page .gallery-grid,
  .sklenene-steny-page .gallery-grid,
  .zamocnicka-vyroba-page .gallery-grid,
  .zavory-posuvne-brany-page .gallery-grid,
  .protiprievanove-riesenia-page .gallery-grid {
    grid-template-columns: 1fr;
  }

  .protipovodnove-bariery-page .gallery-main,
  .protipovodnove-bariery-page .gallery-grid figure {
    min-height: 0;
  }

  .protipovodnove-bariery-page .gallery-main {
    aspect-ratio: 4 / 3;
  }

  .protipovodnove-bariery-page .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-detail-heading {
    position: static;
  }

  .info-panel,
  .product-card,
  .service-item,
  .feature-card,
  .contact-card {
    padding: 24px;
  }

  .prototype-form {
    padding: 24px;
  }

  .branch-copy {
    padding: 24px;
  }

  .branch-map {
    height: 360px;
    min-height: 360px;
  }

  .case-photos {
    grid-template-columns: 1fr;
  }

  .case-photos .photo-placeholder:first-child {
    grid-row: auto;
  }

  .cta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox {
    padding: 76px 16px 28px;
  }

  .lightbox-image {
    max-height: calc(100vh - 148px);
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }

  button.lightbox-nav {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .lightbox-prev {
    left: 16px;
  }

  .lightbox-next {
    right: 16px;
  }
}

@media (max-width: 980px) {
  .document-group .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 680px) {
  .document-group {
    padding: 24px 20px;
  }

  .document-group .feature-grid {
    grid-template-columns: 1fr;
  }

}

/* CookieYes styling carried over from the former Menton theme. */
.cky-consent-bar::before {
  content: "";
  display: inline-block;
  width: 157px;
  height: 70px;
  margin-bottom: 24px;
  background: url("images/logo-menton.svg") no-repeat;
  background-size: 157px 70px;
}

.cky-notice-des a.cky-policy {
  border: 0;
}

button.cky-show-desc-btn:not(:hover):not(:active),
.cky-modal.cky-modal-open button {
  color: #cc3300;
}

.cky-modal.cky-modal-open button:hover {
  text-decoration: underline;
}

/* Garage quote: scoped layout for both the prototype and Contact Form 7. */
.garage-quote-page .quote-form {
  min-width: 0;
}
.garage-quote-page .quote-form .form-section > label:not(.choice-card):not(.file-upload),
.garage-quote-page .quote-form .form-grid label {
  display: block;
  color: #38404a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}
.garage-quote-page .quote-form label > .wpcf7-form-control-wrap,
.garage-quote-page .quote-form label > .input-unit,
.garage-quote-page .quote-form label > input:not([type="radio"]):not([type="checkbox"]),
.garage-quote-page .quote-form label > textarea {
  display: block;
  margin-top: 8px;
}
.garage-quote-page .quote-form .form-section legend {
  font-size: 28px;
  line-height: 1.35;
}
.garage-quote-page .quote-form .form-section legend > span { display: none; }
.garage-quote-page .quote-form .choice-grid,
.garage-quote-page .quote-form .choice-grid .wpcf7-radio,
.garage-quote-page .quote-form .option-list,
.garage-quote-page .quote-form .option-list .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}
.garage-quote-page .quote-form .choice-grid > .wpcf7-form-control-wrap,
.garage-quote-page .quote-form .option-list > .wpcf7-form-control-wrap {
  grid-column: 1 / -1;
  margin: 0;
}
.garage-quote-page .quote-form .wpcf7-list-item {
  display: block;
  min-width: 0;
  margin: 0;
}
.garage-quote-page .quote-form .choice-grid .wpcf7-list-item:last-child:nth-child(odd),
.garage-quote-page .quote-form .choice-grid > .choice-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.garage-quote-page .quote-form .choice-card,
.garage-quote-page .quote-form .check-field,
.garage-quote-page .quote-form .wpcf7-list-item > label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
  height: auto;
  min-height: auto;
  margin: 0;
  padding: 0;
  color: #38404a;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.garage-quote-page .quote-form .choice-card:hover,
.garage-quote-page .quote-form .check-field:hover,
.garage-quote-page .quote-form .wpcf7-list-item > label:hover {
  border-color: transparent;
}
.garage-quote-page .quote-form label:has(> input:checked) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.garage-quote-page .quote-form input[type="radio"],
.garage-quote-page .quote-form input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--red);
}
.garage-quote-page .quote-form input:focus-visible,
.garage-quote-page .quote-form textarea:focus-visible,
.garage-quote-page .quote-form .file-upload:focus-within {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.garage-quote-page .quote-form .input-unit > .wpcf7-form-control-wrap {
  display: block;
}
.garage-quote-page .quote-form .input-unit > span:not(.wpcf7-form-control-wrap) {
  pointer-events: none;
}
.garage-quote-page .quote-form .field-help {
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}
.garage-quote-page .quote-form .quote-upload-fields label,
.garage-quote-page .quote-form .wpcf7-form-control-wrap {
  min-width: 0;
}
@media (max-width: 1000px) {
  .garage-quote-page .page-grid.quote-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .garage-quote-page .quote-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .garage-quote-page .quote-form .form-section legend {
    font-size: 20px;
  }
  .garage-quote-page .quote-form .quote-submit {
    white-space: normal;
  }
}
.garage-quote-page .quote-form .choice-card,
.garage-quote-page .quote-form .wpcf7-list-item > label {
  font-weight: 700;
}
.garage-quote-page .quote-form .quote-upload-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.garage-quote-page .quote-form .quote-upload-fields input[type="file"] {
  padding: 11px 12px;
}
.garage-quote-page .quote-form .quote-upload-fields input[type="file"]::file-selector-button {
  margin-right: 4px;
  padding: 2px 6px;
  color: var(--ink);
  background: #efefef;
  border: 1px solid #767676;
  border-radius: 2px;
  font-weight: 400;
}
@media (max-width: 760px) {
  .garage-quote-page .quote-form .quote-upload-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Keep theme button colors out of form help and lightbox controls. */
.quote-form button.field-help {
  color: var(--red);
  background-color: #fff5f4;
  border-color: #efaaa5;
}
.quote-form button.field-help:hover,
.quote-form button.field-help:focus,
.quote-form button.field-help:focus-visible,
.quote-form button.field-help:active {
  color: var(--red);
  background-color: #ffe7e4;
  border-color: var(--red);
}
.quote-form button.field-help:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.lightbox button.lightbox-close,
.lightbox button.lightbox-nav {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}
.lightbox button.lightbox-close:is(:hover, :focus, :focus-visible, :active),
.lightbox button.lightbox-nav:is(:hover, :focus, :focus-visible, :active) {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}