:root,
[data-theme="dark"] {
  --bg: #0c121b;
  --surface: #151f2c;
  --surface-raised: #1b2939;
  --text: #f3f8fc;
  --muted: #afbfce;
  --line: rgba(204, 227, 244, .15);
  --accent: #55b9ef;
  --accent-strong: #177cac;
  --accent-ink: #ffffff;
  --focus: #8fd5fa;
  --social-bg: linear-gradient(128deg, rgba(15, 84, 124, .95), rgba(18, 38, 61, .96));
  --card-bg: rgba(255, 255, 255, .065);
  --card-hover: rgba(255, 255, 255, .13);
  --page-glow-a: rgba(38, 151, 218, .25);
  --page-glow-b: rgba(78, 193, 220, .11);
}

[data-theme="light"] {
  --bg: #e7f0f6;
  --surface: #fbfdff;
  --surface-raised: #ffffff;
  --text: #152334;
  --muted: #4d6476;
  --line: rgba(21, 64, 96, .15);
  --accent: #1377ac;
  --accent-strong: #075c8d;
  --accent-ink: #ffffff;
  --focus: #075c8d;
  --social-bg: linear-gradient(128deg, #075b8b, #167cae 58%, #1598ba);
  --card-bg: rgba(255, 255, 255, .13);
  --card-hover: rgba(255, 255, 255, .23);
  --page-glow-a: rgba(81, 172, 226, .33);
  --page-glow-b: rgba(103, 211, 219, .18);
}

* { box-sizing: border-box }
html { background: var(--bg); scroll-behavior: smooth }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(720px 410px at 92% -80px, var(--page-glow-a), transparent 68%),
    radial-gradient(560px 360px at -10% 42%, var(--page-glow-b), transparent 72%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  transition: background-color .25s ease, color .25s ease;
}
.wrap { width: min(1120px, calc(100% - 48px)); margin: auto }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 7px; background: var(--surface-raised);
  color: var(--text); border: 1px solid var(--line); text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px }

.nav { height: 88px; display: flex; align-items: center; justify-content: space-between }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 20px; letter-spacing: -.035em; font-weight: 850 }
.brand-logo { display: block; width: 34px; height: 34px }
.brand span { color: var(--accent) }
.nav-actions { display: flex; align-items: center; gap: 18px }
.nav-contact { color: var(--text); font-size: 14px; font-weight: 650; text-decoration: none; border-bottom: 1px solid transparent; padding: 5px 0 }
.nav-contact:hover { color: var(--accent); border-color: currentColor }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer; box-shadow: 0 6px 18px rgba(8, 34, 52, .08);
}
.theme-toggle .icon-moon { display: none }
[data-theme="light"] .theme-toggle .icon-sun { display: none }
[data-theme="light"] .theme-toggle .icon-moon { display: block }
a, button { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 5px }

.hero { position: relative; padding: 88px 0 82px; overflow: hidden }
.hero::after {
  content: ""; position: absolute; right: -70px; top: 20px; width: 320px; height: 320px; z-index: -1;
  border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 40px rgba(84, 185, 239, .035), 0 0 0 82px rgba(84, 185, 239, .025);
}
.eyebrow, .num { margin: 0; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 1.75px }
.hero h1 { max-width: 840px; margin: 17px 0 22px; font-size: clamp(43px, 6.5vw, 78px); letter-spacing: -.065em; line-height: 1.01 }
.hero h1 em { color: var(--accent); font-weight: 650; font-style: normal }
.lead { max-width: 625px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65 }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 31px }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 15px 19px 15px 23px;
  border: 1px solid transparent; border-radius: 10px; background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: var(--accent-ink); text-decoration: none; font-size: 14px; font-weight: 800;
  box-shadow: 0 12px 26px rgba(7, 93, 141, .24);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(7, 93, 141, .34) }
.button span { font-size: 18px; line-height: 1 }
.button--ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; padding-left: 19px; padding-right: 19px }
.button--ghost:hover { background: var(--surface); border-color: var(--accent); box-shadow: none }

/* Główny punkt wejścia do społeczności */
.social {
  margin-top: 2px; margin-bottom: 94px; padding: 46px 48px 48px; border: 1px solid rgba(178, 227, 250, .24);
  border-radius: 22px; color: #f7fcff; background: var(--social-bg);
  box-shadow: 0 24px 48px rgba(7, 48, 76, .18); overflow: hidden; position: relative;
}
.social::after { content: ""; position: absolute; width: 290px; height: 290px; right: -115px; bottom: -180px; border: 1px solid rgba(255,255,255,.20); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.05), 0 0 0 70px rgba(255,255,255,.03); pointer-events: none }
.social-head { position: relative; z-index: 1; max-width: 630px; margin-bottom: 30px }
.social .eyebrow { color: #d2f2ff }
.social-head h2 { margin: 9px 0 9px; font-size: clamp(31px, 4.2vw, 45px); letter-spacing: -.05em; line-height: 1.04 }
.social-lead { margin: 0; max-width: 560px; color: rgba(247, 252, 255, .84); font-size: 16px }
.social-grid { position: relative; z-index: 1; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; padding: 0; margin: 0 }
.social-card { display: flex; align-items: center; gap: 15px; height: 100%; min-height: 94px; padding: 19px 20px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; color: #fff; background: var(--card-bg); text-decoration: none; backdrop-filter: blur(8px) }
.social-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.66); background: var(--card-hover); box-shadow: 0 14px 24px rgba(0, 37, 62, .17) }
.social-grid li:first-child .social-card { background: rgba(4, 35, 64, .30); border-color: rgba(203, 242, 255, .6) }
.social-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; border-radius: 10px; background: rgba(255,255,255,.92); color: #09658f; font-size: 12px; font-weight: 900; letter-spacing: -.03em }
.social-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0 }
.social-name { font-size: 16px; font-weight: 800; letter-spacing: -.02em }
.social-handle { color: rgba(255,255,255,.75); font-size: 12px; overflow-wrap: anywhere }
.social-arrow { margin-left: auto; color: rgba(255,255,255,.78); font-size: 17px }

.areas-section { padding: 4px 0 92px }
.section-title { margin: 10px 0 31px; font-size: clamp(28px, 3.5vw, 36px); letter-spacing: -.045em }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px }
.areas-grid article { min-height: 250px; padding: 29px 27px 31px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, var(--surface-raised), var(--surface)); box-shadow: 0 12px 24px rgba(9, 34, 53, .045) }
.areas-grid article:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 48%, var(--line)) }
.areas-grid h3 { margin: 22px 0 10px; font-size: 22px; letter-spacing: -.035em }
.areas-grid article p:last-child { margin: 0; color: var(--muted); font-size: 15px }

.statement { padding: 100px 0 104px }
.statement p { max-width: 745px; margin: 0; font-size: clamp(30px, 4.1vw, 47px); letter-spacing: -.055em; line-height: 1.09; color: var(--muted) }
.statement strong { color: var(--text); font-weight: 750 }
.contact { padding: 0 0 98px }
.contact h2 { margin: 10px 0 10px; font-size: clamp(29px, 3.7vw, 38px); letter-spacing: -.045em }
.contact p { max-width: 520px; color: var(--muted); font-size: 16px }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px }
footer nav { display: flex; gap: 22px } footer a { color: var(--muted); text-decoration: none } footer a:hover { color: var(--accent) }
.legal { max-width: 790px; padding: 70px 0 100px } .legal h1 { margin: 18px 0 28px; font-size: 40px; letter-spacing: -.04em } .legal h2 { font-size: 20px; margin: 32px 0 8px } .legal p, .legal li { color: var(--muted) } .legal a, .back { color: var(--accent) } .back { font-size: 14px; text-decoration: none }

@media (max-width: 940px) { .social-grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 700px) {
  .wrap { width: min(100% - 32px, 1120px) }
  .nav { height: 76px } .nav-contact { display: none }
  .hero { padding: 61px 0 63px } .hero h1 { font-size: clamp(42px, 12vw, 58px) } .hero::after { opacity: .55; right: -175px; top: 20px }
  .social { padding: 34px 22px 24px; margin-bottom: 66px; border-radius: 17px } .social-grid { grid-template-columns: 1fr; gap: 10px } .social-card { min-height: 76px }
  .areas-section { padding-bottom: 68px } .areas-grid { grid-template-columns: 1fr } .areas-grid article { min-height: 0; padding: 24px }
  .statement { padding: 68px 0 } .contact { padding-bottom: 68px } footer { align-items: flex-start; flex-direction: column }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important } }
