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

body {
  margin: 0;
  background: var(--ink-850);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-red-bright);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--brand-red);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--text-on-dark);
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: 56px;
  font-weight: 800;
}

h2 {
  font-size: 40px;
  font-weight: 700;
}

h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

p {
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
}

.accent-line {
  width: 40px;
  height: 3px;
  background: var(--brand-red-bright);
  margin-bottom: var(--space-3);
}

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: var(--space-2) var(--space-3);
  background: var(--brand-red);
  color: var(--text-on-dark);
}

.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
  clip-path: none;
  width: auto;
  height: auto;
  color: var(--text-on-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font: 600 15px var(--font-body);
  letter-spacing: 0.05em;
  padding: 15px 32px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn__arrow {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--ink-850);
  color: var(--text-on-dark);
  font-size: 14px;
}

.btn--primary {
  background: var(--brand-red);
  color: var(--text-on-dark);
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--brand-red-deep);
  color: var(--text-on-dark);
}

.btn--secondary {
  background: transparent;
  border: 1.5px solid var(--border-on-dark);
  color: var(--text-on-dark);
  padding: 13.5px 30px;
}

.btn--secondary:hover,
.btn--secondary:focus {
  border-color: var(--text-on-dark);
}

.cta-link {
  font: 600 13px var(--font-body);
  letter-spacing: 0.1em;
  color: var(--brand-red-bright);
  text-transform: uppercase;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--pad-x);
  background: var(--ink-850);
}

body.page-template-page-homepage .site-header,
body.page-template-page-kontakt .site-header,
body.page-template-page-blog .site-header,
body.page-template-page-pre-subdodavatelov .site-header,
body.page-template-page-priemyselna-divizia .site-header,
body.page-template-page-stavebna-cinnost .site-header,
body.single .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: transparent;
  padding-top: 46px;
}

.site-header__logo,
.custom-logo {
  height: 25px;
  width: auto;
  display: block;
}

.site-nav__list {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  font: 600 14px var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
  color: var(--text-on-dark);
}

.site-header__panel {
  display: contents;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 20;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: var(--radius-sm);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

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

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

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

body.nav-open {
  overflow: hidden;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-pill);
  padding: var(--space-1);
}

.lang-switcher__item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font: 600 13px var(--font-body);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-switcher__item:hover,
.lang-switcher__item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.lang-switcher__item.is-active {
  background: var(--brand-red-bright);
  color: var(--text-on-dark);
}

.lang-switcher__item.is-active:hover,
.lang-switcher__item.is-active:focus {
  background: var(--brand-red-bright);
  color: var(--text-on-dark);
}

.lang-switcher__flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.lang-switcher__item.is-active .lang-switcher__flag {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.page-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-8) var(--pad-x);
}

.page-wrap--with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-6);
}

/* Servisné stránky (default šablóna) — čitateľná šírka a rytmus obsahu */
.page-wrap > article > header h1 {
  margin-bottom: var(--space-5);
}

.page-wrap > article .entry__content {
  max-width: 760px;
  color: var(--text-on-dark-soft);
}

.page-wrap > article .entry__content h2 {
  margin: var(--space-6) 0 var(--space-3);
  color: var(--text-on-dark);
}

.page-wrap > article .entry__content h3 {
  margin: var(--space-4) 0 var(--space-2);
  color: var(--text-on-dark);
}

.page-wrap > article .entry__content p,
.page-wrap > article .entry__content ul {
  margin-bottom: var(--space-3);
}

.page-wrap > article .entry__content ul {
  padding-left: var(--space-4);
  list-style: disc;
}

.page-wrap > article .entry__content li {
  margin-bottom: var(--space-1);
}

.entry__content,
.entry__excerpt {
  color: var(--text-muted);
}

.entry__content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry__meta {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.entry__thumbnail img {
  border-radius: var(--radius-card);
  display: block;
}

.archive-header {
  margin-bottom: var(--space-6);
}

.no-results {
  color: var(--text-muted);
}

.search-form {
  display: flex;
  gap: var(--space-2);
  max-width: 480px;
}

.search-form__input {
  flex: 1;
  background: var(--ink-800);
  border: 1px solid var(--border-on-dark);
  color: var(--text-on-dark);
  font: 400 15px var(--font-body);
  padding: 12px var(--space-3);
}

.search-form__input:focus {
  outline: 2px solid var(--brand-red-bright);
  outline-offset: 0;
}

.error-404 {
  max-width: 640px;
}

.error-404 .search-form {
  margin-top: var(--space-5);
}

.site-sidebar .widget {
  background: var(--ink-800);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.widget-title {
  font-size: 20px;
}

.pagination .nav-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pagination .page-numbers {
  padding: var(--space-2) var(--space-3);
  color: var(--text-muted);
}

.pagination .page-numbers.current {
  background: var(--brand-red-bright);
  color: var(--text-on-dark);
}

.site-footer {
  background: var(--ink-900);
  padding: var(--space-7) var(--pad-x);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-on-dark);
}

.site-footer__logo {
  height: 34px;
  width: auto;
  margin-bottom: var(--space-4);
}

.site-footer__blurb {
  margin: 0;
  max-width: 320px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.site-footer__col-title {
  margin: 0 0 var(--space-4);
  font: 700 12px var(--font-body);
  letter-spacing: 0.16em;
  color: var(--brand-red-bright);
  text-transform: uppercase;
}

.site-footer__menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__menu a {
  font: 600 15px var(--font-body);
  color: var(--text-on-dark-soft);
}

.site-footer__menu a:hover {
  color: var(--text-on-dark);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font: 600 15px var(--font-body);
  color: var(--text-on-dark-soft);
}

.site-footer__contact a,
.site-footer__contact span {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-on-dark-soft);
}

.site-footer__contact a:hover {
  color: var(--text-on-dark);
}

.site-footer__contact svg {
  flex: none;
  color: var(--brand-red-bright);
  margin-top: 2px;
}

.site-footer__invoice {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font: 600 14.5px var(--font-body);
  color: var(--text-on-dark-soft);
}

.site-footer__invoice a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-2);
  color: var(--text-on-dark-soft);
}

.site-footer__invoice a:hover {
  color: var(--text-on-dark);
}

.site-footer__invoice svg {
  flex: none;
  color: var(--brand-red-bright);
  margin-top: 2px;
}

.site-footer__copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.homepage {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(var(--space-6), 6vh, var(--space-8));
  background: var(--ink-850);
  color: var(--text-on-dark);
  padding: 138px var(--pad-x) clamp(56px, 8vh, 104px);
}

.homepage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gradient-hero-glow);
  pointer-events: none;
}

.homepage__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.32;
  mix-blend-mode: luminosity;
  -webkit-mask-image: var(--mask-photo-fade);
  mask-image: var(--mask-photo-fade);
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0)
    scale(1.14);
  transition: transform 0.8s ease-out;
  will-change: transform;
}

.homepage__photo::before,
.homepage__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: hero-zoom 40s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.homepage__photo::before {
  background-image: url("../img/stavebna.png");
}

.homepage__photo::after {
  background-image: url("../img/roboticka-ruka.png");
  opacity: 0;
  animation:
    hero-zoom 40s ease-in-out infinite alternate,
    hero-swap 10s ease-in-out infinite;
}

@keyframes hero-zoom {
  from {
    transform: scale(1) translate(0, 0);
  }

  to {
    transform: scale(1.15) translate(-2%, -1.5%);
  }
}

@keyframes hero-swap {
  0%,
  42% {
    opacity: 0;
  }

  50%,
  92% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage__photo::before,
  .homepage__photo::after {
    animation: none;
  }
}

.homepage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--gradient-photo-bottom), var(--gradient-hero-shade);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.hero__title-accent {
  color: var(--brand-red-bright);
}

.hero__tagline {
  position: relative;
  z-index: 3;
  align-self: center;
  margin: calc(-1 * var(--space-4)) 0 0;
  text-align: center;
}

.hero__tagline-accent {
  color: var(--brand-red-bright);
}

.hero__tagline-on-dark {
  color: var(--text-on-dark);
}

.services {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 330px);
  justify-content: center;
  gap: clamp(28px, 2.8vw, 56px);
  width: 100%;
  max-width: var(--container-max);
  margin: var(--space-5) auto 4rem;
}

.service-card {
  position: relative;
  display: block;
  width: 330px;
  height: 460px;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.service-card__media {
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 0.5s ease;
}

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

.service-card:hover .service-card__media,
.service-card:focus .service-card__media {
  transform: scale(1.06);
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: var(--gradient-card-bottom);
  pointer-events: none;
}

.service-card__body {
  position: absolute;
  left: var(--space-5);
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 1;
}

.service-card__body .accent-line {
  display: block;
}

.service-card__title {
  margin: 0 0 var(--space-2);
  color: var(--text-on-dark);
}

/* ---------- Scroll reveal — vypnuté, obsah je viditeľný okamžite ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Section dividers (vlnový prechod medzi sekciami) ---------- */

.section-divider {
  position: absolute;
  z-index: 5;
  line-height: 0;
  pointer-events: none;
  /* Maska pre GSAP „vysúvanie": SVG sa počas scroll animácie posúva
     vnútri spanu a vynára sa spoza okraja. */
  overflow: hidden;
}

.section-divider svg {
  display: block;
  width: 520px;
  height: 46px;
}

.section-divider--bottom {
  bottom: -1px;
}

.section-divider--top {
  top: -45px;
}

/* Preklopený variant: jazyky predchádzajúcej (tmavej) sekcie visia nadol
   cez horný okraj aktuálnej sekcie — dizajn prechodu tmavá → svetlá. */
.section-divider--top-flip {
  top: -1px;
  transform: scaleY(-1);
}

.section-divider--left {
  left: -1px;
}

.section-divider--right {
  right: -1px;
  transform: scaleX(-1);
}

.section-divider--top-flip.section-divider--right {
  transform: scaleX(-1) scaleY(-1);
}

@media (max-width: 1024px) {
  .section-divider svg {
    width: 380px;
    height: 34px;
  }

  .section-divider--top {
    top: -33px;
  }
}

@media (max-width: 768px) {
  .section-divider svg {
    width: 260px;
    height: 26px;
  }

  .section-divider--top {
    top: -25px;
  }
}

@media (max-width: 480px) {
  .section-divider svg {
    width: 180px;
    height: 18px;
  }

  .section-divider--top {
    top: -17px;
  }
}

/* ---------- Page hero (Kontakt / Pre subdodávateľov / Priemyselná / Stavebná) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 138px var(--pad-x) 0;
  background: var(--ink-850);
  color: var(--text-on-dark);
}

.page-hero--photo {
  color: var(--text-on-dark);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 15ex,
    #000 calc(100% - 15ex),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 15ex,
    #000 calc(100% - 15ex),
    transparent
  );
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      110% 90% at 78% 10%,
      rgba(215, 25, 32, 0.34) 0%,
      transparent 48%
    ),
    linear-gradient(
      180deg,
      rgba(8, 9, 11, 0.72) 0%,
      rgba(8, 9, 11, 0.55) 45%,
      var(--ink-850) 97%
    );
}
.page-hero:not(.page-hero--photo)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      55% 95% at 50% 0%,
      rgba(215, 25, 32, 0.32) 0%,
      transparent 52%
    ),
    linear-gradient(155deg, #111214 0%, #0e0f11 100%);
  background-size:
    170% 130%,
    100% 100%;
  background-position:
    50% 0%,
    0 0;
  background-repeat: no-repeat;
  animation: hero-glow-drift 16s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-glow-drift {
  0%,
  100% {
    background-position:
      18% 0%,
      0 0;
  }
  50% {
    background-position:
      82% 0%,
      0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero:not(.page-hero--photo)::before {
    animation: none;
  }
}

.page-hero__media-panel {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: var(--space-6) auto 0;
  background: radial-gradient(
    120% 120% at 50% 30%,
    var(--ink-700),
    #050506 72%
  );
  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 15ex,
      #000 calc(100% - 15ex),
      transparent
    ),
    linear-gradient(
      180deg,
      transparent,
      #000 8ex,
      #000 calc(100% - 8ex),
      transparent
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 15ex,
      #000 calc(100% - 15ex),
      transparent
    ),
    linear-gradient(
      180deg,
      transparent,
      #000 8ex,
      #000 calc(100% - 8ex),
      transparent
    );
  mask-composite: intersect;
}

.page-hero__media-panel img,
.page-hero__media-panel video {
  display: block;
  width: 100%;
  height: auto;
}

.page-hero__media-panel--model {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 7;
  width: calc(100% + 2 * var(--pad-x));
  margin: var(--space-6) 0 0 calc(-1 * var(--pad-x));
}

.page-hero__media-panel--model canvas {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.page-hero__media-panel--model.is-loaded canvas {
  opacity: 1;
}

.page-hero__media-panel--model::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 60% at 50% 55%,
    rgba(215, 25, 32, 0.14),
    transparent 70%
  );
  animation: model-loading-pulse 1.8s ease-in-out infinite;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.page-hero__media-panel--model.is-loaded::before {
  animation: none;
  opacity: 0;
}

@keyframes model-loading-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

/* Na slabých zariadeniach sa 3D nespúšťa a panel sa skryje. */
.page-hero__media-panel--model.is-disabled {
  display: none;
}

/* Titulky synchronizované so scroll jazdou — stavy riadi GSAP. */
.page-hero__model-caption {
  position: absolute;
  z-index: 2;
  opacity: 0;
  max-width: 320px;
  padding: 10px 16px;
  border-left: 2px solid var(--brand-red-bright);
  background: rgba(8, 9, 11, 0.55);
  backdrop-filter: blur(6px);
  font: 600 15px var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  pointer-events: none;
}

.page-hero__model-caption:nth-of-type(1) {
  left: 12%;
  top: 18%;
}

.page-hero__model-caption:nth-of-type(2) {
  right: 10%;
  top: 40%;
}

.page-hero__model-caption:nth-of-type(3) {
  left: 14%;
  bottom: 22%;
}

.page-hero__model-caption:nth-of-type(4) {
  right: 12%;
  bottom: 18%;
}

/* Filmové letterbox pásy počas pinnutej jazdy — vytvára ich JS. */
.hermstav-cinema-bar {
  position: fixed;
  left: 0;
  right: 0;
  height: 7vh;
  background: #000;
  z-index: 999;
  pointer-events: none;
}

.hermstav-cinema-bar--top {
  top: 0;
}

.hermstav-cinema-bar--bottom {
  bottom: 0;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: left;
  padding: 0 0 9rem;
}

.page-hero__title {
  max-width: 840px;
}

.page-hero--center .page-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.page-hero__title-accent {
  color: var(--brand-red-bright);
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  font: 700 12px var(--font-body);
  letter-spacing: 0.2em;
  color: var(--brand-red-bright);
}

.page-hero--center .page-hero__eyebrow {
  justify-content: center;
}

.page-hero__eyebrow--pill {
  background: var(--brand-red);
  color: var(--text-on-dark);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.16em;
}

.page-hero__eyebrow-line {
  width: 30px;
  height: 2px;
  background: var(--brand-red-bright);
}

.page-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}

.page-hero--center .page-hero__tags {
  justify-content: center;
}

.page-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-pill);
  padding: 9px 17px;
  font: 600 14px var(--font-body);
  color: var(--text-on-dark);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.page-hero__tag:hover {
  border-color: var(--brand-red-bright);
  background: rgba(232, 39, 46, 0.16);
}

.page-hero__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--brand-red-bright);
}

.page-hero__intro {
  max-width: 600px;
  margin: 0 0 var(--space-5);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-on-dark-soft);
}

.page-hero--center .page-hero__intro {
  margin-left: auto;
  margin-right: auto;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.page-hero--center .page-hero__actions {
  justify-content: center;
}

/* ---------- Kontakt: info cards + map ---------- */

.kontakt-info {
  position: relative;
  background: var(--ink-850);
  padding: var(--space-7) var(--pad-x) var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
}

.kontakt-info__inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-5);
  align-items: stretch;
  max-width: var(--container-max);
  margin: 0 auto;
}

.kontakt-info__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.info-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1.5px solid var(--border-on-dark);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  transition: border-color 0.25s ease;
}

.info-card:hover {
  border-color: var(--brand-red-bright);
}

.info-card__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-icon);
  background: var(--brand-red-tint);
  color: var(--brand-red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card__icon--brand {
  background: var(--brand-red);
  color: var(--text-on-dark);
}

.info-card__title {
  margin: 0 0 6px;
}

.info-card__text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-on-dark-soft);
}

.info-card__link {
  font-size: 15.5px;
  color: var(--text-on-dark-soft);
}

.info-card__link:hover {
  color: var(--text-on-dark);
}

.hs-map {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1.5px solid var(--border-on-dark);
  min-height: 440px;
}

.hs-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

/* ---------- Shared CTA + forms ---------- */

.cta-contact {
  position: relative;
  background: var(--ink-900);
  padding: var(--space-8) var(--pad-x);
}

.cta-contact__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: start;
  /* Zarovnané so zvyškom stránky — sekcia mala vlastnú užšiu šírku
     (1090px) a voči ostatným „odskakovala". */
  max-width: var(--container-max);
  margin: 0 auto;
}

.cta-contact__eyebrow {
  font: 700 13px var(--font-body);
  letter-spacing: 0.24em;
  color: var(--brand-red-bright);
  margin: 0 0 var(--space-3);
}

.cta-contact__heading {
  margin: 0 0 var(--space-4);
}

.cta-contact__text {
  max-width: 400px;
  margin: 0 0 var(--space-5);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-on-dark-soft);
}

.cta-contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cta-contact__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font: 600 15px var(--font-body);
  color: var(--text-on-dark);
}

a.cta-contact__row:hover {
  color: var(--brand-red-bright);
}

.cta-contact__icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-icon);
  background: var(--brand-red-tint);
  color: var(--brand-red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-contact__form,
.sub-form-card {
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1.5px solid var(--border-on-dark);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-field__label {
  font: 600 12px var(--font-body);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  background: var(--ink-850);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-input);
  padding: 13px var(--space-3);
  color: var(--text-on-dark);
  font: 400 15px var(--font-body);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brand-red-bright);
}

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

.cf-turnstile {
  margin-bottom: 4px;
}

/* ---------------------------------------------------------------------------
   Cookie lišta a nastavenia súhlasu
--------------------------------------------------------------------------- */
.cookie-consent__bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  width: min(calc(100% - 2 * var(--pad-x)), 1080px);
  padding: var(--space-4);
  background: var(--ink-800);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--text-on-dark-soft);
}

.cookie-consent__text {
  flex: 1 1 380px;
}

.cookie-consent__text a {
  color: var(--text-on-dark);
  text-decoration: underline;
}

.cookie-consent__title {
  color: var(--text-on-dark);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.cookie-consent__actions,
.cookie-consent__modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cookie-consent__overlay {
  position: fixed;
  inset: 0;
  z-index: 1201;
  background: var(--overlay-dark);
}

.cookie-consent__modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1202;
  width: min(calc(100% - 2 * var(--pad-x)), 560px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: var(--space-5);
  background: var(--ink-800);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  color: var(--text-on-dark-soft);
}

.cookie-consent__modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.cookie-consent__close {
  display: inline-flex;
  padding: var(--space-2);
  background: none;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-pill);
  color: var(--text-on-dark);
  cursor: pointer;
}

.cookie-consent__category {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-on-dark);
}

.cookie-consent__category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.cookie-consent__category-title {
  color: var(--text-on-dark);
  font-weight: 600;
}

.cookie-consent__always {
  color: var(--brand-red-bright);
  font-weight: 600;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cookie-consent__modal-actions {
  margin-top: var(--space-4);
  justify-content: flex-end;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cookie-switch__slider {
  position: absolute;
  inset: 0;
  background: var(--ink-700);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-pill);
  transition: background 0.2s ease;
  pointer-events: none;
}

.cookie-switch__slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--text-on-dark);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: var(--brand-red-bright);
  border-color: var(--brand-red-bright);
}

.cookie-switch input:checked + .cookie-switch__slider::before {
  transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-switch__slider {
  outline: 2px solid var(--brand-red-hover);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .cookie-consent__bar {
    bottom: 0;
    width: 100%;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }

  .cookie-consent__actions .btn,
  .cookie-consent__modal-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Karta karuselu služieb otvára popup — kurzor + jemný hover */
.carousel-card--clickable {
  cursor: pointer;
}

.carousel-card--clickable:focus-visible {
  outline: 2px solid var(--brand-red-hover);
  outline-offset: 3px;
}

/* Servisné odkazy v pätičke */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-3);
}

.site-footer__legal a,
.site-footer__legal button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-on-dark-soft);
  text-decoration: underline;
  cursor: pointer;
}

.site-footer__legal a:hover,
.site-footer__legal button:hover {
  color: var(--text-on-dark);
}

.form-submit {
  display: inline-flex;
  border: 0;
  font-family: inherit;
}

.form-notice {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-input);
  font-size: 14px;
}

.form-notice--success {
  background: rgba(66, 179, 110, 0.14);
  color: #6fd39a;
}

.form-notice--error {
  background: var(--brand-red-tint);
  color: var(--brand-red-bright);
}

/* ---------- Pre subdodávateľov: form ---------- */

.sub-form-section {
  position: relative;
  background: var(--ink-850);
  padding: var(--space-2) var(--pad-x) var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
}

.sub-form-card {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-5);
}

.sub-form__section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}

.sub-form__section-title--spaced {
  margin-top: var(--space-6);
}

.sub-form__section-title .accent-line {
  width: 40px;
  margin: 0;
}

.sub-form__section-title h2 {
  margin: 0;
  font-size: 26px;
}

.sub-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.sub-form__consent {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 420px;
}

/* ---------- Blog ---------- */

.pill-badge {
  display: inline-flex;
  align-items: center;
  background: var(--brand-red);
  color: var(--text-on-dark);
  font: 700 11px var(--font-body);
  letter-spacing: 0.12em;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

.blog-featured {
  position: relative;
  background: var(--surface);
  padding: var(--space-7) 0;
}

.blog-featured__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.blog-grid-section {
  position: relative;
  background: var(--ink-850);
  padding: var(--space-7) 0;
}

.blog-grid-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Popup „Segmenty výstavby" (stavebná divízia) ---------- */

.segments-popup {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.segments-popup[hidden] {
  display: none;
}

.segments-popup__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 100% at 50% 0%,
    rgba(215, 25, 32, 0.16),
    rgba(8, 9, 11, 0.86) 55%
  );
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.segments-popup__dialog {
  position: relative;
  overflow: hidden auto;
  width: min(760px, 100%);
  max-height: min(90vh, 100%);
  background:
    radial-gradient(
      130% 85% at 88% -5%,
      rgba(215, 25, 32, 0.24),
      transparent 52%
    ),
    linear-gradient(158deg, #17181c 0%, #0c0d0f 70%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 46px 48px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  animation: segments-popup-in 0.3s ease;
}

@keyframes segments-popup-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.segments-popup__topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e8272e, #7a0f13 60%, transparent);
}

.segments-popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.segments-popup__close:hover {
  border-color: var(--brand-red-bright);
  color: var(--brand-red-bright);
}

.segments-popup__eyebrow {
  font: 700 13px var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e8272e;
  margin: 0 0 10px;
}

.segments-popup__title {
  font: 800 40px/1 var(--font-head);
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 22px;
}

.segments-popup__sections {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 26px 0 34px;
}

/* Režim jedného segmentu: po kliknutí na konkrétny tag sa zobrazí len
   jeho sekcia, zvyšok obsahu popupu sa skryje. */
.segments-popup--single .segments-popup__section:not(.is-active),
.segments-popup--single .segments-popup__title,
.segments-popup--single .segments-popup__rule,
.segments-popup--single .segments-popup__grid,
.segments-popup--single .segments-popup__why {
  display: none;
}

.segments-popup--single .segments-popup__sections {
  margin-bottom: 0;
}

.segments-popup__section p {
  margin: 14px 0 0;
  font: 400 15px/1.7 var(--font-body);
  color: #c7cace;
}

.segments-popup__section .segments-popup__card-head {
  margin-bottom: 0;
}

.segments-popup__title--why {
  margin-top: 34px;
}

.segments-popup__why p {
  margin: 0 0 14px;
  font: 400 15px/1.7 var(--font-body);
  color: #c7cace;
}

.segments-popup__why p:last-child {
  margin-bottom: 0;
}

.segments-popup__rule {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #e8272e 0,
    #e8272e 64px,
    rgba(255, 255, 255, 0.14) 64px,
    transparent
  );
  margin: 0 0 28px;
}

.segments-popup__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 640px) {
  .segments-popup__grid {
    grid-template-columns: 1fr;
  }

  .segments-popup__dialog {
    padding: 38px 24px;
  }
}

.segments-popup__card {
  background: #141518;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 26px;
}

.segments-popup__card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.segments-popup__card-head span {
  width: 36px;
  height: 2px;
  background: #e8272e;
}

.segments-popup__card-head h4 {
  font: 700 22px var(--font-head);
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
}

.segments-popup__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  font: 600 15px var(--font-body);
  color: #c7cace;
}

.segments-popup__list li {
  display: flex;
  align-items: center;
  gap: 11px;
}

.segments-popup__list li::before {
  content: "\2022";
  color: #e8272e;
}

/* ---------- Popup detailu priemyselnej služby ---------- */

.service-popup {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.service-popup[hidden] {
  display: none;
}

.service-popup__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 100% at 50% 0%,
    rgba(215, 25, 32, 0.16),
    rgba(8, 9, 11, 0.86) 55%
  );
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.service-popup__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  width: min(1100px, 100%);
  max-height: min(90vh, 100%);
  overflow: hidden auto;
  background:
    radial-gradient(
      130% 85% at 0% 0%,
      rgba(215, 25, 32, 0.28),
      transparent 52%
    ),
    linear-gradient(158deg, #17181c 0%, #0c0d0f 70%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  animation: segments-popup-in 0.3s ease;
}

.service-popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 13, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.service-popup__close:hover {
  border-color: var(--brand-red-bright);
  color: var(--brand-red-bright);
}

.service-popup__media {
  position: relative;
  display: block;
  min-height: 320px;
}

.service-popup__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-popup__number {
  position: absolute;
  top: 24px;
  left: 28px;
  font: 800 44px/1 var(--font-head);
  color: var(--brand-red-bright);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.service-popup__content {
  padding: 56px 48px;
  align-self: center;
}

.service-popup__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 700 13px var(--font-body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e8272e;
  margin: 0 0 16px;
}

.service-popup__eyebrow span {
  width: 36px;
  height: 2px;
  background: #e8272e;
}

.service-popup__title {
  font: 800 34px/1.05 var(--font-head);
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.service-popup__text {
  margin: 0;
  font: 400 16px/1.8 var(--font-body);
  color: #c7cace;
}

@media (max-width: 860px) {
  .service-popup__dialog {
    grid-template-columns: 1fr;
  }

  .service-popup__media {
    min-height: 220px;
  }

  .service-popup__content {
    padding: 32px 26px 38px;
  }
}

/* Dlaždice služieb otvárajúce popup. */
.service-tile--clickable {
  cursor: pointer;
}

/* Hero tagy otvárajúce popup — kurzor a hover pridáva JS len tam,
   kde popup existuje. */
.page-hero__tag--clickable {
  cursor: pointer;
}

.page-hero__tag--clickable:hover {
  border-color: var(--brand-red-bright);
  background: rgba(215, 25, 32, 0.12);
}

/* Holé /blog/ bez divízie: výber divízie kartami ako na homepage. */
.blog-division-choice {
  position: relative;
  background: var(--ink-850);
  padding: 160px var(--pad-x) var(--space-8);
}

.blog-division-choice__head {
  text-align: center;
  color: var(--text-on-dark);
  margin: 0 0 var(--space-5);
}

.blog-division-choice__head p {
  margin: var(--space-2) 0 0;
  color: var(--text-on-dark-soft);
}

.blog-division-choice__cards {
  display: grid;
  grid-template-columns: repeat(2, 330px);
  justify-content: center;
  gap: clamp(28px, 2.8vw, 56px);
}

@media (max-width: 768px) {
  .blog-division-choice__cards {
    grid-template-columns: 330px;
  }
}

.blog-featured__eyebrow-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
}

.blog-featured__eyebrow-row .accent-line {
  width: 34px;
  margin: 0;
}

.blog-featured__eyebrow-row h2 {
  margin: 0;
  font-size: 30px;
  color: var(--text-primary);
}

.blog-featured__card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
  margin: 0;
  background: #fff;
  border: 1.5px solid var(--text-primary);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.blog-featured__card:hover {
  border-color: var(--brand-red);
}

.blog-featured__media {
  display: block;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.blog-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-featured__card:hover .blog-featured__media img {
  transform: scale(1.05);
}

.blog-featured__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-6) var(--space-6) var(--space-6) 0;
}

.blog-featured__title {
  display: block;
  font: 800 32px/1.05 var(--font-head);
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
}

.blog-featured__excerpt {
  display: block;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
  max-width: 440px;
}

.blog-grid-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 0 var(--space-5);
}

.blog-grid-section__head h2 {
  margin: 0;
  font-size: 34px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: 0;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1.5px solid var(--border-on-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.post-card:hover {
  border-color: var(--brand-red-bright);
  transform: translateY(-4px);
}

.post-card__media {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.06);
}

.post-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--overlay-dark);
  backdrop-filter: blur(4px);
  color: var(--text-on-dark);
  font: 700 10px var(--font-body);
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-4) var(--space-4) var(--space-5);
}

.post-card__title {
  display: block;
  font: 700 24px/1.08 var(--font-head);
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin: 0 0 var(--space-2);
}

.post-card__excerpt {
  display: block;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
  flex: 1;
}

/* ---------- Article (single post) ---------- */

.article-hero {
  position: relative;
  overflow: hidden;
  padding: 138px var(--pad-x) var(--space-6);
  background: var(--ink-850);
  color: var(--text-on-dark);
}

.article-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.article-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      110% 90% at 78% 6%,
      rgba(215, 25, 32, 0.34) 0%,
      transparent 48%
    ),
    linear-gradient(
      180deg,
      rgba(8, 9, 11, 0.72),
      rgba(8, 9, 11, 0.55) 45%,
      var(--ink-850) 99%
    );
}

.article-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.article-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  font: 700 11px var(--font-body);
  letter-spacing: 0.16em;
  color: var(--text-on-dark-soft);
}

.article-hero__breadcrumb a {
  color: var(--brand-red-bright);
}

.article-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font: 600 13.5px var(--font-body);
  color: var(--text-on-dark);
  margin-top: var(--space-4);
}

.article-hero__meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-red-bright);
}

.article-hero__meta span svg {
  color: var(--brand-red-bright);
}

.article-hero__meta-sep {
  width: 1px;
  height: 16px;
  background: var(--border-on-dark);
}

.article-body {
  position: relative;
  background: var(--ink-850);
  padding: var(--space-2) var(--pad-x) var(--space-7);
  max-width: var(--container-max);
  margin: 0 auto;
}

.article-body .entry__content {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-on-dark-soft);
  font-size: 17px;
  line-height: 1.8;
}

.article-body .entry__content > p:first-child {
  font: 500 21px/1.6 var(--font-body);
  color: var(--surface);
  padding-left: var(--space-4);
  border-left: 3px solid var(--brand-red);
}

.article-body .entry__content h2 {
  margin-top: var(--space-6);
  font-size: 30px;
}

/* ---------- Priemyselná divízia: services grid ---------- */

.services-grid-section {
  position: relative;
  background: var(--ink-850);
  padding: var(--space-7) 0;
}

.services-grid-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.services-grid-section__head {
  max-width: 620px;
  margin: 0 0 var(--space-5);
}

.services-grid-section__head p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  align-items: stretch;
  margin: 0;
}

.service-tile {
  position: relative;
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border-on-dark);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-700);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.service-tile:hover {
  border-color: var(--brand-red-bright);
  transform: translateY(-3px);
}

.service-tile--featured {
  grid-column: span 3;
  flex-direction: row;
  border-color: var(--brand-red-bright);
  max-height: 300px;
}

.service-tile__media {
  position: relative;
  display: block;
  height: 172px;
  overflow: hidden;
}

.service-tile--featured .service-tile__media {
  width: 52%;
  height: auto;
  flex: none;
}

.service-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-tile:hover .service-tile__media img {
  transform: scale(1.06);
}

.service-tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(20, 21, 24, 0.94));
}

.service-tile__number {
  position: absolute;
  left: 20px;
  bottom: 14px;
  font: 800 26px var(--font-head);
  color: var(--brand-red-bright);
  z-index: 1;
}

.service-tile--featured .service-tile__number {
  font-size: 40px;
  bottom: 20px;
}

.service-tile__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4);
  flex: 1;
}

.service-tile--featured .service-tile__body {
  padding: var(--space-6);
}

.service-tile__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.service-tile__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--brand-red);
  color: var(--text-on-dark);
  font: 700 10px var(--font-body);
  letter-spacing: 0.12em;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

.service-tile__title {
  font: 700 20px/1.06 var(--font-head);
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.service-tile--featured .service-tile__title {
  font-size: 32px;
}

.service-tile__plus {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red-bright);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.service-tile:hover .service-tile__plus {
  border-color: var(--brand-red-bright);
  background: var(--brand-red-tint);
}

.service-tile__text {
  display: block;
  margin-top: var(--space-3);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-on-dark-soft);
  max-width: 440px;
}

/* ---------- Priemyselná divízia: kultúra ---------- */

.culture-section {
  position: relative;
  background: var(--ink-850);
  padding: var(--space-7) 0 8rem;
}

.culture-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.culture-section__head {
  max-width: 720px;
  margin: 0 0 var(--space-5);
}

.culture-section__head p {
  margin: 0;
  color: var(--text-on-dark-soft);
  font-size: 16px;
  line-height: 1.75;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: 0;
}

.icon-card {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--ink-700);
  border: 1.5px solid var(--border-on-dark);
  border-radius: var(--radius-card);
  padding: var(--space-5) var(--space-4);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.icon-card:hover {
  border-color: var(--brand-red-bright);
  transform: translateY(-3px);
}

.icon-card--highlighted {
  grid-column: span 2;
  align-items: center;
  background: linear-gradient(150deg, var(--brand-red), #8f1016);
  border-color: transparent;
}

.icon-card__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-icon);
  background: var(--brand-red-tint);
  color: var(--brand-red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-card--highlighted .icon-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-icon-lg);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-on-dark);
}

.icon-card__title {
  margin: 0 0 6px;
  font-size: 21px;
}

.icon-card--highlighted .icon-card__title {
  font-size: 23px;
}

.icon-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.icon-card--highlighted .icon-card__text {
  color: #ffe3e5;
}

.icon-card__icon--brand {
  background: var(--brand-red);
  color: var(--text-on-dark);
}

.icon-card__icon--dark {
  background: var(--ink-850);
  color: var(--text-on-dark);
}

/* ---------- Priemyselná divízia: kariéra CTA ---------- */

.career-cta {
  position: relative;
  background: var(--surface);
  padding: var(--space-7) var(--pad-x) 4rem;
  overflow: hidden;
}

.career-cta::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -120px;
  width: 540px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(215, 25, 32, 0.3),
    rgba(215, 25, 32, 0.1) 54%,
    transparent 72%
  );
  filter: blur(50px);
  pointer-events: none;
}

.career-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.career-cta__copy h2 {
  color: var(--text-primary);
}

.career-cta__copy p {
  max-width: 420px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.career-cta__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.career-feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--ink-850);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-icon-lg);
  padding: var(--space-4) var(--space-4);
  transition: border-color 0.25s ease;
}

.career-feature:hover {
  border-color: var(--brand-red-bright);
}

.career-feature__index {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-input);
  background: var(--brand-red-tint);
  color: var(--brand-red-bright);
  font: 800 16px var(--font-head);
  display: flex;
  align-items: center;
  justify-content: center;
}

.career-feature__title {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--text-on-dark);
}

.career-feature__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Stavebná činnosť: about split ---------- */

.about-split {
  position: relative;
  background: var(--surface);
  padding: var(--space-6) var(--pad-x) var(--space-8);
  /* clip (nie hidden): oreže glow presahujúci do šírky bez vodorovného
     scrollu a bez orezania divider vĺn presahujúcich zvislo. */
  overflow-x: clip;
}

.about-split__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-6);
  align-items: start;
  max-width: var(--container-max);
  margin: 0 auto;
}

.about-split__copy,
.about-split__media {
  position: relative;
}

.about-split__copy > *,
.about-split__media > * {
  position: relative;
  z-index: 1;
}

/* Mäkké červené „žiary" v pozadí sekcie — presne podľa dizajnu. */
.about-split__glow {
  position: absolute;
  background: radial-gradient(
    closest-side,
    rgba(215, 25, 32, 0.5),
    rgba(215, 25, 32, 0.18) 52%,
    transparent 72%
  );
  border-radius: 60% 40% 52% 48% / 52% 56% 44% 48%;
  filter: blur(30px);
  pointer-events: none;
  z-index: 0 !important;
  animation: glow-drift 14s ease-in-out infinite;
}

/* Organický drift žiar: jemné krúživé plávanie po malej dráhe (±12 px),
   „preliévanie" tvaru a nádych cez opacity — žiara zostáva vo svojom poli.
   Animuje sa len transform, border-radius a opacity (blur je statický). */
@keyframes glow-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1.5);
    border-radius: 60% 40% 52% 48% / 52% 56% 44% 48%;
  }
  25% {
    transform: translate(1rem, -3rem) scale(1.1);
    border-radius: 52% 48% 46% 54% / 56% 46% 54% 44%;
  }
  50% {
    transform: translate(5rem, 5rem) scale(1.2);
    border-radius: 48% 52% 55% 45% / 48% 55% 45% 52%;
  }
  75% {
    transform: translate(-2rem, 2px) scale(1.45);
    border-radius: 55% 45% 50% 50% / 52% 48% 52% 48%;
  }
}

.about-split__glow--copy {
  /* Ukotvené k obrázku (stĺpec .about-split__media) — vykúka spoza jeho
     ľavej hrany; percentá + aspect-ratio zaručia škálovanie so stĺpcom. */
  top: 4%;
  left: -34%;
  width: 75%;
  aspect-ratio: 0.96;
}

.about-split__glow--media {
  top: -80px;
  right: -40px;
  width: 340px;
  height: 300px;
  animation-duration: 18s;
  animation-delay: -6s;
}

.about-split__copy h2 {
  color: var(--text-primary);
}

.about-split__copy > p {
  max-width: 480px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.about-split__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 520px;
}

.about-split .icon-card {
  background: #fff;
  border-color: var(--text-primary);
}

.about-split .icon-card:hover {
  border-color: var(--brand-red);
}

.about-split .icon-card .icon-card__title {
  color: var(--text-primary);
  font-size: 20px;
}

.about-split .icon-card .icon-card__text {
  color: var(--text-secondary);
}

.about-split .icon-card:nth-child(2) {
  margin-left: 40px;
}

.about-split__photo {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1.5px solid var(--text-primary);
}

.about-split__photo img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-split__photo:hover img {
  transform: scale(1.04);
}

.about-split__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.mini-stat {
  background: var(--ink-850);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.mini-stat::before {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background: var(--brand-red-bright);
  margin: 0 auto var(--space-3);
}

.mini-stat__title {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text-on-dark);
}

.mini-stat__text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Stavebná činnosť: services carousel ---------- */

.services-carousel-section {
  position: relative;
  background: var(--ink-850);
  padding: var(--space-7) 0;
  overflow: hidden;
}

.services-carousel-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.services-carousel-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0 0 var(--space-5);
}

.services-carousel-section__eyebrow {
  margin: 0 0 10px;
  font: 700 13px var(--font-body);
  letter-spacing: 0.24em;
  color: var(--brand-red-bright);
}

.services-carousel-section__head h2 {
  margin: 0;
}

.carousel-controls__hint {
  font: 600 12px var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: var(--space-2);
}

.carousel-progress__more {
  font: 600 12px var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
}

.carousel-controls__btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-on-dark);
  background: transparent;
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.carousel-controls__btn:hover {
  border-color: var(--brand-red-bright);
  background: rgba(232, 39, 46, 0.12);
}

.carousel-controls__btn--primary {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.carousel-controls__btn--primary:hover {
  background: var(--brand-red-deep);
  border-color: var(--brand-red-deep);
}

.services-carousel {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 4px 0 var(--space-4);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0;
  cursor: grab;
}

/* Počas ťahania myšou: snap by sa bil s priamym posúvaním scrollLeft
   a výber textu/ťahanie obrázkov by rušili gesto. */
.services-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.services-carousel.is-dragging img {
  pointer-events: none;
}

/* Keď sa karty zmestia bez posúvania (šípky sú skryté), vycentrujú sa. */
.services-carousel.is-static {
  justify-content: center;
}

.services-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  position: relative;
  flex: none;
  width: 340px;
  height: 460px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1.5px solid var(--border-on-dark);
  scroll-snap-align: start;
}

.carousel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.carousel-card:hover img {
  transform: scale(1.06);
}

.carousel-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 11, 0) 30%,
    rgba(8, 9, 11, 0.72) 62%,
    rgba(8, 9, 11, 0.98) 100%
  );
  pointer-events: none;
}

.carousel-card__body {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 30px;
  pointer-events: none;
}

.carousel-card__number {
  display: block;
  font: 800 30px var(--font-head);
  color: var(--brand-red-bright);
  margin-bottom: var(--space-2);
}

.carousel-card__title {
  display: block;
  font: 700 26px/1.05 var(--font-head);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: var(--space-2);
}

.carousel-card__text {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-on-dark-soft);
}

.carousel-progress {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 6px 0 0;
  padding-right: var(--space-6);
}

.carousel-progress__track {
  flex: 1;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.carousel-progress__fill {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--brand-red-bright);
  border-radius: var(--radius-pill);
  transition: width 0.25s ease;
}

.carousel-progress__count {
  font: 700 13px var(--font-head);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------- Stavebná činnosť: Európa + štatistiky ---------- */

.europe-stats {
  position: relative;
  background: var(--surface);
  padding: var(--space-8) var(--pad-x) var(--space-7);
  overflow-x: clip;
  margin: var(--space-7) 0 0;
}

/* Ľavá vlna nad sekciou sa natiahne až do polovice jej šírky
   (SVG má preserveAspectRatio="none", takže sa roztiahne bez deformácie výšky).
   Platí len na šablóne Stavebná činnosť — inde ostáva pevná šírka SVG. */
.page-template-page-stavebna-cinnost .europe-stats > .section-divider--left,
.page-template-page-stavebna-cinnost .cta-contact > .section-divider--left {
  width: 50%;
}

.page-template-page-stavebna-cinnost .europe-stats > .section-divider--left svg,
.page-template-page-stavebna-cinnost .cta-contact > .section-divider--left svg {
  width: 100%;
}

.europe-stats__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-6);
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.europe-stats__copy h2 {
  color: var(--text-primary);
}

.europe-stats__copy p {
  max-width: 420px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}

.europe-stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.europe-stats__glow {
  position: absolute;
  left: -70px;
  bottom: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    closest-side,
    rgba(215, 25, 32, 0.4),
    rgba(215, 25, 32, 0.15) 55%,
    transparent 75%
  );
  border-radius: 58% 42% 47% 53% / 55% 48% 52% 45%;
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
  animation: glow-drift 16s ease-in-out -9s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .about-split__glow,
  .europe-stats__glow {
    animation: none;
  }
}

.europe-stats__map {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}

.stat-card {
  position: relative;
  z-index: 1;
  grid-column: span 2;
  border-radius: var(--radius-card);
  padding: var(--space-5) var(--space-5);
}

.stat-card:nth-of-type(1) {
  background: var(--ink-850);
}

.stat-card:nth-of-type(2) {
  background: linear-gradient(115deg, #fff, #f5f2ec);
  border: 1.5px solid var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.stat-card__value {
  font: 800 66px/1 var(--font-head);
  color: var(--brand-red-bright);
}

.stat-card:nth-of-type(2) .stat-card__value {
  color: var(--text-primary);
}

.stat-card__label {
  font-size: 14.5px;
  color: var(--text-on-dark-soft);
  margin-top: var(--space-2);
}

.stat-card:nth-of-type(2) .stat-card__label {
  color: var(--text-secondary);
}

.stat-card__corner {
  position: absolute;
  top: 24px;
  right: 26px;
  color: var(--text-on-dark);
  opacity: 0.5;
}

.stat-card__iconbox {
  flex: none;
  width: 66px;
  height: 66px;
  border-radius: var(--radius-icon-lg);
  background: var(--brand-red);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(215, 25, 32, 0.32);
}

.stat-card__meta {
  margin-left: auto;
  text-align: right;
  max-width: 210px;
}

.stat-card__title {
  font: 700 20px var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.stat-card__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- Certifikácie ---------- */

.cert-marquee {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--ink-850),
    var(--brand-red-deep),
    var(--ink-850)
  );
  padding: 50px 0;
  overflow: hidden;
}

.cert-marquee--red {
  background: var(--brand-red);
  padding: var(--space-4) 0;
  top: -1px;
}

.cert-marquee__track {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 8px 16px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
  color: var(--text-on-dark);
  font: 700 16px var(--font-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .cert-marquee__track {
    flex-wrap: wrap;
    white-space: normal;
  }
}

.cert-marquee__dot {
  opacity: 0.55;
}

@media (max-width: 1200px) {
  .kontakt-info__inner,
  .cta-contact__inner,
  .about-split__inner,
  .career-cta__inner,
  .europe-stats__inner {
    grid-template-columns: 1fr;
  }

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

  .service-tile--featured {
    grid-column: span 2;
  }

  .icon-card--highlighted {
    grid-column: span 2;
  }

  .blog-featured__card {
    grid-template-columns: 1fr;
  }

  .blog-featured__body {
    padding: var(--space-5);
  }
  .career-cta {
    padding: var(--space-7) var(--pad-x) 10rem;
  }

  .service-tile--featured .service-tile__title {
    font-size: 26px;
  }
}

@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .site-header__panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-6);
    position: fixed;
    inset: 0;
    padding: var(--space-8) var(--pad-x);
    background: var(--ink-900);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 15;
  }

  .site-header__panel.is-open {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    gap: var(--space-4);
  }

  .site-nav__list a {
    font-size: 22px;
  }

  .lang-switcher {
    margin-top: var(--space-2);
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 44px;
  }

  .services {
    grid-template-columns: repeat(2, 330px);
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    width: 330px;
    margin: 0 auto;
  }

  .page-wrap--with-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  .site-header {
    flex-wrap: wrap;
  }

  body.page-template-page-homepage .site-header,
  body.page-template-page-kontakt .site-header,
  body.page-template-page-blog .site-header,
  body.page-template-page-pre-subdodavatelov .site-header,
  body.page-template-page-priemyselna-divizia .site-header,
  body.page-template-page-stavebna-cinnost .site-header,
  body.single .site-header {
    padding-top: var(--space-4);
  }

  .homepage {
    padding-top: 160px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:last-child {
    width: 100%;
    max-width: 330px;
    height: auto;
    aspect-ratio: 330 / 460;
    margin: 0 auto;
  }

  .services-grid,
  .culture-grid,
  .blog-grid,
  .europe-stats__grid,
  .site-footer__columns {
    grid-template-columns: 1fr;
  }

  .service-tile--featured {
    grid-column: span 1;
    flex-direction: column;
  }

  .service-tile--featured .service-tile__media {
    width: 100%;
    height: 200px;
  }

  .service-tile--featured .service-tile__title {
    font-size: 24px;
  }

  .icon-card--highlighted {
    grid-column: span 1;
  }

  .about-split .icon-card:nth-child(2) {
    margin-left: 0;
  }

  .stat-card {
    grid-column: span 1;
  }

  .page-hero {
    padding-top: 112px;
  }
  .page-template-page-stavebna-cinnost .page-hero {
    padding: 100px var(--pad-x) 5rem;
  }
  .article-hero {
    padding-top: 112px;
  }
  .page-hero__inner {
    padding: 0;
  }
  .page-hero__media {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent,
      #000 1ex,
      #000 calc(100% - 5ex),
      transparent
    );
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 5ex,
      #000 calc(100% - 5ex),
      transparent
    );
  }
}

@media (max-width: 560px) {
  .site-header__logo,
  .custom-logo {
    height: 15px;
  }

  .service-tile--featured .service-tile__title {
    font-size: 20px;
  }

  .search-form {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .kontakt-info__cards,
  .cta-contact__inner,
  .sub-form-card {
    gap: var(--space-3);
  }

  .article-hero__meta {
    flex-wrap: wrap;
    justify-content: center;
  }
  .career-cta {
    padding: var(--space-7) var(--pad-x) 6rem;
  }
}
