:root{
  --bg:#f6f8fb;
  --surface:#ffffff;
  --surface2:#f2f5fb;
  --text:#0b1220;
  --muted:#4b5565;
  --border:rgba(15,23,42,.10);
  --accent:#1d4ed8;
  --accent2:#16a34a;
  --shadow: 0 10px 28px rgba(2,6,23,.10);
  --shadow2: 0 6px 18px rgba(2,6,23,.08);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1000px 700px at 10% 10%, rgba(29,78,216,.10), transparent 55%),
    radial-gradient(900px 650px at 90% 15%, rgba(22,163,74,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{color:inherit}
.container{max-width:1100px;margin:0 auto;padding:24px}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0 10px 0;
}
.brand{
  display:flex; gap:12px; align-items:center;
  text-decoration:none;
}
.logo{
  width:40px; height:40px; border-radius:12px;
  background: linear-gradient(135deg, rgba(29,78,216,.95), rgba(22,163,74,.90));
  box-shadow: var(--shadow2);
}
.brand strong{display:block; letter-spacing:.2px}
.brand span{display:block; font-size:12px; color:var(--muted)}

.lang{
  display:flex; gap:10px; align-items:center;
}
.lang button{
  border:1px solid var(--border);
  background: var(--surface);
  color:var(--text);
  padding:9px 11px;
  border-radius:14px;
  cursor:pointer;
  display:flex; align-items:center; gap:8px;
  box-shadow: 0 2px 10px rgba(2,6,23,.04);
}
.lang button[aria-pressed="true"]{
  border-color: rgba(29,78,216,.35);
  box-shadow: 0 0 0 4px rgba(29,78,216,.10);
}
.flag{
  width:18px;height:12px;border-radius:3px;
  border:1px solid rgba(2,6,23,.15);
  overflow:hidden;
  display:inline-block;
}
.flag.ua{ background: linear-gradient(#1e6cff 50%, #ffd500 50%); }
.flag.de{ background: linear-gradient(#111 33%, #d10 33% 66%, #ffce00 66%); }
.badge{
  font-size:12px;
  padding:2px 8px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  background: var(--surface);
}

.grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
  margin-top:10px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
}

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

h1{
  margin:0 0 10px 0;
  font-size:42px;
  line-height:1.10;
  letter-spacing:-.2px;
}
@media (max-width: 520px){
  h1{font-size:32px}
}
.lead{
  margin:0 0 14px 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}

.kpis{
  display:flex; flex-wrap:wrap; gap:10px;
  margin:16px 0 0;
}
.kpi{
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  background: var(--surface2);
}
.kpi b{display:block; font-size:14px}
.kpi small{display:block; color:var(--muted); margin-top:2px}

.sectionTitle{
  margin:0 0 10px 0;
  font-size:18px;
}
.note{
  margin-top:12px;
  font-size:12.5px;
  color:var(--muted);
  line-height:1.55;
}

.list{
  margin:10px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.list li{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--surface2);
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(29,78,216,.9);
  margin-top:6px;
  flex:0 0 auto;
}

/* CTA */
.ctaRow{
  display:flex; flex-wrap:wrap; gap:12px;
  margin-top:14px;
}
.btn{
  text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--surface);
  color:var(--text);
  font-weight:650;
  box-shadow: 0 2px 10px rgba(2,6,23,.05);
}
.btnPrimary{
  background: linear-gradient(135deg, rgba(29,78,216,.95), rgba(29,78,216,.75));
  border-color: rgba(29,78,216,.20);
  color:#fff;
}
.btnGreen{
  background: linear-gradient(135deg, rgba(22,163,74,.95), rgba(22,163,74,.75));
  border-color: rgba(22,163,74,.20);
  color:#fff;
}
.btn:hover{filter:brightness(1.03)}

/* Carousel */
.carousel{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  background: var(--surface2);
  box-shadow: var(--shadow2);
}
.carouselTrack{
  display:flex;
  transition: transform 400ms ease;
  will-change: transform;
}
.carouselSlide{
  min-width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio: 16 / 8;
  background: #fff;
}
.carouselSlide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.carouselNav{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
  padding:10px;
}
.carouselBtn{
  pointer-events:auto;
  width:40px; height:40px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 18px rgba(2,6,23,.12);
}
.carouselBtn:active{transform:scale(.98)}
.carouselBtn[hidden]{display:none}

.carouselDots{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top:10px;
}
.dotBtn{
  width:10px; height:10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.25);
  background: rgba(15,23,42,.10);
  cursor:pointer;
}
.dotBtn[aria-current="true"]{
  background: rgba(29,78,216,.70);
  border-color: rgba(29,78,216,.65);
}
.carouselDots[hidden]{display:none}

/* Footer */
.footer{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--border);
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px;
  color:var(--muted);
  font-size:13px;
}
.footer a{color:var(--muted); text-decoration:none}
.footer a:hover{color:var(--text)}

/* Legal pages */
.pageTitle{margin:0 0 6px 0; font-size:28px}
.pageSub{margin:0 0 18px 0; color:var(--muted); line-height:1.65}
.prose{line-height:1.75}
.prose h2{margin:22px 0 10px}
.prose h3{margin:18px 0 8px}
.prose p, .prose ul{color:var(--muted)}
.prose code{color:var(--text)}