:root {
  color-scheme: light;
  color: #1f2937;
  background: #f8fafc;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.page-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
}

.page-header {
  text-align: center;
  padding: 18px 0 12px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.logo {
  max-width: 320px;
  width: 100%;
  height: auto;
}

.logo-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    color: #e5e7eb;
    background: #111827;
  }
  .page-shell {
    background: #111827;
  }
  .logo-dark {
    display: none;
  }
  .logo-light {
    display: inline-block;
  }
}

.tagline {
  max-width: 640px;
  margin: 0 auto;
  color: #475569;
}

.content {
  display: grid;
  gap: 24px;
}

.hero, .info-block, .contact, .legal {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}

@media (prefers-color-scheme: dark) {
  .hero, .info-block, .contact, .legal {
    background: #1f2937;
    border-color: #374151;
  }
}

.hero h1,
.info-block h2,
.contact h2,
.legal h2 {
  margin-top: 0;
}

.contact form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #f8fafc;
  color: #0f172a;
}

@media (prefers-color-scheme: dark) {
  input[type="text"],
  input[type="email"],
  textarea {
    background: #111827;
    border-color: #4b5563;
    color: #e2e8f0;
  }
}

button {
  width: fit-content;
  min-width: 180px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  border-radius: 14px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:hover,
button:focus-visible {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22);
}

.feedback {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.feedback.success {
  background: #d1fae5;
  color: #064e3b;
  border: 1px solid #a7f3d0;
}

.feedback.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.site-footer {
  background: none;
  border: none;
  padding: 0 0 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0 8px;
  border-top: 1px solid #e2e8f0;
}

.footer-links button {
  background: transparent;
  border: none;
  color: #ffffff;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.footer-links button:hover,
.footer-links button:focus-visible {
  color: #dce4ff;
}

.footer-note {
  text-align: center;
  color: #475569;
  margin: 0;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #ffffff;
  border-radius: 18px;
  max-width: 620px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 26px 56px rgba(15, 23, 42, 0.18);
  position: relative;
}

@media (prefers-color-scheme: dark) {
  .modal {
    background: #111827;
    color: #e5e7eb;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  color: #ffffff;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(15, 23, 42, 1);
  color: #ffffff;
}

.modal-body p {
  margin: 0.85em 0;
}

.modal-body article h3 {
  margin-top: 0;
}

@media (prefers-color-scheme: dark) {
  a {
    color: #93c5fd;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }
}
