/* Lunka landing — paleta i typografia jak w aplikacji.
   Kolory: #17153B → #2E236C → #433D8B → #C8ACD6 */

:root {
  --bg: #17153b;
  --surface: #2e236c;
  --surface-soft: #433d8b;
  --primary: #c8acd6;
  --text: #ece6f4;
  --text-dim: #a99fcb;
  --radius: 22px;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}
/* Uwaga: overflow-x na html/body psuje position: sticky w iOS Safari —
   wystające dekoracje przycinamy w konkretnych sekcjach (np. .hero). */

body {
  background:
    radial-gradient(
      1.5px 1.5px at 12% 18%,
      rgba(236, 230, 244, 0.4),
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 34% 62%,
      rgba(236, 230, 244, 0.3),
      transparent 100%
    ),
    radial-gradient(
      1.5px 1.5px at 58% 9%,
      rgba(200, 172, 214, 0.45),
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 71% 44%,
      rgba(236, 230, 244, 0.28),
      transparent 100%
    ),
    radial-gradient(
      2px 2px at 87% 23%,
      rgba(200, 172, 214, 0.35),
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 22% 87%,
      rgba(236, 230, 244, 0.25),
      transparent 100%
    ),
    radial-gradient(
      1.5px 1.5px at 93% 74%,
      rgba(236, 230, 244, 0.3),
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 47% 33%,
      rgba(236, 230, 244, 0.22),
      transparent 100%
    ),
    radial-gradient(
      1200px 600px at 80% -10%,
      rgba(67, 61, 139, 0.55),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 30%,
      rgba(46, 35, 108, 0.6),
      transparent 55%
    ),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Przycina wystające dekoracje (poświata hero, przechylony telefon) bez
   dotykania html/body — overflow tam psuje sticky nav w iOS Safari. */
main {
  overflow-x: hidden;
  overflow-x: clip;
}
main > section:not(.hero) {
  contain-intrinsic-size: 1px 900px;
  content-visibility: auto;
}

::selection {
  background: rgba(200, 172, 214, 0.35);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.15;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
}

/* ---------- Nawigacja ---------- */
/* position: fixed zamiast sticky — sticky na iOS Safari potrafi „odpływać"
   przy przewijaniu (zwłaszcza w połączeniu z backdrop-filter). */
.nav {
  align-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(23, 21, 59, 0.72);
  border-bottom: 1px solid rgba(67, 61, 139, 0.45);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px max(24px, calc((100% - 1100px) / 2));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}
body {
  padding-top: 71px;
}
html {
  scroll-padding-top: 88px;
}
.brand {
  align-items: center;
  color: var(--text);
  display: flex;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  border-radius: 10px;
}
.nav nav {
  align-items: center;
  display: flex;
  gap: 26px;
}
.nav nav a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.nav nav a:hover {
  color: var(--text);
}
.nav-cta {
  background: var(--surface-soft);
  border: 1px solid rgba(200, 172, 214, 0.35);
  border-radius: 999px;
  color: var(--text) !important;
  padding: 8px 18px;
}

/* ---------- Hero ---------- */
.hero {
  align-items: center;
  display: flex;
  gap: 48px;
  margin: 0 auto;
  max-width: 1100px;
  padding: 72px 24px 96px;
  position: relative;
}
.hero-glow {
  background: radial-gradient(
    closest-side,
    rgba(200, 172, 214, 0.18),
    transparent
  );
  border-radius: 50%;
  height: 560px;
  pointer-events: none;
  position: absolute;
  right: -80px;
  top: -40px;
  width: 560px;
}
.hero-copy {
  flex: 1.2;
  position: relative;
  z-index: 1;
}
.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 20px;
}
.lead {
  color: var(--text);
  font-size: 19px;
  max-width: 30em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.btn-primary {
  background: linear-gradient(135deg, #e3cff0, var(--primary) 55%, #ab8ec9);
  border-radius: 999px;
  box-shadow: 0 8px 40px rgba(200, 172, 214, 0.35);
  color: var(--bg);
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  padding: 15px 32px;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
}
.btn-primary:hover {
  box-shadow: 0 10px 48px rgba(200, 172, 214, 0.5);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid rgba(200, 172, 214, 0.45);
  border-radius: 999px;
  color: var(--text);
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  padding: 15px 32px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-ghost:hover {
  background: rgba(67, 61, 139, 0.4);
}
.btn-soon {
  cursor: default;
}
.btn-soon:hover {
  box-shadow: 0 8px 40px rgba(200, 172, 214, 0.35);
  transform: none;
}
.hero-note {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 18px;
}

.hero-art {
  display: flex;
  flex: 1;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-art > img {
  filter: drop-shadow(0 24px 60px rgba(23, 21, 59, 0.8));
  margin: 0 auto;
}
.hero-art-phone {
  perspective: 1200px;
}
.iphone-frame {
  animation: iphone-float 7s ease-in-out infinite;
  background: linear-gradient(145deg, #080712 0%, #30274c 48%, #100d24 100%);
  border: 1px solid rgba(236, 230, 244, 0.18);
  border-radius: 54px;
  box-shadow:
    0 44px 90px rgba(10, 8, 30, 0.68),
    0 0 70px rgba(200, 172, 214, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  max-width: 270px;
  padding: 6px;
  position: relative;
  transform: rotate(-4deg);
  width: min(100%, 270px);
}
.iphone-frame::before {
  background: #080712;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  content: "";
  height: 20px;
  left: 50%;
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  width: 86px;
  z-index: 2;
}
.iphone-frame::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 44px;
  content: "";
  inset: 6px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}
.iphone-screen {
  aspect-ratio: 590 / 1280;
  background: var(--bg);
  border-radius: 45px;
  overflow: hidden;
  position: relative;
}
.iphone-screen::after {
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.2),
    transparent 32%
  );
  content: "";
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  position: absolute;
}
.iphone-screenshot {
  display: block;
  filter: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
  width: 100%;
}

/* ---------- Sekcje ---------- */
section {
  margin: 0 auto;
  max-width: 1100px;
  padding: 72px 24px;
}
section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 44px;
  text-align: center;
}

/* Funkcje */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  background: linear-gradient(
    160deg,
    rgba(46, 35, 108, 0.9),
    rgba(23, 21, 59, 0.9)
  );
  border: 1px solid rgba(67, 61, 139, 0.8);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 28px;
  position: relative;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.card:hover {
  border-color: rgba(200, 172, 214, 0.5);
  transform: translateY(-4px);
}
/* Magic bento: blask podążający za kursorem + świecąca obwódka w miejscu kursora. */
.card::before,
.card::after {
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.35s ease;
}
.card::before {
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    rgba(200, 172, 214, 0.16),
    transparent 70%
  );
}
.card::after {
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(200, 172, 214, 0.85),
    transparent 70%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}
.card:hover::before,
.card:hover::after {
  opacity: 1;
}
.card-icon {
  font-size: 30px;
  margin-bottom: 14px;
  position: relative;
}
.card h3 {
  font-size: 21px;
  margin-bottom: 8px;
  position: relative;
}
.card p {
  color: var(--text-dim);
  font-size: 15.5px;
  position: relative;
}
@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}

/* Jak działa */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  list-style: none;
}
.steps li {
  background: rgba(46, 35, 108, 0.5);
  border: 1px solid rgba(67, 61, 139, 0.6);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step-num {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid rgba(200, 172, 214, 0.4);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  font-size: 18px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  margin-bottom: 16px;
  width: 42px;
}
.steps h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.steps p {
  color: var(--text-dim);
  font-size: 15.5px;
}

/* FAQ */
.faq {
  max-width: 760px;
}
.faq details {
  background: rgba(46, 35, 108, 0.5);
  border: 1px solid rgba(67, 61, 139, 0.6);
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 18px 22px;
}
.faq summary {
  color: var(--text);
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
  position: relative;
}
.faq summary::after {
  color: var(--primary);
  content: "+";
  font-size: 22px;
  position: absolute;
  right: 0;
  top: -2px;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--text-dim);
  font-size: 15.5px;
  padding-top: 12px;
}

/* CTA końcowe */
.closing {
  padding-bottom: 96px;
  text-align: center;
}
.closing img {
  margin: 0 auto 8px;
  opacity: 0.9;
}
.closing h2 {
  margin-bottom: 12px;
}
.closing p {
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* ---------- Stopka ---------- */
footer {
  border-top: 1px solid rgba(67, 61, 139, 0.6);
  margin: 0 auto;
  max-width: 1100px;
  padding: 40px 24px 56px;
  text-align: center;
}
.foot-brand {
  align-items: center;
  display: flex;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.foot-brand img {
  border-radius: 8px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 18px;
}
footer nav a {
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
}
footer nav a:hover {
  color: var(--text);
}
.foot-note {
  color: var(--text-dim);
  font-size: 13px;
  max-width: 46em;
  margin: 0 auto;
}

/* ---------- Język ---------- */
.lang-switch {
  margin-left: 8px;
  position: relative;
}
.lang-switch summary {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid rgba(200, 172, 214, 0.35);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 5px;
  list-style: none;
  padding: 6px 12px;
  user-select: none;
}
.lang-switch summary::-webkit-details-marker {
  display: none;
}
.lang-switch summary::after {
  border-style: solid;
  border-width: 4px 3px 0 3px;
  border-color: var(--text-dim) transparent transparent transparent;
  content: "";
  transition: transform 0.15s;
}
.lang-switch[open] summary::after {
  transform: rotate(180deg);
}
.lang-menu {
  background: var(--surface);
  border: 1px solid rgba(200, 172, 214, 0.3);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10, 8, 30, 0.55);
  min-width: 150px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
}
.lang-menu a {
  color: var(--text-dim);
  display: block;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.lang-menu a:hover {
  background: rgba(67, 61, 139, 0.5);
  color: var(--text);
}
.lang-menu a.active {
  background: var(--surface-soft);
  color: var(--text);
}

/* ---------- Okruszki ---------- */
.breadcrumb {
  color: var(--text-dim);
  font-size: 13.5px;
  margin: 28px auto;
  max-width: 1100px;
  padding: 0 24px;
}
.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span[aria-hidden] {
  margin: 0 6px;
  opacity: 0.6;
}

/* ---------- Strona symbolu ---------- */
.symbol-hero {
  padding-top: 8px;
  text-align: center;
}
.symbol-icon {
  align-items: center;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(200, 172, 214, 0.35),
    var(--surface-soft) 70%
  );
  border-radius: 50%;
  display: flex;
  font-size: 54px;
  height: 128px;
  justify-content: center;
  margin: 0 auto 22px;
  overflow: hidden;
  width: 128px;
}
.symbol-icon img {
  border-radius: 50%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.symbol-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 8px;
}
.symbol-subtitle {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 22px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}
.tag-chip {
  background: var(--surface-soft);
  border: 1px solid rgba(200, 172, 214, 0.3);
  border-radius: 999px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
}
.symbol-desc {
  background: linear-gradient(
    160deg,
    rgba(46, 35, 108, 0.9),
    rgba(23, 21, 59, 0.9)
  );
  border: 1px solid rgba(67, 61, 139, 0.8);
  border-radius: var(--radius);
  font-size: 17px;
  margin: 0 auto;
  max-width: 760px;
  padding: 30px 32px;
}
.symbol-long {
  margin: 0 auto;
  max-width: 760px;
  padding-bottom: 24px;
  padding-top: 0;
}
.symbol-long h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 24px;
  text-align: left;
}
.symbol-long p {
  color: var(--text);
  margin-bottom: 18px;
}
.symbol-contexts {
  margin: 0 auto;
  max-width: 760px;
  padding-bottom: 24px;
  padding-top: 0;
}
.symbol-contexts h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 24px;
  text-align: left;
}
.symbol-contexts details {
  background: rgba(46, 35, 108, 0.5);
  border: 1px solid rgba(67, 61, 139, 0.6);
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 18px 22px;
}
.symbol-contexts summary {
  color: var(--text);
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
.symbol-contexts summary::after {
  color: var(--primary);
  content: "+";
  font-size: 22px;
  position: absolute;
  right: 0;
  top: -2px;
  transition: transform 0.2s;
}
.symbol-contexts details[open] summary::after {
  transform: rotate(45deg);
}
.symbol-contexts details p {
  color: var(--text-dim);
  font-size: 15.5px;
  padding-top: 12px;
}

.symbol-cta {
  margin: 0 auto 64px;
  text-align: center;
}
.soon-note {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 18px;
}

/* Powiązane / słownik siatki */
.related-grid,
.dict-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.related-card,
.dict-card {
  align-items: center;
  background: rgba(46, 35, 108, 0.55);
  border: 1px solid rgba(67, 61, 139, 0.7);
  border-radius: 18px;
  color: var(--text);
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.related-card:hover,
.dict-card:hover {
  border-color: rgba(200, 172, 214, 0.5);
  transform: translateY(-3px);
}
.related-card .ic,
.dict-card .ic {
  background: var(--surface-soft);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 22px;
  height: 46px;
  line-height: 46px;
  overflow: hidden;
  text-align: center;
  width: 46px;
}
.related-card .ic img,
.dict-card .ic img {
  border-radius: 50%;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.related-card .tx strong,
.dict-card .tx strong {
  display: block;
  font-size: 16px;
}
.related-card .tx span,
.dict-card .tx span {
  color: var(--text-dim);
  font-size: 13.5px;
}

/* Sennik: hub */
.dict-intro {
  margin-bottom: 56px;
  max-width: 760px;
}
.dict-intro p {
  color: var(--text-dim);
  font-size: 17px;
}
.dict-teaser-intro {
  color: var(--text-dim);
  margin: -24px auto 40px;
  max-width: 640px;
  text-align: center;
}
.dict-teaser-cta {
  margin-top: 36px;
  text-align: center;
}
.dict-category {
  margin-bottom: 48px;
}
.dict-category h2 {
  align-items: center;
  display: flex;
  font-size: 24px;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 20px;
  text-align: left;
}

/* ---------- Ruch ---------- */
@keyframes iphone-float {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(-4deg) translateY(-14px);
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-copy > * {
  animation: hero-in 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.1s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.2s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.3s;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 0.4s;
}
.hero-art {
  animation: hero-in 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 0.25s backwards;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  body {
    background:
      radial-gradient(
        680px 360px at 78% -12%,
        rgba(67, 61, 139, 0.45),
        transparent 62%
      ),
      var(--bg);
  }
  .nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 12px 16px;
  }
  body {
    padding-top: 67px;
  }
  html {
    scroll-padding-top: 82px;
  }
  .nav nav {
    gap: 12px;
  }
  .nav nav a:not(.nav-cta) {
    display: none;
  }
  .nav nav .lang-switch {
    display: block;
    margin-left: 0;
  }
  .nav nav .lang-menu a {
    display: block;
  }
  .brand {
    font-size: 19px;
  }
  .brand img {
    height: 30px;
    width: 30px;
  }

  .hero {
    flex-direction: column;
    gap: 44px;
    padding: 44px 20px 64px;
    text-align: center;
  }
  .hero-copy {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .hero h1 br {
    display: none;
  }
  .lead {
    font-size: 17px;
  }
  .cta-row {
    justify-content: center;
  }
  .hero-glow {
    display: none;
  }
  .hero-art-phone {
    margin-top: 4px;
  }
  .iphone-frame {
    animation-name: iphone-float-flat;
    box-shadow:
      0 28px 56px rgba(10, 8, 30, 0.52),
      0 0 32px rgba(200, 172, 214, 0.12);
    transform: rotate(0deg);
  }

  section {
    padding: 48px 20px;
  }
  .steps li,
  .card {
    padding: 24px 20px;
  }
  .symbol-desc {
    padding: 24px 20px;
  }
  .breadcrumb {
    padding: 16px 20px 0;
  }
  footer {
    padding: 32px 20px 44px;
  }
  .card:hover,
  .related-card:hover,
  .dict-card:hover,
  .btn-primary:hover {
    transform: none;
  }
}
@keyframes iphone-float-flat {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(0deg) translateY(-10px);
  }
}

@media (max-width: 520px) {
  .iphone-frame {
    border-radius: 46px;
    max-width: 218px;
    padding: 9px;
  }
  .iphone-frame::before {
    height: 18px;
    top: 17px;
    width: 64px;
  }
  .iphone-frame::after {
    border-radius: 38px;
    inset: 9px;
  }
  .iphone-screen {
    border-radius: 36px;
  }
}

/* ---------- Strony prawne ---------- */
.legal {
  margin: 0 auto;
  max-width: 760px;
  padding: 48px 24px 72px;
}
.legal h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 8px;
}
.legal .legal-updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 23px;
  margin: 36px 0 14px;
  text-align: left;
}
.legal p,
.legal li {
  color: var(--text);
  margin-bottom: 12px;
}
.legal ul {
  margin-bottom: 16px;
  padding-left: 22px;
}
.legal li {
  margin-bottom: 6px;
}
.legal .legal-note {
  background: rgba(46, 35, 108, 0.5);
  border: 1px solid rgba(67, 61, 139, 0.6);
  border-radius: 16px;
  color: var(--text-dim);
  font-size: 14.5px;
  margin-top: 40px;
  padding: 16px 20px;
}

/* ---------- Blog ---------- */
.blog-layout {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 24px 60px;
}
.blog-layout-main {
  min-width: 0;
}
.blog-post {
  box-sizing: border-box;
  max-width: 720px;
  padding-bottom: 24px;
}
.blog-date {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 8px;
}
.blog-date-separator { margin: 0 6px; }
.blog-post h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}
.blog-byline {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
}
.blog-byline a,
.blog-sources a,
.editorial-note a {
  color: var(--primary);
}
.blog-post .tag-row {
  justify-content: flex-start;
  margin-bottom: 32px;
}
.blog-cover {
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid rgba(67, 61, 139, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 22px 56px rgba(10, 8, 30, 0.32);
  margin: 0 0 34px;
  overflow: hidden;
}
.blog-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.blog-content h2 {
  font-size: clamp(22px, 3vw, 27px);
  margin: 32px 0 14px;
  text-align: left;
}
.blog-content p {
  color: var(--text);
  margin-bottom: 16px;
}
.blog-excerpt {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 28px;
}
.blog-related-symbols,
.blog-sources,
.blog-related {
  margin-top: 42px;
}
.blog-related-symbols h2,
.blog-sources h2,
.blog-related h2 {
  font-size: clamp(21px, 3vw, 25px);
  margin: 0 0 16px;
  text-align: left;
}
.tag-link {
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.tag-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.blog-sources ol {
  color: var(--text-dim);
  padding-left: 24px;
}
.blog-sources li { margin-bottom: 10px; }
.blog-sources a { overflow-wrap: anywhere; }
.editorial-note {
  background: rgba(46, 35, 108, 0.5);
  border: 1px solid rgba(67, 61, 139, 0.7);
  border-radius: 16px;
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 36px;
  padding: 18px 20px;
}
.editorial-note p { margin: 0 0 6px; }
.blog-related-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.blog-related-card {
  background: rgba(46, 35, 108, 0.5);
  border: 1px solid rgba(67, 61, 139, 0.7);
  border-radius: 16px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding: 18px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-related-card:hover {
  border-color: rgba(200, 172, 214, 0.7);
  transform: translateY(-2px);
}
.blog-related-card strong { margin-bottom: 6px; }
.blog-related-card span {
  color: var(--text-dim);
  font-size: 14px;
}
.editorial-page {
  margin: 0 auto;
  max-width: 760px;
  padding: 48px 24px 80px;
}
.editorial-page h1 { font-size: clamp(30px, 4vw, 42px); }
.editorial-lead {
  color: var(--text);
  font-size: 19px;
  line-height: 1.65;
  margin: 18px 0 40px;
}
.editorial-page section {
  padding: 0;
}
.editorial-page h2 {
  font-size: 24px;
  margin: 32px 0 12px;
  text-align: left;
}
.editorial-page p { color: var(--text); }

.blog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 8px;
}
.blog-card {
  background: linear-gradient(
    160deg,
    rgba(46, 35, 108, 0.9),
    rgba(23, 21, 59, 0.9)
  );
  border: 1px solid rgba(67, 61, 139, 0.8);
  border-radius: var(--radius);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.blog-card:hover {
  border-color: rgba(200, 172, 214, 0.5);
  transform: translateY(-4px);
}
.blog-card-media {
  aspect-ratio: 16 / 9;
  background: var(--surface);
  display: block;
  overflow: hidden;
}
.blog-card-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.035);
}
.blog-card-icon {
  font-size: 32px;
  margin-bottom: 14px;
  padding: 28px 28px 0;
}
.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}
.blog-card-date {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 6px;
}
.blog-card strong {
  font-size: 20px;
  margin-bottom: 8px;
}
.blog-card-excerpt {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 14px;
}
.blog-card-more {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  margin-top: auto;
}

.blog-aside {
  background: rgba(46, 35, 108, 0.4);
  border: 1px solid rgba(67, 61, 139, 0.6);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.blog-aside h2 {
  font-size: 18px;
  margin-bottom: 18px;
  text-align: left;
}
.blog-aside-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.blog-aside-list li + li {
  border-top: 1px solid rgba(67, 61, 139, 0.5);
  padding-top: 16px;
}
.blog-aside-list a {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 12px;
  text-decoration: none;
}
.blog-aside-list a:hover strong {
  color: var(--primary);
}
.blog-aside-list img {
  border-radius: 10px;
  flex-shrink: 0;
  height: 68px;
  object-fit: cover;
  width: 120px;
}
.blog-aside-icon {
  align-items: center;
  background: var(--surface-soft);
  border-radius: 10px;
  display: flex;
  flex-shrink: 0;
  font-size: 22px;
  height: 68px;
  justify-content: center;
  width: 120px;
}
.blog-aside-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.blog-aside-date {
  color: var(--text-dim);
  font-size: 12.5px;
}
.blog-aside-list strong {
  font-size: 14.5px;
  line-height: 1.35;
  transition: color 0.2s;
}
@media (max-width: 860px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-aside {
    position: static;
  }
}
