:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef4fb;
  --text: #102138;
  --muted: #4d6078;
  --accent: #0f4c81;
  --accent-2: #0b3b65;
  --border: #d4deea;
  --success: #157347;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.container {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: var(--border);
  background: var(--surface-alt);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}

select,
input,
textarea,
button {
  font: inherit;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 0.6rem 0.7rem;
  color: var(--text);
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.btn:hover {
  background: var(--accent-2);
}

.btn.ghost {
  color: var(--accent);
  background: #fff;
}

.hero {
  padding: 3.2rem 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}

.hero h1 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.15;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero p,
p,
small,
li {
  color: var(--muted);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.placeholder-media {
  background: linear-gradient(160deg, #dce8f5 0%, #c9daee 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #365778;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.section {
  padding: 1rem 0 1.7rem;
}

.section h2 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 0.8rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.card,
.step,
.article,
.filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem;
}

.card h3,
.article h3,
.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.step-index {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border);
  margin-bottom: 0.35rem;
}

.badge-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

form {
  display: grid;
  gap: 0.55rem;
}

label {
  font-size: 0.88rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}

.form-message {
  margin: 0;
  font-size: 0.88rem;
  color: var(--success);
  display: none;
}

.form-message.is-visible {
  display: block;
}

.inline-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  margin-top: 1.2rem;
  background: #fff;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.dev-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #dbe8f5 100%);
}

.dev-gate-card {
  width: min(100%, 520px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem;
  box-shadow: 0 12px 30px rgba(15, 33, 56, 0.16);
}

.dev-gate-card h1 {
  margin: 0.25rem 0 0.55rem;
}

.dev-error {
  color: var(--error);
  margin: 0.45rem 0 0;
}

.map-placeholder {
  min-height: 220px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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