:root {
  --background: #f5f9fc;
  --ink: #0a1f3d;
  --muted: #607184;
  --line: #d7e4ee;
  --surface: #ffffff;
  --surface-soft: #eaf4fb;
  --accent: #1677b9;
  --accent-soft: #77c7ee;
  --navy: #06172f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.4;
}

.language-switch {
  align-items: center;
  display: flex;
  gap: 6px;
  position: fixed;
  right: 24px;
  top: 22px;
  z-index: 2;
}

.language-switch a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  min-width: 40px;
  padding: 8px 10px;
  text-align: center;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.language-switch .active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.minimal-page {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.center-message {
  text-align: center;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 11vw, 8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.94;
}

.center-message p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  margin-top: 18px;
}

.text-link {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 34px;
  padding: 0 0 4px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ink);
}

.supporters {
  align-items: center;
  bottom: 28px;
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: center;
  left: 24px;
  position: fixed;
  right: 24px;
  z-index: 1;
}

.supporters span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.supporter-logos {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.supporter-logos a {
  align-items: center;
  display: inline-flex;
}

.supporter-logos img {
  display: block;
  height: auto;
  max-height: 32px;
  max-width: 112px;
  object-fit: contain;
}

.supporter-logos .logo-wide {
  width: 128px;
  max-height: 30px;
  max-width: 128px;
}

.supporter-logos .logo-square {
  border-radius: 999px;
  max-height: 34px;
  max-width: 34px;
}

.contact-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  max-width: min(520px, calc(100vw - 32px));
  padding: 28px;
  width: 100%;
}

.contact-dialog::backdrop {
  background: rgba(6, 23, 47, 0.34);
}

.dialog-close-form {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.close-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  padding: 0;
}

.contact-dialog h2 {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 22px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 6px;
}

label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
textarea {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 11px;
  width: 100%;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(8, 127, 120, 0.16);
}

.button {
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 46px;
  padding: 0 18px;
}

.button:hover,
.button:focus-visible {
  background: var(--accent);
}

.hidden-field {
  display: none;
}

.form-status {
  color: var(--muted);
  min-height: 22px;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: #a33a2b;
}

.message-page {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.message-card {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.message-card h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.message-card .lead {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 18px 0 28px;
}

@media (max-width: 560px) {
  .language-switch {
    right: 16px;
    top: 16px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .center-message p {
    font-size: 1rem;
  }

  .supporters {
    bottom: 18px;
    flex-direction: column;
    gap: 10px;
    left: 16px;
    right: 16px;
  }

  .supporter-logos {
    gap: 14px;
  }

  .supporter-logos img {
    max-height: 24px;
    max-width: 82px;
  }

  .supporter-logos .logo-wide {
    width: 104px;
    max-height: 24px;
    max-width: 104px;
  }

  .supporter-logos .logo-square {
    max-height: 28px;
    max-width: 28px;
  }
}

@media (max-height: 680px) {
  .supporters {
    position: static;
    padding: 0 18px 22px;
  }

  .minimal-page {
    min-height: 82vh;
  }
}
