:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #dfe3e8;
  --text: #16181d;
  --muted: #5a6370;
  --accent: #1d4ed8;
  --accent-text: #ffffff;
  --shadow: 0 12px 40px rgb(16 24 40 / 14%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1e2126;
    --border: #2f343c;
    --text: #f2f4f7;
    --muted: #a3acb9;
    --accent: #5b8cff;
    --accent-text: #0b1220;
    --shadow: 0 12px 40px rgb(0 0 0 / 50%);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }

#lang {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.hero { padding: 56px 0 24px; text-align: center; }

h1 {
  margin: 0 auto 14px;
  max-width: 16em;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.lead { margin: 0 auto 28px; max-width: 34em; font-size: 18px; color: var(--muted); }

.button {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.button:hover { filter: brightness(1.08); }
.button:focus-visible, #lang:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.meta { margin: 12px 0 40px; font-size: 14px; color: var(--muted); }

.shot img {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

section { padding: 40px 0; scroll-margin-top: 12px; }

h2 { margin: 0 0 20px; font-size: 26px; font-weight: 650; }
h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }

article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

article p { margin: 0; color: var(--muted); }

table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
th, td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--border); vertical-align: top; }
tr:first-child th, tr:first-child td { border-top: 0; }
th { width: 130px; font-weight: 600; }

details { padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 2px; color: var(--muted); }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1040px;
  margin: 24px auto 0;
  padding: 24px 16px 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer p { margin: 0; }

@media (max-width: 560px) {
  nav a { display: none; }
  .hero { padding-top: 28px; }
  th { width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
