:root,
[data-theme='light'] {
  --bg: #ffffff;
  --text: #121926;
  --muted: rgba(18, 25, 38, 0.64);
  --border: rgba(18, 25, 38, 0.08);
  --accent: #299792;
  --surface: #f8fafc;
  --card: #ffffff;
  --header: rgba(255, 255, 255, 0.72);
  --toggle: rgba(18, 25, 38, 0.1);
  --toggle-hover: rgba(18, 25, 38, 0.18);
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #051114;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #3fb0ac;
  --surface: #02131d;
  --card: rgba(255, 255, 255, 0.04);
  --header: rgba(5, 17, 20, 0.72);
  --toggle: rgba(255, 255, 255, 0.1);
  --toggle-hover: rgba(255, 255, 255, 0.18);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -0.005em;
  transition: background-color 0.4s, color 0.4s;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 56px;
  display: flex;
  align-items: center;
  background: var(--header);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.bar-inner,
.wrap,
.foot-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 22px;
  display: block;
}

.bar-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.bar-links::-webkit-scrollbar {
  display: none;
}

.bar-links a {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.bar-links a:hover,
.bar-links a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}

.theme-toggle {
  width: 32px;
  height: 32px;
  margin-left: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--toggle);
  cursor: pointer;
  transition: background-color 0.25s, transform 0.2s;
}

.theme-toggle:hover {
  background: var(--toggle-hover);
}

.theme-toggle:active {
  transform: scale(0.92);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

[data-theme='light'] .icon-moon,
[data-theme='dark'] .icon-sun {
  display: none;
}

main {
  padding: 56px 0 72px;
}

.wrap {
  max-width: 760px;
}

.kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 12px;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.updated {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.lang {
  display: flex;
  gap: 16px;
  margin: 0 0 18px;
  font-size: 13px;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
}

.lang a[aria-current='page'] {
  color: var(--accent);
  font-weight: 600;
}

h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--accent);
}

h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

h4 {
  margin: 20px 0 8px;
  font-size: 15px;
  font-weight: 650;
}

p,
li {
  font-size: 16px;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 8px 0 18px;
  padding-left: 1.2em;
}

li {
  margin: 0 0 10px;
}

li::marker {
  color: var(--accent);
}

.contact {
  margin-top: 8px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.contact p:last-child {
  margin-bottom: 0;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.foot-inner img {
  height: 18px;
  display: block;
  opacity: 0.9;
}

@media (max-width: 720px) {
  h1 {
    font-size: 34px;
  }

  .bar-inner {
    gap: 12px;
  }

  .bar-links {
    gap: 16px;
    margin-left: 12px;
  }

  .theme-toggle {
    margin-left: 0;
    flex-shrink: 0;
  }

  .foot-inner {
    flex-direction: column;
    text-align: center;
  }
}
