/* ============================================================
   AMSTERDAM DESKTOP HEADER - COMPACT REFERENCE LAYOUT V3
   Four explicit desktop grid columns prevent banner/search overlap.
   Logo follows the supplied compact roundel + wordmark reference.
============================================================ */

@media (min-width: 992px) {
  .site-header.premium-header {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #120e0b !important;
    border-top: 3px solid #caa85f !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  /*
   * Top row = logo | banner | search | account controls.
   * premium-header-actions becomes display:contents so its children occupy
   * separate grid cells and can never paint on top of the banner.
   */
  .site-header.premium-header .premium-header-reference {
    width: 100% !important;
    max-width: none !important;
    min-height: 104px !important;
    height: 104px !important;
    margin: 0 !important;
    padding: 12px 24px !important;
    display: grid !important;
    grid-template-columns: 270px minmax(360px, 630px) minmax(260px, 1fr) auto !important;
    column-gap: 14px !important;
    row-gap: 0 !important;
    align-items: center !important;
    background: #17100c !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .site-header.premium-header .premium-header-actions {
    display: contents !important;
  }

  /* Compact logo matching the reference: round gold icon + two-line name. */
  .site-header.premium-header .premium-header-reference .header-logo {
    grid-column: 1 !important;
    width: 270px !important;
    min-width: 0 !important;
    max-width: 270px !important;
    height: 70px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  .site-header.premium-header .premium-header-reference .site-logo-link.bsr-compact-brand {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    color: #d8b45f !important;
    text-decoration: none !important;
    overflow: hidden !important;
  }

  .site-header.premium-header .bsr-logo-roundel {
    flex: 0 0 60px !important;
    width: 60px !important;
    height: 60px !important;
    display: block !important;
    color: #d8b45f !important;
  }

  .site-header.premium-header .bsr-logo-roundel svg {
    width: 60px !important;
    height: 60px !important;
    display: block !important;
  }

  .site-header.premium-header .bsr-logo-copy {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  .site-header.premium-header .bsr-logo-city {
    display: block !important;
    color: #f4d782 !important;
    -webkit-text-fill-color: #f4d782 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 23px !important;
    font-weight: 800 !important;
    line-height: 1.02 !important;
    letter-spacing: -.015em !important;
    white-space: nowrap !important;
  }

  .site-header.premium-header .bsr-logo-type {
    display: block !important;
    margin-top: 5px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: .25em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  /* Banner is constrained to its own grid track. */
  .site-header.premium-header .premium-header-reference .header-ad {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 630px !important;
    height: 66px !important;
    min-height: 66px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden !important;
    border: 1px solid #6f6049 !important;
    border-radius: 6px !important;
    background: #0f0c0a !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  .site-header.premium-header .premium-header-reference .header-ad a,
  .site-header.premium-header .premium-header-reference .header-ad img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }

  .site-header.premium-header .premium-header-reference .header-ad img {
    object-fit: fill !important;
    object-position: center !important;
  }

  .site-header.premium-header .premium-header-actions .header-search {
    grid-column: 3 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .site-header.premium-header .premium-header-actions .header-search form {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    display: block !important;
    position: relative !important;
  }

  .site-header.premium-header .premium-header-actions .header-search input[type="search"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    border: 1px solid #6a5c49 !important;
    border-radius: 5px !important;
    outline: 0 !important;
    background: #15100d !important;
    color: #c8d8f1 !important;
    -webkit-text-fill-color: #c8d8f1 !important;
    box-shadow: none !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 58px !important;
    text-overflow: ellipsis !important;
  }

  .site-header.premium-header .premium-header-actions .header-search input[type="search"]::placeholder {
    color: #aebfda !important;
    opacity: 1 !important;
  }

  .site-header.premium-header .premium-header-actions .header-search button {
    display: none !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth {
    grid-column: 4 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 9px !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-auth {
    width: auto !important;
    min-width: 104px !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border: 1px solid #5d5143 !important;
    border-radius: 5px !important;
    background: #17120f !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    transform: none !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-register {
    min-width: 110px !important;
    border-color: #7b2639 !important;
    background: #7b2639 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-contact {
    min-width: 118px !important;
    border-color: #d0aa67 !important;
    background: #d0aa67 !important;
    color: #100c09 !important;
    -webkit-text-fill-color: #100c09 !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-auth:hover {
    border-color: #d0aa67 !important;
    background: #211912 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: none !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-register:hover {
    border-color: #96304a !important;
    background: #96304a !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-contact:hover {
    border-color: #e1bf7f !important;
    background: #e1bf7f !important;
    color: #100c09 !important;
    -webkit-text-fill-color: #100c09 !important;
  }

  /* Reference screenshot: dark lower row with navigation beginning after logo zone. */
  .site-header.premium-header .premium-header-nav-row {
    width: 100% !important;
    height: 59px !important;
    min-height: 59px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    background: #0d0907 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  .site-header.premium-header .premium-header-nav-row .header-nav {
    width: 100% !important;
    max-width: none !important;
    height: 59px !important;
    min-height: 59px !important;
    margin: 0 !important;
    padding: 0 20px 0 420px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu,
  .site-header.premium-header .premium-header-nav-row .wx-primary-menu {
    width: auto !important;
    max-width: 100% !important;
    height: 59px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow: hidden !important;
    background: #111b2b !important;
    list-style: none !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu > li {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a {
    height: 59px !important;
    min-height: 59px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .01em !important;
    text-transform: uppercase !important;
    transform: none !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a::before,
  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a::after {
    content: none !important;
    display: none !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a:hover,
  .site-header.premium-header .premium-header-nav-row .nav-menu > li.current-menu-item > a,
  .site-header.premium-header .premium-header-nav-row .nav-menu > li.current_page_item > a {
    background: rgba(255,255,255,.04) !important;
    color: #e6bd72 !important;
    -webkit-text-fill-color: #e6bd72 !important;
  }

  .site-header.premium-header .premium-header-reference .nav-lang-switch {
    display: none !important;
  }
}

/* Large desktop, reference proportions. */
@media (min-width: 1600px) {
  .site-header.premium-header .premium-header-reference {
    grid-template-columns: 280px minmax(500px, 630px) minmax(330px, 1fr) auto !important;
  }
}

/* Normal laptop / desktop. */
@media (min-width: 1281px) and (max-width: 1599px) {
  .site-header.premium-header .premium-header-reference {
    grid-template-columns: 230px minmax(330px, 470px) minmax(220px, 1fr) auto !important;
    gap: 11px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .site-header.premium-header .premium-header-reference .header-logo {
    width: 230px !important;
    max-width: 230px !important;
  }
  .site-header.premium-header .bsr-logo-roundel,
  .site-header.premium-header .bsr-logo-roundel svg {
    width: 54px !important;
    height: 54px !important;
    flex-basis: 54px !important;
  }
  .site-header.premium-header .bsr-logo-city { font-size: 20px !important; }
  .site-header.premium-header .bsr-logo-type { font-size: 11px !important; }
  .site-header.premium-header .premium-header-actions .header-auth .btn-auth {
    min-width: 86px !important;
    padding: 0 13px !important;
    font-size: 14px !important;
  }
  .site-header.premium-header .premium-header-actions .header-auth .btn-contact { min-width: 94px !important; }
  .site-header.premium-header .premium-header-nav-row .header-nav { padding-left: 300px !important; }
  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a {
    padding: 0 10px !important;
    font-size: 13px !important;
  }
}

/* Compact desktop widths. */
@media (min-width: 992px) and (max-width: 1280px) {
  .site-header.premium-header .premium-header-reference {
    grid-template-columns: 190px minmax(240px, 320px) minmax(150px, 1fr) auto !important;
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .site-header.premium-header .premium-header-reference .header-logo {
    width: 190px !important;
    max-width: 190px !important;
  }
  .site-header.premium-header .premium-header-reference .site-logo-link.bsr-compact-brand { gap: 8px !important; }
  .site-header.premium-header .bsr-logo-roundel,
  .site-header.premium-header .bsr-logo-roundel svg {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px !important;
  }
  .site-header.premium-header .bsr-logo-city { font-size: 17px !important; }
  .site-header.premium-header .bsr-logo-type { margin-top: 4px !important; font-size: 9px !important; letter-spacing: .18em !important; }
  .site-header.premium-header .premium-header-reference .header-ad {
    max-width: 320px !important;
    height: 60px !important;
    min-height: 60px !important;
  }
  .site-header.premium-header .premium-header-actions .header-search input[type="search"] {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    line-height: 54px !important;
  }
  .site-header.premium-header .premium-header-actions .header-auth { gap: 5px !important; }
  .site-header.premium-header .premium-header-actions .header-auth .btn-auth {
    min-width: 72px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
  }
  .site-header.premium-header .premium-header-actions .header-auth .btn-register { min-width: 88px !important; }
  .site-header.premium-header .premium-header-actions .header-auth .btn-contact { min-width: 78px !important; }
  .site-header.premium-header .premium-header-nav-row .header-nav {
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
  }
  .site-header.premium-header .premium-header-nav-row .nav-menu,
  .site-header.premium-header .premium-header-nav-row .wx-primary-menu {
    width: 100% !important;
    justify-content: center !important;
  }
  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a {
    padding: 0 7px !important;
    font-size: 11.5px !important;
  }
}
