/* ==========================================================================
   3Energy — Static Template (HTML/CSS/JS)
   ========================================================================== */

:root {
  --background: #ffffff;
  --foreground: #2d3748;
  --primary: #99C538;
  --primary-foreground: #ffffff;
  --secondary: #4a5568;
  --muted: #f9fafb;
  --border: rgba(0, 0, 0, 0.1);
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul:not(.check-list) {
  padding-left: 40px;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(14px, 0.5vw + 10px, 19px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--background);
  color: var(--gray-900);
  overflow-x: hidden;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

.container-fluid {
  width: 100%;
}
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding-inline: 2.5rem;
}
@media (min-width: 1024px) {
  .hero .container { 
    padding-inline: 2.5rem;
  }
}

.text-primary { color: var(--primary); }

.icon {
  width: 20px;
  height: 20px;
  color: currentColor;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 40px; height: 40px; }

.flex {
  display: flex;
}
.flex-end {
  justify-content: flex-end;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.flex-1 { flex: 1 1 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.text-bold {
  font-weight: bold;
}

.pi-0 {
  padding-inline: 0;
}
.pbl-2rem {
  padding-block: 2rem !important;
}

#progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  z-index: 160;
  transform-origin: 0 50%;
  animation: progressBar 0.5s ease forwards;
  animation-timeline: scroll();
}
@keyframes progressBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: #76a420;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.btn--white {
  background: #fff;
  color: var(--gray-900);
}
.btn--white:hover { background: var(--gray-100); }

.btn--ghost-primary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--ghost-primary:hover {
  background: var(--primary);
  color: #fff;
}
.step-back {
  margin-bottom: 1rem;
}

.btn--block { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  line-height: 1.4;
  text-transform: uppercase;
}
.badge--lg {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  transition: all 0.3s ease;
  /* background: transparent; */
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px);
}
.navbar.is-scrolled,
.navbar__submenu.is-scrolled {
  /* background: #fff; */
  background: rgba(0, 0, 0, 0.5);
}

/* CSS-only fallback for the scroll-position background swap above: .navbar__submenu lives outside
   #navbar (see header.php) so a `.navbar.is-scrolled .navbar__submenu` descendant selector can't reach
   it — this ties both elements to the document scroll offset directly, no shared ancestor needed.
   Browsers without scroll-driven animation support just ignore it and keep relying on js.js. */
@keyframes navbar-bg-on-scroll {
  from { background: rgba(0, 0, 0, 0.2); }
  to { background: rgba(0, 0, 0, 0.5); }
}
.navbar,
.navbar__submenu {
  animation: navbar-bg-on-scroll linear both;
  animation-timeline: scroll(root);
  animation-range: 49px 50px;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.2rem;
  padding-inline: 2.5rem;
}

.navbar__logo img,
.footer__logo {
  height: 2rem;
  transition: all 0.3s ease;
}
.navbar__logo img {
  height: 1.7rem;
}
@media (min-width: 768px) {
  .footer__logo { height: 2.25rem; }
}

.navbar__menu {
  display: none;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .navbar__menu { display: flex; }
}

.navbar__link {
  position: relative;
  font-size: 0.9375rem;
  /* font-weight: 600; */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}
/* .navbar.is-scrolled .navbar__link { color: var(--gray-900); } */
.navbar__link:hover { color: var(--primary); }

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.navbar__link:hover::after { width: 100%; }

/* Desktop submenu (mega menu) */
.navbar__submenu {
  display: none;
  position: fixed;
  top: 4.1rem; /* fallback offset (~navbar height); JS overrides with an exact px value once it runs */
  left: 0;
  width: 100%;
  z-index: 149;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: background 0.3s ease, opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
@media (min-width: 1024px) {
  .navbar__submenu { display: block; }
}
.navbar.is-scrolled .navbar__submenu {
  background: rgba(0, 0, 0, 0.5);
}
.navbar__submenu.is-open,
.navbar__submenu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__submenu-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding-block: 2rem;
}

.navbar__submenu-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 90px;
  color: #fff;
  font-size: 0.95rem;
  /* font-weight: 600; */
  text-transform: uppercase;
  text-align: center;
  transition: color 0.3s ease;
}
.navbar__submenu-link:hover { color: var(--primary); }

.navbar__submenu-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.navbar__actions {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .navbar__actions { display: flex; }
}

.navbar__toggle {
  display: block;
  background: none;
  border: none;
  padding: 0.75rem;
  color: #fff;
}
/* .navbar.is-scrolled .navbar__toggle { color: var(--gray-900); } */
@media (min-width: 1024px) {
  .navbar__toggle { display: none; }
}
.hidden { display: none !important; }

/* CSS-only fallback: keeps the submenu openable on hover even if js.js fails/errors, since the link and its submenu aren't DOM siblings (see comment above) and :has() is the only way to bridge them */
body:has(.navbar__link[data-submenu="<?= (int)$navItem['id'] ?>"]:hover) .navbar__submenu[data-submenu-id="<?= (int)$navItem['id'] ?>"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
}
.lang-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  padding-right: 0;
  transition: color 0.3s ease;
}
/* .navbar.is-scrolled .lang-dropdown__trigger { color: var(--gray-900); } */
.lang-dropdown__trigger:hover { color: var(--primary); }

.lang-dropdown__content {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gray-200);
  display: none;
  flex-direction: column;
  z-index: 60;
}
.lang-dropdown.is-open .lang-dropdown__content { display: flex; }
.lang-dropdown__content--up { top: auto; bottom: calc(100% + 0.5rem); }
.lang-dropdown__content--left { right: auto; left: 0; }

.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--gray-900);
}
.lang-dropdown__item:hover { background: rgba(134, 188, 37, 0.1); }
.lang-code { font-weight: 700; color: var(--primary); }
.lang-code, .lang-current { text-transform: uppercase; }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  background: #fff;
  padding: 2.5rem 2rem;
}
.mobile-menu.is-open { 
  display: flex;
  overflow-y: auto;
  max-height: 80vh;
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-900);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  text-transform: uppercase;
}
.mobile-menu__link:hover { color: var(--primary); }

.mobile-menu__item { border-bottom: 1px solid var(--gray-200); }
.mobile-menu__item .mobile-menu__link--toggle { border-bottom: none; }

.mobile-menu__link--toggle {
  width: 100%;
  background: none;
  border: none;
  justify-content: space-between;
  text-align: left;
}

.mobile-menu__chevron { transition: transform 0.3s ease; }
.mobile-menu__item.is-open .mobile-menu__chevron { transform: rotate(180deg); }

.mobile-menu__submenu {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu__item.is-open .mobile-menu__submenu { max-height: 1000px; }

.mobile-menu__sublink {
  padding: 0.6rem 0 0.6rem 1rem;
  color: var(--gray-900);
  font-size: 1.05rem;
  font-weight: 500;
}
.mobile-menu__sublink:hover { color: var(--primary); }

.lang-dropdown--mobile { width: 100%; }
.lang-dropdown__trigger--mobile {
  width: 100%;
  justify-content: space-between;
  background: var(--gray-50);
  color: var(--gray-900);
  padding: 0.75rem 1rem;
}
.lang-dropdown__trigger--mobile:hover { background: var(--gray-100); }
.lang-dropdown__trigger-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.lang-dropdown--mobile .lang-dropdown__content {
  position: static;
  width: 100%;
  margin-top: 0.25rem;
}

main .content {
  padding: 50px 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
  line-height: 1.1;
  padding: 0;
}

.hero--page { height: 70vh; min-height: 600px; } /* height: 90vh */

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 177.77vh;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 3s;
  
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3));
}

.hero-slider { position: absolute; inset: 0; }
.hero-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}


.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.hero__scroll:hover { color: var(--primary); }
.hero__scroll .icon { animation: heroScrollBounce 1.8s ease-in-out infinite; }

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 17.5rem; /* 2.5rem */
}

/* .hero__text { max-width: 80%; } */

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .hero__title { font-size: 3.5rem; } }
@media (min-width: 768px) { .hero__title { font-size: 4rem; } }
@media (min-width: 1280px) { .hero__title { font-size: 5.5rem; } }

.hero__subtitle {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--primary-foreground);
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .hero__subtitle { font-size: 2rem; } }
@media (min-width: 768px) { .hero__subtitle { font-size: 2.5rem; } }

.hero__subtitle--date {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; }
}

/* ==========================================================================
   Section shared
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 2px;
  background: var(--primary);
}
.eyebrow span {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .section-title { font-size: 4rem; } }
.section-title .text-primary {
  font-weight: 300;
  font-style: italic;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-900);
  max-width: 48rem;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.lead {
  color: var(--gray-900);
  font-size: 1.125rem;
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: 0;
}
.about__text,
.about__desc {
  padding-block: 4rem;
  background: #fff;
  overflow: hidden;
  padding-inline: 2.5rem;
  min-height: 100%;
  
}
.about__text {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding-block: 8rem 2rem;
}
.about__text .section-title {
  font-weight: normal;
  font-size: 3rem;
}
.about__desc * {
  color: #fff !important;
}

.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: self-start;
}
.about__desc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/i/mainfoto/cb-hella.jpg");
  background-position: center;
  background-size: cover;
  /* -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2)); */
  pointer-events: none;
}
.about__desc::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(134, 188, 37, 0.4), rgba(134, 188, 37, 0.8));
  pointer-events: none;
}
.about,
.about__desc {
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: minmax(0, 620px) 1fr;
    /* gap: 4rem; */
  }
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-900);
  font-size: 1.125rem;
  font-weight: 500;
}
.check-list li a { display: flex; align-items: center; gap: 0.75rem; color: inherit; }
.check-list li a:hover { color: var(--primary); }
.check-list--grid { display: grid; grid-template-columns: 1fr; gap: 1rem 2rem; margin-bottom: 0; }
@media (min-width: 768px) { .check-list--grid { grid-template-columns: repeat(2, 1fr); } }
.icon--check { color: var(--primary); flex-shrink: 0; }

.about__collage {
  position: relative;
  height: 460px;
}
@media (min-width: 1024px) {
  .about__collage { height: 820px; }
}

.collage__img {
  position: absolute;
  overflow: hidden;
}
.collage__img img { width: 100%; height: 100%; object-fit: cover; }

.collage__img--1 { top: 0; right: 0; width: 60%; height: 70%; z-index: 10; }
.collage__img--2 { bottom: 0; left: 0; width: 48%; height: 44%; z-index: 20; }
.collage__img--3 { top: 8%; left: 2%; width: 38%; height: 34%; z-index: 15; }

.collage__accent {
  position: absolute;
  top: 0;
  left: 37%;
  width: 4rem;
  height: 4rem;
  background: var(--primary);
  z-index: 1;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 8rem;
}
@media (min-width: 1024px) {
  .benefits { grid-template-columns: repeat(4, 1fr); }
}
.benefit { text-align: center; }
.benefit__value { font-size: 2.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.benefit__label { color: var(--gray-900); font-size: 0.875rem; }

.logos-slider {
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
}
.logos-slider::before,
.logos-slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5rem;
  z-index: 2;
  pointer-events: none;
}
.logos-slider::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.logos-slider::after { right: 0; background: linear-gradient(to left, #fff, transparent); }

.logos-slider__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logosSliderScroll 30s linear infinite;
}
.logos-slider:hover .logos-slider__track { animation-play-state: paused; }

.logos-slider__item {
  flex: 0 0 auto;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}
.logos-slider__item img {
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.logos-slider__item img:hover {
  filter: grayscale(0);
  opacity: 1;
}

@keyframes logosSliderScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services { padding: 0; }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}

.service-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  cursor: pointer;
}
.service-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1);
  transition: all 0.7s ease;
  filter: grayscale(0) brightness(0.75);
}
.service-card:hover .service-card__img {
  transform: scale(1.1);
  filter: grayscale(1) brightness(1);
}
.service-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  /* background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4) 50%, transparent); */
  transition: background 0.5s ease;
}
/* .service-card:hover .service-card__overlay { background: rgba(0, 0, 0, 0.7); } */

.service-card__body {
  position: absolute;
  inset: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}
.service-card__title { font-size: 1.875rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }

.service-card__desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.service-card:hover .service-card__desc { max-height: 24rem; }
.service-card__desc p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ==========================================================================
   Projects
   ========================================================================== */

.projects { padding: 8rem 0; background: #fff; }

.featured-project {
  display: block;
  position: relative;
  height: 600px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 3rem;
}
.featured-project__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.featured-project:hover .featured-project__img { transform: scale(1.05); }
.featured-project__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4) 50%, transparent);
}
.featured-project__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem;
  max-width: 48rem;
}
.featured-project__title { font-size: 3rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.featured-project__desc { color: rgba(255,255,255,0.9); font-size: 1.25rem; margin-bottom: 1.5rem; }

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .projects__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .projects__grid { grid-template-columns: repeat(3, 1fr); } }

.projects-slider-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.projects-filter {
  position: sticky;
  top: 76px;
  z-index: 10;
  background: #fff;
  margin-bottom: 3rem;
}
.projects-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--gray-200);
}
.projects-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding: 0.75rem 1.25rem;
  color: var(--gray-900);
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.projects-filter__btn:hover { color: var(--primary); }
.projects-filter__btn.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.project-card.is-hidden,
.projects-year-block.is-hidden { display: none; }

.projects-year-block { margin-bottom: 3rem; }

.projects-year__label {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}
.projects-year__label,
.profile-text h1:not(:is(div.section-header h1, .eyebrow ~ h1)),
.profile-text h2:not(:is(div.section-header h2, .eyebrow ~ h2)),
.profile-text h3:not(:is(div.section-header h3, .eyebrow ~ h3)),
.profile-text h4:not(:is(div.section-header h4, .eyebrow ~ h4)) {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.projects-year__label:not(:empty)::before,
.profile-text h1:not(:is(div.section-header h1, .eyebrow ~ h1))::before,
.profile-text h2:not(:is(div.section-header h2, .eyebrow ~ h2))::before,
.profile-text h3:not(:is(div.section-header h3, .eyebrow ~ h3))::before,
.profile-text h4:not(:is(div.section-header h4, .eyebrow ~ h4))::before {
  content: '';
  width: 0.5rem;
  height: 2.25rem;
  background: var(--primary);
}

.projects-year-block__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-card.project-card--featured { height: 320px; }
.project-card.project-card--mini { height: 200px; }
.project-card--mini .project-card__body { padding: 0.85rem 1rem; }
.project-card--mini .project-card__title { font-size: 0.9375rem; margin-bottom: 0; }
.project-card--mini .card__link { display: none; }

@media (min-width: 768px) {
  .projects-year-block__row {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 288px;
    gap: 1.5rem;
  }
  .project-card.project-card--featured {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
  }
  .project-card.project-card--mini { height: 100%; }
}

.slider-nav-group--vertical { flex-direction: column; }
@media (max-width: 1023px) { .slider-nav-group--vertical { display: none; } }

.slider-track--vertical {
  flex: 1 1 0%;
  min-width: 0;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: visible;
  scroll-snap-type: none;
}
.slider-track--vertical .slider-track__item { width: 100%; scroll-snap-align: start; }
@media (min-width: 1024px) {
  .slider-track--vertical {
    max-height: 900px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    padding-right: 1rem;
  }
}

.project-card {
  display: block;
  position: relative;
  height: 400px;
  overflow: hidden;
  cursor: pointer;
}
.project-card__img { width: 100%; height: 100%; object-fit: cover; transition: 0.7s ease; }
.project-card:hover .project-card__img { transform: scale(1.1); filter: grayscale(1) brightness(0.75); }
.project-card::after,
.service-card:after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(134, 188, 37, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.service-card:hover:after { opacity: 1; }
.service-card:after { 
  opacity: 0;
  background: rgba(134, 188, 37, 0.4); 
}
.project-card:hover::after { opacity: 1; }
.project-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4) 50%, transparent);
}
.project-card__body { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; padding: 1.5rem; }
.project-card__title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.card__link,
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.card__link.dark,
.link.dark {
  color: var(--gray-900);
}
.project-card:hover .card__link,
.news-card:hover .card__link,
.link:hover { color: var(--primary); }

/* ==========================================================================
   News
   ========================================================================== */

.news { padding: 8rem 0; }

.news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .news__grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  cursor: pointer;
  transition: all 0.5s ease;
  background: var(--gray-50);
}
.mutted-section .news-card {
  background: #fff;
}
.news-card:hover { transform: scale(1.02); }

.news-card__img-wrap { position: relative; height: 16rem; overflow: hidden; }
.news-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.news-card:hover .news-card__img { transform: scale(1.1); }
.news-card__date {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.95);
  padding: 0.5rem 1rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}
.news-card__body { padding: 2rem; }
.news-card__title { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; transition: color 0.3s ease; }
.news-card:hover .news-card__title { color: var(--primary); }
.news-card__excerpt { color: var(--gray-900); font-size: 1rem; line-height: 1.6; margin-bottom: 1.5rem; }

.news-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 5rem;
  cursor: pointer;
}
@media (min-width: 768px) {
  .news-top { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 3rem; }
}
.news-top__media { position: relative; overflow: hidden; height: 20rem; }
@media (min-width: 768px) { .news-top__media { height: 100%; min-height: 24rem; } }
.news-top__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.news-top:hover .news-top__img { transform: scale(1.05); }
.news-top__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}
.news-top__date { color: var(--gray-600); font-size: 0.875rem; font-weight: 600; }
.news-top__title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--gray-900); transition: color 0.3s ease; }
.news-top:hover .news-top__title { color: var(--primary); }
.news-top__excerpt { color: var(--gray-600); font-size: 1rem; line-height: 1.6; }

.news-category { margin-bottom: 5rem; }
.news-category:last-child { margin-bottom: 0; }

.news-category__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.news-category__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}
@media (min-width: 768px) { .news-category__title { font-size: 2.25rem; } }

.slider-nav-group { display: flex; gap: 0.75rem; flex-shrink: 0; }
.slider-nav-group.is-hidden { display: none; }
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-900);
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-nav:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.slider-nav.is-disabled { opacity: 0.35; pointer-events: none; }

.slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1px;
  padding-bottom: 0.5rem;
  margin: 0;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }

.slider-track__item {
  flex: 0 0 auto;
  width: 85%;
  scroll-snap-align: start;
}
.slider-track__item.cert-gallery__item { width: 48%; }
@media (min-width: 640px) { 
  .slider-track__item { width: 60%; }
  .slider-track__item.cert-gallery__item { width: 31.7%; }
}
@media (min-width: 1024px) { 
  .slider-track__item { width: 32%; } 
  .slider-track__item.cert-gallery__item { width: 23.6%; }
}

.slider-controls-row { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }

/* ==========================================================================
   Career
   ========================================================================== */

.career { padding: 8rem 0; background: #fff; }

.career__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .career__grid { grid-template-columns: 1fr 1fr; } }

.job-card {
  padding: 2rem;
  background: var(--gray-50);
  /* border: 1px solid var(--gray-200); */
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
}
.job-card__content {
  flex-grow: 1;
}
.job-card:hover { transform: scale(1.02); }

.job-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-bottom: 10px;
}
.job-card__title { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); transition: color 0.3s ease; }
.job-card:hover .job-card__title { color: var(--primary); }
.job-card__type {
  background: rgba(134, 188, 37, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}
.job-card__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-900);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.job-card__desc { color: var(--gray-900); font-size: 1rem; margin-bottom: 1.5rem; }

.career-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.career-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  border: 1px solid var(--gray-200);
  color: var(--gray-900);
  font-weight: 600;
  transition: all 0.3s ease;
}
.career-pagination__link:hover { border-color: var(--primary); color: var(--primary); }
.career-pagination__link.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.career-pagination__link.is-disabled { color: var(--gray-200); border-color: var(--gray-200); pointer-events: none; }

/* Career — intro / benefits (playful style) */
.career-intro { padding: 6rem 0; }

.benefit-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px) { .benefit-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefit-tiles { grid-template-columns: repeat(4, 1fr); } }

.benefit-tile {
  background: #fff;
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: transform 0.35s ease;
}
.benefit-tile:hover { transform: translateY(-0.5rem) rotate(-0.75deg); }

.benefit-tile__icon {
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(134, 188, 37, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-tile__icon .icon { width: 1.75rem; height: 1.75rem; }

.benefit-tile__title { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.5rem; }
.benefit-tile__text { color: var(--gray-900); font-size: 1rem; line-height: 1.5; }

/* Career — job listing photo panel */
.career__photo-panel {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) { .career__photo-panel { padding: 4rem; } }

.career__photo-panel-media { position: absolute; inset: 0; }
.career__photo-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.05);
}
.career__photo-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(134, 188, 37, 0.88), rgba(17, 24, 39, 0.78));
  mix-blend-mode: multiply;
}
.career__photo-panel-accent {
  position: absolute;
  top: -1.5rem;
  left: 2rem;
  width: 4rem;
  height: 4rem;
  background: var(--primary);
  z-index: 1;
}

.job-card--onphoto {
  position: relative;
  z-index: 1;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.job-card--onphoto .job-card__title,
.job-card--onphoto:hover .job-card__title { color: #fff; }
.job-card--onphoto .job-card__type { background: rgba(255, 255, 255, 0.18); color: #fff; }
.job-card--onphoto .job-card__location { color: rgba(255, 255, 255, 0.75); }
.job-card--onphoto .job-card__desc { color: rgba(255, 255, 255, 0.85); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-panel { padding-block: 1rem; }

.contact-location { margin-bottom: 5rem; }
.contact-location:last-child { margin-bottom: 0; }

.contact-location__header {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
	align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
  position: sticky;
  top: 85px;
}
.contact-location__title { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); }
.contact-location__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(134, 188, 37, 0.12);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
}

.contact-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-group {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gray-50);
  /* border: 1px solid var(--gray-200); */
}
.contact-group__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-group__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); font-weight: 700; margin-bottom: 0.4rem; }
.contact-group__body p { color: var(--gray-900); font-size: 1rem; line-height: 1.6; margin: 0; }
.contact-group__body p a:hover { color: var(--primary); }

.contact-location__map { margin-bottom: 2.5rem; overflow: hidden; }
.contact-location__map iframe { display: block; width: 100%; height: 320px; border: 0; }

.contact-staff__heading { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; }

.contact-staff {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.staff-card { padding: 1.5rem; background: var(--gray-50); }
.staff-card__dept { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); font-weight: 700; margin-bottom: 0.6rem; }
.staff-card__name { font-weight: 700; color: var(--gray-900); margin-bottom: 0.2rem; }
.staff-card__role { color: var(--gray-900); font-size: 1rem; margin-bottom: 0.9rem; line-height: 1.4; }
.staff-card__contact { display: flex; align-items: center; gap: 0.5rem; color: var(--gray-900); font-size: 1rem; margin-bottom: 0.4rem; }
.staff-card__contact:last-child { margin-bottom: 0; }
.staff-card__contact:hover { color: var(--primary); }
.staff-card__contact .icon { flex-shrink: 0; color: var(--primary); }

.contact-2col-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 1024px) {
  .contact-2col-top { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.contact-2col-top .contact-location__top {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.contact-2col-top .contact-location__top .contact-location__map {
  /* margin-top: auto; */
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--gray-950);
  color: #fff;
  padding: 4rem 0;
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }

.footer__logo { margin-bottom: 0.8rem; }
.footer__desc { color: var(--gray-400); line-height: 1.6; margin-bottom: 1.5rem; }

.footer__social { display: flex; gap: 0.75rem; }
.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.social-icon:hover { background: var(--primary); transform: scale(1.1); }

.footer__heading { font-weight: 700; margin-bottom: 1.5rem; font-size: 1.125rem; }
.footer__col p { color: var(--gray-400); margin-bottom: 0.5rem; }
.footer__strong { color: #fff; font-weight: 600; }
.footer__email { display: block; color: var(--gray-400); margin-top: 0.75rem; transition: color 0.3s ease; }
.footer__email:hover { color: var(--primary); }
.footer__gps { font-size: 0.875rem; margin-top: 0.75rem; }

.footer__bottom { border-top: 1px solid var(--gray-800); padding: 2rem 0 1rem; }
.footer__bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .footer__bottom-row { flex-direction: row; justify-content: space-between; }
}

.lang-dropdown__trigger--footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  border: 1px solid var(--gray-800);
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.05);
}
.lang-dropdown__trigger--footer:hover { color: var(--primary); border-color: var(--primary); }
.lang-dropdown__content--dark {
  background: rgba(17, 24, 39, 0.97);
  border-color: var(--gray-800);
}
.lang-dropdown__content--dark .lang-dropdown__item { color: var(--gray-200); }
.lang-dropdown__content--dark .lang-dropdown__item:hover { background: rgba(134, 188, 37, 0.2); }

.footer__legal { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.footer__legal a { color: var(--gray-400); transition: color 0.3s ease; }
.footer__legal a:hover { color: var(--primary); }

.footer__copy { color: var(--gray-400); font-size: 0.875rem; text-align: center; }

/* ==========================================================================
   Company Profile (O nás)
   ========================================================================== */

.profile-header { padding: 6rem 0 2rem; background: #fff; }

.profile-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}
@media (min-width: 1024px) { .profile-hero { grid-template-columns: 1.1fr 1fr; } }

.profile-hero__text p:not(.lead) { font-size: 1.125rem; color: var(--gray-900); line-height: 1.75; margin-bottom: 1.25rem; }

.profile-hero__media, .profile-text div:has(>img) { position: relative; }
.profile-hero__media::before, .profile-text div:has(>img)::before {
  content: '';
  position: absolute;
  left: -1rem;
  bottom: -1rem;
  width: 4rem;
  height: 4rem;
  background: var(--primary);
  z-index: 0;
}
.profile-text div>img { position: relative; z-index: 1;}
.profile-hero__media-inner { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 3 / 2; }
.profile-hero__media-inner img { width: 100%; height: 100%; object-fit: cover; }

.profile-section { padding: 8rem 0; }
.section--muted { background: var(--gray-50); }

.profile-text { max-width: 60rem; margin-block: 3rem; }
.profile-text.profile-section {
  margin-block: 0;
}
.profile-text.subpage {
  max-width: none;
}
.profile-text p, .profile-text ul { color: var(--gray-900); font-size: 1.125rem; line-height: 1.75; margin-bottom: 1.25rem; }

.profile-text h1, .profile-text h2, .profile-text h3, .profile-text h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--gray-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.profile-text h1:first-child, .profile-text h2:first-child, .profile-text h3:first-child, .profile-text h4:first-child { margin-top: 0; }
.profile-text h1 { font-size: 2.25rem; }
.profile-text h2 { font-size: 1.875rem; }
.profile-text h3 { font-size: 1.5rem; font-weight: 700; }
.profile-text h4 { font-size: 1.1875rem; font-weight: 700; }

.article-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .article-detail { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; }
  .article-detail__media { position: sticky; top: 7rem; }
}

.article-detail__media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.article-detail__photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
}
.article-detail__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-detail__photo:hover img { transform: scale(1.05); }

.philosophy-statement {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-900);
  /* max-width: 56rem; */
  margin-bottom: 3.5rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 640px) { .leadership-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .leadership-grid { grid-template-columns: repeat(4, 1fr); } }

.leadership-card__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--gray-100);
  border: 1px dashed var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-200);
  margin-bottom: 1rem;
}
.leadership-card__photo svg { width: 2.5rem; height: 2.5rem; }
.leadership-card__photo::after {
  content: 'Fotografia';
  position: absolute;
  bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
}
.leadership-card__name { font-weight: 700; color: var(--gray-900); }
.leadership-card__role { color: var(--gray-900); font-size: 1rem; }

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
  padding: 2rem;
  background: var(--gray-50);
}
@media (min-width: 640px) { .project-meta { grid-template-columns: repeat(4, 1fr); } }
.project-meta__item { display: flex; flex-direction: column; gap: 0.375rem; }
.project-meta__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); }
.project-meta__value { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); }

.pull-quote {
  position: relative;
  border-left: 4px solid var(--primary);
  padding: 0.5rem 0 0.5rem 3rem;
  margin: 4rem 0 2rem;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-900);
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  left: 0.75rem;
  top: -1.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .focus-grid { grid-template-columns: repeat(2, 1fr); } }

.focus-card { padding: 2rem; background: #fff; background: var(--gray-50); }
.focus-card__title { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1.25rem; }
.focus-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.focus-card li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-900);
  font-weight: 500;
  transition: color 0.3s ease;
}
.focus-card li a:hover { color: var(--primary); }
.focus-card li span { color: var(--gray-900); font-weight: 500; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cert-grid { grid-template-columns: repeat(4, 1fr); } }

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.75rem 1rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  transition: border-color 0.3s ease;
}
.cert-card:hover { border-color: var(--primary); }
.cert-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(134, 188, 37, 0.1);
  color: var(--primary);
}
.cert-card__icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-card__name { font-size: 0.9375rem; font-weight: 600; color: var(--gray-900); }
.cert-note { color: var(--gray-900); font-size: 0.875rem; margin-top: 2rem; text-align: center; }

.video { position: relative; padding-top: 56.25%; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Subpages navigation (generic {SUBPAGES} pages, e.g. Služby) */
.subpages-tabs {
  position: sticky;
  top: 76px;
  z-index: 10;
  background: #fff;
  /* margin-bottom: 3rem; */
}
.subpages-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--gray-200);
}
.subpages-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding: 0.75rem 1.25rem;
  color: var(--gray-900);
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.subpages-tabs__btn:hover { color: var(--primary); }
.subpages-tabs__btn.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.subpage-block { scroll-margin-top: 7rem; padding-top: 3rem; }
.subpage-block + .subpage-block {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--gray-200);
}

.subpage-block__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.cert-gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}
.cert-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cert-gallery__item:hover img { transform: scale(1.06); }
.cert-gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cert-gallery__item:hover .cert-gallery__zoom { opacity: 1; }
.cert-gallery__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.doc-list {
  display: grid; 
  grid-template-columns: repeat(1, 1fr);
  flex-direction: column; 
  gap: 0.75rem; 
  margin-top: 3rem; 
}
@media (min-width: 640px) {
  .doc-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .doc-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.doc-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--gray-900);
  font-weight: 500;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.doc-list__item:hover { border-color: var(--primary); color: var(--primary); }
.doc-list__item span:last-child { color: var(--gray-400); font-size: 0.8125rem; flex-shrink: 0; }
.doc_extension { text-transform: uppercase; }

.hr-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem;
  background: var(--gray-950);
  color: #fff;
}
@media (min-width: 768px) { .hr-card { grid-template-columns: 1.3fr 1fr; } }
.hr-card__title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; }
.hr-card__text { color: var(--gray-400); line-height: 1.7; }
.hr-card__contact { display: flex; flex-direction: column; gap: 0.5rem; }
.hr-card__contact strong { font-size: 1.0625rem; }
.hr-card__contact span { color: var(--gray-400); font-size: 1rem; }
.hr-card__contact a { color: #fff; }
.hr-card__contact a:hover { color: var(--primary); }

/* ==========================================================================
   Scroll-reveal animations
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal--left { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }

.reveal.is-visible,
.cke_editable .reveal {
  opacity: 1;
  transform: translate(0, 0);
}

/* FOTOGALERIA */
.fotogaleria {
    width: 100%;
    padding-inline: 0;
}
.item-pop-1 {
    grid-area: 1 / 1 / 3 / 2;
}
.item-pop-2 {
    grid-area: 1 / 2 / 2 / 3;
}
.item-pop-3 {
    grid-area: 1 / 3 / 2 / 5;
}
.item-pop-4 {
    grid-area: 2 / 2 / 3 / 3;
}
.item-pop-5 {
    grid-area: 2 / 3 / 3 / 4;
}
.item-pop-6 {
    grid-area: 2 / 4 / 4 / 5;
}
.item-pop-7 {
    grid-area: 3 / 1 / 4 / 3;
}
.item-pop-8 {
    grid-area: 3 / 3 / 4 / 4;
}
.popup-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-rows: 250px;
    grid-gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.foto-item {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.foto-item img {
    transition: 0.3s linear;
}
.foto-item:hover img {
    transform: scale(1.1);
}
.foto-item .hov {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 100;
    visibility: hidden;
    background: rgba(0, 0, 0, 0);
    transition: 0.3s linear;
    display: flex;
    justify-content: center;
    align-items: center;
}
.foto-item .hov i {
    color: #fff;
}
.foto-item:hover .hov {
    visibility: visible;
    background: rgba(0, 0, 0, 0.7);
}
.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wrap-bg {
    clear: both;
}

@media only screen and (max-width: 900px){    
    .item-pop-1 {
        grid-area: 1 / 1 / 3 / 3;
    }
    .item-pop-2 {
        grid-area: 1 / 3 / 2 / 5;
    }
    .item-pop-3 {
        grid-area: 2 / 3 / 3 / 5;
    }
    .item-pop-4 {
        grid-area: 3 / 1 / 4 / 3;
    }
    .item-pop-5 {
        grid-area: 3 / 3 / 4 / 5;
    }
    .item-pop-6 {
        grid-area: 4 / 1 / 5 / 2;
    }
    .item-pop-7 {
        grid-area: 4 / 2 / 5 / 5;
    }
    .item-pop-8 {
        grid-area: 5 / 1 / 6 / 5;
    }
}
@media only screen and (max-width: 600px){
    .item-pop-1 {
        grid-area: 1 / 1 / 2 / 5;
    }
    .item-pop-2 {
        grid-area: 2 / 1 / 3 / 5;
    }
    .item-pop-3 {
        grid-area: 3 / 1 / 4 / 5;
    }
    .item-pop-4 {
        grid-area: 4 / 1 / 5 / 5;
    }
    .item-pop-5 {
        grid-area: 5 / 1 / 6 / 5;
    }
    .item-pop-6 {
        grid-area: 6 / 1 / 7 / 5;
    }
    .item-pop-7 {
        grid-area: 7 / 1 / 8 / 5;
    }
    .item-pop-8 {
        grid-area: 8 / 1 / 9 / 5;
    }
}