:root {
  --blue-950: #06152d;
  --blue-900: #061b3a;
  --blue-800: #0d2f5f;
  --blue-100: #eef3fb;
  --gold-600: #f2bd19;
  --gold-700: #dca300;
  --ink: #111c2d;
  --muted: #5d6878;
  --line: #d9e1ed;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --shadow: 0 18px 45px rgba(6, 27, 58, 0.14);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-wrap: break-word;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(217, 225, 237, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--blue-900);
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(6, 27, 58, 0.08);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 34px);
  color: var(--blue-900);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-700);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(560px, 78vh, 760px);
  align-items: end;
  overflow: hidden;
  color: white;
  background: var(--blue-950);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 13, 31, 0.9), rgba(3, 13, 31, 0.46) 46%, rgba(3, 13, 31, 0.22)),
    linear-gradient(0deg, rgba(3, 13, 31, 0.74), rgba(3, 13, 31, 0.08) 40%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(56px, 9vw, 96px);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 8vw, 94px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.button.primary {
  color: var(--blue-950);
  background: var(--gold-600);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--gold-700);
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.72);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 96px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: center;
}

h2,
h3 {
  color: var(--blue-900);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(33px, 5vw, 52px);
}

h3 {
  margin: 0;
  font-size: 26px;
}

.section-copy p,
.section-heading p,
.contact p {
  width: 100%;
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.section-copy,
.section-heading > *,
.intro-note,
.contact > * {
  min-width: 0;
}

.intro-note {
  padding: 30px;
  background: var(--blue-100);
  border-left: 5px solid var(--gold-600);
  box-shadow: var(--shadow);
}

.intro-note p {
  margin: 0;
  color: var(--blue-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.35;
}

.support {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading p {
  margin-top: 0;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading.compact p {
  margin-top: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.feature {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.feature:last-child {
  padding-right: 0;
  border-right: 0;
}

.feature img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 22px;
  border-radius: 6px;
}

.feature:first-child img {
  object-position: center 58%;
}

.feature p {
  margin: 14px 0 0;
  color: var(--muted);
}

.quote-band {
  width: 100%;
  max-width: none;
  padding: clamp(54px, 8vw, 78px) max(20px, calc((100% - var(--max)) / 2));
  background: var(--blue-900);
}

.quote-band blockquote {
  max-width: 920px;
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.18;
}

.actions {
  padding-bottom: clamp(56px, 8vw, 84px);
}

.action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.action-item {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}

.action-item:last-child {
  border-right: 0;
}

.action-item time {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-700);
  font-size: 14px;
  font-weight: 800;
}

.action-item h3 {
  font-size: 24px;
}

.action-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  background: var(--soft);
}

.contact-card {
  padding: 30px;
  color: var(--blue-950);
  background: var(--gold-600);
  border-radius: 6px;
}

.contact-card a {
  display: block;
  overflow-wrap: anywhere;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.contact-card small {
  display: block;
  margin-top: 16px;
  color: rgba(6, 27, 58, 0.72);
}

.contact-label {
  margin: 0 0 8px;
  color: rgba(6, 27, 58, 0.72);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: white;
  background: var(--blue-900);
}

.site-footer p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.site-footer a {
  color: white;
  font-weight: 700;
}

.site-footer .admin-footer-link {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.site-footer .admin-footer-link:hover {
  color: white;
  text-decoration: underline;
}

.footer-meta {
  display: grid;
  gap: 6px;
  text-align: right;
}

.footer-meta small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.admin-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(20px, 5vw, 64px);
  color: white;
  background: var(--blue-950);
  box-shadow: 0 8px 24px rgba(6, 21, 45, 0.22);
}

.admin-toolbar button,
.admin-toolbar a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  color: var(--blue-950);
  background: var(--gold-600);
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.admin-toolbar [data-editor-status] {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.admin-mode [data-editable="true"] {
  display: inline;
  outline: 1px dashed rgba(242, 189, 25, 0.55);
  outline-offset: 4px;
  border-radius: 3px;
}

.admin-mode [data-editable="true"]:focus {
  background: rgba(242, 189, 25, 0.13);
  outline: 2px solid var(--gold-600);
}

.admin-mode [data-editable="true"].is-dirty {
  outline-color: #f08b24;
}

.image-edit-wrap {
  position: relative;
}

.image-upload {
  position: absolute;
  right: 10px;
  bottom: 32px;
  display: none;
  padding: 7px 10px;
  color: var(--blue-950);
  background: var(--gold-600);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(6, 27, 58, 0.2);
}

.admin-mode .image-upload {
  display: inline-flex;
}

.image-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.delete-event {
  float: right;
  padding: 6px 8px;
  color: white;
  background: var(--blue-800);
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.contact-edit-button {
  float: right;
  padding: 7px 9px;
  color: white;
  background: var(--blue-900);
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-dialog {
  width: min(540px, calc(100% - 28px));
  padding: 0;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(6, 21, 45, 0.3);
}

.admin-dialog::backdrop {
  background: rgba(6, 21, 45, 0.64);
}

.admin-dialog form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.admin-dialog label,
.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 800;
}

.admin-dialog input,
.admin-dialog textarea,
.admin-form input {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.admin-dialog textarea {
  resize: vertical;
}

.dialog-heading,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dialog-heading h2 {
  font-size: 28px;
}

.dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--blue-900);
  background: var(--blue-100);
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dialog-cancel {
  color: var(--blue-900);
  background: var(--blue-100);
}

.admin-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--soft);
}

.admin-card {
  width: min(100%, 460px);
  display: grid;
  gap: 16px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.admin-card h1 {
  margin: 0;
  color: var(--blue-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.1;
}

.admin-card p {
  margin: 0;
  color: var(--muted);
}

.admin-card label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 800;
}

.admin-card input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
}

.admin-error {
  padding: 10px 12px;
  color: #7b050d;
  background: #fff0f1;
  border-left: 4px solid #b00020;
}

.admin-note {
  padding: 10px 12px;
  color: var(--blue-900);
  background: var(--blue-100);
  border-left: 4px solid var(--gold-600);
}

.admin-users-page {
  width: min(100% - 40px, var(--max));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}

.admin-users-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-users-header h1 {
  margin: 0;
  color: var(--blue-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
}

.admin-users-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-users-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: 24px;
  align-items: start;
}

.admin-users-layout .admin-card {
  width: 100%;
}

.admin-users-layout .admin-card h2 {
  font-size: 28px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.user-list {
  display: grid;
  gap: 0;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.user-row:last-child {
  border-bottom: 0;
}

.user-row strong,
.user-row small {
  display: block;
}

.user-row small {
  margin-top: 2px;
  color: var(--muted);
}

.user-delete {
  padding: 7px 9px;
  color: white;
  background: #9d0710;
  border: 0;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 640px;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(3, 13, 31, 0.86), rgba(3, 13, 31, 0.48)),
      linear-gradient(0deg, rgba(3, 13, 31, 0.78), rgba(3, 13, 31, 0.1) 44%);
  }

  .intro,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 16px;
  }

  .feature-grid,
  .action-list {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature img {
    height: 260px;
  }

  .feature:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .action-item {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .action-item:last-child {
    border-bottom: 0;
  }

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

  .admin-users-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 20px;
  }

  .nav-links {
    gap: 12px 18px;
    font-size: 14px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    width: calc(100% - 28px);
  }

  .section {
    width: auto;
    margin-right: 14px;
    margin-left: 14px;
  }

  .intro {
    display: block;
  }

  .section-copy {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .section-copy p {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .intro-note {
    margin-top: 28px;
  }

  .hero h1 {
    max-width: 310px;
    font-size: 34px;
    line-height: 1;
  }

  .hero p {
    font-size: 21px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 260px;
  }

  .button {
    width: 100%;
  }

  .intro-note,
  .contact-card {
    padding: 22px;
  }

  .intro-note p,
  .contact-card a {
    font-size: 21px;
  }

  h2 {
    font-size: 31px;
  }
}
