/* mejlo-dark.css Premium dark "HUD" treatment of the Mejlo wizytówka.
   Translates Kamil's playful constellation into a sci-fi console aesthetic
   (thin glowing frames, blueprint corner brackets, blue section-glow) while
   keeping the soul: floating MS tiles, big name, human anti-corpo tone. */

:root {
  --d-bg: #080B12;          /* near-black navy base */
  --d-bg2: #0C111C;
  --d-panel: #10172499;     /* glass panel */
  --d-panel-solid: #111826;
  --d-ink: #EAEEF8;
  --d-ink2: #9AA6BE;
  --d-ink3: #8490A8;

  --d-blue: #4D9BFF;        /* electric HUD accent */
  --d-blue-dk: #2B6BE4;
  --d-blue-glow: rgba(77,155,255,.45);
  --d-cyan: #62D8E0;

  --bd: rgba(122,158,214,.16);     /* hairline border */
  --bd-glow: rgba(77,155,255,.55); /* bright bracket border */

  /* tile icon accents stay colorful they carry the personality */
  --t-blue: #4D9BFF; --t-violet: #9C82FF; --t-green: #2FD79A;
  --t-pink: #FF6FA0; --t-amber: #FFA23E; --t-teal: #43C7D6;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--d-ink);
  background: var(--d-bg);
  font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { padding: 104px 0; position: relative; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 12px 18px; border-radius: 10px; background: #fff; color: var(--d-bg);
  font-weight: 700; transform: translateY(-160%); transition: transform .15s;
}
.skip-link:focus { transform: translateY(0); }
:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--d-cyan);
  outline-offset: 3px;
}
main:focus-visible { outline: 3px solid var(--d-cyan); outline-offset: -3px; }

/* ---- subtle grid texture overlay on the whole page ---- */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(122,158,214,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,158,214,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
}
body > * { position: relative; z-index: 1; }

/* ---------- HUD primitives ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--d-blue); padding: 7px 15px 7px 13px; border-radius: 100px;
  border: 1px solid rgba(77,155,255,.22);
  background: rgba(10,14,22,.72);
  backdrop-filter: blur(10px);
  position: relative; z-index: 15;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--d-blue); box-shadow: 0 0 10px var(--d-blue); }

/* corner-bracket frame */
.hud { position: relative; }
.cnr { position: absolute; width: 15px; height: 15px; pointer-events: none; }
.cnr::before, .cnr::after { content: ""; position: absolute; background: var(--bd-glow); }
.cnr::before { width: 100%; height: 1px; }
.cnr::after { width: 1px; height: 100%; }
.cnr.tl { top: -1px; left: -1px; } .cnr.tl::before { top: 0; left: 0; } .cnr.tl::after { top: 0; left: 0; }
.cnr.tr { top: -1px; right: -1px; } .cnr.tr::before { top: 0; right: 0; } .cnr.tr::after { top: 0; right: 0; }
.cnr.bl { bottom: -1px; left: -1px; } .cnr.bl::before { bottom: 0; left: 0; } .cnr.bl::after { bottom: 0; left: 0; }
.cnr.br { bottom: -1px; right: -1px; } .cnr.br::before { bottom: 0; right: 0; } .cnr.br::after { bottom: 0; right: 0; }

/* section header */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 16px; }
.sec-title { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; color: #fff; }
.sec-title .hi { color: var(--d-blue); }
.sec-sub { color: var(--d-ink2); font-size: 18px; max-width: 580px; margin: 6px auto 0; }

/* glow divider band between sections */
.glow-band { position: relative; height: 1px; background: linear-gradient(90deg, transparent, var(--bd-glow), transparent); }
.glow-band::after {
  content: ""; position: absolute; left: 50%; top: -70px; transform: translateX(-50%);
  width: 70%; height: 140px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(77,155,255,.30), transparent 70%);
  filter: blur(26px); pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,11,18,.72); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--bd);
}
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--d-blue-glow), transparent); opacity: .6; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-sig {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, #4D9BFF, #2B6BE4); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 21px;
  box-shadow: 0 0 18px rgba(77,155,255,.5); border: 1px solid rgba(255,255,255,.18);
}
.logo-word { font-family: var(--display); font-weight: 800; font-size: 21px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--d-ink2); font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: #fff; }
.lang { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; color: var(--d-ink3); }
.lang button {
  min-width: 32px; min-height: 32px; padding: 3px; border: 0; border-radius: 7px;
  background: transparent; color: var(--d-ink3); font: inherit; cursor: pointer;
}
.lang button.active { color: var(--d-blue); font-weight: 700; background: rgba(77,155,255,.08); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-pri { background: linear-gradient(150deg, #4D9BFF, #2B6BE4); color: #fff; box-shadow: 0 0 24px rgba(77,155,255,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-pri:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(77,155,255,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--d-ink); border-color: var(--bd); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--d-blue-glow); background: rgba(77,155,255,.08); }
.btn-sm { padding: 10px 17px; font-size: 14.5px; border-radius: 10px; }

/* ---------- HERO ---------- */
.hero { padding: 64px 0 96px; overflow: hidden;
  background:
    radial-gradient(60% 48% at 50% -6%, rgba(77,155,255,.22), transparent 70%),
    radial-gradient(40% 40% at 12% 30%, rgba(156,130,255,.12), transparent 72%),
    radial-gradient(46% 44% at 88% 38%, rgba(67,199,214,.10), transparent 72%),
    var(--d-bg);
}
.hero-stage { position: relative; min-height: 600px; display: grid; place-items: center; }

/* blueprint frame around hero */
.hero-frame { position: absolute; inset: 6% 0; pointer-events: none; }
.hero-frame .edge { position: absolute; background: linear-gradient(90deg, transparent, var(--bd), transparent); }
.hero-frame .top { top: 0; left: 8%; right: 8%; height: 1px; }
.hero-frame .bottom { bottom: 0; left: 8%; right: 8%; height: 1px; }
.hero-frame .scan { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); background: linear-gradient(180deg, transparent, rgba(77,155,255,.18), transparent); }

.hero-core { position: relative; z-index: 10; max-width: 780px; margin: 0 auto; text-align: center; padding: 40px 24px; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10,14,22,.82) 0%, rgba(10,14,22,.4) 60%, transparent 100%); border-radius: 32px; }
.hero h1 {
  font-size: clamp(54px, 9.6vw, 116px); line-height: .92; color: #fff;
  margin: 22px 0 0; font-weight: 800; letter-spacing: -.03em;
  text-shadow: 0 0 60px rgba(77,155,255,.35);
}
.hero h1 .ms { color: var(--d-blue); text-shadow: 0 0 38px rgba(77,155,255,.6); }
.hero-sub { font-size: clamp(18px, 2.3vw, 22px); color: var(--d-ink2); max-width: 600px; margin: 24px auto 0; line-height: 1.5; }
.hero-sub b { color: #fff; font-weight: 700; }
.hero-cta { display: flex; gap: 13px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.creds { display: flex; gap: 18px; justify-content: center; margin-top: 30px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--d-ink3); }
.creds .sep { color: var(--d-blue); opacity: .6; }
.tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,14,22,.65); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 15px; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--d-ink);
  backdrop-filter: blur(10px);
  position: relative; z-index: 15;
}

/* ---------- floating glass tiles ---------- */
.tile {
  position: absolute; z-index: 1; border-radius: 17px; display: grid; place-items: center;
  background: linear-gradient(155deg, rgba(28,38,58,.92), rgba(14,20,32,.92));
  border: 1px solid var(--bd);
  box-shadow: 0 14px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  animation: float var(--dur, 7s) ease-in-out infinite; animation-delay: var(--delay, 0s);
}
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 24px var(--glow, transparent); opacity: .5; pointer-events: none; }
.tile svg { width: 52%; height: 52%; position: relative; }
.tile.lg { width: 80px; height: 80px; } .tile.md { width: 66px; height: 66px; } .tile.sm { width: 54px; height: 54px; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--rot,0deg)*-1)); } }
.t1{top:3%;left:10%;} .t2{top:1%;left:42%;} .t3{top:6%;right:11%;}
.t4{top:28%;left:1%;} .t5{top:22%;right:2%;} .t6{top:50%;left:7%;}
.t7{top:55%;right:6%;} .t8{bottom:8%;left:16%;} .t9{bottom:2%;left:45%;}
.t10{bottom:11%;right:15%;} .t11{top:40%;right:22%;} .t12{top:38%;left:23%;}

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); padding: 26px 0; background: rgba(255,255,255,.012); }
.trust-in { display: flex; align-items: center; gap: 26px; justify-content: center; flex-wrap: wrap; }
.trust-lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--d-ink3); }
.trust-logos { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; color: var(--d-ink2); font-weight: 600; font-size: 16px; }
.trust-logos .dot { color: var(--bd-glow); }

/* ---------- Co robię HUD panels ---------- */
.do-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 52px; }
.do-card {
  position: relative; border-radius: 16px; padding: 30px;
  background: linear-gradient(160deg, rgba(20,28,44,.7), rgba(11,16,26,.7));
  border: 1px solid var(--bd); min-height: 220px; display: flex; flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.do-card:hover { transform: translateY(-4px); border-color: var(--d-blue-glow); box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(77,155,255,.12); }
.do-top { display: flex; align-items: center; justify-content: space-between; }
.do-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--bd); background: rgba(77,155,255,.08); }
.do-mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--d-ink3); }
.do-card h3 { font-size: 24px; margin: 22px 0 8px; color: #fff; }
.do-card .desc { font-size: 15.5px; color: var(--d-ink2); margin: 0; }
.do-effect { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; color: var(--d-blue); }
.do-effect .chk { width: 22px; height: 22px; border-radius: 7px; background: rgba(77,155,255,.14); display: grid; place-items: center; flex: none; }

/* ---------- logo wall ---------- */
.wall { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 48px; }
.wall .chip {
  display: inline-flex; align-items: center; gap: 11px; padding: 14px 22px; border-radius: 12px;
  border: 1px solid var(--bd); background: rgba(255,255,255,.025); color: var(--d-ink2);
  font-weight: 600; font-size: 16px;
}
.wall .chip svg { opacity: .85; }

/* ---------- CTA ---------- */
.cta-sec { padding-top: 40px; }
.cta {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding: 84px 32px; text-align: center;
  border-radius: 26px; border: 1px solid var(--bd); overflow: hidden;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(77,155,255,.22), transparent 70%),
    radial-gradient(50% 80% at 50% 120%, rgba(156,130,255,.14), transparent 70%),
    linear-gradient(180deg, #0D1420, #090D16);
}
.cta h2 { color: #fff; font-size: clamp(34px,5vw,54px); line-height: 1.04; max-width: 720px; margin: 18px auto 0; }
.cta p { color: var(--d-ink2); font-size: 18px; max-width: 520px; margin: 18px auto 0; }
.cta-row { display: flex; gap: 13px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { padding: 46px 0; border-top: 1px solid var(--bd); }
.footer-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--d-ink2); font-size: 14.5px; }
.footer .socials { display: flex; gap: 12px; }
.footer .socials a, .footer .socials .social-placeholder { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid var(--bd); display: grid; place-items: center; transition: transform .15s, border-color .15s; }
.footer .socials a:hover { transform: translateY(-2px); border-color: var(--d-blue-glow); }
.footer .socials .social-placeholder { opacity: .7; }
.footer .socials .social-icon { color: var(--d-ink2); font-size: 18px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.footer-links a { color: var(--d-ink2); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.footer-links a:hover { color: #fff; text-decoration-color: currentColor; }

/* ---------- polityka prywatności ---------- */
.policy { padding: 150px 0 96px; }
.policy-wrap { max-width: 820px; }
.policy-header { padding-bottom: 40px; border-bottom: 1px solid var(--bd); }
.policy-header h1 { margin: 20px 0 14px; }
.policy-header > p:not(.policy-updated) { max-width: 680px; color: var(--d-ink2); font-size: clamp(18px, 2.5vw, 22px); }
.policy-updated { margin-top: 22px; color: var(--d-ink3); font-family: var(--mono); font-size: 13px; }
.policy section { padding: 36px 0; border-bottom: 1px solid var(--bd); }
.policy section:last-child { border-bottom: 0; }
.policy h2 { margin-bottom: 18px; font-size: clamp(24px, 4vw, 34px); }
.policy h3 { margin: 28px 0 10px; font-size: 20px; color: #fff; }
.policy p, .policy li { color: var(--d-ink2); line-height: 1.75; }
.policy p + p { margin-top: 12px; }
.policy ul { display: grid; gap: 10px; margin: 14px 0 0 22px; }
.policy a, .form-help a { color: var(--d-blue); text-decoration: underline; text-underline-offset: 3px; }
.policy a:hover, .form-help a:hover { color: #fff; }
.policy code { padding: 2px 6px; border: 1px solid var(--bd); border-radius: 6px; background: rgba(255,255,255,.04); color: var(--d-ink); }
.policy-outro { margin-top: 32px; color: var(--d-ink2); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  section { padding: 68px 0; }
  .do-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; }
  .t11,.t12,.t4,.t5,.t6,.t7 { display: none; }
  .t1{top:0;left:2%;} .t2{top:-2%;left:38%;} .t3{top:1%;right:2%;}
  .t8{bottom:2%;left:4%;} .t9{bottom:-2%;left:42%;} .t10{bottom:3%;right:4%;}
  .tile.lg{width:58px;height:58px;} .tile.md{width:50px;height:50px;} .tile.sm{width:44px;height:44px;}
  .majster-hero { grid-template-columns: 1fr; text-align: center; }
  .majster-intro .sec-title { text-align: center; }
  .majster-intro p { margin-left: auto; margin-right: auto; }
  .majster-diagram { min-height: 240px; order: -1; }
  .majster-how, .majster-what { margin-top: 56px; }
  .calc-preview { max-width: 100%; }
  .majster-teaser-copy { text-align: center; }
  .majster-teaser-copy .sec-title { text-align: center; }
  .majster-teaser-copy p { margin-left: auto; margin-right: auto; }
  .majster-teaser-cta { justify-content: center; }
}


/* ========== NOWE SEKCJE (Faza 1) ========== */

/* ---------- O mnie ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(280px,.9fr) minmax(0,1.65fr);
  gap: clamp(48px,6vw,88px); align-items: center;
}
.about-photo {
  --portrait-size: clamp(240px,24vw,360px);
  width: 100%; display: grid; justify-items: center; align-content: center;
  text-align: center;
}
.about-portrait {
  width: min(100%,var(--portrait-size)); aspect-ratio: 1; border-radius: 28px;
  background: linear-gradient(160deg, rgba(20,28,44,.7), rgba(11,16,26,.7));
  border: 1px solid var(--bd); overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.52), 0 0 42px rgba(77,155,255,.16);
}
.about-portrait img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  object-position: center;
}
.fun-tags {
  width: min(100%,var(--portrait-size)); display: flex; gap: 10px;
  flex-wrap: wrap; justify-content: center; margin-top: 18px;
}
.fun-tag {
  padding: 8px 15px; border-radius: 100px; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.04); border: 1px solid var(--bd); color: var(--d-ink);
}
.about-text p { color: var(--d-ink2); font-size: 17px; line-height: 1.8; }
.stats-row { display: flex; gap: 3rem; margin-top: 32px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num {
  font-family: var(--mono); font-size: 2.6rem; font-weight: 700;
  color: var(--d-blue); text-shadow: 0 0 20px rgba(77,155,255,.4);
}
.stat-label { font-size: 13px; color: var(--d-ink3); margin-top: 6px; font-family: var(--mono); letter-spacing: .06em; }
.about-cta { margin-top: 28px; }
.about-cta-text { color: var(--d-ink2); font-size: 16px; margin-bottom: 14px; }

/* ---------- Dla kogo ---------- */
.seg-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 52px; }
.seg-card {
  position: relative; border-radius: 16px; padding: 30px;
  background: linear-gradient(160deg, rgba(20,28,44,.7), rgba(11,16,26,.7));
  border: 1px solid var(--bd); display: flex; flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s; min-height: 260px;
}
.seg-card:hover { transform: translateY(-4px); border-color: var(--d-blue-glow); box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(77,155,255,.12); }
.seg-card h3 { font-size: 22px; margin: 0 0 12px; color: #fff; }
.seg-card p { font-size: 15.5px; color: var(--d-ink2); margin: 0; flex: 1; }
.seg-cta { margin-top: auto; padding-top: 18px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--d-blue), var(--t-violet), var(--d-cyan)); border-radius: 3px;
}
.tl-item { position: relative; padding-left: 70px; margin-bottom: 2rem; }
.tl-dot {
  position: absolute; left: 18px; top: 6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--d-bg2); border: 3px solid var(--d-blue); z-index: 1;
  transition: background .3s, box-shadow .3s, transform .3s;
}
.tl-item:hover .tl-dot { background: var(--d-blue); box-shadow: 0 0 12px var(--d-blue); transform: scale(1.2); }
.tl-card {
  background: linear-gradient(160deg, rgba(20,28,44,.7), rgba(11,16,26,.7));
  backdrop-filter: blur(10px); border: 1px solid var(--bd); border-radius: 16px;
  padding: 1.4rem 1.6rem;
  transition: transform .4s cubic-bezier(.23,1,.32,1), border-color .4s;
}
.tl-item:hover .tl-card { transform: translateX(6px); border-color: var(--bd-glow); }
.tl-date { font-family: var(--mono); font-size: 12px; color: var(--d-blue); font-weight: 600; letter-spacing: .5px; }
.tl-role { font-size: 1.05rem; font-weight: 700; margin: 0.2rem 0; color: #fff; }
.tl-company { font-size: 0.85rem; color: var(--d-ink2); font-weight: 500; }

/* ---------- Certyfikaty ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-top: 48px; }
.cert-card {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem;
  background: linear-gradient(160deg, rgba(20,28,44,.7), rgba(11,16,26,.7));
  backdrop-filter: blur(10px); border: 1px solid var(--bd); border-radius: 14px;
  transition: transform .3s, border-color .3s;
}
.cert-card:hover { transform: translateY(-3px); border-color: var(--bd-glow); }
.cert-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(150deg, #4D9BFF, #2B6BE4);
  display: grid; place-items: center; color: #fff; font-size: 1rem;
}
.cert-icon--lang { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.cert-info h3 { font-size: 0.82rem; font-weight: 600; line-height: 1.3; color: #fff; margin: 0; }
.cert-info span { font-size: 0.7rem; color: var(--d-ink3); font-family: var(--mono); }
.cert-badge {
  margin-left: auto; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.62rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
.cert-badge--active { background: rgba(16,185,129,0.1); color: #059669; }
.cert-badge--earned { background: rgba(77,155,255,0.1); color: var(--d-blue); }

/* ---------- Video placeholder ---------- */
.video-spot { margin-top: 40px; text-align: center; }
.video-thumb {
  position: relative;
  display: block;
  width: 100%; max-width: 720px; aspect-ratio: 16/9; margin: 0 auto;
  border: 1px solid var(--bd); border-radius: 16px; overflow: hidden;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.video-play-btn {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,.25);
  transition: background .2s ease;
}
.video-thumb:hover .video-play-btn { background: rgba(0,0,0,.4); }
.video-play-btn svg {
  width: 64px; height: 64px;
  fill: #fff;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
.video-channel { margin-top: 16px; font-size: 15px; }
.video-channel a { color: var(--d-blue); text-decoration: none; }
.video-channel a:hover { text-decoration: underline; }
.video-placeholder {
  width: 100%; max-width: 720px; aspect-ratio: 16/9; margin: 0 auto;
  background: linear-gradient(160deg, rgba(20,28,44,.5), rgba(11,16,26,.5));
  border: 1px dashed var(--bd); border-radius: 16px; display: grid; place-items: center;
  color: var(--d-ink3); font-family: var(--mono); font-size: 14px;
}

/* ---------- Majster section ---------- */
.majster-sec { padding-top: 40px; }
.majster { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 64px 32px; text-align: center;
  border-radius: 26px; border: 1px solid var(--bd); overflow: hidden;
  background: linear-gradient(180deg, #0D1420, #090D16);
}
.majster h2 { color: #fff; font-size: clamp(28px,4vw,42px); line-height: 1.1; max-width: 640px; margin: 18px auto 0; }
.majster p { color: var(--d-ink2); font-size: 18px; max-width: 560px; margin: 18px auto 0; }
.majster-form { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.majster-form input {
  padding: 13px 18px; border-radius: 12px; border: 1px solid var(--bd);
  background: rgba(255,255,255,.04); color: var(--d-ink); font-family: var(--sans);
  font-size: 16px; min-width: 280px;
}
.majster-form input:focus-visible { border-color: var(--d-blue-glow); box-shadow: 0 0 20px rgba(77,155,255,.15); }
.majster-form input::placeholder { color: var(--d-ink3); }
.majster-consent {
  flex-basis: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: center;
  text-align: left;
  color: var(--d-ink2);
  font-size: 14px;
  max-width: 540px;
  margin: 0 auto;
}
.majster-consent input[type="checkbox"] {
  min-width: auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.majster-consent label { line-height: 1.4; }
.majster-consent a { color: var(--d-blue-glow); text-decoration: underline; }
.input--hidden { position: absolute; left: -9999px; opacity: 0; }
.form-help, .form-message { flex-basis: 100%; margin: 0; font-size: 14px !important; }
.form-help { color: var(--d-ink3) !important; }
.form-message--error { color: #ff9a9a !important; font-weight: 700; }
.majster-success { margin-top: 32px; color: var(--d-blue); font-weight: 600; }

/* ---------- Majster expanded section ---------- */
.majster-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.majster-intro .sec-title { text-align: left; margin-top: 18px; }
.majster-intro p { color: var(--d-ink2); font-size: 18px; max-width: 620px; margin: 18px 0 0; }
.majster-intro p strong { color: #fff; }

.majster-diagram {
  position: relative;
  border-radius: 20px;
  padding: 32px;
  min-height: 280px;
  display: grid;
  place-items: center;
  gap: 18px;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(77,155,255,.10), transparent 70%),
    linear-gradient(160deg, rgba(20,28,44,.7), rgba(11,16,26,.7));
  overflow: hidden;
}
.majster-diagram .scan-line {
  position: absolute;
  left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--d-blue), transparent);
  box-shadow: 0 0 16px var(--d-blue-glow);
  animation: scan 3.5s ease-in-out infinite;
}
@keyframes scan {
  0%,100% { top: 18%; opacity: .4; }
  50% { top: 82%; opacity: 1; }
}
.majster-diagram .diag-tiles {
  display: flex; gap: 14px; z-index: 1;
}
.majster-diagram .diag-tiles svg { width: 48px; height: 48px; }
.majster-diagram .diag-lights {
  display: flex; gap: 10px; z-index: 1;
}
.majster-diagram .light {
  width: 14px; height: 14px; border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}
.majster-diagram .light.red { background: var(--t-pink); color: var(--t-pink); }
.majster-diagram .light.amber { background: var(--t-amber); color: var(--t-amber); opacity: .6; }
.majster-diagram .light.green { background: var(--t-green); color: var(--t-green); opacity: .5; }
.majster-diagram .diag-mono {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--d-blue); z-index: 1;
}

.majster-how, .majster-what { margin-top: 80px; }
.majster-how > .sec-title, .majster-what > .sec-title { font-size: clamp(26px, 3.4vw, 36px); text-align: center; }
.majster-how .do-grid, .majster-what .seg-grid { margin-top: 36px; }

.majster-trust {
  max-width: 760px; margin: 56px auto 0;
  text-align: center; color: var(--d-ink2); font-size: 17px; line-height: 1.7;
}
.majster-trust strong { color: #fff; }

.majster-form_title { font-size: clamp(26px, 4vw, 38px); }

/* ---------- Kalkulator teaser section ---------- */
.calc-teaser-sec { padding-top: 40px; }
.calc-teaser-head { text-align: center; max-width: 720px; margin: 0 auto; }
.calc-teaser-head p { color: var(--d-ink2); font-size: 18px; margin-top: 18px; }
.calc-teaser-head p strong { color: #fff; }

.calc-preview {
  position: relative; max-width: 420px; margin: 40px auto 0;
  padding: 32px; border-radius: 20px; text-align: center;
  background: linear-gradient(160deg, rgba(20,28,44,.7), rgba(11,16,26,.7));
}
.calc-preview-pct {
  font-family: var(--display); font-size: clamp(64px, 12vw, 96px);
  font-weight: 800; color: var(--d-blue); line-height: 1;
  text-shadow: 0 0 40px rgba(77,155,255,.45);
}
.calc-preview-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--d-ink3); text-transform: uppercase; margin-top: 8px;
}
.calc-sleeping {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--bd);
  display: flex; flex-direction: column; gap: 6px;
}
.calc-sleeping span:first-child { color: var(--d-ink2); font-size: 15px; }
.sleeping-kwota { font-family: var(--mono); font-size: 22px; color: var(--d-ink); font-weight: 700; }
.sleeping-note { font-size: 12px; color: var(--d-ink3); }

.calc-how { margin-top: 64px; }
.calc-how > .sec-title { font-size: clamp(26px, 3.4vw, 36px); text-align: center; }
.calc-how .do-grid { margin-top: 36px; }
.calc-result-card .do-mono { color: var(--d-blue); }

.calc-honest {
  max-width: 680px; margin: 48px auto 0;
  text-align: center; color: var(--d-ink2); font-size: 17px; line-height: 1.7;
}
.calc-honest strong { color: #fff; }

.calc-teaser-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px;
}

/* ---------- Majster teaser section (index) ---------- */
.majster-teaser-sec { padding-top: 40px; }
.majster-teaser-head { text-align: center; max-width: 720px; margin: 0 auto; }
.majster-teaser-head p { color: var(--d-ink2); font-size: 18px; margin-top: 18px; }
.majster-teaser-head p strong { color: #fff; }

.majster-teaser-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  justify-items: center;
  margin-top: 48px;
  text-align: center;
}
.majster-teaser-copy { text-align: center; max-width: 720px; }
.majster-teaser-copy .sec-title { text-align: center; margin-top: 18px; }
.majster-teaser-copy p { color: var(--d-ink2); font-size: 18px; margin: 18px 0 0; }
.majster-teaser-copy p strong { color: #fff; }

.video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(77,155,255,.10), transparent 70%),
    linear-gradient(160deg, rgba(20,28,44,.7), rgba(11,16,26,.7));
  border: 1px solid var(--bd);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.video-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122,158,214,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,158,214,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.video-card .scan-line {
  position: absolute; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--d-blue), transparent);
  box-shadow: 0 0 16px var(--d-blue-glow);
  animation: scan 3.5s ease-in-out infinite;
}
.video-play {
  position: relative; z-index: 1;
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(150deg, #4D9BFF, #2B6BE4);
  display: grid; place-items: center;
  box-shadow: 0 0 34px rgba(77,155,255,.5);
  transition: transform .15s, box-shadow .15s;
}
.video-play:hover { transform: scale(1.06); box-shadow: 0 0 48px rgba(77,155,255,.65); }
.video-play svg { width: 28px; height: 28px; margin-left: 4px; fill: #fff; }
.video-label {
  position: relative; z-index: 1;
  margin-top: 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--d-blue);
}
.video-note {
  position: relative; z-index: 1;
  margin-top: 8px;
  font-size: 13px; color: var(--d-ink3);
}
.video-card-content { position: relative; z-index: 1; display: grid; place-items: center; }

.majster-teaser-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- lead-gen bridge ---------- */
.sec-head.bridge { margin-top: 48px; }
.bridge-lead { color: var(--d-ink2); font-size: 17px; max-width: 640px; margin: 0 auto; }
.bridge-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- landing pages (majster + kalkulator) ---------- */
.landing-hero { padding: 120px 0 80px; text-align: center; }
.landing-hero h1 { font-size: clamp(36px, 6vw, 64px); margin-top: 18px; }
.landing-hero .hero-sub { max-width: 640px; margin: 18px auto 0; }
.landing-hero .hero-btns { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.landing-steps, .landing-features { padding: 80px 0; }
.landing-steps .do-grid, .landing-features .seg-grid { margin-top: 40px; }

.seg-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(77,155,255,.10); border: 1px solid var(--bd); color: var(--d-blue);
  font-size: 20px;
}

.majster-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--d-blue); padding: 7px 14px; border-radius: 100px;
  border: 1px solid rgba(77,155,255,.22); background: rgba(10,14,22,.72);
}
.majster-note {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 24px; font-size: 14.5px; color: var(--d-ink3);
}
.majster-note i { color: var(--d-blue); }
.majster-success h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.majster-success p { color: var(--d-ink2); font-size: 16px; max-width: 520px; margin: 0 auto; }

.landing-trust { padding-top: 60px; padding-bottom: 60px; }

/* ---------- Fade-up animations ---------- */
.fade-up { opacity: 1; transform: none; }
.js .fade-up { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.23,1,0.32,1); }
.js .fade-up.animate { opacity: 0; transform: translateY(35px); }
.js .fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- Hamburger + mobile nav ---------- */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 10px; z-index: 101; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--d-ink); border-radius: 2px; transition: all 0.3s; }

/* ---------- responsive additions ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo { --portrait-size: clamp(220px,72vw,300px); }
  .seg-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 16px; }
  .tl-item { padding-left: 50px; }
  .tl-dot { left: 7px; width: 18px; height: 18px; }
  .stats-row { gap: 1.5rem; justify-content: center; }
  .hamburger { display: flex; }
  .nav-links { position: fixed; top: 0; right: 0; width: min(82vw, 320px); height: 100vh; height: 100dvh;
    background: rgba(8,11,18,.95); backdrop-filter: blur(20px); flex-direction: column;
    justify-content: center; padding: max(2rem, env(safe-area-inset-top)) max(2rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) 2rem;
    transition: clip-path 0.4s cubic-bezier(.23,1,.32,1), opacity .3s ease, visibility 0s linear .4s;
    clip-path: inset(0 0 0 100%); opacity: 0; visibility: hidden; pointer-events: none;
    border-left: 1px solid var(--bd); gap: 2rem; z-index: 100; overscroll-behavior: contain;
  }
  .nav-links.open { clip-path: inset(0); opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav-links a { font-size: 18px; }
  .lang { margin-top: .5rem; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .majster { padding: 48px 20px; border-radius: 18px; }
  .majster-form input { min-width: 100%; }
}


/* ========== KALKULATOR (Faza 2) ========== */
.calc-sec { padding: 64px 0; }
.calc-container { max-width: 1040px; margin: 0 auto; }
.calc-step { display: none; }
.calc-step.active { display: block; }
.calc-step h1, .calc-step h2 { font-size: clamp(26px,4vw,38px); color: #fff; margin-bottom: 12px; text-align: center; }
.calc-step > p { max-width: 700px; color: var(--d-ink2); text-align: center; margin: 0 auto 40px; }
.calc-kicker {
  display: block; margin-bottom: 12px; color: var(--d-blue); font: 700 12px/1 var(--mono);
  letter-spacing: .12em; text-align: center; text-transform: uppercase;
}

/* miks licencji */
.calc-license-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calc-license-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 132px;
  padding: 20px; border: 1px solid var(--bd); border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.calc-license-card:focus-within { border-color: var(--d-cyan); box-shadow: 0 0 0 2px rgba(98,216,224,.18); }
.calc-license-copy { display: grid; gap: 5px; min-width: 0; }
.calc-license-copy label { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.25; }
.calc-license-copy span { color: var(--d-ink2); font-size: 13px; line-height: 1.4; }
.calc-license-copy small { color: var(--d-blue); font: 400 11px/1.4 var(--mono); }
.calc-counter {
  display: grid; grid-template-columns: 34px 58px 34px; align-items: center; flex: none;
  overflow: hidden; border: 1px solid var(--bd-glow); border-radius: 12px; background: rgba(3,8,18,.72);
}
.calc-counter button {
  min-width: 34px; min-height: 42px; border: 0; background: transparent; color: var(--d-blue);
  font-size: 21px; cursor: pointer;
}
.calc-counter button:hover { background: rgba(77,155,255,.1); color: #fff; }
.calc-counter button:focus-visible { outline: 2px solid var(--d-cyan); outline-offset: -2px; }
.calc-counter input {
  width: 58px; min-height: 42px; border: 0; border-right: 1px solid var(--bd);
  border-left: 1px solid var(--bd); background: transparent; color: #fff;
  font: 700 17px/1 var(--mono); text-align: center; appearance: textfield;
}
.calc-counter input::-webkit-inner-spin-button, .calc-counter input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.calc-license-summary {
  display: flex; justify-content: center; gap: 28px; margin-top: 20px; padding: 16px;
  border: 1px solid var(--bd); border-radius: 14px; color: var(--d-ink2); font-size: 14px;
  background: rgba(77,155,255,.045);
}
.calc-license-summary strong { color: #fff; font-family: var(--mono); }
.calc-error {
  margin: 16px auto 0 !important; color: #ff8c8c !important; font-size: 14px; font-weight: 700;
}

/* lista funkcji */
.calc-feature-overview {
  display: flex; justify-content: center; gap: 28px; margin-bottom: 32px; color: var(--d-ink2);
  font-size: 14px;
}
.calc-feature-overview strong { color: var(--d-blue); font-family: var(--mono); }
.calc-feature-groups { display: grid; gap: 22px; }
.calc-feature-group {
  min-width: 0; padding: 0; border: 0;
}
.calc-feature-group legend {
  width: 100%; margin-bottom: 12px; padding: 0 0 10px; border-bottom: 1px solid var(--bd);
  color: #fff; font: 700 15px/1.3 var(--mono); letter-spacing: .03em;
}
.calc-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc-feature {
  position: relative; display: flex; gap: 14px; padding: 18px; border: 1px solid var(--bd);
  border-radius: 14px; background: rgba(255,255,255,.025); cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.calc-feature:hover { border-color: var(--d-blue-glow); background: rgba(77,155,255,.055); transform: translateY(-1px); }
.calc-feature:focus-within { border-color: var(--d-cyan); box-shadow: 0 0 0 2px rgba(98,216,224,.2); }
.calc-feature:has(input:checked) {
  border-color: rgba(77,155,255,.52); background: linear-gradient(145deg, rgba(77,155,255,.1), rgba(98,216,224,.035));
}
.calc-feature input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--d-blue); flex: none; }
.calc-feature-body { display: grid; gap: 5px; min-width: 0; }
.calc-feature-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.calc-feature-top strong { color: #fff; font-size: 15px; line-height: 1.35; }
.calc-feature-count {
  flex: none; padding: 3px 6px; border-radius: 6px; background: rgba(77,155,255,.1);
  color: var(--d-blue); font: 700 10px/1.2 var(--mono);
}
.calc-feature-product { color: var(--d-cyan); font: 400 11px/1.35 var(--mono); }
.calc-feature-description { color: var(--d-ink2); font-size: 13px; line-height: 1.5; }
.calc-feature-plans { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.calc-plan-badge {
  padding: 3px 6px; border: 1px solid var(--bd); border-radius: 5px; color: var(--d-ink3);
  font: 400 9px/1 var(--mono); text-transform: uppercase;
}

/* nawigacja kroków */
.calc-nav { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* wynik */
.calc-result { text-align: center; }
.calc-result-pct { font-family: var(--display); font-size: clamp(64px,10vw,120px); font-weight: 800; color: #fff; line-height: 1; }
.calc-result-pct span { color: var(--d-blue); }
.calc-result-label { font-family: var(--mono); font-size: 14px; color: var(--d-ink3); margin-top: 8px; letter-spacing: .1em; text-transform: uppercase; }
.calc-step h2.calc-result-label { font-family: var(--mono); font-size: 14px; color: var(--d-ink3); margin: 0 0 8px; letter-spacing: .1em; }
.calc-widelki {
  margin: 32px 0 18px; padding: 26px; border: 1px solid var(--bd-glow); border-radius: 18px;
  background: radial-gradient(circle at 50% 0, rgba(77,155,255,.12), transparent 70%), rgba(255,255,255,.025);
  text-align: center;
}
.calc-widelki-label { color: var(--d-ink3); font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.calc-widelki p { color: var(--d-ink2); font-size: 16px; margin: 0; }
.calc-widelki .kwota { font-family: var(--mono); font-size: 28px; color: var(--d-blue); font-weight: 700; }
.calc-widelki small { display: block; max-width: 650px; margin: 10px auto 0; color: var(--d-ink3); font-size: 12px; }
.calc-result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-result-stats > div {
  display: grid; gap: 6px; padding: 16px; border: 1px solid var(--bd); border-radius: 13px;
  background: rgba(255,255,255,.025); text-align: center;
}
.calc-result-stats span { color: var(--d-ink3); font-size: 12px; }
.calc-result-stats strong { color: #fff; font: 700 16px/1.2 var(--mono); }
.calc-threshold {
  margin: 26px 0; padding: 22px; border-left: 3px solid var(--d-blue);
  border-radius: 0 14px 14px 0; background: rgba(77,155,255,.065);
}
.calc-threshold strong { color: #fff; font-size: 18px; }
.calc-threshold p { margin: 8px 0 0; color: var(--d-ink2); line-height: 1.65; }
.calc-breakdown { margin-top: 34px; }
.calc-breakdown h3, .calc-modules h3 { margin-bottom: 16px; color: #fff; font-size: 20px; }
#planBreakdown { display: grid; gap: 10px; }
.calc-plan-result { padding: 16px 18px; border: 1px solid var(--bd); border-radius: 14px; background: rgba(255,255,255,.025); }
.calc-plan-result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calc-plan-result-head > div { display: grid; gap: 3px; }
.calc-plan-result-head strong { color: #fff; font-size: 14px; }
.calc-plan-result-head span, .calc-plan-result small { color: var(--d-ink3); font-size: 11px; }
.calc-plan-result-head b { color: var(--d-blue); font: 700 20px/1 var(--mono); }
.calc-plan-meter { height: 6px; margin: 12px 0 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.07); }
.calc-plan-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--d-blue), var(--d-cyan)); }

.calc-modules { margin: 34px 0 24px; }
.calc-modules > p { margin: -8px 0 16px; color: var(--d-ink2); font-size: 13px; }
.calc-sleep-list { display: grid; gap: 9px; }
.calc-sleep-item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px;
  border: 1px solid rgba(255,130,130,.19); border-radius: 12px; background: rgba(255,100,100,.035);
}
.calc-sleep-item > span { display: grid; gap: 3px; }
.calc-sleep-item strong { color: var(--d-ink); font-size: 14px; }
.calc-sleep-item small { color: var(--d-ink3); font-size: 11px; }
.calc-sleep-item b { flex: none; color: #ff9292; font: 700 12px/1.2 var(--mono); }
.calc-all-used { padding: 18px; border: 1px solid rgba(98,216,224,.25); border-radius: 12px; color: var(--d-cyan) !important; }

.calc-notka { font-size: 13px; color: var(--d-ink3); margin-top: 24px; }
.calc-majster-cta {
  margin-top: 48px;
  padding: 40px 32px;
  border: 1px solid var(--bd);
  border-radius: 22px;
  background: linear-gradient(180deg, #0D1420, #090D16);
  text-align: center;
}
.calc-majster-cta h3 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin: 0; }
.calc-majster-cta > p { color: var(--d-ink2); font-size: 16px; max-width: 560px; margin: 14px auto 0; }
.calc-majster-cta .majster-form { margin-top: 24px; }
.noscript-note {
  max-width: 720px; margin: 32px auto 0; padding: 16px 20px; border-radius: 12px;
  border: 1px solid var(--bd-glow); background: rgba(77,155,255,.08); color: var(--d-ink);
  text-align: center;
}
.noscript-note a { color: var(--d-blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.error-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 0; }
.error-card {
  max-width: 760px; padding: 64px 32px; border: 1px solid var(--bd);
  border-radius: 24px; text-align: center; background: var(--d-panel-solid);
}
.error-card h1 { margin-top: 20px; font-size: clamp(40px, 7vw, 72px); color: #fff; }
.error-card p { max-width: 560px; margin: 18px auto 0; color: var(--d-ink2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .tile { animation: none !important; }
  .js .fade-up { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .calc-sec { padding: 48px 0; }
  .calc-license-grid, .calc-feature-list { grid-template-columns: 1fr; }
  .calc-license-card { align-items: flex-start; min-height: 0; padding: 17px; }
  .calc-license-summary, .calc-feature-overview { display: grid; gap: 7px; text-align: center; }
  .calc-feature { padding: 16px; }
  .calc-feature-top { display: grid; gap: 6px; }
  .calc-feature-count { width: max-content; }
  .calc-result-stats { grid-template-columns: 1fr; }
  .calc-sleep-item { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (min-width: 521px) and (max-width: 860px) {
  .calc-license-grid, .calc-feature-list { grid-template-columns: 1fr; }
}
