* {
  box-sizing: border-box;
}

.custom-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  font-family: Arial, Helvetica, sans-serif;
}

.custom-nav__topbar {
  background: #efefef;
  border-top: 1px solid #3c3c3c;
  border-bottom: 1px solid #d8d8d8;
  height: 40px;
  display: flex;
  align-items: center;
}

.custom-nav__topbar-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 26px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-nav__top-left,
.custom-nav__top-center,
.custom-nav__top-right {
  display: flex;
  align-items: center;
}

.custom-nav__top-center {
  gap: 26px;
  margin-left: auto;
  margin-right: auto;
}

.custom-nav__top-right {
  gap: 14px;
}

.custom-nav__top-link,
.custom-nav__follow-text {
  font-size: 14px;
  line-height: 1;
  color: #2f314f;
  text-decoration: none;
  font-weight: 400;
}

.custom-nav__top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.custom-nav__top-link:hover {
  text-decoration: none;
  color: #2f314f;
  opacity: 0.85;
}

.custom-nav__social-link i,
.custom-nav__top-link i {
  font-size: 14px;
}

.custom-nav__main {
  background: #2d2f4f;
  height: 82px;
  display: flex;
  align-items: center;
  transition: height 0.25s ease, box-shadow 0.25s ease;
}

.custom-nav.is-scrolled .custom-nav__main {
  height: 74px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.custom-nav__main-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 36px 0 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.custom-nav__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.custom-nav__brand img {
    display: block;
    width: 80px;
    height: auto;
    object-fit: contain;
}

.custom-nav__menu-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 72px;
}

.custom-nav__menu {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 54px;
}

.custom-nav__item {
  position: relative;
}

.custom-nav__link {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  display: inline-block;
  padding: 8px 0;
  white-space: nowrap;
}

.custom-nav__link:hover {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
}

.custom-nav__icons {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: 52px;
  flex: 0 0 auto;
}

.custom-nav__icon-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 31px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-nav__icon-link:hover {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
}

.custom-nav__user-link {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 58px;
  line-height: 1;
}

.custom-nav__user-link:hover {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.85;
}

.custom-nav__icon-link--user {
  font-size: 27px;
}

.custom-nav__user-greeting {
  display: block;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
}

.custom-nav__dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.custom-nav__item--dropdown:hover .custom-nav__dropdown,
.custom-nav__item--dropdown.is-hover .custom-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-nav__dropdown-link {
  display: block;
  padding: 11px 18px;
  font-size: 14px;
  color: #2d2f4f;
  text-decoration: none;
  white-space: nowrap;
}

.custom-nav__dropdown-link:hover {
  background: #f2f2f2;
  color: #2d2f4f;
  text-decoration: none;
}

.custom-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: auto;
  position: relative;
}

.custom-nav__toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #ffffff;
  margin: 6px auto;
  transition: all 0.25s ease;
}

body {
  padding-top: 122px;
}

@media (max-width: 1199px) {
  .custom-nav__menu {
    gap: 34px;
  }

  .custom-nav__icons {
    gap: 22px;
    margin-left: 30px;
  }

  .custom-nav__main-inner {
    padding: 0 24px;
  }

  .custom-nav__menu-wrap {
    margin-left: 40px;
  }
}

@media (max-width: 991px) {
  body {
    padding-top: 112px;
  }

  .custom-nav__topbar {
    height: auto;
    padding: 8px 0;
  }

  .custom-nav__topbar-inner {
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
  }

  .custom-nav__top-center {
    margin: 0;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .custom-nav__main {
    height: 72px;
  }

  .custom-nav__main-inner {
    padding: 0 16px;
  }

  .custom-nav__brand img {
    width: 105px;
  }

  .custom-nav__toggle {
    display: block;
  }

  .custom-nav__menu-wrap {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #2d2f4f;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    padding: 18px 16px 24px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  }

  .custom-nav__menu-wrap.is-open {
    display: flex;
  }

  .custom-nav__menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
  }

  .custom-nav__item {
    width: 100%;
  }

  .custom-nav__link {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 15px;
  }

  .custom-nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    margin-top: 0;
    display: none;
    width: 100%;
    padding: 6px 0;
  }

  .custom-nav__item--dropdown:hover .custom-nav__dropdown,
  .custom-nav__item--dropdown.is-hover .custom-nav__dropdown {
    display: block;
  }

  .custom-nav__dropdown-link {
    color: #ffffff;
    padding: 10px 12px;
    font-size: 14px;
  }

  .custom-nav__dropdown-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .custom-nav__icons {
    margin-left: 0;
    margin-top: 18px;
    gap: 24px;
  }

  .custom-nav__icon-link {
    font-size: 26px;
  }

  .custom-nav__user-link {
    min-width: 52px;
  }

  .custom-nav__user-greeting {
    max-width: 82px;
    font-size: 10px;
  }
}

@media (max-width: 575px) {
  .custom-nav__top-link,
  .custom-nav__follow-text {
    font-size: 13px;
  }

  .custom-nav__top-center {
    flex-direction: column;
    gap: 8px;
  }

  .custom-nav__brand img {
    width: 92px;
  }

  .custom-nav__main {
    height: 68px;
  }

  .custom-nav__menu-wrap {
    top: 68px;
  }
}

/* Modal obavijest za testnu fazu. Prikazuje se samo pri prvom ulasku za aktualni tekst. */
.site-test-phase-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.site-test-phase-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.site-test-phase-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 32, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.site-test-phase-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 36px 38px 32px;
  box-shadow: 0 28px 80px rgba(8, 14, 30, .28);
  text-align: center;
  font-family: "Raleway", sans-serif;
  transform: translateY(14px) scale(.985);
  transition: transform .22s ease;
}

.site-test-phase-modal.is-visible .site-test-phase-modal__dialog {
  transform: translateY(0) scale(1);
}

.site-test-phase-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f7;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.site-test-phase-modal__eyebrow {
  margin-bottom: 8px;
  color: #fb8c00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.site-test-phase-modal__dialog h2 {
  margin: 0;
  color: #101828;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
}

.site-test-phase-modal__discount {
  margin: 16px auto 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff3e0;
  color: #e56f00;
  font-size: 20px;
  font-weight: 800;
}

.site-test-phase-modal__text {
  margin: 0 auto 24px;
  max-width: 420px;
  color: #667085;
  font-size: 15px;
  line-height: 1.55;
}

.site-test-phase-modal__button {
  min-width: 150px;
  border: 0;
  border-radius: 12px;
  padding: 13px 24px;
  background: #2d3154;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(45,49,84,.18);
}

body.site-test-phase-modal-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .site-test-phase-modal { padding: 16px; }
  .site-test-phase-modal__dialog { padding: 32px 20px 26px; border-radius: 18px; }
  .site-test-phase-modal__dialog h2 { font-size: 24px; }
  .site-test-phase-modal__discount { font-size: 18px; }
}
