.shared-site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: 80px;
  border-bottom: 0;
  color: #000;
  background: #fff;
  box-shadow: none;
  font-family: "Montserrat", Arial, sans-serif;
}

.shared-site-header,
.shared-site-header * {
  box-sizing: border-box;
}

.shared-site-header .site-header__desktop {
  display: flex;
  width: min(1200px, calc(100% - 64px));
  height: 80px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.shared-site-header .site-header__mobile {
  display: none;
}

.shared-site-header .site-header__brand {
  display: block;
  width: 200px;
  min-width: 200px;
  flex: 0 0 200px;
}

.shared-site-header .site-header__brand img,
.shared-site-header .site-header__mobile img {
  display: block;
  width: 200px;
  height: auto;
  object-fit: contain;
}

.shared-site-header .site-header__nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  color: #000;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
}

.shared-site-header .site-header__nav > a,
.shared-site-header .site-header__resources > button,
.shared-site-header .site-header__logins a {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 10px;
  align-items: center;
  border: 0;
  color: #000;
  background: transparent;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease;
}

.shared-site-header .site-header__nav > a:hover,
.shared-site-header .site-header__nav > a:focus-visible,
.shared-site-header .site-header__resources > button:hover,
.shared-site-header .site-header__resources > button:focus-visible,
.shared-site-header .site-header__logins a:hover,
.shared-site-header .site-header__logins a:focus-visible {
  color: #65007b;
  opacity: 1;
  outline: none;
}

.shared-site-header .site-header__resources {
  position: relative;
}

.shared-site-header .site-header__resources > button {
  gap: 6px;
}

.shared-site-header .site-header__language > button {
  min-width: 70px;
}

.shared-site-header .site-header__locale-code {
  display: inline-grid;
  min-width: 32px;
  height: 24px;
  padding-inline: 6px;
  border: 1px solid #e7d8eb;
  border-radius: 999px;
  color: #65007b;
  background: #faf5fb;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.shared-site-header .site-header__language-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shared-site-header .site-header__resources > button svg {
  width: 10px;
  height: 7px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 160ms ease;
}

.shared-site-header .site-header__resources--open > button svg {
  transform: rotate(180deg);
}

.shared-site-header .site-header__submenu {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  display: none;
  width: 278px;
  padding: 8px 0;
  border-top: 3px solid #65007b;
  background: #fff;
  box-shadow: 0 16px 34px rgb(0 0 0 / 14%);
  transform: translateX(-50%);
}

.shared-site-header .site-header__resources--open .site-header__submenu {
  display: block;
}

.shared-site-header .site-header__submenu a {
  display: block;
  padding: 11px 18px;
  color: #000;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.shared-site-header .site-header__language-menu {
  right: 0;
  left: auto;
  width: 230px;
  max-height: min(520px, calc(100vh - 100px));
  overflow-y: auto;
  transform: none;
}

.shared-site-header .site-header__language-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.shared-site-header .site-header__language-menu a[aria-current="page"] {
  color: #65007b;
  background: #faf5fb;
  font-weight: 700;
}

.shared-site-header .site-header__language-menu strong {
  color: #8c7f90;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.shared-site-header .site-header__submenu a:hover,
.shared-site-header .site-header__submenu a:focus-visible {
  color: #65007b;
  background: #faf5fb;
  outline: none;
}

.shared-site-header .site-header__logins {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  margin-left: 5px;
}

.shared-site-header .site-header__logins a {
  min-height: 0;
  padding-block: 1px;
  line-height: 1.15;
}

.shared-site-header .site-header__burger {
  position: relative;
  display: none;
  width: 28px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.shared-site-header .site-header__burger span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: 220ms ease-in-out;
}

.shared-site-header .site-header__burger span:nth-child(1) {
  top: 0;
}

.shared-site-header .site-header__burger span:nth-child(2),
.shared-site-header .site-header__burger span:nth-child(3) {
  top: 8px;
}

.shared-site-header .site-header__burger span:nth-child(4) {
  top: 16px;
}

.shared-site-header .site-header__burger--open span:nth-child(1),
.shared-site-header .site-header__burger--open span:nth-child(4) {
  top: 8px;
  left: 50%;
  width: 0;
}

.shared-site-header .site-header__burger--open span:nth-child(2) {
  transform: rotate(45deg);
}

.shared-site-header .site-header__burger--open span:nth-child(3) {
  transform: rotate(-45deg);
}

@media (max-width: 1180px) and (min-width: 1101px) {
  .shared-site-header .site-header__desktop {
    width: calc(100% - 32px);
  }

  .shared-site-header .site-header__brand {
    width: 176px;
    min-width: 176px;
    flex-basis: 176px;
  }

  .shared-site-header .site-header__brand img {
    width: 176px;
  }

  .shared-site-header .site-header__nav {
    font-size: 14px;
  }

  .shared-site-header .site-header__nav > a,
  .shared-site-header .site-header__resources > button {
    padding-inline: 8px;
  }
}

@media (max-width: 1100px) {
  .shared-site-header {
    height: 84px;
    background: #111;
  }

  .shared-site-header .site-header__mobile {
    display: flex;
    height: 84px;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
  }

  .shared-site-header .site-header__mobile img {
    width: 200px;
    max-width: min(200px, calc(100vw - 90px));
  }

  .shared-site-header .site-header__desktop {
    display: block;
    width: 100%;
    height: 0;
    margin: 0;
  }

  .shared-site-header .site-header__brand {
    display: none;
  }

  .shared-site-header .site-header__burger {
    display: block;
  }

  .shared-site-header .site-header__nav {
    position: fixed;
    z-index: 1001;
    top: 84px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow-y: auto;
    padding: 24px 24px 42px;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
    font-size: 16px;
  }

  .shared-site-header .site-header__nav--open {
    display: flex;
  }

  .shared-site-header .site-header__nav > a,
  .shared-site-header .site-header__resources > button,
  .shared-site-header .site-header__logins a {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 14px 4px;
    align-items: center;
    border-bottom: 1px solid #eee;
  }

  .shared-site-header .site-header__resources > button {
    justify-content: space-between;
  }

  .shared-site-header .site-header__submenu {
    position: static;
    width: 100%;
    padding: 4px 0 10px 18px;
    border-top: 0;
    box-shadow: none;
    transform: none;
  }

  .shared-site-header .site-header__language-menu {
    max-height: none;
  }

  .shared-site-header .site-header__submenu a {
    padding: 10px 0;
    font-size: 14px;
  }

  .shared-site-header .site-header__logins {
    align-items: stretch;
    margin: 9px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shared-site-header *,
  .shared-site-header *::before,
  .shared-site-header *::after {
    transition-duration: 0.01ms !important;
  }
}

.shared-site-footer {
  color: #111;
  background: #fff;
}

.shared-site-footer,
.shared-site-footer * {
  box-sizing: border-box;
}

.shared-site-footer .site-footer__ai {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  font-family: Arial, Helvetica, sans-serif;
}

.shared-site-footer .site-footer__ai h2 {
  margin: 0 0 20px;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.shared-site-footer .site-footer__ai-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.shared-site-footer .site-footer__ai-card {
  display: flex;
  min-height: 160px;
  padding: 20px 14px;
  border: 1px solid #d9dee7;
  border-radius: 18px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  color: #111;
  background: #fff;
  box-shadow: 0 4px 18px rgb(17 17 17 / 6%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.shared-site-footer .site-footer__ai-card:hover,
.shared-site-footer .site-footer__ai-card:focus-visible {
  border-color: #bfc8d6;
  box-shadow: 0 10px 28px rgb(17 17 17 / 12%);
  outline: none;
  transform: translateY(-3px);
}

.shared-site-footer .site-footer__ai-logo {
  display: flex;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  background: #f5f7fb;
}

.shared-site-footer .site-footer__ai-logo img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.shared-site-footer .site-footer__bottom {
  padding: 30px 0;
  color: #fff;
  background: #111;
}

.shared-site-footer .site-footer__bottom-inner {
  display: grid;
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  grid-template-columns: 1.15fr 1.15fr 0.7fr;
  align-items: center;
  gap: 42px;
}

.shared-site-footer .site-footer__brand {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-decoration: none;
}

.shared-site-footer .site-footer__company p {
  margin: 24px 0 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.shared-site-footer .site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.shared-site-footer .site-footer__legal a {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.shared-site-footer .site-footer__socials {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.shared-site-footer .site-footer__socials a {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #111;
  background: #fff;
  place-items: center;
}

.shared-site-footer .site-footer__socials svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 980px) {
  .shared-site-footer .site-footer__ai-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shared-site-footer .site-footer__bottom-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .shared-site-footer .site-footer__legal {
    justify-content: flex-start;
    gap: 32px;
  }

  .shared-site-footer .site-footer__socials {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .shared-site-footer .site-footer__ai {
    width: min(100% - 24px, 1200px);
    padding-block: 20px;
  }

  .shared-site-footer .site-footer__ai h2 {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .shared-site-footer .site-footer__ai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .shared-site-footer .site-footer__ai-card {
    min-height: 140px;
    padding: 16px 10px;
    border-radius: 16px;
    font-size: 20px;
  }

  .shared-site-footer .site-footer__ai-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .shared-site-footer .site-footer__ai-logo img {
    width: 32px;
    height: 32px;
  }

  .shared-site-footer .site-footer__bottom-inner {
    width: min(100% - 32px, 1200px);
  }

  .shared-site-footer .site-footer__legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .shared-site-footer .site-footer__ai-grid {
    grid-template-columns: 1fr;
  }

  .shared-site-footer .site-footer__ai h2 {
    font-size: 22px;
  }

  .shared-site-footer .site-footer__ai-card {
    min-height: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shared-site-footer *,
  .shared-site-footer *::before,
  .shared-site-footer *::after {
    transition-duration: 0.01ms !important;
  }
}
