:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.14);
  --text: #e8eef6;
  --muted: rgba(232,238,246,0.62);
  --muted-strong: rgba(232,238,246,0.78);
  --accent: #7dd3fc;
  --accent-2: #a78bfa;

  --bg-grad-1: rgba(125, 211, 252, 0.12);
  --bg-grad-2: rgba(167, 139, 250, 0.10);
  --header-bg: rgba(11,15,20,0.72);
  --card-bg-top: rgba(255,255,255,0.06);
  --card-bg-bottom: rgba(255,255,255,0.03);
  --menu-bg: rgba(11,15,20,0.92);
  --shadow: rgba(0,0,0,0.35);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9fc;
  --panel: rgba(0,0,0,0.03);
  --border: rgba(0,0,0,0.10);
  --border-strong: rgba(0,0,0,0.14);
  --text: #0b0f14;
  --muted: rgba(11,15,20,0.62);
  --muted-strong: rgba(11,15,20,0.78);
  --accent: #0ea5e9;
  --accent-2: #7c3aed;

  --bg-grad-1: rgba(14, 165, 233, 0.10);
  --bg-grad-2: rgba(124, 58, 237, 0.08);
  --header-bg: rgba(247,249,252,0.82);
  --card-bg-top: rgba(0,0,0,0.03);
  --card-bg-bottom: rgba(0,0,0,0.02);
  --menu-bg: rgba(247,249,252,0.92);
  --shadow: rgba(0,0,0,0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 20% -10%, var(--bg-grad-1), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, var(--bg-grad-2), transparent 55%),
    var(--bg);
  color: var(--text);
}

a { color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

.header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; justify-content: center; }
  .brand { text-align: center; }
  .nav { justify-content: center; }
  .nav-right { justify-content: center; width: 100%; }
  .lang { justify-content: center; }
  .nav-menu { left: 50%; transform: translateX(-50%); }
}

.brand {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: grid;
  line-height: 1.1;
}

.brand-name { font-weight: 800; }
.brand-tag { font-weight: 500; color: var(--muted); font-size: 12px; }

.nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.nav-link {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease;
}

.nav-dropdown { position: relative; }
.nav-dropdown > summary { list-style: none; cursor: pointer; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown[open] > summary { background: rgba(0,0,0,0.04); border-color: var(--border); }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: var(--menu-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px var(--shadow);
}

.nav-menu-link {
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-menu-link:hover {
  background: rgba(0,0,0,0.04);
  border-color: var(--border);
}

.nav-link:hover { background: rgba(0,0,0,0.04); border-color: var(--border); }

.nav-cta {
  border-color: var(--border-strong);
  background: linear-gradient(90deg, var(--bg-grad-1), var(--bg-grad-2));
}

.nav-right { display: flex; gap: 10px; align-items: center; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.02);
  color: inherit;
  cursor: pointer;
}

.theme-toggle:hover { background: rgba(0,0,0,0.04); }
.theme-icon { font-size: 14px; }
.theme-label { font-size: 12px; color: var(--muted); }

.lang { display: flex; gap: 8px; }
.lang-link { text-decoration: none; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--border); transition: background 120ms ease, border-color 120ms ease; }
.lang-link:hover { background: rgba(0,0,0,0.04); border-color: var(--border-strong); }
.lang-link.active { background: rgba(0,0,0,0.05); }

.hero { padding: 44px 0 12px; }
.hero h1 {
  font-size: 48px;
  margin: 0 0 10px;
  letter-spacing: -0.6px;
  background: linear-gradient(90deg, var(--text), var(--muted-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { color: var(--muted-strong); font-size: 18px; line-height: 1.6; max-width: 70ch; }

.cta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card-bg-top), var(--card-bg-bottom));
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  text-decoration: none;
  background: rgba(0,0,0,0.02);
  color: inherit;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:hover { background: rgba(0,0,0,0.05); border-color: var(--border-strong); transform: translateY(-1px); }
.btn.secondary { opacity: 0.9; }
.btn.small { padding: 8px 12px; border-radius: 12px; }

.footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 10px; padding: 18px 20px; flex-wrap: wrap; }

.prose { line-height: 1.7; font-size: 16px; }
.prose ul { padding-left: 18px; }
.prose li { margin: 6px 0; }
.prose h2, .prose h3 { margin-top: 18px; }
.prose a { text-decoration: underline; }

.list { display: grid; gap: 14px; margin-top: 14px; }

.notice { border-radius: 14px; padding: 12px 14px; margin: 14px 0; border: 1px solid var(--border); }
.notice.success { background: rgba(0,255,120,0.10); }
.notice.error { background: rgba(255,60,60,0.10); }

.form { display: grid; gap: 12px; }
.field label { display:block; margin-bottom: 6px; color: var(--muted-strong); }
.field input, .field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(0,0,0,0.02);
  color: var(--text);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.10);
  background: var(--menu-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px var(--shadow);
}

.cookie-title { font-weight: 800; margin-bottom: 2px; }
.cookie-body { color: var(--muted-strong); font-size: 14px; line-height: 1.45; }
.cookie-body a { text-decoration: underline; }

@media (max-width: 760px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-inner .btn { width: 100%; }
}
