:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --text: #0b2a26;
  --muted: #4d6662;
  --line: #e2ddd1;
  --accent: #0a786d;
  --accent-2: #2bb3a0;
  --tint: #e3efe9;
  --shadow: 0 18px 50px rgba(11, 42, 38, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1513; --card: #13201d; --text: #eaf2ef; --muted: #9db3ae; --line: #22332f;
    --accent: #3fc2b1; --accent-2: #0e8c7f; --tint: #16302b;
    --shadow: 0 18px 50px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html:not([data-lang="uk"]) [data-l="uk"], html[data-lang="uk"] [data-l="en"] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }

header { padding-block: 20px; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.lang button {
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 32px 72px; }
.hero > * { min-width: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1 { font-size: clamp(40px, 6.4vw, 66px); line-height: 1.03; letter-spacing: -.03em; font-weight: 800; margin: 0 0 18px; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 30em; margin: 0 0 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.pills li { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--accent); }
.note { font-size: 14px; color: var(--muted); margin: 0; }

.shot { justify-self: center; width: 100%; max-width: 360px; border-radius: 28px; overflow: hidden; background: #f4f1ea; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
.hero-icon { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }

h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.section-head { margin-bottom: 22px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 72px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.feature .pic { background: #f4f1ea; aspect-ratio: 16 / 13; overflow: hidden; }
.feature .pic img { display: block; width: 100%; height: auto; }
.feature .body { padding: 18px 20px 22px; }
.feature h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 72px; }
.link-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.link-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.link-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.link-card b { font-size: 17px; }
.link-card span { color: var(--muted); font-size: 15px; }
.link-card .arrow { color: var(--accent); font-weight: 700; margin-top: auto; padding-top: 8px; }

footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .hero .shot { max-width: 300px; }
  .features, .links { grid-template-columns: 1fr; }
}

/* Legal documents */
.doc { max-width: 760px; margin: 0 auto; padding-block: 24px 72px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.doc h2 { font-size: 21px; letter-spacing: -.01em; margin: 36px 0 10px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc .summary { background: var(--tint); border-radius: 20px; padding: 18px 22px; margin: 24px 0; }
.doc .summary h2 { margin: 0 0 6px; font-size: 17px; color: var(--accent); }
.doc .summary ul { margin: 0; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--muted); font-weight: 600; }
@media (max-width: 560px) {
  .doc table, .doc tr, .doc td, .doc th { display: block; }
  .doc tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .doc tr:last-child { border-bottom: 0; }
  .doc th, .doc tr:has(th) { display: none; }
  .doc td { border: 0; padding: 2px 0; }
}
