:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1d2330;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #1f5eff;
  --accent-ink: #ffffff;
  --ok: #16a34a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11141a;
    --card: #191d25;
    --text: #e6e8ec;
    --muted: #9aa1ad;
    --line: #2a303b;
    --accent: #5b8cff;
    --ok: #22c55e;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo__mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.logo__sub { color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--text); }

.hero { padding: 56px 0 36px; }
.hero h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
.hero__lead { color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.search { display: flex; gap: 8px; max-width: 560px; }
.search input { flex: 1; min-width: 0; }

input, textarea {
  font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
button {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 10px;
  padding: 11px 18px; background: var(--accent); color: var(--accent-ink);
}
button:hover { filter: brightness(1.08); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--text); }
.card:hover { border-color: var(--accent); text-decoration: none; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

h2 { font-size: 24px; margin: 0 0 16px; }
.faq, .status, .contacts { margin-bottom: 44px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; padding: 0 18px; }
summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }

.status__list { list-style: none; padding: 0; margin: 0 0 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.status__list li { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.status__list li:last-child { border-bottom: 0; }
.status__list .muted { margin-left: auto; font-size: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }

.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contacts__grid p { margin: 0 0 10px; }
.form { display: grid; gap: 10px; }

.foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 14px; }

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .nav { gap: 12px; font-size: 14px; }
  .logo__sub { display: none; }
}
