/* =========================================================
   TOPBAR
========================================================= */

.site-topbar {
  background: var(--color-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.site-topbar__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-topbar__left {
  display: flex;
  align-items: center;
}

.site-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.site-topbar__icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-topbar__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 42, 60, 0.06);
}

.site-header__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

/* =========================================================
   BRANDING
========================================================= */

.site-branding {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-branding__link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.site-branding__text {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.site-branding__text--dark {
  color: var(--color-primary);
}

.site-branding__text--accent {
  color: var(--color-accent);
}

/* =========================================================
   NAVIGATION
========================================================= */

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu li {
  margin: 0;
  padding: 0;
}

.header-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  transition: color 0.2s ease;
}

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

.header-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.header-menu a:hover::after {
  transform: scaleX(1);
}

/* =========================================================
   ACTIONS
========================================================= */

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

.header-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.header-icon:hover {
  background: rgba(15, 42, 60, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 42, 60, 0.08);
  color: var(--color-accent);
}

.header-icon svg {
  width: 25px;
  height: 25px;
  display: block;
}

.header-icon__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(255, 122, 0, 0.22);
}

.header-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  margin-left: 14px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255, 122, 0, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 122, 0, 0.26);
}

/* =========================================================
   DROPDOWNS
========================================================= */

.header-menu .menu-item-has-children {
  position: relative;
}

.header-menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 12px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15, 42, 60, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 42, 60, 0.10);
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.header-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-menu .sub-menu a {
  min-height: auto;
  padding: 10px 12px;
  border-radius: 12px;
}

.header-menu .sub-menu a::after {
  display: none;
}

.header-menu .sub-menu a:hover {
  background: rgba(15, 42, 60, 0.04);
  color: var(--color-primary);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .site-header__inner {
    gap: 18px;
  }

  .header-menu {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .site-topbar__inner {
    padding: 6px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-topbar__right {
    gap: 12px;
  }

  .site-header__inner {
    padding: 0 14px;
    min-height: 74px;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .primary-nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-icon {
    width: 40px;
    height: 40px;
  }

  .header-cta-button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .header-cta-button {
    display: none;
  }

  .header-icon {
    width: 38px;
    height: 38px;
  }

  .header-icon svg {
    width: 19px;
    height: 19px;
  }

  .site-branding__text {
    font-size: 16px;
  }
}

/* =========================================================
   MEGA MENU - CONTAINER HUREN
========================================================= */

.primary-nav {
  position: relative;
}

.header-mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(1320px, calc(100vw - 40px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 50;
}

.header-mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.header-mega-menu__inner {
  background: #fff;
  border: 1px solid rgba(15, 42, 60, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 42, 60, 0.12);
  padding: 24px 26px 22px;
}

.header-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
}

.header-mega-menu__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 18px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-mega-menu__card:hover {
  background: rgba(15, 42, 60, 0.04);
  transform: translateY(-2px);
}

.header-mega-menu__image {
  border-radius: 05px;
}

.header-mega-menu__image-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
}

.header-mega-menu__image {
  width: auto;
  max-width: 100%;
  max-height: 72px;
  display: block;
  object-fit: contain;
}

.header-mega-menu__title {
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  letter-spacing: -0.02em;
}

.header-menu>li.menu-item--has-mega-menu {
  position: relative;
}

.header-menu>li.menu-item--has-mega-menu>a::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-left: 1px solid rgba(15, 42, 60, 0.08);
  border-top: 1px solid rgba(15, 42, 60, 0.08);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

.header-menu>li.menu-item--has-mega-menu.is-hovered>a::before {
  opacity: 1;
  visibility: visible;
}

.header-menu>li.menu-item--has-mega-menu>a::before {
  display: none !important;
}



@media (max-width: 1200px) {
  .header-mega-menu__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-mega-menu {
    display: none;
  }
}

.header-menu__link--with-chevron {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-menu__chevron {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.header-menu__chevron svg {
  width: 24px;
  height: 24px;
  display: block;
}

.header-menu>li.menu-item--has-mega-menu.is-hovered .header-menu__chevron {
  transform: rotate(180deg);
}