/* Dodatkowe elementy interfejsu. */
@media (max-width: 800px) {
  .legal-copy {
    grid-template-columns: 1fr;
  }
  .legal-section {
    padding: 75px 0;
  }
  .legal-card {
    padding: 24px;
  }
  .header-actions {
    gap: 7px;
  }
}

@media (max-width: 520px) {
  .language-switcher button {
    padding: 5px 6px;
  }
  .legal-card h3 {
    font-size: 17px;
  }
  .legal-card p,
  .legal-card li {
    font-size: 15px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switcher {
  display: flex;
  padding: 3px;
  border: 1px solid #33f9ff44;
  border-radius: 7px;
  background: #08101bcc;
}

.language-switcher button {
  border: 0;
  border-radius: 4px;
  padding: 5px 7px;
  color: #9ab0bc;
  background: transparent;
  font: 700 10px Orbitron, sans-serif;
  transition: .2s;
}

.language-switcher button[aria-pressed="true"] {
  color: #041015;
  background: var(--cyan);
  box-shadow: 0 0 11px #33f9ff66;
}

.legal-section {
  padding: 110px 0;
}

.legal-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.legal-card {
  padding: 32px;
  border: 1px solid #33f9ff36;
  border-radius: 15px;
  background: linear-gradient(145deg, #0d1628df, #090d19d9);
  color: #c3d2da;
}

.legal-card h3 {
  margin: 0 0 15px;
  color: #ecfbff;
  font: 700 20px/1.25 Orbitron, sans-serif;
}

.legal-card h4 {
  margin: 25px 0 10px;
  color: var(--cyan);
  font: 700 14px/1.3 Orbitron, sans-serif;
}

.legal-card p,
.legal-card li {
  font-size: 16px;
  line-height: 1.45;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 10px;
}

.legal-card b {
  color: #f1fcff;
}

.legal-card code {
  padding: 1px 4px;
  border-radius: 3px;
  background: #ffffff13;
  color: var(--pink);
}

html[data-language="pl"] .lang-en,
html[data-language="pl"] .lang-ru,
html[data-language="en"] .lang-pl,
html[data-language="en"] .lang-ru,
html[data-language="ru"] .lang-pl,
html[data-language="ru"] .lang-en {
  display: none;
}

.legal-intro {
  margin: 16px auto 0;
  max-width: 700px;
  color: var(--muted);
}

.stripe-note {
  margin: 14px 0 0 !important;
  min-height: 0 !important;
  color: #8ea0aa !important;
  font-size: 14px;
  text-align: center;
}

.payment-result {
  width: min(700px, calc(100% - 48px));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  text-align: center;
}

.payment-result h1 {
  margin: 0;
  font: 900 clamp(38px, 6vw, 65px)/1.05 Orbitron, sans-serif;
}

.payment-result h1 span {
  color: var(--cyan);
  text-shadow: 0 0 25px #33f9ff77;
}

.payment-result > p:not(.eyebrow) {
  margin: 28px 0;
  color: #c6d8e1;
  font-size: 21px;
  line-height: 1.4;
}

.payment-result .button {
  align-self: center;
}

.license-result {
  min-height: 86px;
  margin: 0 auto 28px;
  padding: 18px 24px;
  border: 1px solid #33f9ff66;
  border-radius: 10px;
  background: #33f9ff0c;
  color: #c6d8e1;
}

.license-result span,
.license-result small {
  display: block;
}

.license-result span {
  margin-bottom: 8px;
  color: var(--cyan);
  font: 700 12px Orbitron, sans-serif;
}

.license-result code {
  display: block;
  overflow-wrap: anywhere;
  color: #f5feff;
  font: 700 19px Orbitron, sans-serif;
}

.license-result small {
  margin-top: 12px;
  color: #91a6b2;
  font-size: 14px;
}

body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='m22 6 4-5' stroke='%2339ff88' stroke-width='3' stroke-linecap='round'/%3E%3Crect x='11' y='7' width='16' height='25' rx='3' fill='%2339ff88' stroke='%2305060c' stroke-width='2'/%3E%3Crect x='14' y='11' width='10' height='8' rx='1' fill='%2305060c'/%3E%3Cpath d='M15 23h8M15 27h8' stroke='%2305060c' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='19' cy='5' r='2' fill='%2339ff88' stroke='%2305060c' stroke-width='1.5'/%3E%3C/svg%3E") 18 18, auto;
}

a,
button,
summary {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='m22 6 4-5' stroke='%23ff2fd6' stroke-width='3' stroke-linecap='round'/%3E%3Crect x='11' y='7' width='16' height='25' rx='3' fill='%23ff2fd6' stroke='%2305060c' stroke-width='2'/%3E%3Crect x='14' y='11' width='10' height='8' rx='1' fill='%2305060c'/%3E%3Cpath d='M15 23h8M15 27h8' stroke='%2305060c' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='19' cy='5' r='2' fill='%23ff2fd6' stroke='%2305060c' stroke-width='1.5'/%3E%3C/svg%3E") 18 18, pointer;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1120px;
}

.demo-card {
  border-color: #39ff8866;
  background: radial-gradient(circle at top left, #39ff8812, transparent 52%), #0b1020b8;
}

.demo-card .plan-label {
  color: #39ff88;
}

@media (max-width: 800px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox — kliknij zrzut, by powiększyć. */
.shot {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: #03060cee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border: 1px solid #33f9ff77;
  border-radius: 12px;
  box-shadow: 0 0 46px #33f9ff2e;
}

.lightbox .lb-close {
  position: absolute;
  top: 14px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid #33f9ff55;
  border-radius: 9px;
  background: #0b1020cc;
  color: #dff;
  font: 700 20px Orbitron, sans-serif;
  cursor: pointer;
}

.shot-hint {
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Poprawki układu: hero nie łamie się na 4 linie, siatka funkcji równa (4×2),
   plakietka wyśrodkowana nad kartą zamiast wystawać z rogu. */
@media (min-width: 801px) {
  .hero {
    grid-template-columns: 1.12fr .88fr;
  }
}

.hero h1 {
  font-size: clamp(34px, 4.7vw, 58px);
  letter-spacing: -.02em;
  line-height: 1.07;
  text-wrap: balance;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 15px;
  letter-spacing: .09em;
}

/* Ikony funkcji rysowane jako SVG. */
.card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Nawigacja: 8 pozycji mieści się w jednym rzędzie na desktopie; na telefonie
   chowa się pod przyciskiem menu (hamburger), bo wcześniej znikała bez śladu. */
.nav-toggle {
  display: none;
  border: 0;
  background: none;
}

@media (min-width: 801px) {
  nav {
    gap: 13px;
    flex-wrap: wrap;
    row-gap: 4px;
  }
  
  nav a {
    white-space: nowrap;
    font-size: 11.5px;
    letter-spacing: .02em;
  }
}

@media (min-width: 801px) and (max-width: 1200px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #33f9ff44;
    border-radius: 7px;
    background: #08101bcc;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--cyan);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 6px 24px 16px;
    background: #070b16f7;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(51, 249, 255, .16);
  }

  body:not(.nav-open) nav {
    display: none;
  }

  body.nav-open nav {
    display: flex;
  }

  nav a {
    padding: 13px 2px;
    border-bottom: 1px solid #ffffff10;
    font-size: 14px;
  }

  nav a:last-child {
    border-bottom: 0;
  }
}

/* Przelacznik jezyka ma trzy pozycje (PL/EN/RU) — na waskich telefonach
   scisniety, zeby naglowek nadal miescil sie w jednym rzedzie. */
@media (max-width: 400px) {
  .language-switcher button {
    padding: 5px 4px;
    font-size: 9px;
  }
  .header-actions {
    gap: 6px;
  }
}

/* Linki do dokumentow sklepu w stopce oraz pola do uzupelnienia w regulaminie
   i polityce prywatnosci (widoczne, zeby nie poszly na produkcje puste). */
.section-legal {
  padding-top: 14px;
}

.fill-in {
  padding: 1px 7px;
  border-radius: 4px;
  background: #ffb45426;
  color: #ffcf8f;
  font-weight: 700;
}
