:root {
  --qld-green: #b7ff17;
  --qld-dark: #0d2330;
}

body {
  font-family: Poppins, Arial, sans-serif;
}

.container {
  width: min(1280px, 100% - 32px);
  margin: 0 auto;
}

.top-header {
  background: var(--qld-green);
  min-height: 120px;
  display: flex;
  align-items: center;
}

.top-header-inner {
  display: grid;
  grid-template-columns: auto 420px auto;
  align-items: center;
  gap: 28px;
  width: 100%;
}


/* LOGO */

.logo {
  display: flex;
  flex-direction: column;
  color: var(--qld-dark);
  text-decoration: none;
}

.qld-logo-img {
  display: block;
  width: 252px;
  max-width: 100%;
  height: auto;
}

.qld-logo-subtitle {
  margin: 0;
  padding: 0;
  font-weight: 400 !important;
  font-size: 1.1em;
  line-height: 1.2;
  color: var(--qld-dark);
}


/* SEARCH */

.header-search {
  width: 100%;
  max-width: 520px;
  justify-self: start;
  align-self: end;
}


.search-form {
  width: 100%;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 46px 0 16px;
  border: 1px solid var(--qld-dark);
  border-radius: 999px;
  background: var(--qld-green);
  color: var(--qld-dark);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.search-input::placeholder {
  color: var(--qld-dark);
  opacity: .7;
}

.search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--qld-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.search-submit:hover {
  background: rgba(13, 35, 48, 0.08);
  color: var(--qld-dark);
  transform: translateY(-50%) scale(1.05);
}


/* RIGHT BLOCK */

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  gap: 9px;
}


/* SHOP BUTTON */

.shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #071b2a;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 999px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, background .2s;
}

.shop-button:hover {
  background: #000f1b;
  color: #fff;
  transform: translateY(-1px);
}


/* LINKS UNDER SHOP BUTTON */

.header-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.header-links a {
  position: relative;
  color: var(--qld-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header-links a:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
  color: var(--qld-dark);
  opacity: .7;
}

.header-links a:hover {
  text-decoration: underline;
}


/* TABLET */

@media (max-width: 1050px) {

  .top-header {
    min-height: auto;
  }

  .top-header-inner {
    grid-template-columns: auto 1fr;
    gap: 18px 30px;
    padding: 16px 0;
  }

  .header-search {
    max-width: none;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-self: center;
  }
}


/* MOBILE */

@media (max-width: 700px) {

  .top-header-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .logo {
    align-items: center;
    text-align: center;
  }

  .header-search {
    width: 100%;
    max-width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .header-links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .shop-button {
    width: auto;
  }
}