/* ========================================
   1. VARIABLES
   ======================================== */
:root {
  --bg: #FFFFFF;
  --primary: #2e3093;
  --accent: #2e3093;
  --text: #232323;
  --text-secondary: #FFFFFF;
  --hover: #d1d1d5;
  --muted: #666a73;
}


/* ========================================
   2. RESET & GLOBAL
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
  position: relative;
}

body {
  padding-top: 80px;
  font-family: "Helvetica Neue", Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

.page {
  max-width: 100%;
}

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

a:hover {
  color: var(--accent);
}

ul {
  margin-left: 0;
  margin-bottom: 0;
  list-style: none;
}

ul li {
  margin-bottom: 10px;
  font-size: 15px;
  text-align: left;
}

strong {
  display: block;
  padding-bottom: 10px;
}


/* ========================================
   3. HEADER & NAVIGATION
   ======================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 6px 24px -20px rgba(18, 20, 55, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 28px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.nav ul li {
  margin-bottom: 0;
}

.nav a {
  padding: 18px 0 14px;
  transition: color 0.25s ease;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: none !important;
}

/* Logo – originálny obrázok, elegantné odhalenie zľava pri načítaní */
.logo img {
  height: 32px;
  width: auto;
  animation: logoReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@keyframes logoReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.logo:hover,
.logo:focus {
  border-color: transparent !important;
}
.logo:hover .logo-name { color: var(--primary); }

/* Menu odkazy – elegantné podčiarknutie (rastie od stredu) */
.nav ul li a {
  position: relative;
  color: #2a2a2a;
}
.nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1.5px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav ul li a:hover,
.nav ul li a:focus,
.nav ul li a.active {
  color: var(--primary);
}
.nav ul li a:hover::after,
.nav ul li a:focus::after,
.nav ul li a.active::after {
  transform: scaleX(1);
}

/* Language switcher */
.lang-switcher {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  justify-content: flex-end;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.lang-current {
  padding: 18px 0 14px;
  border-bottom: 4px solid transparent;
  transition: border-color 0.2s;
  position: relative;
}

.lang-switcher:hover .lang-current {
  border-color: var(--accent);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  background: var(--bg);
  padding: 8px 16px;
  border-radius: 2px;
  z-index: 10;
  white-space: nowrap;
}

.lang-switcher:hover .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 4px 0;
  border-bottom: none;
}

.lang-dropdown a:hover {
  color: var(--accent);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1002;
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-toggle:hover span {
  background-color: var(--accent);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}


/* ========================================
   4. TYPOGRAPHY
   ======================================== */
h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.4rem, 4vw, 3rem)!important; /* rem nie em */
  letter-spacing: clamp(0px, 0.15vw, 2px); /* minimálny letter-spacing */
  line-height: 1.3;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none; /* žiadne delenie slov spojovníkom */
}

h2 {
  text-align: center;
  font-size: 2em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  margin-top: 20px;
  margin-bottom: 20px;
}

h4 {
  text-transform: uppercase;
  font-size: 1em;
  margin-bottom: 1rem;
}

p {
  text-align: left;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 20px;
}


/* ========================================
   5. HERO SECTION (#home)
   ======================================== */
#home {
  width: 100%;
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 6vw, 8%);
  box-sizing: border-box;
  background:
    radial-gradient(120% 85% at 50% 0%, rgba(46, 48, 147, 0.06), rgba(46, 48, 147, 0) 55%),
    linear-gradient(180deg, #fafbfd 0%, #ffffff 72%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 860px;
  margin-inline: auto;

}

body h1,
body .hero-inner h1  {
  font-size: clamp(1.1rem, 3.5vw, 3rem);
  letter-spacing: clamp(1px, 0.2vw, 3px);
  line-height: 1.3;
  margin-bottom: 20px;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  opacity: 0;
  will-change: opacity;
  animation: heroFadeIn 0.8s ease-out 0.3s forwards;
}


.hero-inner .lead {
  text-align: center;
  font-size: clamp(0.95rem, 1.8vw, 1.4rem);
  font-weight: 400;
  margin-bottom: 32px;
  opacity: 0;
  will-change: opacity;
  animation: heroFadeIn 0.8s ease-out 0.6s forwards;
}

.hero-divider {
  width: 100px;
  height: 4px;
  background-color: var(--primary);
  margin-inline: auto;
  margin-bottom: 32px;
  opacity: 0;
  will-change: opacity;
  animation: heroFadeIn 0.8s ease-out 0.75s forwards;
}


.hero-inner .btn-primary {
  opacity: 0;
  will-change: opacity;
  animation: heroFadeIn 0.8s ease-out 0.9s forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ========================================
   6. BUTTONS
   ======================================== */
/* Jednotný moderný button (rovnaký dizajn všade) */
.btn,
.btn-primary,
button.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 15px 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: center;
  border: 1px solid var(--primary);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-primary a {
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.btn:hover,
.btn-primary:hover,
.btn-primary a:hover {
  background-color: #24265c;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(46, 48, 147, 0.55);
}


/* ========================================
   7. SECTION ROWS (shared layout)
   ======================================== */
#preco,
#about,
#clients-sectors,
#services {
  display: flex;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.section-row {
  display: flex;
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
}

.image-column {
  flex: 0 0 50%;
  width: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.text-column {
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  align-items: flex-start;
  padding: 5% 5%;
}

.text-content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 100%;
}

.text-content h2 {
  text-align: left;
}

/* H2 underline */
.text-content h2 span {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}

.text-content h2 span::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
}

.without-after::after {
  display: none !important;
}

/* Short underline for specific sections */
#contact .form-wrapper h2 span::after {
  width: 200px;
}

/* Eyebrow – názov skupiny služieb */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 12px;
}

.eyebrow::after {
  display: none !important;
}

/* Hero – hodnotový riadok */
.hero-values {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: var(--primary);
  margin-bottom: 24px;
  opacity: 0;
  will-change: opacity;
  animation: heroFadeIn 0.8s ease-out 0.45s forwards;
}

/* O nás – zvýraznený úvodný riadok */
.lead-inline {
  font-size: 1.15em;
  font-weight: 500;
}

/* Separator line after p and ul in text-content */
.text-content > p::after,
.text-content > ul::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
  margin-top: 1rem;
}


/* ========================================
   8. SCROLL ANIMATION
   Animuje sa IBA text (jemný fade + posun zdola); fotka ostáva vždy plná a napevno 50 %.
   ======================================== */
.animate-on-scroll .text-content {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.animate-on-scroll.visible .text-content {
  opacity: 1;
  transform: none;
}


/* ========================================
   9. SECTION BACKGROUNDS
   ======================================== */
/* Poznámka: dočasné fotky (iStock náhľady) – nahradiť licencovanými. */
#preco .image-column {
  background: url('img/aa-preco.webp') no-repeat center center;
  background-size: cover;
}

#clients-sectors .image-column {
  background: url('img/aa-klienti.webp') no-repeat center center;
  background-size: cover;
}

#services .image-column {
  background: url('img/aa-sluzby.webp') no-repeat center center;
  background-size: cover;
}

/* Služby: dlhý text -> fotka ostáva „sticky" na výšku obrazovky (pekný pomer pri každom rozlíšení) */
@media (min-width: 981px) {
  #services { overflow: visible; }   /* sticky nefunguje s overflow:hidden */
  #services .section-row { align-items: flex-start; }
  #services .image-column {
    position: sticky;
    top: 80px;
    align-self: flex-start;
    height: calc(100vh - 80px);
  }
}

#about .image-column {
  background: url('img/aa-onas.webp') no-repeat center center;
  background-size: cover;
}


/* ========================================
   10. MAP
   ======================================== */
.map {
  width: 50%;
  min-height: 450px;
}


/* ========================================
   11. FORM / CONTACT
   ======================================== */

/* Form fields – ostré rohy (jednotné s tlačidlami) + fokus v našej navy */
.form-control {
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control::placeholder { color: rgba(0, 0, 0, 0.4); }
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 48, 147, 0.12);
  outline: none;
}
.form-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-left: 0;
  padding-right: 0;
}

.form-wrapper {
  position: relative;
  width: 50%;
  padding: 5%;
}

.form-wrapper h2 {
  text-align: left;
}

.form-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  padding: 2rem;
  border-radius: 4px;
  z-index: 10;
}

.d-none {
  display: none !important;
}

.form-overlay.show {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ========================================
   12. FOOTER
   ======================================== */
#footer {
  display: block;
  width: 100%;
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1.5rem, 12vw, 12%) clamp(2rem, 3vw, 3rem);
  text-align: center;
  background-color: var(--primary);
  background-image: linear-gradient(180deg, #2e3093 0%, #232557 100%);
  color: #ffffff;
  border-top: 3px solid #1b1d4a;
}

.footer-container {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  text-align: left;
  padding: 0 0 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-col {
  flex: 1 1 calc(25% - 40px);
  min-width: 0;
}

.footer-logo-text {
  font-size: 1.2em;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.4rem;
}

.footer-tagline {
  font-size: 0.92em;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.7em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.4rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav ul li {
  margin-bottom: 11px;
  font-size: 0.95em;
  line-height: 1.4;
}

.footer-nav ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s ease, padding-left 0.25s ease;
  font-size: 0.95em;
}

.footer-nav ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-contact address {
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  font-size: 0.95em;
  line-height: 1.75;
}

.footer-contact address p {
  font-style: normal;
  font-size: 0.95em;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s ease;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-social .social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #ffffff;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.social-link:hover {
  background-color: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.footer-legal {
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 0;
}

.copyright,
.developed,
.developed a,
.footer-legal-link {
  font-size: 0.8em;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6em;
  text-align: left;
  margin: 0;
}
.footer-legal-link {
  transition: color 0.2s ease;
}
.footer-legal-link:hover {
  color: #ffffff;
}

.developed a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s ease;
}

.developed a:hover { color: #ffffff; }

.legal-text {
  font-size: 1em;
  line-height: 1.6em;
  font-style: normal;
  color: #ffffff;
  margin: 0 0 0.8rem 0;
  text-align: left;
}


/* ========================================
   13. MEDIA QUERIES
   ======================================== */

/* 1160px — mobile nav */
/* 1160px — mobile nav */
@media (max-width: 1160px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 100px 40px 40px;
    z-index: 1001;
    gap: 0;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    justify-content: flex-start;
    visibility: hidden;
  }

  .nav ul.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav ul li a {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
    order: 2;
  }

  .lang-switcher {
    order: 1;
    margin-right: 8px;
  }
}

/* 980px */
@media (max-width: 980px) {
  #preco,
  #about,
  #clients-sectors,
  #services {
    flex-direction: column;
    overflow: visible;
  }

  .section-row {
    flex-direction: column;
  }

  .image-column,
  .text-column {
    flex: 0 0 100%;
    width: 100%;
  }

  .image-column {
    aspect-ratio: 4 / 3;
  }

  #clients-sectors .image-column,
  #about .image-column {
    order: -1;
  }

  .text-content {
    text-align: left;
  }

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

  .form-wrapper {
    width: 100%;
  }

  .footer-col {
    flex: 1 1 calc(50% - 30px);
  }

  .map {
    width: 100%;
    height: 50vh;
    min-height: 350px;
    order: -1;
  }
}

/* 768px */
@media (max-width: 768px) {
  h2 {
    font-size: 1.5em;
  }

  #footer {
    padding: 8% 5%;
  }
}

/* 640px */
@media (max-width: 640px) {
  .footer-col {
    flex: 1 1 100%;
  }
}

/* 600px */
@media (max-width: 600px) {
  .image-column {
    aspect-ratio: 16 / 9;
  }

  .btn-primary {
    padding: 12px 26px;
  }

  /* Menšie logo, nech sa hlavička zmestí do jedného riadka so switcherom */
  .logo img { height: 24px; }
}

/* 480px */
@media (max-width: 480px) {
  h2 { font-size: 1.3em; }

  body .hero-inner h1  {
    font-size: clamp(1.1rem, 5.5vw, 1.5rem)!important; /* ← veľmi malý na úzkych mobiloch */
    letter-spacing: 0px!important; /* ← nulový letter-spacing na mobile */
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .hero-inner .lead {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero-divider {
    margin-bottom: 20px;
    width: 80px;
  }
}

/* 390px — iPhone 14/15/16 */
@media (max-width: 390px) {
  body .hero-inner h1  {
    font-size: 1rem!important;
    letter-spacing: 0px!important;
  }
}


/* ========================================
   14. MODERNÉ EFEKTY (dizajn zachovaný)
   ======================================== */

/* Plynulý posun kotiev pod fixnou hlavičkou */
html { scroll-padding-top: 80px; }

section[id] { scroll-margin-top: 80px; }

/* --- Výška sekcií podľa obsahu ---
   Sekcie nemajú vynútenú výšku obrazovky. V rámci každej sekcie sú
   fotka a text rovnako vysoké (flex stretch) → čisté prechody bez bielych medzier. */

/* Fotky sú napevno 50 % – žiadny zoom pri hoveri/scrolle (žiadne prelínanie). */

/* --- Navigačné odkazy – plynulý hover --- */
.nav a { transition: border-color 0.25s ease, color 0.25s ease; }

/* --- Zoznamy – hover a zvýraznenie štítkov --- */
.text-content ul li {
  transition: transform 0.25s ease, color 0.25s ease;
}
.text-content ul li:hover { transform: translateX(6px); }
.text-content ul li span {
  color: var(--primary);
  font-weight: 600;
}

/* --- Kontaktné odkazy – hover --- */
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-details .ci {
  flex-shrink: 0;
  color: var(--primary);
}
.contact-details a { transition: color 0.2s ease; }
.contact-details a:hover { color: var(--primary); }

/* --- Kontakt: mapa vľavo, text/formulár vpravo (plynulé striedanie) --- */
#contact .map { order: 0; }
#contact .form-wrapper { order: 1; }

/* --- Indikátor priebehu scrollu --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 1100;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.1s linear;
}

/* --- Hlavička po scrolle --- */
header { transition: box-shadow 0.35s ease, background-color 0.35s ease, border-color 0.35s ease; }
header.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 28px -16px rgba(18, 20, 55, 0.4);
}

/* --- Prepínač jazyka – rámčekový, zarovnaný s logom --- */
.lang-switcher {
  display: inline-flex;
  align-items: stretch;
  align-self: center;
  border: 1px solid rgba(46, 48, 147, 0.35);
  cursor: default;
  line-height: 1;
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 7px 11px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-opt + .lang-opt {
  border-left: 1px solid rgba(46, 48, 147, 0.35);
}
.lang-opt.active {
  background: var(--primary);
  color: #ffffff;
}
.lang-opt:not(.active):hover {
  color: var(--primary);
  background: rgba(46, 48, 147, 0.06);
}

/* --- Tlačidlo späť hore --- */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
  z-index: 1050;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* --- Prístupnosť: viditeľný fokus --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.lang-current:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Moderné mobilné menu (frosted + stagger) --- */
@media (max-width: 1160px) {
  .nav ul {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .nav ul li {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .nav ul.open li { opacity: 1; transform: none; }
  .nav ul.open li:nth-child(1) { transition-delay: 0.08s; }
  .nav ul.open li:nth-child(2) { transition-delay: 0.13s; }
  .nav ul.open li:nth-child(3) { transition-delay: 0.18s; }
  .nav ul.open li:nth-child(4) { transition-delay: 0.23s; }
  .nav ul.open li:nth-child(5) { transition-delay: 0.28s; }
  .nav ul.open li:nth-child(6) { transition-delay: 0.33s; }
}

/* --- Na mobile bez hover-zoomu --- */
@media (max-width: 980px) {
  .section-row:hover .image-column { transform: none; }
}

/* --- Rešpekt k preferencii obmedzeného pohybu --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll .text-content { opacity: 1 !important; transform: none !important; }
  .section-row:hover .image-column { transform: none !important; }
}


/* ========================================
   15. COOKIE LIŠTA
   ======================================== */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px clamp(1.5rem, 5vw, 4.5rem);
  background: #ffffff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -18px 50px -28px rgba(18, 20, 55, 0.4);
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-bar.show { transform: translateY(0); }

.cookie-text {
  margin: 0;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.cookie-text svg { flex-shrink: 0; color: var(--primary); }
.cookie-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.cookie-btn-solid {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
}
.cookie-btn-solid:hover { background: #24265c; border-color: #24265c; transform: translateY(-1px); }
.cookie-btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(46, 48, 147, 0.35);
}
.cookie-btn-ghost:hover { border-color: var(--primary); background: rgba(46, 48, 147, 0.05); }

/* Nastavenia – decentný textový odkaz (prémiová hierarchia) */
#cookie-settings {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 12px 8px;
}
#cookie-settings:hover { color: var(--primary); background: transparent; }

/* Modal – nastavenia cookies (prémiový) */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 20, 55, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-modal.show { display: flex; }
.cookie-modal-box {
  background: #ffffff;
  max-width: 540px;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-height: 90vh;
  overflow-y: auto;
  border-top: 3px solid var(--primary);
  box-shadow: 0 30px 80px -30px rgba(18, 20, 55, 0.6);
}
.cookie-modal-box h3 {
  margin: 0 0 10px;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: left;
}
.cookie-modal-box > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  line-height: 1.5;
}
.cookie-option span strong { display: block; margin-bottom: 3px; color: var(--text); font-weight: 600; }
.cookie-option span { color: var(--muted); }

/* Prémiový toggle prepínač (z checkboxu) */
.cookie-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d3d5e2;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.cookie-option input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}
.cookie-option input[type="checkbox"]:checked { background: var(--primary); }
.cookie-option input[type="checkbox"]:checked::after { transform: translateX(18px); }
.cookie-option input[type="checkbox"]:disabled { opacity: 0.55; cursor: not-allowed; }
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

/* Jednoduchá právna stránka (cookies dokument) */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
}
.legal-page h1 {
  text-align: left;
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
}
.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.legal-page ul {
  list-style: disc;
  margin: 0 0 1.3rem 1.4rem;
}
.legal-page li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-size: 15px;
}
.legal-page li strong {
  display: inline;
  padding: 0;
}
.legal-page a {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .cookie-btn { flex: 1 1 auto; text-align: center; }
}
