:root {
  --bg: #141a33;
  --bg2: #1d2546;
  --card: #ffffff;
  --ink: #1f2337;
  --muted: #5b6078;
  --line: #e6e7ef;
  --accent: #e85d4f;
  --accent-ink: #b8382c;
  --soft: #fff4ef;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: radial-gradient(ellipse at top, var(--bg2), var(--bg) 60%) fixed, var(--bg);
  min-height: 100vh;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

header.hero {
  text-align: center;
  color: #fff;
  margin-bottom: 28px;
}

header.hero img {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

header.hero h1 {
  margin: 16px 0 4px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

header.hero p {
  margin: 0;
  color: #c9cde2;
  font-size: 17px;
}

nav.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

nav.tabs a {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .28);
  font-weight: 600;
  font-size: 15px;
}

nav.tabs a[aria-current="page"] {
  background: #fff;
  color: var(--bg);
  border-color: #fff;
}

main.card {
  background: var(--card);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

main.card > :first-child { margin-top: 0; }

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 32px 0 10px;
}

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

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

ul { padding-left: 22px; }

li { margin-bottom: 6px; }

a { color: var(--accent-ink); }

.lead {
  font-size: 18px;
  color: var(--muted);
}

.contact {
  background: var(--soft);
  border: 1.5px solid #f6d3c9;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 18px 0 8px;
}

.contact strong { display: block; font-size: 18px; margin-bottom: 4px; }

.contact .mail {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 12px;
  word-break: break-all;
}

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

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

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  font-weight: 700;
  color: var(--accent-ink);
  flex: none;
}

details[open] summary::after { content: "–"; }

details p, details ul { margin-top: 10px; color: #33374d; }

.summary-box {
  background: #f3f5fb;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 8px 0 4px;
}

.summary-box ul { margin: 0; }

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

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0 8px;
}

footer {
  text-align: center;
  color: #aeb3cc;
  font-size: 14px;
  margin-top: 24px;
}

footer a { color: #fff; }

@media (max-width: 480px) {
  .wrap { padding-top: 28px; }
  main.card { padding: 22px 18px; border-radius: 18px; }
  header.hero h1 { font-size: 28px; }
}
