:root {
  --primary: #075442;
  --primary-dark: #033c31;
  --primary-light: #eaf6f1;
  --gold: #f7b733;
  --gold-dark: #d9930c;
  --dark: #10221d;
  --muted: #667085;
  --background: #f7faf8;
  --white: #ffffff;
  --border: #e1ebe6;
  --danger: #b42318;
  --shadow: 0 16px 45px rgba(16, 34, 29, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: var(--background);
  font-family: "Poppins", sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: "Poppins", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
select,
input {
  font: inherit;
}

.page-container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
  background: rgba(3, 60, 49, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.header-container {
  width: min(1240px, calc(100% - 32px));
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--primary-dark);
  background: var(--gold);
  font-size: 20px;
}

.brand-copy strong {
  display: block;
  font-size: 14px;
}

.brand-copy small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
}

.site-nav a {
  position: relative;
  padding: 29px 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active {
  color: white;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

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

.header-login,
.header-register {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.header-login {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.header-register {
  color: var(--primary-dark);
  background: var(--gold);
}

.public-menu-button {
  display: none;
  width: 41px;
  height: 41px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.profile-menu {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: transparent;
  cursor: pointer;
}

.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.profile-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.profile-text strong {
  font-size: 11px;
}

.profile-text small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
}

.profile-arrow {
  color: var(--gold);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 210px;
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: 0.2s ease;
}

.profile-menu.is-open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-option {
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--dark);
  font-size: 11px;
  font-weight: 600;
}

.profile-option:hover {
  background: var(--primary-light);
}

.logout-option {
  color: var(--danger);
}

.public-alerts {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 1500;
  width: min(360px, calc(100% - 40px));
}

.public-alert {
  padding: 13px 15px;
  margin-bottom: 8px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 600;
}

.alert-success {
  color: #075442;
  background: #dff5ec;
}

.alert-error {
  color: #842029;
  background: #f8d7da;
}

.site-footer {
  padding: 62px 0 0;
  color: white;
  background: #032f27;
}

.footer-grid {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.75fr);
  gap: 45px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.footer-grid p {
  max-width: 410px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 15px;
  font-size: 13px;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 18px;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 9px;
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    padding: 12px;
    border-radius: 14px;
    background: var(--primary-dark);
    box-shadow: var(--shadow);
  }

  .site-nav.active {
    display: grid;
  }

  .site-nav a {
    padding: 11px 12px;
    border-radius: 9px;
  }

  .site-nav a.active::after {
    display: none;
  }

  .public-menu-button {
    display: grid;
    place-items: center;
  }

  .profile-text {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .header-container {
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .header-register {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
