/* ====== HEADER ====== */
.site-header {
  width: 100%;
  margin-bottom: 35px;
}

.header-inner {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

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

.header-left {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.header-center {
  justify-self: center;
}

.header-right {
  justify-self: end;
  gap: 0.5rem;
}

.back-link {
  font-size: 0.92rem;
  color: #666;
  text-decoration: none;
}
.back-link:hover {
  color: #333;
  text-decoration: underline;
}

.compare-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  color: #007db1;
  padding: 0.25rem 0.4rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.compare-link:hover {
  color: #007db1;
}

.brand-logo {
  height: 46px;
  width: auto;
}
@media (min-width: 992px) {
  .brand-logo {
    height: 52px;
  }
}

.lang-btn {
  line-height: 1;
  padding: 0.65rem;
}

.compare-link:focus,
.back-link:focus,
.lang-btn:focus {
  outline: 2px solid #86b7fe;
  outline-offset: 2px;
}

#languageDropdown {
  border-radius: 4px;
}

/* ====== MOBIL (<768px) ====== */
@media (max-width: 767.98px) {
  .site-header {
    margin-bottom: 15px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "back   logo"
      "lang   logo"
      "compare logo";
    gap: 0.8rem;
    padding: 0.9rem 0.9rem;
  }

  .header-left {
    display: contents;
  }

  .back-link {
    grid-area: back;
    justify-self: start;
  }

  .header-center {
    grid-area: logo;
    justify-self: end;
  }

  .header-right {
    grid-area: lang;
    justify-self: start;
  }

  .compare-link {
    grid-area: compare;
    justify-self: start;
    font-size: 0.95rem;
  }

  .brand-logo {
    height: 48px;
  }

  .lang-btn {
    padding: 0.45rem;
    font-size: 0.85rem;
  }

  .header-right .lang-btn {
    margin-top: 0.1rem;
  }

  .header-right .dropdown-menu {
    min-width: 180px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.9rem;
  }
}
