:root {
  --site-header-navy: #123f4d;
  --site-header-navy-dark: #0d2d38;
  --site-header-gold: #b86f52;
  --site-action-gold: #b86f52;
  --site-action-gold-hover: #8f4f3a;
  --site-action-gold-text: #ffffff;
  --site-header-border: #e5e7eb;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--site-header-border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: var(--site-logo-column, 220px) minmax(0, 1fr) auto;
  min-height: var(--site-header-height, 78px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: stretch;
  gap: 16px;
}

.site-header__brand,
.site-header__actions {
  display: flex;
  align-items: center;
}

.site-header__logo {
  display: inline-flex;
  margin: var(--site-logo-space-y, 0) var(--site-logo-space-x, 0);
  align-items: center;
  transition: opacity 0.2s ease;
}

.site-header__logo:hover { opacity: 0.86; }

.site-header__logo img {
  width: var(--site-logo-width, 220px);
  height: var(--site-logo-height, 64px);
  max-width: none;
  object-fit: contain;
}

.site-header[data-logo-ratio-lock="1"] .site-header__logo img {
  height: auto;
  max-height: var(--site-logo-height, 64px);
}

.site-header__nav {
  display: flex;
  min-width: 0;
  align-items: stretch;
  justify-content: center;
}

.site-header__nav-link {
  position: relative;
  display: inline-flex;
  padding: 0 clamp(7px, .8vw, 13px);
  align-items: center;
  color: #24323a;
  font: 600 clamp(12px, .85vw, 14px)/1 Inter, sans-serif;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-header__nav-link:hover {
  background: #f7f9fa;
  color: var(--site-header-navy);
}

.site-header__nav-link::after {
  position: absolute;
  right: 15px;
  bottom: 0;
  left: 15px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--site-header-gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-header__nav-link:hover::after,
.site-header__nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header__nav-link.is-active {
  color: var(--site-header-navy);
  font-weight: 700;
}

.site-header__nav-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.site-header__nav-dropdown-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  gap: 4px;
}

.site-header__nav-dropdown-toggle > .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.site-header__nav-group.is-open .site-header__nav-dropdown-toggle > .material-symbols-outlined {
  transform: rotate(180deg);
}

.site-header__nav-group.is-active .site-header__nav-dropdown-toggle {
  color: var(--site-header-navy);
  font-weight: 700;
}

.site-header__nav-group.is-active .site-header__nav-dropdown-toggle::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header__nav-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  z-index: 60;
  display: none;
  width: max-content;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--tema-cizgi, var(--site-header-border));
  border-radius: 0 0 12px 12px;
  background: var(--tema-yuzey, #fff);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
  transform: translateX(-50%);
}

.site-header__nav-group.is-open .site-header__nav-dropdown {
  display: grid;
}

.site-header__nav-dropdown-link {
  display: flex;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 8px;
  align-items: center;
  color: var(--tema-metin, #24323a);
  font: 600 13px/1.3 Inter, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__nav-dropdown-link:hover,
.site-header__nav-dropdown-link.is-active {
  background: var(--tema-ana-soft, #edf4f6);
  color: var(--tema-ana-koyu, var(--site-header-navy));
}

.site-header__nav-dropdown-link.is-active {
  font-weight: 700;
}

.site-header__actions { min-width: 0; gap: 10px; }

.site-account {
  position: relative;
  z-index: 70;
}

.site-account__button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--site-action-gold);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  background: var(--site-action-gold);
  color: #fff;
  font: 700 14px/1 Inter, sans-serif;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-account__button:hover {
  border-color: var(--site-action-gold-hover);
  background: var(--site-action-gold-hover);
  color: #fff;
  transform: translateY(-1px);
}

.site-account__button .material-symbols-outlined { font-size: 20px; }

.site-account__chevron { font-size: 18px !important; transition: transform 0.2s ease; }
.site-account.is-open .site-account__chevron { transform: rotate(180deg); }

.site-account__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: 290px;
  overflow: hidden;
  border: 1px solid var(--site-header-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.site-account.is-open .site-account__menu { display: block; }

.site-account__option {
  display: flex;
  padding: 15px 16px;
  align-items: center;
  gap: 12px;
  color: #1f2937;
  text-decoration: none;
  transition: background 0.2s ease;
}

.site-account__option + .site-account__option { border-top: 1px solid #eef0f2; }
.site-account__option:hover { background: #f7f9fa; }

.site-account__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: #edf4f6;
  color: var(--site-header-navy);
}

.site-account__option strong,
.site-account__option small { display: block; }
.site-account__option strong { font: 700 14px/1.35 Inter, sans-serif; }
.site-account__option small { margin-top: 3px; color: #64748b; font: 400 12px/1.35 Inter, sans-serif; }
.site-account__logout { margin: 0; border: 0; }
.site-account__logout .site-account__option { width: 100%; border: 0; border-top: 1px solid #eef0f2; background: transparent; text-align: left; cursor: pointer; }

.site-header__mobile-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--site-header-border);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--site-header-navy);
}

@media (max-width: 1180px) {
  .site-header__inner { grid-template-columns: 190px minmax(0, 1fr) auto; gap: 12px; padding-inline: 16px; }
  .site-header__nav-link { padding-inline: 10px; font-size: 13px; }
  .site-header__nav-link::after { right: 10px; left: 10px; }
  .site-language__label { display: none; }
}

@media (max-width: 960px) {
  .site-header__inner {
    position: relative;
    grid-template-columns: minmax(150px, 1fr) auto;
    min-height: 70px;
  }

  .site-header__logo img { width:min(var(--site-logo-width,220px),190px);height:min(var(--site-logo-height,64px),52px); }
  .site-header__mobile-button { display: inline-flex; }
  .site-header .site-language { position: relative; right: auto; bottom: auto; }
  .site-header .site-language__menu { position: absolute; top: calc(100% + 10px); right: 0; bottom: auto; }

  .site-header__nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    padding: 8px;
    border: 1px solid var(--site-header-border);
    border-radius: 0 0 12px 12px;
    align-items: stretch;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.15);
  }

  .site-header__nav.is-open { display: flex; }
  .site-header__nav-link { min-height: 44px; padding: 0 14px; border-radius: 8px; }
  .site-header__nav-link::after { top: 9px; right: auto; bottom: 9px; left: 0; width: 3px; height: auto; transform: scaleY(0.5); }
  .site-header__nav-link:hover::after,
  .site-header__nav-link.is-active::after { transform: scaleY(1); }
  .site-header__nav-group { display: block; }
  .site-header__nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .site-header__nav-group.is-active .site-header__nav-dropdown-toggle::after { transform: scaleY(1); }
  .site-header__nav-dropdown {
    position: static;
    width: auto;
    min-width: 0;
    margin: 0 8px 6px 18px;
    padding: 4px;
    border-radius: 8px;
    box-shadow: none;
    transform: none;
  }
  .site-header__nav-dropdown-link { min-height: 40px; }
}

@media (max-width: 640px) {
  .site-header__inner { min-height: 66px; padding-inline: 12px; }
  .site-header__logo img { width:min(var(--site-logo-width,220px),160px);height:min(var(--site-logo-height,64px),44px);max-width:160px; }
  .site-header__actions { gap: 6px; }
  .site-account__button { width: 44px; padding: 0; justify-content: center; }
  .site-account__button > span:not(.material-symbols-outlined),
  .site-account__chevron { display: none; }
  .site-account__menu { position: fixed; top: 72px; right: 12px; width: min(290px, calc(100vw - 24px)); }
  .site-header .site-language__button { min-width: 44px; min-height: 44px; padding: 0; }
  .site-header .site-language__menu { position: fixed; top: 72px; right: 12px; bottom: auto; width: min(250px, calc(100vw - 24px)); }
}
