:root {
  --primary: #004080;
  --primary-light: #0867bd;
  --background: #f3f6fa;
  --surface: #ffffff;
  --text: #263442;
  --muted: #5b6875;
  --border: #d9e2ec;
  --soft-blue: #edf5fc;
  --warning: #fff7df;
  --warning-border: #d8a415;
  --shadow: 0 8px 24px rgba(22, 51, 79, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.68;
}

a {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 3px;
}

a:hover { color: var(--primary-light); }

.site-header {
  padding: 54px 20px;
  background: linear-gradient(135deg, #00386f, #0867bd);
  color: #fff;
  text-align: center;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 6px;
  color: #d7ecff;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

.site-header p:last-child {
  margin: 12px 0 0;
  color: #e8f4ff;
}

main {
  width: min(960px, calc(100% - 32px));
  margin: -24px auto 40px;
}

.intro,
.section,
.contact-card {
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

h2 {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1.35;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

ul {
  margin: 12px 0 16px;
  padding-left: 24px;
}

li + li { margin-top: 7px; }

.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--warning-border);
  border-radius: 6px;
  background: var(--warning);
}

.contact-card { background: var(--soft-blue); }

.contact-list {
  margin-bottom: 0;
  list-style: none;
  padding-left: 0;
}

footer {
  padding: 20px;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

footer p { margin: 0; }

.floating-wrapper {
  position: fixed;
  top: 50%;
  right: 10px;
  z-index: 9999;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
}

.floating-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-menu a {
  display: flex;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  color: #fff;
  font-size: 1.15rem;
  text-decoration: none;
  transition: transform .2s, background-color .2s;
}

.floating-menu a:hover,
.floating-menu a[aria-current="page"] {
  background: var(--primary-light);
  color: #fff;
  transform: scale(1.08);
}

.floating-menu a[aria-current="page"] { border-color: #fff; }

.menu-toggle {
  display: none;
  width: 38px;
  height: 68px;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.floating-wrapper.hide .floating-menu { display: none; }
.floating-wrapper.hide .menu-toggle { display: block; }

a:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #f7ba2a;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .site-header { padding: 42px 18px 46px; }

  main {
    width: min(100% - 20px, 960px);
    margin-top: -18px;
  }

  .intro,
  .section,
  .contact-card {
    padding: 20px 16px;
    border-radius: 11px;
  }

  .floating-wrapper { right: 6px; }

  .floating-menu a {
    width: 39px;
    height: 39px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floating-menu a { transition: none; }
}
