/* CrystalBoost — shared styles for index-pl.html / index-ua.html (mobile-first) */
:root {
  --bg:        #11081f;
  --bg2:       #1b1031;
  --bg3:       #271447;
  --border:    #5a2f81;
  --gold:      #ff4fd8;
  --gold-light:#7df9ff;
  --gold-dim:  rgba(255,79,216,0.18);
  --text:      #f7f1ff;
  --muted:     #c4b5f1;
  --green:     #70e9ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
html, body { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 15% -10%, rgba(255, 79, 216, 0.16), transparent 38%),
    radial-gradient(circle at 85% 0%, rgba(125, 249, 255, 0.14), transparent 36%),
    linear-gradient(180deg, #120720 0%, #0d0618 100%);
  background-attachment: fixed;
}
a { color: inherit; }
strong { color: var(--text); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #130a21; padding: 0.6rem 1rem; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

@keyframes luxePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 79, 216, 0); }
  50% { box-shadow: 0 0 28px rgba(255, 79, 216, 0.26); }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ── HEADER (mobile: two rows, scrollable menu) ── */
.site-header {
  background: rgba(20, 15, 31, 0.92);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 10px 30px rgba(8, 4, 14, 0.45);
  backdrop-filter: blur(10px);
}
.site-nav {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0 1rem; padding-top: 10px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
.nav-links {
  order: 3; width: 100%;
  list-style: none; display: flex; gap: 0.4rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 6px 0 8px;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: inline-block; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-size: 0.85rem;
  padding: 0.45rem 0.8rem; border: 1px solid var(--border); border-radius: 20px;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--gold); border-color: var(--gold); }

.lang-switch {
  display: flex; gap: 4px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 8px; padding: 3px;
}
.lang-btn {
  color: var(--muted); text-decoration: none;
  min-width: 44px; padding: 6px 12px; border-radius: 5px; text-align: center;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  transition: background .2s, color .2s;
}
.lang-btn.active { background: var(--gold); color: #20152f; box-shadow: 0 0 18px rgba(255, 79, 216, 0.45); }

/* ── "Ukrainian version" hint (Polish page only) ── */
.ua-hint {
  max-width: 1100px; margin: 12px auto 0; padding: 0 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.ua-hint[hidden] { display: none; }
.ua-hint a {
  color: #bcfcff; text-decoration: none; font-size: 0.88rem; font-weight: 600;
  background: rgba(125,249,255,0.1); border: 1px solid rgba(125,249,255,0.45);
  border-radius: 20px; padding: 0.5rem 1rem;
}
.ua-hint a:hover { background: rgba(125,249,255,0.18); }
.ua-hint-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer;
}

/* ── HERO ── */
.hero {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 1rem 36px; text-align: center;
}
.hero-logo { height: 64px; width: auto; display: inline-block; margin-bottom: 1.4rem; }
.hero-tag {
  display: inline-block;
  background: rgba(94, 34, 152, 0.42); border: 1px solid rgba(255,79,216,0.62);
  color: #ffd8f5; font-size: 0.72rem; letter-spacing: 0.1em; font-weight: 700;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 1.2rem;
  box-shadow: 0 0 24px rgba(255, 79, 216, 0.2);
}
.hero h1 { font-size: clamp(1.8rem, 6vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 em, .grad {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero h1 em { display: inline-block; animation: floatSoft 6s ease-in-out infinite; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 0 auto 1.8rem; }
.hero-actions { display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }
.hero-actions .btn { max-width: 320px; }

/* ── STATS ── */
.stats { background: rgba(39, 20, 71, 0.82); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner {
  max-width: 1100px; margin: 0 auto; padding: 22px 1rem;
  display: grid; grid-template-columns: 1fr; gap: 1rem; text-align: center;
}
.stat-item .val { font-size: 1.6rem; font-weight: 800; color: var(--gold-light); display: block; line-height: 1.2; }
.stat-item .lbl { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── SECTIONS ── */
.section { max-width: 1100px; margin: 0 auto; padding: 40px 1rem; }
.section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; line-height: 1.25; margin-bottom: 0.6rem; }
.section-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; max-width: 720px; }
.divider { border: none; border-top: 1px solid var(--border); max-width: 1100px; margin: 0 auto; }

/* ── PROBLEM CARDS ── */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.why-card {
  background: linear-gradient(155deg, rgba(39,20,71,0.88) 0%, rgba(27,16,49,0.86) 100%);
  border: 1px solid var(--border); border-radius: 12px; padding: 1.3rem;
  box-shadow: 0 10px 26px rgba(6, 3, 14, 0.32);
  transition: border-color .2s, transform .2s;
}
.why-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.why-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.why-card p { font-size: 0.86rem; color: var(--muted); }

/* ── FLAGSHIP CARD ── */
.lp-card {
  background: linear-gradient(135deg, #34195a 0%, #20143b 62%, #2f1e58 100%);
  border: 1px solid rgba(255,79,216,0.55);
  border-radius: 20px; padding: 1.5rem;
  display: grid; grid-template-columns: 1fr; gap: 1.6rem;
  position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,79,216,0.18), 0 20px 44px rgba(125,249,255,0.12);
}
.lp-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(125,249,255,0.22) 0%, transparent 72%);
  pointer-events: none;
}
.lp-badge {
  display: inline-block;
  background: rgba(125,249,255,0.12); border: 1px solid rgba(125,249,255,0.45);
  color: #bcfcff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 12px; border-radius: 20px; margin-bottom: 0.8rem;
}
.lp-card h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); font-weight: 800; margin-bottom: 0.7rem; line-height: 1.2; }
.lp-card h2 em { font-style: normal; color: var(--gold-light); }
.lp-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.2rem; max-width: 560px; }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.check-list li { font-size: 0.88rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.check-list li::before { content: '✓'; color: var(--gold-light); font-weight: 700; flex-shrink: 0; }
.price-box {
  background: rgba(17, 8, 31, 0.55); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.3rem; align-self: start; position: relative;
}
.price-row + .price-row { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.price-cap { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.price-val { font-size: 2.3rem; font-weight: 800; color: var(--gold-light); line-height: 1.1; }
.price-val.sm { font-size: 1.5rem; }
.price-cur { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.price-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.price-box .btn { margin-top: 1.2rem; }
.included {
  margin-top: 1.4rem; padding: 1rem 1.2rem;
  background: rgba(255,79,216,0.08); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0;
  font-size: 0.85rem; color: var(--muted);
}
.included strong { color: var(--gold-light); }

/* ── PLAN CARDS ── */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; align-items: stretch; }
.plan-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 28px rgba(6,3,14,0.35);
  transition: border-color .2s, transform .2s;
}
.plan-card:hover { border-color: rgba(255,79,216,0.75); transform: translateY(-3px); }
.plan-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }
.plan-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.plan-price { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--gold-light); }
.plan-price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.plan-period { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.plan-period strong { color: var(--gold-light); }
.plan-desc { font-size: 0.86rem; color: var(--muted); margin: 0.8rem 0 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border); }
.plan-card .check-list { margin-bottom: 1.3rem; }
.plan-note {
  background: rgba(255,79,216,0.12); border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0; padding: 0.6rem 0.9rem;
  font-size: 0.8rem; color: var(--gold-light); margin-bottom: 1.3rem;
}
.plan-card .btn { margin-top: auto; }

/* ── BUTTONS ── */
.btn {
  display: block; width: 100%; text-align: center;
  min-height: 46px; padding: 0.75rem 1rem; border-radius: 8px;
  font-weight: 700; font-size: 0.92rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%); color: #130a21; box-shadow: 0 8px 22px rgba(255, 79, 216, 0.35); }
.btn-gold:hover { box-shadow: 0 10px 26px rgba(125, 249, 255, 0.35); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,79,216,0.07); }

/* ── PRICE TABLE ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
thead tr { background: var(--bg3); }
th { padding: 0.7rem 0.55rem; text-align: left; font-weight: 700; color: var(--gold); border-bottom: 1px solid var(--border); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; }
td { padding: 0.7rem 0.55rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(125,249,255,0.08); }
td.num { font-weight: 700; color: var(--gold-light); }
td small { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 400; }
.table-note { font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }

/* ── STEPS / ADVANTAGES ── */
.adv-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.adv-card {
  background: linear-gradient(155deg, rgba(39,20,71,0.9) 0%, rgba(27,16,49,0.82) 100%);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.3rem; display: flex; gap: 1rem; align-items: flex-start;
}
.adv-num {
  background: var(--gold-dim); color: var(--gold); font-weight: 800; font-size: 1.1rem;
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.adv-card h3 { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.3rem; }
.adv-card p { font-size: 0.84rem; color: var(--muted); }
.sub-title { font-size: 1.1rem; font-weight: 700; margin: 2.5rem 0 1rem; }

/* ── CTA ── */
.cta-section { background: linear-gradient(135deg, #5f14b2 0%, #ff4fd8 48%, #7df9ff 100%); border-top: 1px solid var(--border); }
.cta-inner { max-width: 1100px; margin: 0 auto; padding: 48px 1rem; text-align: center; }
.cta-inner h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 0.8rem; color: #fff; line-height: 1.2; }
.cta-inner p { color: rgba(255,255,255,0.9); margin-bottom: 1.8rem; font-size: 1rem; }
.cta-buttons { display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }
.cta-btn-main, .cta-btn-sec {
  width: 100%; max-width: 320px; min-height: 48px; text-align: center;
  padding: 0.85rem 2rem; border-radius: 8px; font-size: 1rem; text-decoration: none; display: inline-block;
  transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
}
.cta-btn-main { background: rgba(255,255,255,0.96); color: #391847; font-weight: 800; }
.cta-btn-main:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(57,24,71,0.28); }
.cta-btn-sec { background: transparent; border: 1px solid rgba(255,255,255,0.6); color: #fff; font-weight: 600; }
.cta-btn-sec:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ── LEGAL FOOTER ── */
.legal { background: var(--bg3); border-top: 1px solid var(--border); }
.legal-inner { max-width: 1100px; margin: 0 auto; padding: 36px 1rem 90px; } /* room for the mobile FAB */
.legal-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-bottom: 2rem; }
.legal-h { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 0.6rem; }
.legal-text { font-size: 0.8rem; color: var(--muted); line-height: 1.8; }
.legal-text a { color: var(--muted); text-decoration: none; }
.legal-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-links a { font-size: 0.82rem; color: var(--muted); text-decoration: none; display: inline-block; padding: 0.2rem 0; }
.legal-links a:hover, .legal-text a:hover { color: var(--gold); }
.legal details { margin-bottom: 0.6rem; }
.legal summary {
  cursor: pointer; font-size: 0.82rem; color: var(--muted);
  padding: 0.7rem 0; border-top: 1px solid var(--border);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: '▼'; font-size: 0.7rem; transition: transform .2s; }
.legal details[open] summary::after { transform: rotate(180deg); }
.legal-body { font-size: 0.78rem; color: var(--muted); line-height: 1.8; padding: 0.6rem 0 1rem; }
.legal-logo { text-align: center; padding: 1.5rem 0 0.5rem; }
.legal-logo img { height: 56px; width: auto; }
.copyright { border-top: 1px solid var(--border); padding-top: 1.2rem; font-size: 0.78rem; color: var(--muted); }

/* ── FLOATING BUTTONS ── */
.fab {
  position: fixed; left: 1rem; right: 4.5rem; bottom: 1rem; z-index: 90;
  min-height: 48px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%); color: #130a21;
  font-weight: 800; text-decoration: none; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(8,4,18,0.55);
  transition: opacity .3s, transform .3s;
}
.fab.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
#back-to-top {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 91;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,79,216,0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, background 0.2s ease;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--gold-light); }

/* ── ≥ 600px ── */
@media (min-width: 600px) {
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .check-list.two { grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.2rem; }
  .hero-actions, .cta-buttons { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; min-width: 220px; }
  .cta-btn-main, .cta-btn-sec { width: auto; }
  .legal-grid { grid-template-columns: repeat(3, 1fr); }
  table { font-size: 0.86rem; }
  th, td { padding: 0.8rem 1rem; }
  td.num { white-space: nowrap; }
}

/* ── ≥ 900px (desktop) ── */
@media (min-width: 900px) {
  .site-header { padding: 0 2rem; }
  .site-nav { flex-wrap: nowrap; height: 64px; padding-top: 0; }
  .logo img { height: 40px; }
  .nav-links { order: 0; width: auto; overflow: visible; gap: 1.4rem; padding: 0; }
  .nav-links a { border: none; padding: 0.3rem 0; }
  html { scroll-padding-top: 80px; }
  .hero { padding: 72px 2rem 56px; }
  .hero-logo { height: 90px; }
  .section { padding: 60px 2rem; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .lp-card { grid-template-columns: 1fr 300px; padding: 2.5rem; gap: 2.5rem; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid.three { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid.four { grid-template-columns: repeat(2, 1fr); }
  .fab { display: none; }
  .cta-inner { padding: 60px 2rem; }
  .legal-inner { padding: 40px 2rem 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 em { animation: none !important; }
  .why-card, .plan-card, .btn, .fab { transition: none !important; }
}
