site-shell-header,
site-shell-footer {
  display: block;
}

.shell-header {
  z-index: 3;
}

.shell-header--overlay {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  right: 1.5rem;
}

.shell-header--sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.05rem 0;
  background: linear-gradient(180deg, rgba(238, 243, 248, 0.92), rgba(238, 243, 248, 0.68));
  backdrop-filter: blur(18px);
}

.shell-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shell-header--overlay .shell-header__inner,
.shell-header--sticky .shell-header__inner {
  width: min(1180px, calc(100% - (clamp(1.1rem, 1rem + 1.4vw, 2rem) * 2)));
  margin: 0 auto;
}

.shell-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.shell-brand__logo {
  width: 5.6rem;
  height: 5.6rem;
  display: block;
  object-fit: contain;
}

.shell-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.shell-nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.shell-nav__item::after {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.55rem;
  content: "";
}

.shell-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(244, 249, 253, 0.44);
  color: #12273d;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.shell-nav__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.shell-nav__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.8rem;
  height: 0.8rem;
  color: rgba(18, 39, 61, 0.7);
}

.shell-nav__caret .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.shell-nav__item:hover .shell-nav__link,
.shell-nav__item:focus-within .shell-nav__link,
.shell-language__trigger:hover,
.shell-language__option:hover {
  transform: translateY(-1px);
  background: rgba(248, 251, 254, 0.6);
}

.shell-nav__menu {
  position: absolute;
  top: calc(100% - 0.1rem);
  left: 0;
  min-width: 14rem;
  padding: 0.6rem;
  margin: 0;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background: rgba(247, 251, 254, 0.88);
  box-shadow: 0 18px 44px rgba(18, 39, 61, 0.14);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.shell-nav__item:hover .shell-nav__menu,
.shell-nav__item:focus-within .shell-nav__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.shell-nav__menu a {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  color: #12273d;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
}

.shell-nav__menu a:hover,
.shell-nav__menu a:focus-visible {
  background: rgba(18, 39, 61, 0.07);
  outline: none;
}

.shell-language {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.shell-language__trigger,
.shell-language__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(244, 249, 253, 0.44);
  color: #12273d;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.shell-language__trigger {
  gap: 0.4rem;
  padding: 0.72rem 0.95rem;
}

.shell-language__label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shell-language__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: rgba(18, 39, 61, 0.72);
}

.shell-language__caret .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 20;
}

.shell-language__trigger[aria-expanded="true"],
.shell-language__option[aria-pressed="true"] {
  border-color: rgba(18, 39, 61, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(18, 39, 61, 0.12);
}

.shell-language__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 100%;
  display: grid;
  gap: 0.45rem;
  padding: 0.45rem;
  margin: 0;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background: rgba(247, 251, 254, 0.88);
  box-shadow: 0 18px 44px rgba(18, 39, 61, 0.14);
  backdrop-filter: blur(18px);
}

.shell-language__menu[hidden] {
  display: none;
}

.shell-language__option {
  width: 100%;
  padding: 0.72rem 0.95rem;
}

.shell-site-footer {
  padding: 0.45rem 0 0.65rem;
  background: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(24, 48, 72, 0.08);
}

.shell-site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1.1rem;
  width: min(1180px, calc(100% - (clamp(1.1rem, 1rem + 1.4vw, 2rem) * 2)));
  margin: 0 auto;
}

.shell-site-footer__copy {
  margin: 0;
  color: #567088;
  font-size: 0.92rem;
  line-height: 1.35;
}

.shell-site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.shell-site-footer__links a {
  color: #567088;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
}

.shell-site-footer__links a:hover,
.shell-site-footer__links a:focus-visible,
.shell-nav__link:focus-visible,
.shell-language__trigger:focus-visible,
.shell-language__option:focus-visible {
  outline: 2px solid rgba(18, 39, 61, 0.28);
  outline-offset: 2px;
}

.shell-policy-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 22, 35, 0.28);
  backdrop-filter: blur(10px);
}

.shell-policy-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  width: min(860px, calc(100vw - 2rem));
  max-height: min(84vh, 920px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(24, 48, 72, 0.1);
  border-radius: 28px;
  background: rgba(247, 251, 254, 0.96);
  box-shadow: 0 28px 72px rgba(18, 39, 61, 0.22);
  backdrop-filter: blur(18px);
}

.shell-policy-dialog[hidden],
.shell-policy-backdrop[hidden] {
  display: none;
}

.shell-policy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(24, 48, 72, 0.08);
}

.shell-policy-title {
  margin: 0;
  color: #12273d;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

.shell-policy-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #567088;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.shell-policy-content {
  overflow: auto;
  padding: 1.35rem 1.4rem 1.6rem;
  color: #567088;
  line-height: 1.75;
}

.shell-policy-content h1,
.shell-policy-content h2,
.shell-policy-content p,
.shell-policy-content ul {
  margin: 0;
}

.shell-policy-content h1 {
  color: #12273d;
  font-size: clamp(1.8rem, 1.55rem + 0.8vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.shell-policy-content h2 {
  margin-top: 1.6rem;
  color: #12273d;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.35;
}

.shell-policy-content p {
  margin-top: 0.9rem;
}

.shell-policy-content ul {
  margin-top: 0.7rem;
  padding-left: 1.2rem;
}

.shell-policy-content li + li {
  margin-top: 0.35rem;
}

.shell-policy-content a {
  color: #17324d;
  word-break: break-word;
}

.shell-policy-close:focus-visible,
.shell-policy-content a:focus-visible {
  outline: 2px solid rgba(18, 39, 61, 0.28);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .shell-header--overlay {
    position: static;
  }

  .shell-header__inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .shell-nav {
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
    margin-top: 0.4rem;
  }
}

@media (max-width: 640px) {
  .shell-header--overlay {
    left: 0;
    right: 0;
    top: 0;
  }

  .shell-brand__logo {
    width: 4.4rem;
    height: 4.4rem;
  }

  .shell-language {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    margin-top: 0.15rem;
    z-index: 4;
  }

  .shell-nav {
    width: 100%;
    gap: 0.6rem;
  }

  .shell-nav__item {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .shell-nav__item::after {
    display: none;
  }

  .shell-nav__link {
    width: 100%;
    justify-content: space-between;
    min-height: 2.5rem;
    padding: 0.66rem 0.9rem;
    font-size: 0.9rem;
  }

  .shell-language__trigger,
  .shell-language__option {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.66rem 0.9rem;
    font-size: 0.9rem;
  }

  .shell-nav__menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 0.45rem;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .shell-language__menu {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    z-index: 5;
  }

  .shell-nav__item:hover .shell-nav__menu,
  .shell-nav__item:focus-within .shell-nav__menu {
    display: block;
  }

  .shell-site-footer__inner {
    width: calc(100% - 2rem);
    align-items: flex-start;
  }

  .shell-policy-dialog {
    width: calc(100vw - 1rem);
    max-height: 88vh;
    border-radius: 22px;
  }

  .shell-policy-top {
    padding: 1rem 1rem 0.95rem;
  }

  .shell-policy-content {
    padding: 1.1rem 1rem 1.25rem;
  }
}
