:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #14172b;
  --muted: #5b6078;
  --border: #e3e6ef;
  --accent: #2348d8;
  --accent-soft: #e8edff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1020;
    --surface: #161a2e;
    --text: #eef0f8;
    --muted: #a3a8c0;
    --border: #262b45;
    --accent: #8aa2ff;
    --accent-soft: #1d2447;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

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

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

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

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

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

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

main {
  padding: 40px 0 56px;
}

.hero {
  text-align: center;
  padding: 16px 0 8px;
}

.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(20, 40, 140, 0.25);
}

.hero h1 {
  margin: 20px 0 6px;
  font-size: 36px;
  line-height: 1.2;
}

.hero p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
}

h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  line-height: 1.35;
  margin: 36px 0 10px;
}

h3 {
  font-size: 17px;
  margin: 22px 0 6px;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.summary {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 8px;
}

.summary p:last-child {
  margin-bottom: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 24px 0;
}

.card h2 {
  margin-top: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0;
}

.features strong {
  display: block;
  margin-bottom: 2px;
}

.features span {
  color: var(--muted);
  font-size: 15px;
}

.contact {
  font-size: 18px;
  font-weight: 600;
  word-break: break-word;
}

details {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--border);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

.site-footer a {
  color: var(--muted);
  margin-left: 14px;
}

.site-footer a:first-child {
  margin-left: 0;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 28px 0 40px;
  }

  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 19px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 14px;
  }
}
