:root {
  --accent: rgb(90, 148, 235);
  --accent-soft: rgba(90, 148, 235, 0.14);
  --text: rgb(242, 242, 247);
  --muted: rgb(174, 174, 178);
  --bg-top: rgb(24, 29, 42);
  --bg-mid: rgb(14, 16, 22);
  --bg-bottom: rgb(10, 11, 14);
  --header-h: 3.4rem;
  --header-top: 0.7rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background-color: var(--bg-bottom);
  overscroll-behavior-y: none;
}

body {
  min-height: 100%;
  margin: 0;
  padding-top: calc(var(--header-top) + var(--header-h) + 0.8rem);
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  background-color: var(--bg-bottom);
  background-image:
    radial-gradient(
      ellipse 90% 52% at 50% -8%,
      rgba(90, 148, 235, 0.26),
      rgba(52, 70, 104, 0.12) 42%,
      transparent 72%
    ),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bottom));
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-header {
  position: fixed;
  top: var(--header-top);
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: calc(100% - 1.8rem);
  max-width: 1080px;
  min-height: var(--header-h);
  padding: 0.45rem 0.6rem 0.45rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  transform: translateX(-50%);
  transition:
    max-width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.is-stuck {
  max-width: 920px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(18, 21, 30, 0.72);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.42),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand img {
  width: 1.6rem;
  height: 1.6rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a.is-current {
  color: var(--accent);
  font-weight: 600;
}

.nav .sep {
  opacity: 0.45;
  user-select: none;
}

@media (max-width: 720px) {
  .nav > a:first-of-type,
  .nav .sep {
    display: none;
  }
}

.lang-menu {
  position: relative;
  margin-left: 0.3rem;
}

.lang-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.6rem;
  border: 1px solid rgba(242, 242, 247, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.lang-menu > summary::-webkit-details-marker {
  display: none;
}

.lang-menu > summary::after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  margin-top: -0.16rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
  transition: transform 0.16s ease;
}

.lang-menu > summary:hover,
.lang-menu[open] > summary {
  border-color: var(--accent);
  color: var(--text);
}

.lang-menu[open] > summary::after {
  margin-top: 0.08rem;
  transform: rotate(-135deg);
}

.lang-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 20;
  min-width: 9.5rem;
  padding: 0.3rem;
  border: 1px solid rgba(242, 242, 247, 0.12);
  border-radius: 0.9rem;
  background: rgba(22, 26, 36, 0.94);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.62rem;
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
}

.lang-item::before {
  content: "✓";
  width: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  visibility: hidden;
}

html[lang="pl"] .lang-item[data-lang="pl"]::before,
html[lang="en"] .lang-item[data-lang="en"]::before {
  visibility: visible;
}

.lang-item:hover {
  background: rgba(242, 242, 247, 0.08);
  text-decoration: none;
}

html[lang="pl"] [data-i18n="en"],
html:not([lang="pl"]) [data-i18n="pl"] {
  display: none !important;
}

main {
  flex: 1;
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.5rem 0 3.5rem;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0 2.5rem;
}

.pill {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(90, 148, 235, 0.6);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hook {
  max-width: 44rem;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.copy {
  max-width: 40rem;
}

.copy .lead {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.copy p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.mark {
  width: min(7.5rem, 30vw);
  margin: 0 0 1.4rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  padding: 0 0 2.5rem;
}

.card {
  padding: 1.15rem 1.25rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
}

.card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card li {
  margin-bottom: 0.3rem;
}

.card li b {
  font-weight: 600;
  color: var(--text);
}

.limits {
  width: min(44rem, 100%);
  margin: 0 auto;
  padding: 0 0 3rem;
}

.limits h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  letter-spacing: -0.03em;
}

.limits p,
.limits li {
  color: var(--muted);
}

.limits ul {
  margin: 0;
  padding-left: 1.15rem;
}

.limits li {
  margin-bottom: 0.45rem;
}

.limits li b {
  font-weight: 600;
  color: var(--text);
}

.page {
  width: min(40rem, 100%);
  margin: 1.5rem auto 0;
}

.page h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.page h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
}

.page p,
.page li {
  color: var(--muted);
}

.page p {
  margin: 0 0 1rem;
}

.page a {
  color: var(--accent);
}

.page ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.page li {
  margin-bottom: 0.4rem;
}

.page li b {
  font-weight: 600;
  color: var(--text);
}

.mail {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.4rem;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.9em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 800px) {
  body {
    background-attachment: scroll;
  }
}
