:root {
  --header-height: 77px;
  --ink: #17211f;
  --muted: #60716d;
  --line: #d8e1de;
  --panel: #ffffff;
  --soft: #eef5f2;
  --brand: #0d7c66;
  --brand-dark: #075847;
  --accent: #e6b84f;
  --risk: #d85f45;
  --water: #3d83c5;
  --shadow: 0 18px 48px rgba(23, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  background: #f7faf8;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.65rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
}

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 225, 222, 0.75);
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  font-size: 1rem;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--brand-dark);
}

.navi-profile {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.navi-profile:hover,
.navi-profile[aria-expanded="true"] {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-dropdown a,
.profile-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
  color: var(--brand-dark);
  background: var(--soft);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(13, 124, 102, 0.22);
}

.button:hover {
  background: var(--brand-dark);
}

.button.secondary {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  box-shadow: none;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel);
  font-size: 0.94rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.page-footer a {
  color: var(--brand-dark);
  font-weight: 700;
}

.page-footer a:hover {
  color: var(--brand);
}

@media (max-width: 680px) {
  :root {
    --header-height: 137px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.9rem;
  }

  .page-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
