:root {
  --accent: rgb(62, 207, 196);
  --text: rgb(242, 247, 247);
  --muted: rgb(164, 186, 190);
  --bg-top: rgb(18, 48, 62);
  --bg-mid: rgb(10, 24, 34);
  --bg-bottom: rgb(6, 12, 18);
  --header-h: clamp(3.4rem, 4.4vw, 5.6rem);
  --banner-h: 3.35rem;
  --banner-pad: 0.32rem;
  --banner-r: calc(var(--banner-h) / 2);
  --view-pad-y: 0.28rem;
  --view-font: 0.8rem;
  --view-h: calc(var(--view-font) * 1.2 + 2 * var(--view-pad-y));
  --banner-top: 0.4rem;
  --page-gutter: clamp(0.9rem, 1.5vw, 2.1rem);
  --header-top: var(--page-gutter);
  --header-max: min(92vw, 1760px);
}

html.has-store-banner {
  --header-top: calc(var(--banner-top) + var(--banner-h) + 0.45rem);
}

*,
*::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.6rem);
  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(62, 207, 196, 0.22),
      rgba(18, 72, 88, 0.14) 42%,
      transparent 72%
    ),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bottom));
  background-attachment: fixed;
}

.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% - 2 * var(--page-gutter));
  max-width: var(--header-max);
  min-height: var(--header-h);
  padding: 0.5em 0.7em 0.5em 1.35em;
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  transform: translateX(-50%);
  transition:
    top 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    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 {
  top: var(--header-top);
  max-width: min(84vw, 1520px);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(10, 28, 38, 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;
  }
}

.store-banner {
  position: fixed;
  top: var(--banner-top);
  left: 50%;
  z-index: 50;
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--header-max);
  height: var(--banner-h);
  transform: translateX(-50%);
}

.store-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 100%;
  padding: var(--banner-pad);
  padding-right: calc((var(--banner-h) - var(--view-h)) / 2);
  border-radius: var(--banner-r);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 32, 42, 0.88);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
}

.store-banner-inner:hover {
  text-decoration: none;
}

.store-banner-icon {
  width: calc(var(--banner-h) - 2 * var(--banner-pad));
  height: calc(var(--banner-h) - 2 * var(--banner-pad));
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0.55rem;
}

.store-banner-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  line-height: 1.15;
}

.store-banner-title {
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.store-banner-sub {
  font-size: 0.7rem;
  color: var(--muted);
}

.store-banner-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: var(--view-pad-y) 0.85rem;
  border: none;
  border-radius: 999px;
  background: #0a84ff;
  color: #fff;
  font-size: var(--view-font);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.store-banner.is-soon .store-banner-view {
  opacity: 0.72;
}

.store-banner.is-soon .store-banner-inner {
  cursor: default;
}

@media (max-width: 860px) {
  .store-banner-title {
    font-size: 0.86rem;
  }

  .store-banner-sub {
    font-size: 0.65rem;
  }

  .nav > a:first-child,
  .nav .sep {
    display: none;
  }
}

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

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

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

.brand {
  font-weight: 650;
  font-size: 1.12em;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.9em;
  color: var(--muted);
}

@media (min-aspect-ratio: 1 / 1) {
  body.page-home .site-header {
    font-size: clamp(1.35rem, 2.15vw, 2rem);
    color: #fff;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7);
  }

  body.page-home .nav {
    color: rgba(255, 255, 255, 0.94);
  }
}

.nav a {
  text-decoration: none;
}

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

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

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

.lang-menu > summary {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.6rem;
  border: 1px solid rgba(242, 247, 247, 0.18);
  border-radius: 999px;
  font-size: 0.8em;
  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 {
  border-color: var(--accent);
  color: var(--text);
}

.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, 247, 247, 0.12);
  border-radius: 0.9rem;
  background: rgba(12, 32, 42, 0.92);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform-origin: top right;
  animation: lang-pop 0.16s ease;
}

@keyframes lang-pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-0.3rem);
  }
}

.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;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .lang-panel {
    animation: none;
  }
}

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

body.page-home {
  position: relative;
  padding-top: 0;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-frame {
  position: relative;
}

.hero-photo {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 32%;
}

.hero-photo-extra {
  display: none;
}

.hero-copy {
  position: absolute;
  top: 45%;
  right: calc(42% + clamp(16px, 1.15vw, 28px));
  z-index: 1;
  width: fit-content;
  max-width: 36%;
  padding: 0;
  overflow: visible;
  text-align: right;
  transform: translateY(-50%);
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -5.5em -6em;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 42% 38% at 50% 50%,
    rgba(6, 12, 18, 0.2) 0%,
    rgba(6, 12, 18, 0.06) 45%,
    transparent 72%
  );
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  mask-image: radial-gradient(
    ellipse 48% 44% at 50% 50%,
    #000 0%,
    rgba(0, 0, 0, 0.65) 32%,
    rgba(0, 0, 0, 0.22) 62%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 48% 44% at 50% 50%,
    #000 0%,
    rgba(0, 0, 0, 0.65) 32%,
    rgba(0, 0, 0, 0.22) 62%,
    transparent 100%
  );
}

.hook {
  margin: 0 0 0.32em;
  color: #fff;
  font-size: clamp(2.2rem, 5.6vw, 8.2rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.lead {
  margin: 0 0 0.4em;
  color: var(--accent);
  font-size: clamp(1.15rem, 2.15vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.hero-copy p:not(.lead) {
  margin: 0 0 0 auto;
  max-width: 18em;
  color: rgba(220, 232, 234, 0.92);
  font-size: clamp(1rem, 1.4vw, 2.05rem);
  line-height: 1.4;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.hero-copy .lead {
  color: var(--accent);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

.hero-copy .hook {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

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

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

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

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

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

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

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

.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);
}

.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;
}

.page-home .site-footer {
  position: absolute;
  left: 50%;
  bottom: var(--page-gutter);
  z-index: 40;
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--header-max);
  min-height: var(--header-h);
  align-items: center;
  padding: 0.5em 1.35em;
  font-size: clamp(0.9rem, 1.05vw, 1.25rem);
  transform: translateX(-50%);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

@media (min-aspect-ratio: 1 / 1) {
  html:has(.page-home) {
    height: 100%;
    overflow: hidden;
  }

  body.page-home {
    height: 100svh;
    overflow: hidden;
  }

  .hero,
  .hero-frame {
    height: 100svh;
  }

  .hero-frame .hero-photo {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 58%;
  }

  .page-home .site-footer {
    position: fixed;
  }
}

@media (max-aspect-ratio: 1 / 1) {
  html:has(.page-home) {
    height: auto;
    overflow: auto;
    background-color: var(--bg-bottom);
  }

  body.page-home {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding-top: 0;
    background-image: none;
    background-color: var(--bg-bottom);
  }

  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .hero-frame {
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    height: 0;
  }

  .hero-frame .hero-photo {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center center;
  }

  .hero-photo-extra {
    display: block;
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center center;
  }

  .page-home .site-footer {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: none;
    min-height: 0;
    z-index: 1;
    padding: 1.1rem 1.35rem 1.4rem;
    text-shadow: none;
  }
}

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

  .hero-copy {
    top: 38%;
    width: min(18rem, 42%);
  }
}
