@layer legacy, reset, tokens, base, layout, components, pages, utilities;

/*
 * Transitional public-header bridge.
 * These rules stay unlayered so this isolated gv2-* component has identical
 * precedence on V2 pages and on legacy pages whose historical CSS is unlayered.
 */
.gv2-public-header {
  --gv2-public-content: 96rem;
  --gv2-public-header-bg: #050505;
  --gv2-public-header-line: rgb(255 255 255 / 14%);
  --gv2-public-header-muted: rgb(255 255 255 / 62%);
  font-family: var(--gv2-font-sans, Inter, Arial, Helvetica, sans-serif);
}

  .gv2-public-header {
    position: relative;
    z-index: 20;
    inline-size: 100%;
    color: #fff;
    background: var(--gv2-public-header-bg);
    font-family: var(--gv2-font-sans, Inter, Arial, Helvetica, sans-serif);
  }

  .gv2-public-header :where(a, button, summary) {
    color: inherit;
    font: inherit;
  }

  .gv2-public-header__alert {
    padding: 0.45rem 1rem;
    background: #e30613;
    font-size: clamp(0.75rem, 0.68rem + 0.2vw, 0.9rem);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
  }

  .gv2-public-header__top,
  .gv2-public-header__main {
    inline-size: min(calc(100% - 2rem), var(--gv2-public-content));
    margin-inline: auto;
  }

  .gv2-public-header__top {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) auto minmax(18rem, 1fr);
    gap: clamp(1rem, 3vw, 3rem);
    align-items: center;
    padding-block: 1rem;
  }

  .gv2-public-header__contacts,
  .gv2-public-header__social-wrap {
    display: grid;
    gap: 0.45rem;
    min-inline-size: 0;
  }

  .gv2-public-header__office,
  .gv2-public-header__phone-row,
  .gv2-public-header__socials,
  .gv2-public-header__top-actions,
  .gv2-public-header__languages,
  .gv2-public-header__actions {
    display: flex;
    align-items: center;
  }

  .gv2-public-header__office {
    gap: 0.5rem;
    color: var(--gv2-public-header-muted);
    font-size: 0.75rem;
  }

  .gv2-public-header__office i {
    inline-size: 0.45rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #1fd36b;
  }

  .gv2-public-header__office b {
    color: #1fd36b;
  }

  .gv2-public-header__phone-row {
    gap: 0.6rem;
  }

  .gv2-public-header__phone {
    font-size: clamp(1.1rem, 0.9rem + 0.7vw, 1.45rem);
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
  }

  .gv2-public-header__chevron {
    inline-size: 0.5rem;
    aspect-ratio: 1;
    border-inline-end: 0.1rem solid currentColor;
    border-block-end: 0.1rem solid currentColor;
    rotate: 45deg;
  }

  .gv2-public-header__social-wrap {
    justify-items: start;
  }

  .gv2-public-header__time {
    color: var(--gv2-public-header-muted);
    font-size: 0.75rem;
    font-weight: 700;
  }

  .gv2-public-header__socials {
    gap: 0.5rem;
  }

  .gv2-public-header__social,
  .gv2-public-header__round-action {
    display: inline-grid;
    place-items: center;
    min-inline-size: 2.5rem;
    min-block-size: 2.5rem;
    padding: 0.5rem;
    border: 0.0625rem solid var(--gv2-public-header-line);
    border-radius: 50%;
    background: rgb(255 255 255 / 7%);
    text-decoration: none;
    cursor: pointer;
  }

  .gv2-public-header__social svg,
  .gv2-public-header__round-action svg {
    inline-size: 1.15rem;
    block-size: 1.15rem;
    fill: currentColor;
  }

  .gv2-public-header__social span {
    font-size: 0.7rem;
    font-weight: 900;
  }

  .gv2-public-header__top-actions {
    justify-content: flex-end;
    gap: 0.6rem;
    min-inline-size: 0;
  }

  .gv2-public-header__languages {
    gap: 0.2rem;
    padding: 0.25rem;
    border: 0.0625rem solid var(--gv2-public-header-line);
    border-radius: 999rem;
  }

  .gv2-public-header__languages a {
    display: inline-grid;
    place-items: center;
    min-inline-size: 2.2rem;
    min-block-size: 2rem;
    padding-inline: 0.5rem;
    border-radius: 999rem;
    font-size: 0.75rem;
    font-weight: 850;
    text-decoration: none;
  }

  .gv2-public-header__languages a.is-active {
    color: #111;
    background: #fff;
  }

  .gv2-public-header__round-action {
    position: relative;
    list-style: none;
  }

  .gv2-public-header__round-action::-webkit-details-marker {
    display: none;
  }

  .gv2-public-header__round-action b {
    position: absolute;
    inset-block-start: -0.3rem;
    inset-inline-end: -0.2rem;
    display: grid;
    place-items: center;
    min-inline-size: 1.15rem;
    min-block-size: 1.15rem;
    padding-inline: 0.2rem;
    border-radius: 999rem;
    color: #fff;
    background: #e30613;
    font-size: 0.65rem;
  }

  .gv2-public-header__login,
  .gv2-public-header__partner,
  .gv2-public-header__auction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 2.75rem;
    padding: 0.7rem 1.2rem;
    border: 0.0625rem solid var(--gv2-public-header-line);
    border-radius: 0.7rem;
    color: #fff;
    background: transparent;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
  }

  .gv2-public-header__admin {
    position: relative;
  }

  .gv2-public-header__admin-menu {
    position: absolute;
    inset-block-start: calc(100% + 0.65rem);
    inset-inline-end: 0;
    display: grid;
    gap: 0.25rem;
    inline-size: min(18rem, calc(100vw - 2rem));
    padding: 0.8rem;
    border: 0.0625rem solid var(--gv2-public-header-line);
    border-radius: 0.75rem;
    color: #fff;
    background: #15171e;
    box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 35%);
  }

  .gv2-public-header__admin-menu :where(a, button) {
    display: block;
    inline-size: 100%;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
  }

  .gv2-public-header__main {
    display: grid;
    grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr) auto;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    align-items: center;
    padding-block: 1rem 1.35rem;
    border-block-start: 0.0625rem solid var(--gv2-public-header-line);
  }

  .gv2-public-header__brand {
    display: block;
    min-inline-size: 0;
  }

  .gv2-public-header__brand img {
    display: block;
    inline-size: 100%;
    max-inline-size: 12rem;
    block-size: auto;
  }

  .gv2-public-header__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem clamp(0.8rem, 2vw, 2rem);
    min-inline-size: 0;
  }

  .gv2-public-header__nav a {
    padding-block: 0.55rem;
    font-size: clamp(0.78rem, 0.7rem + 0.2vw, 0.95rem);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
  }

  .gv2-public-header__nav-indicator {
    display: none;
  }

  .gv2-public-header__actions {
    gap: 0.75rem;
  }

  .gv2-public-header__partner {
    border-color: #e30613;
    background: #e30613;
  }

  .gv2-public-header__auction {
    border-color: #e30613;
  }

  .gv2-public-header__nav-toggle {
    display: none;
    inline-size: 2.75rem;
    min-block-size: 2.75rem;
    padding: 0.65rem;
    border: 0.0625rem solid var(--gv2-public-header-line);
    border-radius: 0.65rem;
    background: transparent;
    cursor: pointer;
  }

  .gv2-public-header__nav-toggle span {
    display: block;
    inline-size: 100%;
    border-block-start: 0.125rem solid currentColor;
  }

  .gv2-public-header__nav-toggle span + span {
    margin-block-start: 0.35rem;
  }

  @media (max-width: 70rem) {
    .gv2-public-header__top {
      grid-template-columns: minmax(12rem, 1fr) minmax(18rem, 1fr);
    }

    .gv2-public-header__social-wrap {
      display: none;
    }

    .gv2-public-header__main {
      grid-template-columns: minmax(9rem, 12rem) auto minmax(0, 1fr);
    }

    .gv2-public-header__nav-toggle {
      display: block;
    }

    .gv2-public-header__nav {
      grid-column: 1 / -1;
      display: none;
      justify-content: stretch;
      padding-block: 0.5rem;
      border-block-start: 0.0625rem solid var(--gv2-public-header-line);
    }

    .gv2-public-header__nav.is-open {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gv2-public-header__actions {
      justify-content: flex-end;
    }
  }

  @media (max-width: 47.99rem) {
    .gv2-public-header__top,
    .gv2-public-header__main {
      inline-size: min(calc(100% - 1rem), var(--gv2-public-content));
    }

    .gv2-public-header__top {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 0.75rem;
      padding-block: 0.75rem;
    }

    .gv2-public-header__office,
    .gv2-public-header__languages a:not(.is-active),
    .gv2-public-header__top-actions > :nth-child(2),
    .gv2-public-header__top-actions > :nth-child(3) {
      display: none;
    }

    .gv2-public-header__phone {
      font-size: 1rem;
    }

    .gv2-public-header__languages {
      padding: 0;
      border: 0;
    }

    .gv2-public-header__main {
      grid-template-columns: minmax(8rem, 1fr) auto;
      padding-block: 0.8rem;
    }

    .gv2-public-header__brand img {
      max-inline-size: 9.5rem;
    }

    .gv2-public-header__actions {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gv2-public-header__nav.is-open {
      grid-template-columns: minmax(0, 1fr);
    }

    .gv2-public-header__nav a {
      padding: 0.7rem 0.4rem;
    }
  }
