/**
 * Brand refresh — accent from Cylex logo (#a60024)
 * Loaded after legacy IKM CSS bundles.
 */
:root {
  --pink: #a60024;
  --purple: #653092;
  --brand-red: #a60024;
  --brand-red-light: #c8223f;
  --brand-red-dark: #7a0018;
  --brand-roof-gradient: linear-gradient(
    180deg,
    var(--brand-red-light) 0%,
    var(--brand-red) 55%,
    var(--brand-red-dark) 100%
  );
}

#navMenu,
.subpage-header {
  background: var(--brand-roof-gradient) !important;
}

/* Ikona „strechy“ (arrow-shape.svg) + sprievodné gradienty */
section.basic-info {
  background: url(/assets/img/arrow-shape.svg), var(--brand-roof-gradient) !important;
  background-size: 34.375rem !important;
  background-position: bottom -50px right -150px, top left !important;
  background-repeat: no-repeat, repeat !important;
}

section.references .reference-box {
  background-image: url(/assets/img/arrow-shape.svg), var(--brand-roof-gradient) !important;
}

section.management-steps .steps-row .step .circle,
section.management-steps .steps-row .final-step .circle {
  background: var(--brand-roof-gradient) !important;
}

a.link.pink,
.in-text-link,
footer .footer-link:hover,
footer .social-icons a:hover,
footer .job-offers ul li a:hover,
footer .dark-footer .dark-footer-content a.link:hover,
nav ul.pagination .page-item:hover .page-link,
nav ul.pagination .page-item.active .page-link,
.page-404 h1 {
  color: #a60024 !important;
}

a.btn,
button.btn,
.btn.loading,
.dark-contact-form .btn,
.page-404 .btn,

a.btn-outline:hover,
nav ul.pagination .page-item .page-link.arrow:hover {
  background-color: #a60024 !important;
}

a.link.pink:hover {
  color: #653092 !important;
}

nav ul.pagination .page-item .page-link.arrow,
nav ul.pagination .page-item:hover .page-link {
  border-color: #a60024 !important;
}

section.projects .project-title,
section.project .project-title,
section.career .career-row .career-title,
section.career-detail h3,
section.contact h3,
section.contact h5,
section.news .article-row .text-content .article,
section.post-detail h1 {
  color: #a60024 !important;
}

section.projects .project-title:hover,
section.project .project-title:hover,
section.career .career-row .career-title:hover {
  color: #653092 !important;
}

/* Header logo — plynulý scroll bez skoku (prepíše legacy width: 150px → 100px) */
.nav-and-logo {
  transition: background-color 0.35s ease !important;
}

.nav-and-logo .logo,
.nav-and-logo .nav {
  padding-top: 1.25rem !important;
  padding-bottom: 0.875rem !important;
  transition:
    padding 0.35s ease,
    background-color 0.35s ease !important;
}

.nav-and-logo.scrolled .logo,
.nav-and-logo.scrolled .nav {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.nav-and-logo .logo-link {
  display: block;
  line-height: 0;
}

.nav-and-logo .logo img,
.nav-and-logo .logo-link img {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  height: 48px !important;
  border-radius: 4px;
  transition: height 0.35s ease !important;
}

.nav-and-logo.scrolled .logo img,
.nav-and-logo.scrolled .logo-link img {
  height: 44px !important;
}

@media (max-width: 767.98px) {
  .nav-and-logo .logo,
  .nav-and-logo .nav {
    padding-top: 0.875rem !important;
    padding-bottom: 0.75rem !important;
  }

  .nav-and-logo.scrolled .logo,
  .nav-and-logo.scrolled .nav {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
  }

  .nav-and-logo .logo img,
  .nav-and-logo .logo-link img {
    height: 39px !important;
  }

  .nav-and-logo.scrolled .logo img,
  .nav-and-logo.scrolled .logo-link img {
    height: 37px !important;
  }
}

@media (max-width: 575.98px) {
  .nav-and-logo .logo img,
  .nav-and-logo .logo-link img {
    height: 37px !important;
  }

  .nav-and-logo.scrolled .logo img,
  .nav-and-logo.scrolled .logo-link img {
    height: 35px !important;
  }
}

/* Podstránky — konzistentné zobrazenie */
section.about-us h2,
section.text-content h2,
section.contact h2 {
  color: #2e3c54;
}

section.management-steps .steps-row .step .circle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Projektový manažment — šípky (globals #app img im inak roztiahne) */
section.management-steps {
  overflow-x: hidden;
}

section.management-steps img.direction-arrow,
section.management-steps img.arrow-down,
section.management-steps img.el-arrow {
  max-width: none;
  flex-shrink: 0;
}

section.management-steps img.direction-arrow {
  display: inline-block;
  width: auto;
  height: 0.625rem;
  margin-top: 1.25rem;
}

section.management-steps img.direction-arrow.left {
  transform: rotate(180deg);
}

section.management-steps img.arrow-down {
  display: inline-block;
  width: 0.625rem;
  height: auto;
  margin: 0.625rem 0;
}

section.management-steps .next-row {
  display: flex;
}

section.management-steps .next-row.right {
  justify-content: flex-end;
}

section.management-steps .next-row.right .arrow-down {
  margin-right: 4.375rem;
}

section.management-steps .next-row.left {
  justify-content: flex-start;
}

section.management-steps .next-row.left .arrow-down {
  margin-left: 4.375rem;
}

@media (max-width: 991.98px) {
  section.management-steps .next-row.right .arrow-down {
    margin-right: 65px;
  }

  section.management-steps .next-row.left .arrow-down {
    margin-left: 65px;
  }
}

@media (max-width: 767.98px) {
  section.management-steps img.direction-arrow {
    height: 5px;
    margin-top: 15px;
  }

  section.management-steps img.arrow-down {
    width: 5px;
  }

  section.management-steps .next-row.right .arrow-down {
    margin-right: 57px;
  }

  section.management-steps .next-row.left .arrow-down {
    margin-left: 57px;
  }
}

section.news .article-row .img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

section.news .article-row .title {
  display: block;
  font-size: 1.1875rem;
  font-weight: 700;
  color: #2e3c54;
  text-decoration: none;
  margin-bottom: 1rem;
}

section.news .article-row .title:hover {
  color: #a60024;
}

.dark-contact-form .ikm-form--light .btn {
  background: #a60024 !important;
}

/* Pozitívne ohlasy — bez pretekania do ľavého stĺpca */
section.references .references-row {
  align-items: flex-start;
}

section.references .references-slider-col {
  min-width: 0;
  overflow: hidden;
}

section.references .slider-wrapper {
  overflow: hidden;
}

section.references .references-embla {
  overflow: hidden;
  width: 100%;
}

section.references .references-embla__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
}

section.references .references-embla__slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

section.references .references-embla__slide-row {
  margin-left: 0;
  margin-right: 0;
}

section.references .references-embla__slide-row > [class*="col-"] {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  section.references .references-embla__slide-row > .col-md-6:first-child {
    padding-right: 0.75rem;
  }

  section.references .references-embla__slide-row > .col-md-6:last-child {
    padding-left: 0.75rem;
  }

  section.references .references-embla__slide-row > .col-md-6:only-child {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 767.98px) {
  section.references .reference-box {
    margin-bottom: 0;
  }
}

@media (min-width: 992px) {
  section.references .slider-controller-wrapper {
    position: relative;
    z-index: 1;
  }

  section.references .references-slider-col {
    position: relative;
    z-index: 0;
  }
}

/* Homepage — novinky */
section.news h2 {
  color: #2e3c54;
}

section.news .img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Detail kariéry — čitateľný HTML obsah */
section.career-detail table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}

section.career-detail table td {
  vertical-align: top;
  padding-bottom: 0.75rem;
  line-height: 1.55;
  color: #2e3c54;
}

section.career-detail h4.heading {
  margin-bottom: 1.25rem;
  font-weight: 700;
}

section.career-detail .career-body {
  color: #2e3c54;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}

section.career-detail .career-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

section.career-detail .career-body li {
  margin-bottom: 0.5rem;
}

/* Detail projektu */
section.project a.project-img {
  background-size: cover;
  background-position: center;
}

section.project .project-section-heading {
  color: #a60024;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: none;
}

section.project .project-body {
  color: #2e3c54;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 52rem;
}

section.project table td strong {
  font-weight: 600;
  color: #2e3c54;
}

/* Kontakt — modernejší layout */
section.contact.contact--modern {
  padding: 4rem 0 5rem;
}

section.contact.contact--modern .contact-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

section.contact.contact--modern .contact-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a60024;
}

section.contact.contact--modern h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  line-height: 1.2;
  font-weight: 700;
}

section.contact.contact--modern h2 span {
  color: #a60024;
}

section.contact.contact--modern .contact-lead {
  max-width: none;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #2e3c54;
}

section.contact.contact--modern .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

section.contact.contact--modern .contact-card {
  background: #f4f6f9;
  border: 1px solid rgba(46, 60, 84, 0.08);
  border-radius: 12px;
  padding: 1.375rem 1.5rem;
  margin-bottom: 1rem;
}

section.contact.contact--modern .contact-card h3 {
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a60024 !important;
}

section.contact.contact--modern .contact-card__company {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: #2e3c54;
  line-height: 1.45;
}

section.contact.contact--modern .contact-card__lines {
  margin: 0 0 1rem;
  color: #2e3c54;
  line-height: 1.55;
}

section.contact.contact--modern .contact-card__sub {
  margin: 1rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(46, 60, 84, 0.65);
}

section.contact.contact--modern .contact-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #653092;
  text-decoration: none;
}

section.contact.contact--modern .contact-card__link:hover {
  color: #a60024;
}

section.contact.contact--modern .contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

section.contact.contact--modern .contact-list li + li {
  margin-top: 0.5rem;
}

section.contact.contact--modern .contact-list__value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #2e3c54;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

section.contact.contact--modern .contact-list__value:hover {
  color: #653092;
  border-bottom-color: #653092;
}

section.contact.contact--modern .contact-card--social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0;
  text-decoration: none;
  background: linear-gradient(135deg, #2e3c54 0%, #3d4f6c 100%);
  border-color: transparent;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section.contact.contact--modern .contact-card--social:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 60, 84, 0.22);
}

section.contact.contact--modern .contact-card__social-label {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

section.contact.contact--modern .contact-card__social-title {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 700;
}

section.contact.contact--modern .contact-card--social .icon-arrow-right {
  font-size: 1.25rem;
  opacity: 0.9;
}

section.contact.contact--modern .contact-form-card {
  background: #2e3c54;
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 22px 48px rgba(46, 60, 84, 0.2);
}

section.contact.contact--modern .contact-form-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff !important;
  text-transform: none;
  letter-spacing: 0;
}

section.contact.contact--modern .contact-form-hint {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

section.contact.contact--modern .contact-form-card .btn {
  background: #a60024 !important;
}

section.contact.contact--modern .contact-form-card .btn:not(.loading):hover {
  background: #653092 !important;
}

section.contact.contact--modern .contact-map {
  margin-top: 3rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(46, 60, 84, 0.12);
  box-shadow: 0 8px 24px rgba(46, 60, 84, 0.08);
}

section.contact.contact--modern .contact-map iframe {
  display: block;
  width: 100%;
  height: min(22rem, 50vh);
  border: 0;
}

@media (max-width: 991.98px) {
  section.contact.contact--modern {
    padding: 3rem 0 4rem;
  }

  section.contact.contact--modern .contact-layout {
    grid-template-columns: 1fr;
  }

  section.contact.contact--modern .contact-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  section.contact.contact--modern .contact-card {
    margin-bottom: 0;
  }

  section.contact.contact--modern .contact-card--social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  section.contact.contact--modern {
    padding: 2.5rem 0 3rem;
  }

  section.contact.contact--modern .contact-intro {
    margin-bottom: 2rem;
    text-align: left;
  }

  section.contact.contact--modern .contact-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Cookie consent — modern panel aligned with IKM brand */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-consent {
  position: fixed;
  z-index: 10050;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem 1.25rem;
  pointer-events: none;
}

.cookie-consent__card {
  pointer-events: auto;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(46, 60, 84, 0.12);
  box-shadow:
    0 4px 6px rgba(46, 60, 84, 0.04),
    0 24px 48px rgba(46, 60, 84, 0.14);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cookie-consent__card {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem 2rem;
    padding: 1.35rem 1.75rem;
  }
}

.cookie-consent__brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-consent__mark {
  flex-shrink: 0;
  width: 4px;
  align-self: stretch;
  min-height: 3rem;
  border-radius: 4px;
  background: linear-gradient(180deg, #c8223f 0%, #a60024 55%, #7a0018 100%);
}

.cookie-consent__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #2e3c54;
  line-height: 1.3;
}

.cookie-consent__lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4a5568;
  max-width: 42rem;
}

.cookie-consent__actions,
.cookie-consent__dialog-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

@media (max-width: 767.98px) {
  .cookie-consent__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.cookie-consent__btn {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  border: 1px solid transparent;
}

.cookie-consent__btn--primary {
  background: #a60024 !important;
  color: #fff !important;
  border-color: #a60024 !important;
  box-shadow: 0 2px 8px rgba(166, 0, 36, 0.28);
}

.cookie-consent__btn--primary:hover {
  background: #7a0018 !important;
  border-color: #7a0018 !important;
}

.cookie-consent__btn--ghost {
  background: #fff !important;
  color: #2e3c54 !important;
  border-color: rgba(46, 60, 84, 0.22) !important;
}

.cookie-consent__btn--ghost:hover {
  border-color: #a60024 !important;
  color: #a60024 !important;
}

.cookie-consent__backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(46, 60, 84, 0.45);
  backdrop-filter: blur(4px);
}

.cookie-consent__dialog {
  width: 100%;
  max-width: 32rem;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.18);
}

.cookie-consent__dialog-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2e3c54;
}

.cookie-consent__dialog-head p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5a6578;
}

.cookie-consent__category {
  padding: 1rem 0;
  border-top: 1px solid rgba(46, 60, 84, 0.1);
}

.cookie-consent__category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.cookie-consent__category-row strong {
  display: block;
  font-size: 0.95rem;
  color: #2e3c54;
}

.cookie-consent__badge {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a60024;
  background: rgba(166, 0, 36, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.cookie-consent__category-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #5a6578;
}

.cookie-consent__more {
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a60024;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  color: #5a6578;
  line-height: 1.45;
}

.cookie-consent__list code {
  font-size: 0.75rem;
  background: #f4f6f8;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.cookie-consent__switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-consent__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-consent__switch-track {
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #cbd5e0;
  transition: background 0.2s ease;
  position: relative;
}

.cookie-consent__switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.cookie-consent__switch input:checked + .cookie-consent__switch-track {
  background: #a60024;
}

.cookie-consent__switch input:checked + .cookie-consent__switch-track::after {
  transform: translateX(1.25rem);
}

.cookie-consent__switch input:disabled + .cookie-consent__switch-track {
  opacity: 0.65;
  cursor: not-allowed;
}

.cookie-consent__dialog-foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(46, 60, 84, 0.1);
}

footer .dark-footer .cookie-settings-link.link {
  color: rgba(255, 255, 255, 0.85) !important;
}

footer .dark-footer .cookie-settings-link.link:hover {
  color: #fff !important;
}
