:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #e3e8f0;
  --accent: #2f5bea;
  --accent-soft: #e8eefe;
  --radius: 14px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #121a30;
    --text: #e8ecf5;
    --muted: #9aa4b8;
    --line: #232d47;
    --accent: #7c9cff;
    --accent-soft: #1b2648;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* language switching */
html[lang="en"] [lang="uk"]:not(html),
html[lang="uk"] [lang="en"]:not(html) { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
nav.menu { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav.menu a { color: var(--muted); }
nav.menu a:hover { color: var(--text); text-decoration: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px;
  padding: 4px 10px; cursor: pointer;
}
.lang-switch button.active { background: var(--accent); color: #fff; }
@media (max-width: 720px) { nav.menu a { display: none; } }

/* hero */
.hero { padding: 96px 0 80px; background: radial-gradient(1200px 400px at 50% -10%, var(--accent-soft), transparent 70%); }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 0 32px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 20px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { text-decoration: none; opacity: .92; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); margin-left: 10px; }
.btn-ghost:hover { text-decoration: none; background: var(--bg-alt); }

/* sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; letter-spacing: -.01em; }
section p.sub { color: var(--muted); margin: 0 0 40px; max-width: 680px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
section.alt .card { background: var(--bg); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* company details */
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .details { grid-template-columns: 1fr; } }
dl.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; }
dl.facts dt { color: var(--muted); font-size: 14px; }
dl.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 12px; } }
ul.kved { margin: 0; padding: 0; list-style: none; }
ul.kved li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
ul.kved li:last-child { border-bottom: 0; }
ul.kved b { display: inline-block; min-width: 52px; color: var(--accent); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav a { color: var(--muted); margin-left: 18px; }
footer nav a:first-child { margin-left: 0; }

/* legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
