:root {
  --bg: #05050a;
  --panel: #0d0d18;
  --panel2: #131326;
  --text: #f7f3ff;
  --muted: #aaa4c7;
  --violet: #9a42ff;
  --red: #ff174f;
  --blue: #16c8ff;
  --line: rgba(255, 255, 255, .12);
  --radius: 26px;
  --shadow: 0 0 26px rgba(154, 66, 255, .35), 0 0 38px rgba(255, 23, 79, .22);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(154, 66, 255, .18), transparent 32%), radial-gradient(circle at 80% 10%, rgba(255, 23, 79, .16), transparent 30%), var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
}

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

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: auto
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 10, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line)
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px
}

.brand {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: .5px;
  text-shadow: 0 0 18px var(--violet)
}

.brand span {
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  color: var(--red);
  font-weight: 700
}

.navlinks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.navlinks a {
  font-size: 14px;
  color: var(--muted);
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px
}

.navlinks a:hover {
  color: white;
  border-color: rgba(154, 66, 255, .5);
  box-shadow: 0 0 18px rgba(154, 66, 255, .25)
}

.hero {
  padding: 34px 0 30px
}

.banner {
  height: 280px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: var(--shadow);
  background: #080812
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.intro {
  padding: 34px 0 18px;
  text-align: center
}

.intro h1,
.page-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
  margin: 0 0 12px;
  text-transform: uppercase;
  line-height: 1
}

.intro h1 span,
.page-hero h1 span {
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  color: var(--red);
  text-transform: none
}

.intro p,
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 auto;
  max-width: 760px
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  padding: 30px 0 54px
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 0 0 transparent;
  transition: .25s transform, .25s box-shadow, .25s border-color
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 23, 79, .5);
  box-shadow: var(--shadow)
}

.card img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-radius: 20px;
  display: block
}

.card h2 {
  font-size: 20px;
  margin: 16px 6px 8px
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 6px 10px;
  line-height: 1.5
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(90deg, rgba(154, 66, 255, .28), rgba(255, 23, 79, .26));
  box-shadow: 0 0 18px rgba(154, 66, 255, .2);
  font-weight: 800
}

.btn:hover {
  box-shadow: 0 0 26px rgba(255, 23, 79, .35)
}

.contact {
  padding: 34px 0 56px;
  border-top: 1px solid var(--line)
}

.contact-box {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.placeholder {
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, .22);
  border-radius: 18px;
  padding: 18px;
  background: rgba(0, 0, 0, .24)
}

.footer {
  color: #776f96;
  text-align: center;
  padding: 22px;
  border-top: 1px solid var(--line)
}

.visit-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
}

.visit-badge {
  vertical-align: middle;
  height: 20px;
}

.page-hero {
  padding: 44px 0 28px;
  text-align: center
}

.product-layout {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 28px;
  align-items: start;
  padding: 20px 0 54px
}

.product-icon {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 18px;
  box-shadow: var(--shadow)
}

.product-icon img {
  width: 100%;
  border-radius: 24px;
  display: block;
  aspect-ratio: 5/4;
  object-fit: cover
}

.section {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 26px;
  margin-bottom: 24px
}

.section h2 {
  margin: 0 0 16px;
  font-size: 28px
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.screen-slot {
  aspect-ratio: 16/9;
  border: 1px dashed rgba(255, 255, 255, .28);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(0, 0, 0, .28);
  text-align: center;
  padding: 14px
}

.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap
}

.download-box p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5
}

.back {
  display: inline-block;
  margin: 18px 0;
  color: var(--muted)
}

.back:hover {
  color: white
}

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

  .product-layout,
  .product-layout.small-icon,
  .contact-box {
    grid-template-columns: 1fr
  }

  .banner {
    height: 260px
  }

  .nav {
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column
  }

  .screens {
    grid-template-columns: 1fr
  }

  .editions {
    grid-template-columns: 1fr
  }
}

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

  .wrap {
    width: min(100% - 24px, 1180px)
  }

  .banner {
    height: 210px
  }

  .intro h1,
  .page-hero h1 {
    font-size: 34px
  }
}
.download-btn{
    display:inline-block;
    padding:14px 28px;
    background:#ff2d55;
    color:white;
    text-decoration:none;
    border-radius:12px;
    font-weight:bold;
    font-size:16px;
    transition:0.3s;
    box-shadow:0 0 15px rgba(255,45,85,.5);
}

.download-btn:hover{
    background:#ff416c;
    transform:translateY(-2px);
    box-shadow:0 0 25px rgba(255,45,85,.8);
}
.screen-slot img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:18px;
    display:block;
}
.screen-link,
.screen-link img{
    width:100%;
    height:100%;
    display:block;
}

.screen-link img{
    object-fit:cover;
    border-radius:18px;
}

/* --- Strona Enigma2 + IPTV: poprawki układu --- */
.page-hero.raised {
    padding: 6px 0 28px;
}

.product-layout.small-icon {
    grid-template-columns: 218px 1fr;
}

.section.screens-small {
    width: 70%;
}

.video-slot video {
    width: 100%;
    display: block;
    border-radius: 18px;
    background: #000;
    border: 1px solid var(--line);
}

/* --- Przełącznik języka EN / PL --- */
.lang-switch {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-left: 6px;
}

.lang-switch button {
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: .25s;
}

.lang-switch button:hover {
    color: white;
    border-color: rgba(154, 66, 255, .5);
    box-shadow: 0 0 18px rgba(154, 66, 255, .25);
}

.lang-switch button.active {
    background: linear-gradient(90deg, rgba(154, 66, 255, .38), rgba(255, 23, 79, .36));
    border-color: rgba(255, 23, 79, .5);
    color: white;
}

/* Widoczność tekstów zależnie od języka strony (domyślnie EN) */
body:not(.pl) .lang-pl {
    display: none !important;
}

body.pl .lang-en {
    display: none !important;
}
/* --- Wydania programu: Standard / PRO / ULTRA (plakietki jak w instrukcji) --- */
.editions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 14px;
}

.edition {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(0, 0, 0, .28);
}

.edition-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    white-space: nowrap;
}

.edition-badge.standard {
    color: #e6eaf5;
    border: 1px solid var(--line);
    background: #2a2a3d;
}

.edition-badge.pro {
    color: #ebe8ff;
    border: 1px solid #8d7cff;
    background: #2c274a;
}

.edition-badge.ultra {
    color: #251400;
    border: 1px solid #ff7a1a;
    background: #ff7a1a;
}

.edition-badge.prive {
    color: #00201d;
    border: 1px solid #00d8c9;
    background: #00d8c9;
}

.edition-ver {
    display: block;
    margin: 12px 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.edition p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* --- Status wersji Trial: dostepna / wkrotce --- */
.trial-status {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 11px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    vertical-align: 6px;
    white-space: nowrap;
}

.trial-status.ready {
    color: #05291a;
    border: 1px solid #39d98a;
    background: #39d98a;
}

.trial-status.soon {
    color: #f5b94d;
    border: 1px solid #f5b94d;
    background: rgba(245, 185, 77, .12);
}

.download-btn.disabled {
    background: #2f2f42;
    color: var(--muted);
    box-shadow: none;
    cursor: not-allowed;
}

.download-btn.disabled:hover {
    background: #2f2f42;
    transform: none;
    box-shadow: none;
}

.download-count {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
}

.trial-status.activation {
    color: #f5b94d;
    border: 1px solid #f5b94d;
    background: rgba(245, 185, 77, .12);
}

/* --- Animowane logo (hero) --- */
.logo-anim {
    display: block;
    width: min(420px, 82%);
    aspect-ratio: 16 / 9;
    margin: 4px auto 20px;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    object-fit: cover;
    background: #000;
}

/* --- Buy Me a Coffee (wsparcie) --- */
.coffee-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    color: #201400;
    background: linear-gradient(90deg, #ffb347, #ff7a1a);
    border: 0;
    padding: 9px 16px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(255, 122, 26, .4);
    transition: .25s transform, .25s box-shadow;
}

.coffee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 26px rgba(255, 122, 26, .65);
}

.coffee-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 5, 10, .72);
    backdrop-filter: blur(4px);
}

.coffee-modal[hidden] {
    display: none;
}

.coffee-dialog {
    position: relative;
    width: min(420px, 100%);
    padding: 32px 26px 26px;
    text-align: center;
    background: var(--panel2, #131326);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.coffee-emoji {
    font-size: 46px;
    line-height: 1;
    margin-bottom: 8px;
}

.coffee-dialog h3 {
    margin: 0 0 14px;
    font-size: 20px;
    color: var(--text);
}

.coffee-paypal {
    margin: 0 0 20px;
    font-size: 16px;
    color: var(--text);
    word-break: break-all;
}

.coffee-paypal strong {
    color: #ff7a1a;
}

.coffee-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.coffee-close:hover {
    color: #fff;
}

.coffee-copy {
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 18px;
    cursor: pointer;
}

.coffee-copy:hover {
    border-color: rgba(255, 122, 26, .6);
}

.coffee-copy.done {
    color: #39d98a;
    border-color: #39d98a;
}

.dl-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Lista funkcji programu --- */
.feature-list {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.6;
}

.feature-list li {
    margin: 0 0 10px;
}

.feature-list li::marker {
    color: var(--red);
}
