:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-muted: #eef3fa;
  --text: #142033;
  --muted: #4c5a72;
  --line: #d7e1f1;
  --brand: #1f4ea3;
  --brand-dark: #163a7a;
  --accent: #0f766e;
  --radius: 14px;
  --shadow: 0 10px 26px rgba(16, 44, 88, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img { max-width: 100%; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #3f6bc6);
  color: #fff;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
}

.nav-menu a.active {
  color: var(--brand);
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.btn:hover,
.btn:focus-visible {
  border-color: #b8c8e5;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.hero {
  padding: 62px 0 42px;
  background: linear-gradient(180deg, #f9fbff, #f3f6fb);
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.18;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

p { margin: 0 0 16px; }

.muted { color: var(--muted); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.badge {
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  color: #2d3e59;
  font-size: 0.87rem;
}

section {
  padding: 52px 0;
}

.split {
  display: grid;
  gap: 26px;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card ul,
.checklist,
.steps {
  margin: 0;
  padding-left: 18px;
}

.panel {
  background: #eaf1fd;
  border: 1px solid #ccdaf4;
  border-radius: var(--radius);
  padding: 18px;
}

.site-footer {
  background: #13213b;
  color: #dce4f3;
  padding: 28px 0;
  margin-top: 30px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.small { font-size: 0.92rem; }

form {
  display: grid;
  gap: 10px;
  max-width: 700px;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c7d5ee;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #9db8e7;
  border-color: #9db8e7;
}

@media (min-width: 800px) {
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-grid; place-items: center; }

  .nav-menu {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 64px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow);
  }

  body.mobile-open .nav-menu { display: flex; }
}
