:root {
  --ink: #12343b;
  --muted: #4d656b;
  --line: rgba(18, 52, 59, 0.12);
  --paper: #f3f8f8;
  --card: #ffffff;
  --accent: #0e7c86;
  --ok: #1d5c3a;
  --ok-bg: #e7f3eb;
  --bad: #8a2e2e;
  --bad-bg: #f8e8e6;
  --shadow: 0 20px 50px rgba(14, 70, 78, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 420px at 0% -10%, #d7eef0, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, #e7f4f1, transparent 46%),
    var(--paper);
}

a { color: inherit; }

.top, .layout, .narrow, footer {
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 8px;
}

.brand, .contact { text-decoration: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.contact { color: var(--muted); font-weight: 600; }

.layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
  padding: 28px 0 48px;
}

.hero h1, .panel h1, .panel h2, .features h2, .seo-copy h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.seal {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 5px 10px;
  border: 1px solid #9fd0d4;
  border-radius: 999px;
  background: #e7f5f6;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.lede, .panel-lead, .legal, .count, .steps {
  color: var(--muted);
  line-height: 1.55;
}

.lede { max-width: 38rem; font-size: 1.05rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 8px;
}

.stats div {
  padding: 14px 14px 12px;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stats dt {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stats dd {
  margin: 6px 0 0;
  font-size: 1.35rem;
}

.steps { padding-left: 1.1rem; }
.steps li + li { margin-top: 6px; }

.panel, .narrow .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.panel h2, .panel h1 { margin: 0 0 8px; font-size: 2rem; }
.panel-lead { margin-top: 0; }

form { display: grid; gap: 14px; margin-top: 18px; }

label { display: grid; gap: 6px; font-size: 0.92rem; }
label span { font-weight: 600; }
label em { color: var(--muted); font-style: normal; font-weight: 500; }
label small { color: var(--muted); }

input, textarea {
  width: 100%;
  border: 1px solid rgba(28, 25, 21, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  background: #fff;
}

textarea { resize: vertical; }

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

button {
  font: inherit;
  cursor: pointer;
}

.primary, .ghost {
  border-radius: 999px;
  padding: 12px 18px;
}

.primary {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.primary:hover { background: #0b6770; }

.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  line-height: 1.45;
}

.notice-ok { color: var(--ok); background: var(--ok-bg); }
.notice-error { color: var(--bad); background: var(--bad-bg); }

.legal { margin: 16px 0 0; font-size: 0.86rem; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.narrow { padding: 28px 0 64px; }

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-head form { margin-top: 0; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }

tr.best td:first-child { font-weight: 700; }

.seo-copy {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 28px;
}

.features {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.features article {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.features h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.seo-copy h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.seo-copy p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .layout, .stats, .features { grid-template-columns: 1fr; }
  .admin-head { flex-direction: column; }
}
