.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 130;
  display: block;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__inner {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 45px rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(10px);
}

.cookie-consent__text {
  margin: 0;
  color: #111111;
  font-size: 0.9rem;
  line-height: 1.65;
}

.cookie-consent__text a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-consent__button--ghost {
  background: #ffffff;
  color: #111111;
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  background: #ffffff;
}

.site-footer__shell {
  width: min(100% - 40px, 1760px);
  margin-inline: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.7fr));
  gap: 3rem;
  padding-block: 4rem 3rem;
}

.site-footer__brand-column,
.site-footer__nav-column {
  min-width: 0;
}

.site-footer__heading {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.site-footer__about {
  max-width: 34rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.site-footer__brandmark {
  margin-top: 2.25rem;
}

.site-footer__logo {
  display: inline-block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-footer__logo--image .custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer__logo--image .custom-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 64px;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
}

.site-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
}

.site-footer__social-icon svg {
  width: 100%;
  height: 100%;
}

.site-footer__menu,
.site-footer__legal-menu {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__menu a,
.site-footer__legal-menu a {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.site-footer__copy {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.site-footer__credits {
  display: grid;
  gap: 0.45rem;
}

.site-footer__made-by {
  margin: 0;
  color: rgba(17, 17, 17, 0.56);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__made-by a {
  color: inherit;
}

.site-footer__legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 920px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-block: 3rem 2rem;
  }

  .site-footer__brand-column {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-consent__inner {
    gap: 0.9rem;
    padding: 0.9rem;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__button {
    width: 100%;
  }

  .site-footer {
    margin-top: 3.5rem;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 2.5rem 1.75rem;
    text-align: center;
  }

  .site-footer__logo {
    font-size: 2rem;
  }

  .site-footer__about {
    margin-inline: auto;
  }

  .site-footer__socials,
  .site-footer__legal-menu {
    justify-content: center;
  }

  .site-footer__menu {
    justify-items: center;
  }

  .site-footer__brand-column,
  .site-footer__nav-column,
  .site-footer__credits {
    justify-items: center;
  }

  .site-footer__legal-menu {
    gap: 1rem;
  }
}
