:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --surface: #fff;
  --text: #20232c;
  --muted: #5d6472;
  --border: #e8eaf0;
  --pink: #d91f48;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101116;
    --surface: #191b22;
    --text: #f0f1f6;
    --muted: #a3a8b6;
    --border: #2a2d38;
    --pink: #ff5c80;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
header nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}
a {
  color: var(--pink);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
h1,
h2,
.brand {
  font-family: "Manrope", system-ui, sans-serif;
}
h1 {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 32px 0 16px;
  text-wrap: balance;
}
h2 {
  font-size: 1.15rem;
  margin: 36px 0 12px;
}
.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 720px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: #d91f48;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button:hover {
  filter: brightness(1.1);
}
figure {
  margin: 8px 0 0;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}
figcaption,
.note {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 10px;
}
.howto {
  padding-left: 22px;
}
.howto li {
  margin-bottom: 12px;
}
.howto strong {
  display: block;
  color: var(--text);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid section > h2 {
  margin-top: 32px;
}
ol,
ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
li {
  margin-bottom: 6px;
}
details {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 0 18px;
  margin-bottom: 8px;
}
summary {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 0;
}
details p {
  margin: 0;
  padding-bottom: 16px;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 0.92rem;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
.note {
  margin-top: 28px;
}
.more {
  margin: 24px 0 0;
  font-weight: 600;
}
footer {
  margin-top: 56px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}
footer p {
  margin: 4px 0;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}
@media (max-width: 720px) {
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
}
