* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 70px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigácia #f8f9fa */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fdfdfd;
  padding: 10px 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 30px;
  display: inline-block;
  vertical-align: middle;
}

.brand-text {
  font-family: Calibri, sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 1.3rem;
  margin-left: 5px;
}

.brand-text .pay {
  color: #000;
}
.brand-text .my {
  color: #ff6600;
}

.navbar-nav {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.nav-link:hover {
  color: #ff6600;
}

/* Nadpisy a text */
.heading-main {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  color: #fb9912;
  margin-bottom: 1rem;
}

.subheading {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
}
.text-grey {
  color: #6c757d;
}
.bold {
  font-weight: bold;
}

.quote-box {
  border-left: 3px solid #17a2b8;
  padding-left: 1rem;
  margin-top: 1.5rem;
  color: #6c757d;
}

/* Layout */
.section-spacing {
  margin-bottom: 3rem;
}
.section-subspacing {
  margin-bottom: 1.5rem;
}
.divider {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid #ddd;
}

.row-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch; /* všetky karty rovnako vysoké */
}

.col-50 {
  flex: 0 0 calc(50% - 20px); /* fixne polovica šírky */
  box-sizing: border-box;
}

.col-40 {
  flex: 0 0 40%;
}
.col-60 {
  flex: 0 0 60%;
}
.center {
  text-align: center;
}

@media (max-width: 768px) {
  .col-50,
  .col-40,
  .col-60 {
    flex: 1 1 100%; /* na mobiloch celý riadok */
  }
  .row-custom .col-50:last-child {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Karty tímu - predch. farba #f8f9fa */
.card-custom {
  background: #fdfdfd;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 100%;
}
.card-body {
  padding: 10px;
}
.card-title {
  font-size: 1.1rem;
  font-weight: bold;
}

.img-team {
  width: 170px;
  height: 170px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  background: #fff;
  display: block;
  margin: 0 auto;
}

/* Vnútorné rozloženie karty tímu – obrázok vedľa textu */
.card-custom figure.row-custom {
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-custom .col-40 {
  flex: 0 0 40%;
  max-width: 170px;
}

.card-custom .col-60 {
  flex: 1;
}

@media (max-width: 768px) {
  .card-custom figure.row-custom {
    flex-direction: column;
    text-align: center;
  }
}

/* Zoznamy */
.list-group {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-group-item {
  padding: 10px 5px;
  border-bottom: 1px solid #ddd;
  background: #fff;
}
.list-group-item:last-child {
  border-bottom: none;
}

/* Tabuľky */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.table th,
.table td {
  border: 1px solid #dee2e6;
  padding: 8px;
}
.table-striped tbody tr:nth-child(odd) {
  background: #f9f9f9;
}
.table-hover tbody tr:hover {
  background: #f1f1f1;
}
.table-head-dark th {
  background: #b9b9b9;
  color: #fff;
}
.table-warning {
  background: #ffffff;
}
.table-wrapper {
  overflow-x: auto;
}
.table-shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* štítky */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
}
.badge-primary {
  background: #6c757d;
}
.badge-secondary {
  background: #6c757d;
}
.badge-danger {
  background: #6c757d;
}

/* Flex helpers */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-grow {
  flex: 1;
}

/* Tlačidlá */
.btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-dark {
  background: #212529;
  color: #fff;
}
.btn-dark:hover {
  background: #000;
}
.btn-sm {
  padding: 4px 8px;
  font-size: 0.8rem;
}
.back-to-top {
  float: right;
  margin-bottom: 1.5rem;
}

/* Architektúra */
.img-architecture {
  max-width: 50%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.caption-muted {
  color: #6c757d;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Kontakt */
#kontakt,
#kontakt-formular {
  display: block;
}

#kontakt .list-group {
  margin-top: 0.5rem;
}

.contact-info {
  margin-bottom: 0.75rem;
}

#kontakt .list-group-item {
  display: block;
  background: #fff;
}

/* Form – plná šírka a medzery */
.contact-form .form-group {
  margin-bottom: 0.8rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #fb9912;
  box-shadow: 0 0 0 3px rgba(251, 153, 18, 0.15);
}

.contact-link,
.contact-link:visited {
  color: #333;
  text-decoration: none;
}
.contact-link:hover {
  text-decoration: underline;
  color: #fb9912;
}

.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem 0; /* necháme iba spodný odstup medzi poľami */
}

/* 0) Skryť ARIA nadpis vizuálne, ale ponechať pre čítačky */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* 1) Kontakt: stabilný 2-stĺpcový layout (Grid) */
section[aria-labelledby='kontakt-wrapper-heading'].row-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Zarovnanie stĺpcov v rade */
section[aria-labelledby='kontakt-wrapper-heading'].row-custom > .col-50 {
  margin: 0;
  flex: initial; /* istota, aj keď v gride sa flex ignoruje */
}

/* mobil: pod seba */
@media (max-width: 768px) {
  section[aria-labelledby='kontakt-wrapper-heading'].row-custom {
    grid-template-columns: 1fr;
  }
}

/* Päta */
.footer {
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
  border-top: 1px solid #ddd;
  color: #6c757d;
  font-size: 0.9rem;
}

/* PAYMY logo text */
.paymy {
  font-family: Calibri, sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 1.1em;
}
.paymy .pay {
  color: #000;
}
.paymy .my {
  color: #fb9912;
}

/* Fotka tímu – pekná veľkosť a responsivita */
.team-photo {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* —— Projektové dokumenty (namespaced) —— */
#dokumenty .list-group {
  list-style: none;
  margin: 0;
  padding: 0;
}
#dokumenty .list-group-item {
  border-bottom: 1px solid #ddd;
}
#dokumenty .list-group-item:last-child {
  border-bottom: none;
}

#dokumenty .bold {
  font-weight: 600;
}

#dokumenty .doc-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
  flex: 0 0 auto;
}

#dokumenty .doc-link:hover {
  background-color: #eaeaea;
  transform: scale(1.05);
}

#dokumenty .icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

#dokumenty .icon-pdf {
  color: #c0392b;
}
#dokumenty .icon-doc {
  color: #2c3e50;
}

/* Mobilné menu toggle tlačidlo */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* Umiestnenie toggle tlačidla vedľa loga */
.container-fluid .menu-toggle {
  margin-left: auto;
}

/* Mobilné zobrazenie navigácie */
@media (max-width: 768px) {
  .navbar-nav {
    position: absolute;
    top: 60px;
    right: 15px;
    background: #fdfdfd;
    flex-direction: column;
    gap: 0;
    width: 200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 10px 0;
    border-radius: 6px;
  }

  .navbar-nav.show {
    display: flex;
  }

  .navbar-nav li {
    padding: 8px 15px;
  }

  .menu-toggle {
    display: block;
  }
}

/* Kontakt – štýly pre meno, funkciu a e-mail */
.contact-name {
  font-family: Calibri, sans-serif;
  font-weight: 600;
  font-size: 1.2rem; 
  color: #6c757d;
  display: inline-block;
}

.contact-role {
  font-family: Arial, sans-serif;
  font-style: italic;
  font-size: 1rem;
  color: #6c757d;
  display: inline-block;
}

.contact-email {
  font-family: Arial, sans-serif;
  font-style: italic;
  font-size: 1rem;
  font-weight: 530;
  color: #fb9912;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}

.contact-email:hover {
  text-decoration: underline;
  color: #333;
}

.scroll-anchor {
  display: block;
  height: 80px;
  margin-top: -80px;
  visibility: hidden;
  pointer-events: none;
}

body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

/* Navigácia */
body.dark-mode .navbar {
  background: #1e1e1e;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}
body.dark-mode .nav-link {
  color: #e0e0e0;
}
body.dark-mode .nav-link:hover {
  color: #fb9912;
}

/* Karty */
body.dark-mode .card-custom {
  background: #1e1e1e;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}
body.dark-mode .card-title {
  color: #e0e0e0;
}
body.dark-mode .img-team {
  background: #1e1e1e;
}

/* Tabuľky */
body.dark-mode .table th,
body.dark-mode .table td {
  border-color: #444;
}
body.dark-mode .table-striped tbody tr:nth-child(odd) {
  background: #1a1a1a;
}
body.dark-mode .table-hover tbody tr:hover {
  background: #2a2a2a;
}
body.dark-mode .table-head-dark th {
  background: #333;
  color: #fff;
}

/* Formuláre */
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #1e1e1e;
  color: #e0e0e0;
  border-color: #444;
}
body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
  border-color: #fb9912;
  box-shadow: 0 0 0 3px rgba(251, 153, 18, 0.25);
}

/* Zoznamy */
body.dark-mode .list-group-item {
  background: #1e1e1e;
  border-color: #444;
}
body.dark-mode #kontakt .list-group-item {
  background: #1e1e1e;
}

/* Footer */
body.dark-mode .footer {
  border-top: 1px solid #444;
  color: #aaa;
}

/* Tlačidlá */
body.dark-mode .btn-dark {
  background: #333;
  color: #fff;
}
body.dark-mode .btn-dark:hover {
  background: #000;
}

/* Odkazy */
body.dark-mode .contact-link,
body.dark-mode .contact-link:visited {
  color: #e0e0e0;
}
body.dark-mode .contact-link:hover {
  color: #fb9912;
}

/* PAYMY logo */
body.dark-mode .paymy .pay {
  color: #e0e0e0;
}

/* Dokumenty */
body.dark-mode #dokumenty .doc-link {
  background-color: #1e1e1e;
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
}
body.dark-mode #dokumenty .doc-link:hover {
  background-color: #2a2a2a;
}

/* tlačidlá zmeny režimu */
.theme-icon {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
  align-items: center;
}

/* tlačidlá zmeny režimu */
.square {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  display: inline-block;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

/* tlačidlá zmeny režimu */
.square.light {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
}

/* tlačidlá zmeny režimu */
.square.dark {
  background-color: #333;
  border: 1px solid #666;
}


/* Rozbaľovacie menu pre dokumenty */
.dropdown-wrapper {
  position: relative;
}

.dropdown-list {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 8px 0;
  margin: 6px 0 0 0;
  border-radius: 6px;
  min-width: 200px;
  z-index: 10;
}

.dropdown-list li a {
  display: block;
  padding: 6px 12px;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}

.dropdown-list li a:hover {
  background-color: #f8f9fa;
  color: #fb9912;
}

.hidden {
  display: none;
}

body.dark-mode .dropdown-list {
  background: #1e1e1e;
  border: 1px solid #444;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
}

body.dark-mode .dropdown-list li a {
  color: #e0e0e0;
}

body.dark-mode .dropdown-list li a:hover {
  background-color: #2c2c2c;
  color: #fb9912;
}

/* Mobilné zobrazenie navigácie - tmavý režim*/
@media (max-width: 768px) {
  body.dark-mode .navbar-nav {
    background: #1e1e1e;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
  }

  body.dark-mode .navbar-nav li {
    border-bottom: 1px solid #333;
  }

  body.dark-mode .nav-link {
    color: #ffffff;
  }

  body.dark-mode .nav-link:hover {
    color: #fb9912;
  }
}

body.dark-mode .icon-pdf svg path {
  fill: red;
}

