:root {
  --bg: #f4f6fb;
  --ink: #0b0f1a;
  --muted: #5a6174;
  --brand: #1f56ff;
  --brand-dark: #1438b8;
  --accent: #ff7a59;
  --card: #ffffff;
  --stroke: #e2e7f1;
  --shadow: 0 24px 48px rgba(12, 18, 35, 0.12);
  --radius: 22px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 10% 10%, rgba(31, 86, 255, 0.12), transparent 45%),
    radial-gradient(circle at 85% 5%, rgba(255, 122, 89, 0.12), transparent 50%),
    var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  padding: 8px 14px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  z-index: 50;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(var(--max), 100% - 48px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 251, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-mark {
  font-size: 0.95rem;
}

.tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(31, 86, 255, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #fff;
  box-shadow: 0 10px 20px rgba(12, 18, 35, 0.12);
}

.lang-switch img {
  width: 22px;
  height: 14px;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.nav-list a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--ink);
}

.nav-cta {
  background: var(--brand);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.nav-list .nav-cta {
  color: #ffffff;
}

main {
  padding-bottom: 80px;
}

.hero {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 40px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(31, 86, 255, 0.2), transparent 65%);
  border-radius: 50%;
  opacity: 0.7;
}

.hero-inner {
  display: grid;
  gap: 42px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 18px;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0 0 18px;
  line-height: 1.15;
}

body.lang-uk h1,
body.lang-uk h2,
body.lang-uk h3,
body.lang-uk h4,
body.lang-uk .brand,
body.lang-uk .footer-brand {
  font-family: "Manrope", sans-serif;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
  font-size: 1.4rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 640px;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 18px 30px rgba(31, 86, 255, 0.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--stroke);
}

.hero-panel {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.panel-item {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-item p {
  color: var(--muted);
  margin: 0;
}

section {
  padding: 100px 0;
}

.section-title {
  max-width: 720px;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
}

.section-split {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h4 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

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

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  color: var(--muted);
}

.surface {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.form-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 14px;
}

.page-hero {
  padding: 120px 0 60px;
}

.update-card {
  display: grid;
  gap: 12px;
}

.update-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-weight: 600;
}

.details-group details {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px 20px;
}

.details-group details + details {
  margin-top: 16px;
}

.details-group summary {
  font-weight: 600;
  cursor: pointer;
}

.site-footer {
  background: #0b0f1a;
  color: #f5f6fb;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-grid h4 {
  margin-bottom: 10px;
  color: #fff;
}

.footer-grid a,
.footer-grid p {
  color: rgba(245, 246, 251, 0.75);
  margin: 8px 0;
  font-size: 0.95rem;
}

.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.footer-bottom {
  margin-top: 32px;
  border-top: 1px solid rgba(245, 246, 251, 0.1);
  padding-top: 18px;
  font-size: 0.85rem;
  color: rgba(245, 246, 251, 0.6);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    right: 24px;
    top: 66px;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 16px;
    gap: 12px;
    min-width: 200px;
    display: none;
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-list {
    display: flex;
  }

  .hero {
    padding-top: 120px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}
