:root {
  --shell-bg: #0f0f0f;
  --shell-white: #ffffff;
  --shell-border: rgba(255, 255, 255, 0.2);
  --shell-forest: #545454;
  --shell-serif: "Ivy Mode", "IvyMode", "Cormorant Garamond", Georgia, serif;
  --shell-sans: "SF Pro Display", "Inter", "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Ivy Mode";
  src:
    url("../assets/fonts/ivy-mode/IvyMode-Regular.woff2") format("woff2"),
    url("../assets/fonts/ivy-mode/IvyMode-Regular.woff") format("woff"),
    local("Ivy Mode"),
    local("IvyMode"),
    local("IvyMode Regular");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src:
    url("../assets/fonts/sf-pro/SFPRODISPLAYREGULAR.OTF") format("opentype"),
    local("SF Pro Display"),
    local("SF Pro Text"),
    local("SF Pro"),
    local("SFProDisplay-Regular"),
    local("SFProText-Regular");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src:
    url("../assets/fonts/sf-pro/SF-Pro-Display-Light.otf") format("opentype"),
    local("SF Pro Display Light"),
    local("SFProDisplay-Light");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src:
    url("../assets/fonts/sf-pro/SFPRODISPLAYMEDIUM.OTF") format("opentype"),
    local("SF Pro Display Medium"),
    local("SFProDisplay-Medium");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src:
    url("../assets/fonts/sf-pro/SF-Pro-Display-Semibold.otf") format("opentype"),
    local("SF Pro Display Semibold"),
    local("SF Pro Text Semibold"),
    local("SFProDisplay-Semibold"),
    local("SFProText-Semibold");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body.has-global-shell {
  position: relative;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.site-header-wrap {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 50;
}

.site-header {
  width: min(100% - 76px, 1364px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  height: 82px;
  padding: 0 27px 0 50px;
  border: 1px solid var(--shell-border);
  border-radius: 100px;
  background: var(--shell-white);
}

.site-menu-toggle,
.site-menu-close {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.site-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f0f0f;
}

.site-brand {
  font-family: var(--shell-serif);
  font-size: 24px;
  line-height: 1;
  color: #0f0f0f;
  text-decoration: none;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
}

.site-nav a {
  color: #0f0f0f;
  text-decoration: none;
  font-family: var(--shell-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 26px;
}

.site-nav__item--with-caret {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.site-nav__caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #0f0f0f;
  transform: translateY(1px);
}

.site-nav__dropdown {
  position: relative;
}

.site-nav__dropdown-toggle {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #0f0f0f;
  font-family: var(--shell-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 26px;
  opacity: 0.78;
  padding: 0;
}

.site-nav__dropdown:hover .site-nav__caret,
.site-nav__dropdown-toggle[aria-expanded="true"] .site-nav__caret {
  transform: translateY(1px) rotate(180deg);
}

.site-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid var(--shell-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
}

.site-nav__dropdown:hover .site-nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.site-nav__dropdown-item {
  display: block;
  padding: 10px 20px;
  color: #0f0f0f;
  text-decoration: none;
  font-family: var(--shell-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.site-nav__dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.site-nav a.is-active {
  opacity: 1;
}

.site-nav a:not(.is-active) {
  opacity: 0.78;
}

.site-actions {
  display: flex;
  gap: 12px;
}

.site-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.5);
  z-index: 59;
}

.site-side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100vh;
  padding: 22px 18px 18px;
  background: #ffffff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.22);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 180ms ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-side-menu[aria-hidden="false"] {
  transform: translateX(0);
}

.site-side-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 28px;
  line-height: 1;
  color: #0f0f0f;
}

.site-side-nav {
  display: grid;
  gap: 6px;
}

.site-side-nav a {
  padding: 10px 0;
  color: #0f0f0f;
  text-decoration: none;
  font-family: var(--shell-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.site-side-nav a:not(.is-active) {
  opacity: 0.8;
}

.site-side-nav__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-side-nav__label {
  padding: 10px 0 6px;
  color: #0f0f0f;
  font-family: var(--shell-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.site-side-nav__sublink {
  padding: 8px 0 8px 16px;
  color: #0f0f0f;
  text-decoration: none;
  font-family: var(--shell-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.7;
}

.site-side-nav__sublink:hover {
  opacity: 1;
}

.site-side-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.shell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 8px 8px 21px;
  border-radius: 30px;
  text-decoration: none;
  font-family: var(--shell-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 26px;
}

.shell-btn span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  aspect-ratio: 1;
}

.shell-btn--dark {
  border: 1px solid var(--shell-forest);
  background: #0f0f0f;
  color: #ffffff;
}

.shell-btn--light {
  border: 1px solid var(--shell-forest);
  background: transparent;
  color: #3b3b3b;
}

.site-footer {
  padding: 66px 0 34px;
}

.site-footer__bar {
  width: min(100% - 160px, 1280px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 36px;
  border-radius: 74px;
  background: #ffffff;
  color: #0f0f0f;
  font-family: var(--shell-sans);
  font-size: 13px;
  line-height: 19px;
}

@media (max-width: 1439px) {
  .site-header-wrap {
    top: 24px;
  }

  .site-header {
    width: min(100% - 40px, 1364px);
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    height: 72px;
    padding: 0 20px 0 50px;
    border-radius: 100px;
  }

  .site-nav {
    gap: 20px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .site-nav__dropdown-toggle {
    font-size: 14px;
  }

  .site-actions {
    gap: 8px;
  }

  .shell-btn {
    min-height: 44px;
    padding: 6px 6px 6px 16px;
    font-size: 14px;
  }

  .shell-btn img {
    width: 32px;
    height: 32px;
  }

  .site-footer__bar {
    width: min(100% - 40px, 1280px);
  }
}

@media (max-width: 1023px) {
  .site-header {
    width: min(100% - 24px, 1364px);
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    border-radius: 24px;
  }

  .site-menu-toggle {
    display: inline-flex;
  }

  .site-nav,
  .site-actions {
    display: none;
  }

  .site-footer__bar {
    width: min(100% - 24px, 1280px);
  }
}

@media (max-width: 767px) {
  .site-header-wrap {
    position: relative;
    top: 0;
    margin-bottom: 0;
    background: #ffffff;
  }

  .site-header {
    width: min(100% - 20px, 720px);
    padding: 16px 14px;
    grid-template-columns: 1fr auto;
    height: auto;
  }

  .site-brand {
    font-size: 20px;
  }

  .site-side-menu {
    width: min(100vw, 320px);
  }

  .site-side-actions {
    width: 100%;
    justify-items: stretch;
  }

  .shell-btn {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 6px 8px 6px 16px;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .site-side-actions .shell-btn {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    justify-content: stretch;
  }

  .site-side-actions .shell-btn span {
    max-width: none;
    text-align: left;
  }

  .site-nav a,
  .site-footer__bar {
    font-size: 14px;
  }

  .site-footer__bar {
    width: min(100% - 20px, 720px);
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 24px;
  }
}
