:root {
  --bg: #07080f;
  --surface: #0e1020;
  --surface-head: #131628;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --gold: #c9a84c;
  --violet: #9d7fd4;
  --cyan: #4ecdc4;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-ui: 'Syne', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* Syne and DM Mono have no Cyrillic, so Ukrainian pages use Manrope and JetBrains Mono. */
:root:lang(uk) {
  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body, main, header, footer, section, nav, article {
  background-color: var(--bg) !important;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-shadow: 0 0 24px rgba(201, 168, 76, 0.35), 0 2px 4px rgba(0, 0, 0, 0.6);
}
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 20px; }

hr, .divider {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
  background-color: var(--bg) !important;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--text-soft); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.02em; }
.nav a:hover { color: var(--gold); }
.header-right { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.lang { display: flex; gap: 4px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; }
.lang a { color: var(--text-soft); text-decoration: none; padding: 4px 7px; border: 1px solid transparent; border-radius: 6px; }
.lang a:hover { color: var(--gold); }
.lang a[aria-current] { color: var(--gold); border-color: rgba(201, 168, 76, 0.45); }

/* Sections */
section { padding: clamp(48px, 8vw, 88px) 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.lead { font-size: 1.15rem; color: var(--text); max-width: 46em; }
.muted { color: var(--text-soft); }

.hero h1 span { color: var(--gold); }

/* Product */
.product-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.features { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.features li {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--violet);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.features strong { display: block; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.features span { color: var(--text-soft); font-size: 0.95rem; }

.button {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bg);
  background-color: var(--gold);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
}
.button:hover { color: var(--bg); background-color: #d9bb63; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background-color: #0e1020; }
table { width: 100%; border-collapse: collapse; background-color: #0e1020; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th {
  background-color: #131628;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--gold);
  white-space: nowrap;
  width: 34%;
}
td { color: #ffffff; font-weight: 500; }
td .mono, .mono { font-family: var(--font-mono); }
td .note { display: block; font-weight: 400; color: var(--text-soft); font-size: 0.9rem; }

/* Contact */
.contact-mail {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  color: var(--cyan);
  word-break: break-all;
}

/* Legal text */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.5rem, 3.6vw, 1.9rem); margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal .meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-soft); }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .code { font-family: var(--font-mono); color: var(--violet); letter-spacing: 0.2em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.9rem; color: var(--text-soft); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.site-footer .sep { color: var(--line); }
.site-footer .mono { color: var(--text-soft); }

@media (max-width: 560px) {
  .site-header .container { padding-top: 12px; padding-bottom: 12px; }
  .nav { gap: 16px; }
  .header-right { gap: 12px; width: 100%; justify-content: space-between; }
  th, td { display: block; width: 100%; }
  th { border-bottom: 0; padding-bottom: 4px; white-space: normal; }
  td { padding-top: 6px; }
}

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