:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1d23;
  --text-muted: #5b6270;
  --border: #e4e7ec;
  --accent: #2f6feb;
  --accent-dark: #1d4fb8;
  --accent-soft: #eef3fe;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 20px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

nav.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

nav.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--accent);
  text-decoration: none;
}

main {
  padding: 56px 0 64px;
}

main h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

main h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}

main p, main li {
  color: var(--text);
}

main p.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 24px 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.card-grid .card {
  margin: 0;
  padding: 22px;
}

.card-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

table.contact-table {
  border-collapse: collapse;
  margin: 20px 0;
}

table.contact-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

table.contact-table td:first-child {
  color: var(--text-muted);
  font-weight: 600;
  padding-right: 24px;
  width: 120px;
}

form .field {
  margin-bottom: 20px;
}

form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

form input[type="tel"] {
  width: 100%;
  max-width: 320px;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

form input[type="tel"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.consent-row input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

#status {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 1.4em;
}

#status.ok { color: #0a7d3e; }
#status.error { color: #c0392b; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer.site .wrap p {
  margin: 4px 0;
}

@media (max-width: 520px) {
  main h1 { font-size: 1.6rem; }
  header.site .wrap { flex-direction: column; align-items: flex-start; }
}
