@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Nunito:wght@900&display=swap");

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: min(1256px, calc(100% - 32px));
  height: 76px;
  margin-inline: auto;
  padding-inline: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(20, 18, 62, 0.07);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(42, 26, 96, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header a,
.footer a {
  text-decoration: none;
}

.site-header .brand,
.footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-header .brand {
  color: #10163f;
  font-size: 31px;
}

.site-header .brand-word,
.footer .brand-word {
  font-family: "Nunito", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.site-header .brand-pet,
.footer .brand-pet {
  color: #000;
}

.site-header .brand-nid,
.footer .brand-nid {
  color: #6c47ff;
}

.site-header .brand img {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(108, 71, 255, 0.16);
}

.site-header .desktop-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
}

.site-header .desktop-nav a {
  color: #10163f;
  font-size: 15px;
  font-weight: 700;
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav a:focus-visible {
  color: #6c47ff;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header .button-primary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #6c47ff, #825bff);
  box-shadow: 0 16px 34px rgba(108, 71, 255, 0.26);
  font: inherit;
  font-weight: 800;
}

.site-header .language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-header .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header .language-switcher select {
  height: 42px;
  min-width: 64px;
  padding: 0 28px 0 12px;
  border: 1px solid rgba(95, 73, 165, 0.16);
  border-radius: 12px;
  color: #10163f;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.footer {
  width: min(1220px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 30px;
  padding: 32px 0 44px;
  border-top: 1px solid rgba(20, 18, 62, 0.09);
  color: #10163f;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: normal;
}

.footer .brand {
  color: inherit;
  font-size: 26px;
}

.footer .brand img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(108, 71, 255, 0.16);
}

.footer p {
  margin: 18px 0 0;
  color: #4d5575;
  font-size: 13px;
}

.footer h4 {
  margin: 0 0 14px;
  color: #10163f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: #4d5575;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
}

.footer a:not(.brand):hover {
  color: #6c47ff;
}

.footer a.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 24px;
  line-height: 24px;
}

.footer a.social-link svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

@media (max-width: 1000px) {
  .site-header {
    width: min(100% - 36px, 760px);
  }

  .site-header .desktop-nav {
    display: none;
  }

  .footer {
    width: min(100% - 36px, 760px);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 72px;
  }

  .site-header .brand {
    font-size: 24px;
  }

  .site-header .brand img {
    width: 36px;
    height: 36px;
  }

  .site-header .header-actions > .button-primary {
    display: none;
  }

  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
    padding: 24px 0 30px;
  }

  .footer > div:first-child {
    grid-column: 1 / -1;
  }

  .footer .brand {
    font-size: 22px;
  }

  .footer .brand img {
    width: 30px;
    height: 30px;
  }

  .footer p {
    margin-top: 10px;
    font-size: 12px;
  }

  .footer h4 {
    margin-bottom: 9px;
    font-size: 12px;
  }

  .footer a:not(.brand) {
    margin: 6px 0;
    font-size: 13px;
  }
}
