/* ==========================================================================
   Rosseta: globálne premenné a štýly
   ========================================================================== */

:root {
  /* --- Farby --- */
  --main-theme: #52607d;              /* hlavná brand modrá (ikony, akcenty, eyebrow tagy) */
  --main-theme-text-color: #ffffff;   /* text/ikony na hlavnej modrej */
  --dark-color: #1a202e;              /* tmavá granátová (footer, CTA banner, tmavé sekcie) */
  --dark-text-color: #f3f4f7;         /* text na tmavej granátovej */
  --third-color: #f1f2f4;             /* jemné sivkasté pozadie sekcií/kariet */
  --third-text-color: #1a202e;        /* hlavný tmavý text na svetlom pozadí */
  --muted-text-color: #5b6270;        /* tlmený text (odseky, popisky) */
  --border-color: rgba(26, 32, 46, 0.10);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(237, 237, 237, 0.2);
  --surface-color: #ffffff;
  --main-color: #52607d;              /* modrá pre pozadie tlačidiel (téma 1) */
  --main-text-color: #ffffff;         /* text/ikony na main-color */
  --second-color: #d68112;            /* oranžová pre pozadie tlačidiel (téma 2) / akcent */
  --second-text-color: #1a202e;       /* text/ikony na second-color */

  /* --- Typografia --- */
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Ostatné --- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 60px -20px rgba(26, 32, 46, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(26, 32, 46, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--third-text-color);
  background-color: var(--surface-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1250px;
  padding-left: 25px;
  padding-right: 25px;
}

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

.bg-theme {
  background-color: var(--main-theme);
  color: var(--main-theme-text-color);
}

.bg-second {
  background-color: var(--dark-color);
  color: var(--dark-text-color);
}

.bg-third {
  background-color: var(--third-color);
  color: var(--third-text-color);
}

.text-theme {
  color: var(--main-theme);
}

/* --- Lucide ikony --- */
[data-lucide] {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.icon-sm [data-lucide] {
  width: 18px;
  height: 18px;
}

.icon-lg [data-lucide] {
  width: 32px;
  height: 32px;
}

/* --- Glass efekt --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.glass-dark {
  background: rgba(26, 32, 46, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

/* ==========================================================================
   Univerzálny základ sekcií a nadpisov
   Použiteľné na akejkoľvek stránke: <section class="section">, vnútri
   <div class="heading-box"><span class="eyebrow">…</span><h2 class="heading">…</h2></div>
   ========================================================================== */

.section {
  padding-top: 110px;
  padding-bottom: 110px;
}

@media (max-width: 767.98px) {
  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

.kamenivo-section {
  padding-top: 0 !important;
}

.sister-projects-section {
  padding-top: 0 !important;
}

.heading-box {
  margin-bottom: 3rem;
}

.heading-box .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 300;
  color: #0b0b0b;
  margin-bottom: 14px;
}

.heading-box .eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--second-color);
  flex-shrink: 0;
}

.heading,
.heading-box .heading {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.0304em;
  line-height: 1.15;
  color: var(--third-text-color);
  margin: 0;
}

@media (max-width: 767.98px) {
  .heading,
  .heading-box .heading {
    font-size: 2rem;
  }
}

@media (min-width: 992px) {
  .realizacie-banner-heading {
    font-size: 35px;
  }
}

.realizacia-detail-heading {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

/* --- FAQ položka (globálna, znovupoužiteľná na akejkoľvek stránke) --- */
.faq-item {
  background: var(--third-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 16px;
}

.faq-item-toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--third-text-color);
}

.faq-item-answer {
  padding: 0 24px 24px;
  color: var(--muted-text-color);
  line-height: 1.6;
}

.faq-item-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--third-text-color);
}

.faq-item-icon::before,
.faq-item-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: opacity 0.2s ease;
}

.faq-item-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-item-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-item-toggle[aria-expanded="true"] .faq-item-icon::after {
  opacity: 0;
}

/* --- Page banner (globálny, pre úvod podstránok ako sluzby.php) --- */
.page-banner {
  padding-top: 170px;
  padding-bottom: 90px;
}

@media (min-width: 992px) {
  .page-banner {
    min-height: 550px;
    display: flex;
    align-items: center;
  }

  .page-banner .container {
    width: 100%;
  }
}

.page-banner-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-banner-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(15, 18, 25, 0.55) 0%, rgba(15, 18, 25, 0.8) 100%);
}

.page-banner-photo .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 767.98px) {
  .page-banner {
    padding-top: 140px;
    padding-bottom: 60px;
  }
}

.page-banner p {
  max-width: 520px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.page-banner-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.page-banner-back:hover {
  color: #ffffff;
}

.page-banner-back [data-lucide] {
  width: 16px;
  height: 16px;
}

.page-banner-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-banner-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Obsah detailu služby (globálne, sluzba-*.php) --- */
.service-info-card {
  background: var(--third-color);
  color: var(--third-text-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.service-info-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.service-info-card p {
  color: var(--muted-text-color);
  margin-bottom: 20px;
}

.service-info-card .t-btn {
  width: 100%;
  justify-content: center;
}

.service-info-card .t-btn + .t-btn {
  margin-top: 12px;
}

.service-includes {
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted-text-color);
}

.service-includes li::marker {
  color: var(--second-color);
}

/* --- Galéria služby: 7 na riadok na desktope, 3 na mobile --- */
.service-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-gallery img {
  width: calc((100% - 6 * 12px) / 7);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .service-gallery img {
    width: calc((100% - 2 * 12px) / 3);
  }
}

/* --- Fotogaléria (globálna, napr. galeria.php): 6 na riadok --- */
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.photo-gallery a {
  display: block;
  width: calc((100% - 5 * 12px) / 6);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.photo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-gallery a:hover img {
  transform: scale(1.06);
}

@media (max-width: 767.98px) {
  .photo-gallery a {
    width: calc((100% - 2 * 12px) / 3);
  }
}

/* --- Videogaléria (globálna, napr. galeria.php): obrázok + pulzujúca play ikonka --- */
.video-tile {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.video-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.video-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 25, 0.25);
}

.video-tile-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--second-color);
  color: var(--second-text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  animation: video-pulse 2s infinite;
}

.video-tile-play [data-lucide] {
  width: 24px;
  height: 24px;
  transform: translateX(2px);
}

@keyframes video-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(171, 223, 109, 0.55);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(171, 223, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(171, 223, 109, 0);
  }
}

/* --- Cenníková tabuľka (globálna, napr. kamenivo.php) --- */
.pricing-table-note {
  color: var(--muted-text-color);
  font-size: 0.9rem;
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.pricing-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table th {
  background: #505c7b;
  color: #ffffff;
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #2b2b2b;
  white-space: nowrap;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:not(.pricing-table-category):hover td {
  background: rgba(0, 0, 0, 0.035);
}

.pricing-table th:nth-child(n+2),
.pricing-table td:nth-child(n+2) {
  text-align: right;
}

.pricing-table-category td {
  background: #f9a97f;
  color: #2b2118;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left !important;
}

/* --- Kontaktný hero s prekrývajúcou formulárovou kartou (globálne, kontakt.php) --- */
.contact-form-card {
  background: var(--surface-color);
  color: var(--third-text-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px;
  text-align: left;
}

.contact-form-card h2 {
  color: var(--third-text-color);
}

.contact-form-card .form-label {
  color: var(--third-text-color);
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  background: var(--third-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--third-text-color);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  background: var(--third-color);
  border-color: var(--main-theme);
  box-shadow: none;
  color: var(--third-text-color);
}

.contact-form-card textarea.form-control {
  resize: vertical;
}

/* --- Jednoduchá karta s kontaktnými údajmi (globálne, kontakt.php) --- */
.contact-person-card {
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.contact-person-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-person-card .contact-person-role {
  color: var(--muted-text-color);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.contact-person-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.contact-person-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--third-text-color);
}

.contact-person-card a {
  color: var(--third-text-color);
  transition: color 0.2s ease;
}

.contact-person-card a:hover {
  color: var(--main-theme);
}

/* --- Tmavá karta s rýchlymi odkazmi (globálna, napr. namiesto parallaxu) --- */
.quick-links-card {
  background: var(--dark-color);
  color: var(--dark-text-color);
  border-radius: var(--radius-lg);
  padding: 50px 44px;
}

@media (max-width: 767.98px) {
  .quick-links-card {
    padding: 36px 26px;
  }
}

.quick-links-card .heading-box {
  margin-bottom: 0;
}

.quick-links-card .heading-box .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.quick-links-card .heading {
  color: #ffffff;
}

.quick-links-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-link-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 400;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.quick-link-tag:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

/* --- CTA parallax pruh (globálny, spoločný include cta-parallax.php) --- */
.cta-parallax {
  position: relative;
  padding: 130px 0;
  color: #ffffff;
  text-align: center;
  background-image: linear-gradient(rgba(15, 18, 25, 0.6), rgba(15, 18, 25, 0.6)), url("../img/projects/proj2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 992px) {
  .cta-parallax {
    background-attachment: fixed;
  }
}

@media (max-width: 767.98px) {
  .cta-parallax {
    padding: 80px 0;
  }
}

/* --- Sesterské projekty: full-width panely na polovicu (globálny, cta-parallax.php) --- */
.sister-projects {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.sister-project-panel {
  position: relative;
  flex: 1 1 50%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  text-decoration: none;
}

.sister-project-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(15, 18, 25, 0.35) 0%, rgba(15, 18, 25, 0.75) 100%);
  transition: background 0.3s ease;
}

.sister-project-panel:hover .sister-project-overlay {
  background: linear-gradient(180deg, rgba(15, 18, 25, 0.45) 0%, rgba(15, 18, 25, 0.85) 100%);
}

.sister-project-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  text-align: center;
  padding: 40px 24px;
}

.sister-project-content h3 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.sister-project-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}

@media (max-width: 767.98px) {
  .sister-project-panel {
    flex: 1 1 100%;
    min-height: 340px;
  }
}

/* --- Karta služby s obrázkom (globálna, napr. sluzby.php) --- */
.service-detail-card {
  display: block;
  height: 100%;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.realization-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--dark-color, #111111);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: var(--radius-pill, 999px);
}

.service-detail-card:hover {
  transform: translateY(-6px);
}

.service-detail-card img {
  width: 100%;
  aspect-ratio: 4 / 2.8;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.service-detail-card-body {
  padding: 20px 0 0;
}

.service-detail-card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--third-text-color);
  margin-bottom: 10px;
}

.service-detail-card-body p {
  color: var(--muted-text-color);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.service-detail-card-link {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-detail-card-link [data-lucide] {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.service-detail-card:hover .service-detail-card-link [data-lucide] {
  transform: translateX(4px);
}

/* --- Zoznam realizácií: len obrázok a názov, bez popisu a odkazu (realizacie-content.php) --- */
.realizacie-list .service-detail-card-body p,
.realizacie-list .service-detail-card-link {
  display: none;
}

.realizacie-list .service-detail-card-body h3 {
  margin-bottom: 0;
  transition: color 0.2s ease;
}

.realizacie-list .service-detail-card:hover .service-detail-card-body h3 {
  color: var(--main-theme);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-bar {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  padding: 14px 18px 14px 26px;
  box-shadow: var(--shadow-soft);
}

.header-logo img {
  height: 34px;
  width: auto;
}

.header-viz-badge {
  position: absolute;
  left: 26px;
  bottom: 0;
  transform: translateY(50%);
  z-index: 5;
  background: var(--second-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(214, 129, 18, 0.4);
}

.header-viz-badge:hover {
  background: #b8690c;
  color: #ffffff;
}

@media (max-width: 575.98px) {
  .header-viz-badge {
    left: 18px;
    font-size: 9px;
    padding: 3px 8px;
  }
}

.main-nav .nav-link-viz,
.offcanvas-body .nav-link-viz {
  font-weight: 600 !important;
  color: var(--main-color) !important;
}

.main-nav .nav-link {
  color: #444444;
  font-weight: 300;
  font-size: 14px;
  white-space: nowrap;
  padding: 8px 4px !important;
  border-radius: 0;
  transition: color 0.2s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
  color: var(--main-theme);
}

.main-nav .dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 10px;
  margin-top: 10px !important;
}

.main-nav .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav .dropdown-item:hover {
  background-color: var(--third-color);
  color: var(--main-theme);
}

/* --- "Iné projekty" v headri: jeden button rozdelený na dva linky (globálny, header.php) --- */
.split-btn {
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius-pill);
}

.split-btn-block {
  display: flex;
  width: 100%;
}

.split-btn-block .split-btn-half {
  flex: 1 1 50%;
  width: auto;
}

.split-btn-half {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 2.1em;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.split-btn-half.theme {
  background-color: var(--main-color);
  color: var(--main-text-color);
}

.split-btn-half.theme:hover {
  background-color: var(--second-color);
  color: var(--second-text-color);
}

.split-btn-half.theme2 {
  background-color: var(--second-color);
  color: var(--second-text-color);
}

.split-btn-half.theme2:hover {
  background-color: var(--main-color);
  color: var(--main-text-color);
}

/* --- Mobilné offcanvas menu --- */
.offcanvas {
  width: min(340px, 85vw);
  border: none;
}

.offcanvas-header {
  padding: 22px 24px 12px;
}

.offcanvas-header img {
  height: 28px;
}

.offcanvas-header .btn-close {
  width: 34px;
  height: 34px;
  background-color: var(--third-color);
  background-size: 12px;
  border-radius: 50%;
  opacity: 1;
}

.offcanvas-body {
  padding: 12px 24px 28px;
  display: flex;
  flex-direction: column;
}

.offcanvas-body .navbar-nav {
  gap: 4px !important;
}

.offcanvas-body .nav-link {
  padding: 14px 14px !important;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--third-text-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link:focus {
  background-color: var(--third-color);
  color: var(--main-theme);
}

.offcanvas-body .t-btn {
  margin-top: 22px;
}

.header-cta {
  margin-left: 25px;
}

@media (max-width: 991.98px) {
  .header-cta {
    margin-left: auto;
  }
}

/* --- Tlačidlá ---
   Spoločný základ .t-btn (rozmery, typografia, medzery) + variantné
   modifikátory (.theme / .theme2 / .outline / .glass), ktoré menia
   len farby, pozadie a border. --------------------------------------- */
.t-btn {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.65em 1.4em;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 767.98px) {
  .t-btn {
    min-height: 44px;
  }
}

.t-btn.theme {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: var(--main-text-color);
}

.t-btn.theme:hover {
  background-color: var(--second-color);
  border-color: var(--second-color);
  color: var(--second-text-color);
}

.t-btn.theme .btn-icon-circle {
  background: var(--third-color);
  color: var(--third-text-color);
}

.t-btn.theme:hover .btn-icon-circle {
  background: #1a1a1a;
  color: #ffffff;
}

.t-btn.theme2 {
  background-color: var(--second-color);
  border-color: var(--second-color);
  color: var(--second-text-color);
}

.t-btn.theme2:hover {
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: var(--main-text-color);
}

.t-btn.theme2 .btn-icon-circle {
  background: #1a1a1a;
  color: #ffffff;
}

.t-btn.theme2:hover .btn-icon-circle {
  background: var(--third-color);
  color: var(--third-text-color);
}

.t-btn.outline {
  background-color: transparent;
  color: var(--dark-text-color);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.t-btn.outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--dark-text-color);
}

.t-btn.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: #ffffff;
  border: 1px solid var(--glass-border);
}

.t-btn.glass:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-icon-circle [data-lucide] {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--dark-color);
  color: var(--dark-text-color);
  border-top: 1px solid var(--border-color);
}

.site-footer p,
.site-footer a,
.site-footer span,
.site-footer li {
  font-size: 15px;
  font-weight: 300;
  color: rgba(243, 244, 247, 0.68);
}

.site-footer a {
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--second-color);
}

.site-footer .footer-logo img {
  height: 32px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-text-color);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
  font-size: 0.95rem;
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(243, 244, 247, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-text-color);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-social:hover {
  background: var(--main-theme);
  color: var(--main-theme-text-color);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted-text-color);
}

.site-footer .contact-icon {
  color: rgba(243, 244, 247, 0.55);
}

.site-footer .container.section {
  padding-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(243, 244, 247, 0.12);
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 50px;
}

.footer-bottom,
.footer-bottom span,
.footer-bottom a {
  font-size: 14px;
}

/* ==========================================================================
   .home-page — štýly patriace výhradne obsahu na home.php
   ========================================================================== */

.home-page .hero-banner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.home-page .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-page .hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-page .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: hero-zoom 16s ease-out forwards;
}

.home-page .hero-slideshow .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-slide-fade 20s infinite;
}

.home-page .hero-slideshow .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: none;
}

.home-page .hero-slideshow .hero-slide:nth-child(1) { animation-delay: 0s; }
.home-page .hero-slideshow .hero-slide:nth-child(2) { animation-delay: 5s; }
.home-page .hero-slideshow .hero-slide:nth-child(3) { animation-delay: 10s; }
.home-page .hero-slideshow .hero-slide:nth-child(4) { animation-delay: 15s; }

@keyframes hero-slide-fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.home-page .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 22, 30, 0.15) 0%, rgba(18, 22, 30, 0.15) 40%, rgba(15, 18, 25, 0.85) 100%);
}

.home-page .hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 70px;
  padding-top: 160px;
  width: 100%;
}

.home-page .hero-badge {
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.home-page .hero-badge img {
  width: 20px;
  height: 20px;
}

.home-page .hero-badge span {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-page .hero-title {
  font-size: clamp(2.6rem, 4.5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
  max-width: 780px;
}

@media (max-width: 767.98px) {
  .home-page .hero-title {
    font-size: 2.1rem;
  }
}

.home-page .hero-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.home-page .hero-feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 300;
  color: #fafafa;
}

@media (max-width: 767.98px) {
  .home-page .hero-feature-list {
    gap: 14px;
  }

  .home-page .hero-feature-list li {
    font-size: 13px;
    gap: 6px;
  }
}

.home-page .hero-feature-list [data-lucide] {
  width: 23px;
  height: 23px;
  color: var(--second-color);
}

@media (max-width: 767.98px) {
  .home-page .hero-feature-list [data-lucide] {
    width: 16px;
    height: 16px;
  }
}

.home-page .hero-side-text {
  max-width: 550px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: #fafafa;
}

@media (max-width: 767.98px) {
  .home-page .hero-side-text {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 767.98px) {
  .home-page .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .home-page .hero-buttons .t-btn {
    font-size: 13px;
    padding: 0.6em 1.1em;
  }

  .home-page .hero-buttons .btn-icon-circle {
    width: 26px;
    height: 26px;
  }

  .home-page .hero-buttons .btn-icon-circle [data-lucide] {
    width: 13px;
    height: 13px;
  }
}

/* --- Nástupná animácia obsahu hero banneru (pri načítaní stránky) --- */
.home-page .hero-badge,
.home-page .hero-title,
.home-page .hero-feature-list,
.home-page .hero-side-text,
.home-page .hero-buttons {
  opacity: 0;
  animation: hero-fade-up 0.8s ease forwards;
}

.home-page .hero-badge {
  animation-delay: 0.1s;
}

.home-page .hero-title {
  animation-delay: 0.25s;
}

.home-page .hero-side-text {
  animation-delay: 0.35s;
}

.home-page .hero-feature-list {
  animation-delay: 0.5s;
}

.home-page .hero-buttons {
  animation-delay: 0.6s;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Nástupná animácia obsahu page banneru (pri načítaní stránky) --- */
.page-banner-back,
.page-banner h1,
.page-banner p,
.page-banner .d-flex {
  opacity: 0;
  animation: hero-fade-up 0.8s ease forwards;
}

.page-banner-back {
  animation-delay: 0.1s;
}

.page-banner h1 {
  animation-delay: 0.2s;
}

.page-banner p {
  animation-delay: 0.35s;
}

.page-banner .d-flex {
  animation-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-media img {
    animation: none;
  }

  .home-page .hero-slideshow .hero-slide {
    animation: none;
    opacity: 0;
  }

  .home-page .hero-slideshow .hero-slide:first-child {
    opacity: 1;
  }

  .home-page .hero-badge,
  .home-page .hero-title,
  .home-page .hero-feature-list,
  .home-page .hero-side-text,
  .home-page .hero-buttons {
    opacity: 1;
    animation: none;
  }

  .page-banner-back,
  .page-banner h1,
  .page-banner p,
  .page-banner .d-flex {
    opacity: 1;
    animation: none;
  }
}

/* --- Scroll animácie (globálne, JS v main.js pridáva triedu .reveal a .is-visible) --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

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

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

/* --- Dôvera / štatistiky (obrázkový panel + glass karty) --- */
.home-page .trust-stats-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 64px;
}

@media (max-width: 767.98px) {
  .home-page .trust-stats-panel {
    padding: 32px 20px;
  }
}

.home-page .trust-stats-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home-page .trust-stats-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 25, 0.55);
  z-index: 0;
}

.home-page .trust-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 767.98px) {
  .home-page .trust-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-page .trust-stat-card {
  padding: 30px 16px;
  text-align: center;
  color: #ffffff;
}

.home-page .trust-stat-card .stat-number {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-page .trust-stat-card .stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

/* --- Dlaždice služieb (obrázok + popisok) --- */
.home-page .service-tile {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.3;
}

.home-page .service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.home-page .service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(15, 18, 25, 0.65) 100%);
  transition: background 0.3s ease;
}

.home-page .service-tile:hover::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(15, 18, 25, 0.82) 100%);
}

.home-page .service-tile .service-tile-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
}

.home-page .service-tile .service-tile-label {
  display: block;
  color: #ffffff;
  font-weight: 500;
  font-size: 24px;
}

.home-page .service-tile .service-tile-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin-top 0.3s ease;
}

.home-page .service-tile:hover .service-tile-desc {
  margin-top: 8px;
  max-height: 4.5em;
  opacity: 1;
  transform: translateY(0);
}

.home-page .about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.home-page .about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.home-page .about-floating-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.home-page .check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.home-page .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.home-page .check-list .check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--main-theme) 15%, transparent);
  color: var(--main-theme);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.home-page .check-list .check-icon [data-lucide] {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.home-page .reference-item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.home-page .reference-item.small {
  aspect-ratio: 1.3 / 1;
}

.home-page .reference-item.big {
  aspect-ratio: 1 / 1.5;
}

.home-page .reference-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-page .reference-item:hover img {
  transform: scale(1.06);
}

.home-page .reference-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(15, 18, 25, 0.6) 100%);
}

.home-page .reference-item-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.15rem;
}

/* ==========================================================================
   Vyhľadávanie partnerov (nasi-partneri.php)
   ========================================================================== */

.partner-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.partner-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.partner-search {
  position: relative;
  max-width: 480px;
  margin: 0 auto 32px;
}

.partner-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  font-size: 1rem;
  color: var(--third-text-color);
}

.partner-search input:focus {
  outline: none;
  border-color: var(--main-theme);
}

.partner-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted-text-color);
  pointer-events: none;
}

.partner-count {
  text-align: center;
  color: var(--muted-text-color);
  font-size: .9rem;
  margin-bottom: 20px;
}

.partner-list {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--surface-color);
  overflow: hidden;
}

.partner-list-head,
.partner-row {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr 1.1fr;
  gap: 12px 24px;
  align-items: center;
  padding: 14px 24px;
}

.partner-list-head {
  background: var(--third-color);
  color: var(--muted-text-color);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.partner-list-body {
  max-height: 620px;
  overflow-y: auto;
}

.partner-row {
  border-top: 1px solid var(--border-color);
}

.partner-row:hover {
  background: var(--third-color);
}

.partner-row-name {
  font-weight: 600;
  color: var(--third-text-color);
}

.partner-row-address {
  color: var(--muted-text-color);
  font-size: .9rem;
}

.partner-row-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .88rem;
  min-width: 0;
}

.partner-row-contact a {
  color: var(--muted-text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-row-contact a:hover {
  color: var(--main-theme);
}

.partner-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted-text-color);
}

@media (max-width: 767.98px) {
  .partner-list-head {
    display: none;
  }

  .partner-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .partner-row-contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 14px;
  }
}

/* ==========================================================================
   Filter tabs galérie (galeria.php)
   ========================================================================== */

.gallery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.gallery-filter-tabs button {
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--third-text-color);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.gallery-filter-tabs button:hover {
  border-color: var(--main-theme);
}

.gallery-filter-tabs button.active {
  background: var(--main-theme);
  border-color: var(--main-theme);
  color: var(--main-theme-text-color);
}

/* ==========================================================================
   Aktuality (aktuality.php)
   ========================================================================== */

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
}

.news-card img {
  width: 100%;
  aspect-ratio: 4 / 2.8;
  object-fit: cover;
}

.news-card-body {
  padding: 22px 24px 26px;
}

.news-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--main-theme);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.news-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-card-body p {
  color: var(--muted-text-color);
  font-size: .92rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Jazykový prepínač (header.php)
   ========================================================================== */

.lang-switcher-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 32, 46, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  color: var(--third-text-color);
}

.lang-switcher-toggle img {
  border-radius: 2px;
  display: block;
}

.lang-switcher-toggle i {
  width: 14px;
  height: 14px;
}

.lang-switcher-menu {
  min-width: 140px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 6px;
}

.lang-switcher-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: .82rem;
  white-space: nowrap;
  color: var(--third-text-color);
}

.lang-switcher-menu .dropdown-item img {
  border-radius: 2px;
  flex-shrink: 0;
}

.lang-switcher-menu .dropdown-item:hover,
.lang-switcher-menu .dropdown-item:focus {
  background: var(--third-color);
  color: var(--third-text-color);
}

.lang-switcher-menu .dropdown-item:active,
.lang-switcher-menu .dropdown-item.active {
  background: var(--third-color);
  color: var(--third-text-color);
}

/* ==========================================================================
   3D vizualizácia / konfigurátor (3d-vizualizacia.php)
   ========================================================================== */

.viz-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #111;
  transition: border-radius .2s ease;
}

.viz-box.is-fullscreen {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  z-index: 2000;
}

body.viz-lock-scroll {
  overflow: hidden;
}

.viz-expand-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--third-text-color);
  cursor: pointer;
}

.viz-expand-btn i {
  width: 18px;
  height: 18px;
}

.viz-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.viz-scene.active {
  opacity: 1;
  pointer-events: auto;
}

.viz-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
}

.viz-layer.base {
  opacity: 1;
  z-index: 0;
}

.viz-layer.visible {
  opacity: 1;
  z-index: 2;
  transition: opacity .35s ease;
}

.viz-scene-tabs {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  padding: 4px;
  border-radius: var(--radius-pill);
}

.viz-scene-tabs button {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .85rem;
  font-family: var(--font-main);
  cursor: pointer;
  color: var(--third-text-color);
  transition: background-color .2s ease, color .2s ease;
}

.viz-scene-tabs button.active {
  background: var(--main-theme);
  color: var(--main-theme-text-color);
}

.viz-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--third-text-color);
  border: none;
  cursor: pointer;
}

.viz-controls {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  gap: 20px;
  max-width: calc(100% - 32px);
  overflow-x: auto;
}

.viz-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.viz-control-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted-text-color);
  white-space: nowrap;
}

.viz-swatches {
  display: flex;
  gap: 6px;
}

.viz-swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  flex-shrink: 0;
}

.viz-swatch.active {
  border-color: var(--main-theme);
}

@media (max-width: 767.98px) {
  .viz-scene-tabs button {
    padding: 7px 14px;
    font-size: .78rem;
  }

  .viz-controls {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 12px;
    gap: 14px;
  }

  .viz-swatch {
    width: 30px;
    height: 30px;
  }
}

/* ==========================================================================
   Kompaktnejší header na menších šírkach (< 1500px)
   ========================================================================== */

@media (min-width: 992px) and (max-width: 1499.98px) {
  .header-cta {
    margin-left: 14px;
  }
}

@media (max-width: 1499.98px) {
  .header-bar {
    padding: 10px 14px 10px 20px;
  }

  .main-nav .navbar-nav {
    gap: 4px !important;
  }

  .main-nav .nav-link {
    font-size: 13px;
    padding: 8px 3px !important;
  }

  .header-cta {
    gap: 6px !important;
  }

  .split-btn-half {
    padding: 0.65em 1.15em;
    font-size: 11px;
  }

  .lang-switcher-toggle {
    gap: 4px;
    padding: 6px 9px;
  }

  .lang-switcher-toggle img {
    width: 16px;
    height: 11px;
  }
}

