:root {
  --shell-bg: #070809;
  --shell-panel: #0c0d0f;
  --shell-text: #f2eee7;
  --shell-muted: rgba(242, 238, 231, 0.66);
  --shell-gold: #e1b971;
  --shell-gold-bright: #f0d39c;
  --shell-line: rgba(225, 185, 113, 0.16);
}

.header.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--shell-line);
  background: rgba(7, 8, 9, 0.94);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.header.header .logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

.header.header .logo img {
  display: block;
  width: auto;
  height: 48px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.header.header nav {
  min-width: 0;
  margin: 0;
}

.header.header nav ul {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.header.header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0;
  color: var(--shell-muted);
  font: 500 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.header.header nav a:hover,
.header.header nav a:focus-visible {
  color: var(--shell-gold-bright);
}

.footer.footer {
  width: 100%;
  margin-top: auto;
  padding: 34px 20px 30px;
  border-top: 1px solid var(--shell-line);
  background: var(--shell-bg);
  color: var(--shell-muted);
  text-align: center;
  box-shadow: none;
  backdrop-filter: none;
}

.footer.footer .footer-inner {
  position: static;
  display: flex;
  max-width: 1100px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  padding: 0;
}

.footer.footer .socials {
  display: flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer.footer .socials a,
.footer.footer .socials .dzen-link {
  display: inline-flex !important;
  visibility: visible !important;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(225, 185, 113, 0.2);
  border-radius: 5px;
  background: var(--shell-panel);
  box-shadow: none;
  opacity: 1 !important;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer.footer .socials a:hover,
.footer.footer .socials a:focus-visible,
.footer.footer .socials .dzen-link:hover,
.footer.footer .socials .dzen-link:focus-visible {
  border-color: rgba(240, 211, 156, 0.58);
  background: #111215;
  transform: translateY(-2px);
}

.footer.footer .socials img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.95;
}

.footer.footer .footer-privacy {
  color: var(--shell-gold);
  border: 0;
  font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-decoration: underline;
  text-decoration-color: rgba(225, 185, 113, 0.46);
  text-underline-offset: 4px;
}

.footer.footer .footer-privacy:hover,
.footer.footer .footer-privacy:focus-visible {
  color: var(--shell-gold-bright);
}

.footer.footer .copyright {
  position: static;
  right: auto;
  margin: 0;
  color: rgba(242, 238, 231, 0.5);
  font: 400 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .header.header nav a,
  .footer.footer .socials a,
  .footer.footer .socials .dzen-link {
    transition: none;
  }
}

@media (max-width: 820px) {
  .header.header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 64px;
    gap: 16px;
    padding: 0 14px;
  }

  .header.header .logo img {
    height: 38px;
  }

  .header.header nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .header.header nav::-webkit-scrollbar {
    display: none;
  }

  .header.header nav ul {
    width: max-content;
    justify-content: flex-start;
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .header.header {
    grid-template-columns: 66px minmax(0, 1fr);
    min-height: 62px;
    gap: 12px;
    padding: 0 12px;
  }

  .header.header .logo img {
    width: 66px;
    height: auto;
  }

  .header.header nav ul {
    gap: 18px;
  }

  .header.header nav a {
    font-size: 13px;
  }

  .footer.footer {
    padding: 30px 16px 28px;
  }
}
