/* =============================================================
   ZŁOTA FAZA - REFINED v2
   Base: tokens, reset, type, container, buttons, eyebrows, header
   ============================================================= */

:root {
  /* ---- Surfaces & ink ---- */
  --bg:           #0a0a0b;
  --bg-2:         #101013;
  --card:         #121215;
  --card-2:       #17171c;
  --line:         #23232a;
  --line-2:       #2e2e36;
  --line-faint:   rgba(255,255,255,.06);

  --ink:          #f4f4f5;
  --ink-2:        #b4b4bb;
  --ink-3:        #7a7a82;
  --ink-4:        #50505a;

  /* ---- Brand: electric yellow ---- */
  --y:            #FEEC09;
  --y-bright:     #fff45c;
  --y-deep:       #d9c800;
  --y-05:         rgba(254,236,9,.05);
  --y-10:         rgba(254,236,9,.10);
  --y-20:         rgba(254,236,9,.20);
  --y-30:         rgba(254,236,9,.30);
  --y-glow:       rgba(254,236,9,.18);

  --ok:           #22c55e;
  --err:          #ef4444;

  /* ---- Typography ---- */
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body:    "Inter Tight", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-display-xl: clamp(56px, 8.4vw, 132px);  /* hero + banner */
  --fs-display:    clamp(40px, 5.4vw, 80px);
  --fs-h2:         clamp(34px, 4vw, 56px);
  --fs-h3:         clamp(22px, 1.9vw, 28px);
  --fs-h3-lg:      clamp(26px, 2.4vw, 34px);
  --fs-lead:       clamp(17px, 1.2vw, 19px);
  --fs-body:       16px;
  --fs-small:      14px;
  --fs-eyebrow:    11px;

  /* ---- Layout ---- */
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-py: clamp(80px, 9vw, 144px);

  /* ---- Radius ---- */
  --r: 0;
  --r-pill: 999px;

  /* ---- Misc ---- */
  --header-h: 76px;
  --ease-out: cubic-bezier(.22,.61,.36,1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  /* Block any sub-pixel overflow that bleeds past the viewport on mobile
     (background blobs, marquee tracks, sticky shadows). `clip` is preferred
     over `hidden` because it doesn't establish a new scroll container -
     so position:sticky on the header keeps working. The `hidden` line
     stays as a fallback for browsers that don't understand `clip` yet. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--y); color: #000; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--y); }

/* ---- Focus ---- */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--y);
  outline-offset: 3px;
}

/* ---- Skip link ---- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--y); color: #000;
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 200;
}
.skip:focus { left: 16px; top: 16px; }

/* =============================================================
   Type primitives
   ============================================================= */

.display, h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }

.t-mono { font-family: var(--f-mono); font-feature-settings: "tnum", "zero"; }
.t-y { color: var(--y); }
.t-2 { color: var(--ink-2); }
.t-3 { color: var(--ink-3); }

/* Eyebrow: mono numeral + slash + label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--y);
}
.eyebrow .num { color: var(--ink-3); }
.eyebrow .slash {
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--y);
  transform: translateY(-1px);
}

/* Lead paragraph */
.lead {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 56ch;
}

/* =============================================================
   Container & sections
   ============================================================= */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: var(--section-py);
}
.section--card { background: var(--card); }
.section--bg   { background: var(--bg); }

.section-head {
  display: grid;
  gap: 24px;
  max-width: 56rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.section-head h2 {
  font-size: var(--fs-h2);
}
.section-head h2 em {
  font-style: normal;
  color: var(--y);
}

/* Decorative grid background (used on hero, banner) */
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}

/* =============================================================
   Buttons
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--r);
  transition:
    background-color .2s var(--ease-out),
    color .2s var(--ease-out),
    border-color .2s var(--ease-out),
    transform .2s var(--ease-out),
    box-shadow .25s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; }
.btn .arrow { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--y {
  background: var(--y);
  color: #000;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}
.btn--y:hover { background: var(--y-bright); box-shadow: 0 6px 16px -10px var(--y-glow); }

.btn--ghost {
  background: rgba(255,255,255,.02);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--y); color: var(--y); background: var(--y-05); }

.btn--dark {
  background: #0a0a0b;
  color: var(--ink);
  border-color: rgba(255,255,255,.08);
}
.btn--dark:hover { border-color: var(--y); }
.btn--dark .arrow { color: var(--y); }

.btn--lg { height: 60px; padding: 0 32px; font-size: 16px; }
.btn--xl { height: 68px; padding: 0 36px; font-size: 17px; }
.btn--block { width: 100%; }

/* Discrete arrow-link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: color .2s var(--ease-out);
}
.link-arrow .circle {
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  display: inline-grid; place-items: center;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.link-arrow:hover { color: var(--y); }
.link-arrow:hover .circle { border-color: var(--y); background: var(--y-10); }
.link-arrow .arrow { width: 16px; height: 16px; transition: transform .2s var(--ease-out); color: var(--ink); }
.link-arrow:hover .arrow { transform: translateX(3px); color: var(--y); }

/* =============================================================
   Scroll progress + top utility bar
   ============================================================= */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--y);
  z-index: 100;
  transition: width .05s linear;
  box-shadow: 0 0 12px var(--y-glow);
}

.utility {
  background: #050506;
  border-bottom: 1px solid #131318;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  position: relative;
  z-index: 60;
}
.utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: 24px;
}
.utility .left, .utility .right { display: flex; gap: 28px; align-items: center; }
.utility .item { display: inline-flex; gap: 8px; align-items: center; }
.utility .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--y);
  box-shadow: 0 0 10px var(--y-glow);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.utility a:hover { color: var(--y); }
@media (max-width: 760px) {
  .utility .hide-sm { display: none; }
  .utility .container { height: 32px; }
}

/* =============================================================
   Header
   ============================================================= */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition:
    background-color .25s var(--ease-out),
    border-color .25s var(--ease-out),
    backdrop-filter .25s var(--ease-out),
    height .25s var(--ease-out);
  border-bottom: 1px solid transparent;
}
/* Elementor Editor mode: disable position:fixed so the header is normally clickable.
   Also adds a visible background (on the front the background is transparent until the user scrolls). */
.header--editor {
  position: static !important;
  background: rgba(10, 10, 11, 0.92);
  border-bottom: 1px solid var(--y-30);
  backdrop-filter: none;
}
/* Same override when our native header.php is rendered inside the Elementor iframe
   (e.g. the Calculator page) - without it the fixed header covers the canvas and traps scroll. */
body.elementor-editor-active .header,
body.elementor-preview .header,
html[data-elementor-device-mode] .header {
  position: static !important;
  background: rgba(10, 10, 11, 0.92);
  border-bottom: 1px solid var(--y-30);
  backdrop-filter: none;
}
/* Mobile drawer + FABs make no sense in the editor and can swallow events. */
body.elementor-editor-active .mobile-nav,
body.elementor-preview .mobile-nav,
body.elementor-editor-active .fab-tel,
body.elementor-preview .fab-tel,
body.elementor-editor-active .fab-top,
body.elementor-preview .fab-top,
body.elementor-editor-active .scroll-progress,
body.elementor-preview .scroll-progress {
  display: none !important;
}
/* Sticky calculator summary in the editor - better positioned statically,
   because sticky inside a short canvas + a position:fixed parent can trap scroll. */
body.elementor-editor-active .calc__summary-inner,
body.elementor-preview .calc__summary-inner {
  position: static !important;
}
/* Safety: in case JS leaves is-locked on body (e.g. after closing the drawer in an unusual scenario)
   - never block scroll in the editor. */
body.elementor-editor-active.is-locked,
body.elementor-preview.is-locked {
  overflow: auto !important;
}
.header.is-scrolled {
  background: rgba(10,10,11,.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--y-20);
  box-shadow: 0 6px 28px -8px rgba(0,0,0,.6);
}
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.header__group {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--y);
  color: #000;
  position: relative;
  transition: transform .25s var(--ease-out);
}
.logo__mark::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--y-20);
  pointer-events: none;
}
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.04); }
.logo__mark svg { width: 22px; height: 22px; }

/* Brand-mark variant: full banner composition (lightning bolt + dashed ring).
   Overrides the yellow background + outline from the base .logo__mark since it has its own composition. */
.logo__mark--brand {
  width: 48px; height: 48px;
  background: transparent;
}
.logo__mark--brand::before { display: none; }
.logo__mark--brand img { width: 100%; height: 100%; display: block; }
.logo__name { display: inline-flex; flex-direction: column; line-height: 1; gap: 2px; }
.logo__name small {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 500;
}

/* Nav */
.nav {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  padding: 10px 14px;
  color: var(--ink-2);
  transition: color .2s var(--ease-out);
}
.nav a .num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-4);
  margin-right: 6px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--y);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { color: var(--y); }
.nav a.is-active::after { transform: scaleX(1); background: var(--y); }
.nav a.is-active .num { color: var(--y); }

@media (min-width: 960px) { .nav { display: inline-flex; } }

/* Header CTA */
.cta-tel {
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  background: var(--y);
  color: #000;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .25s var(--ease-out);
}
.cta-tel svg { width: 16px; height: 16px; }
.cta-tel .num { font-family: var(--f-mono); font-feature-settings: "tnum"; letter-spacing: -0.05em; word-spacing: -0.25em; }
.cta-tel:hover { background: var(--y-bright); transform: translateY(-1px); box-shadow: 0 4px 12px -8px var(--y-glow); }
@media (min-width: 760px) { .cta-tel { display: inline-flex; } }

/* Burger */
.burger {
  width: 44px; height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.02);
  position: relative;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.burger:hover { border-color: var(--y); }
.burger[aria-expanded="true"] { border-color: var(--y); background: var(--y-05); }
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease-out), opacity .15s var(--ease-out), top .25s var(--ease-out), width .25s var(--ease-out);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; right: 16px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span { background: var(--y); }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); right: 12px; }
@media (max-width: 959px) { .burger { display: inline-grid; } }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(8,8,10,.98);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  z-index: 49;
  display: none;
  overflow-y: auto;
  animation: drawerIn .3s var(--ease-out);
}
.mobile-nav.is-open { display: block; }
.mobile-nav__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px var(--gutter) 40px;
  gap: 32px;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.mobile-nav__open::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--y);
  box-shadow: 0 0 8px var(--y-glow);
  animation: pulse 2s infinite;
}

.mobile-nav__list {
  list-style: none;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line-faint);
}
.mobile-nav__list li {
  opacity: 0;
  transform: translateY(8px);
  animation: navItemIn .35s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 50ms + 80ms);
}
.mobile-nav__list a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line-faint);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  transition: padding-left .2s var(--ease-out), color .2s var(--ease-out);
}
.mobile-nav__list a:hover,
.mobile-nav__list a:active { padding-left: 12px; color: var(--y); }
.mobile-nav__list a.is-active { color: var(--y); }
.mobile-nav__list a.is-active .label { color: var(--y); }
.mobile-nav__list .num {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.mobile-nav__list a:hover .num,
.mobile-nav__list a:active .num { color: var(--y); }
.mobile-nav__list a.is-active .num { color: var(--y); }
.mobile-nav__list .arrow {
  width: 18px; height: 18px;
  color: var(--ink-3);
  transition: transform .2s var(--ease-out), color .2s var(--ease-out);
}
.mobile-nav__list a:hover .arrow,
.mobile-nav__list a:active .arrow { color: var(--y); transform: translateX(4px); }
.mobile-nav__list a.is-active .arrow { color: var(--y); }

@keyframes navItemIn {
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav__foot {
  margin-top: auto;
  display: grid;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-faint);
}
.mobile-nav__phone {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--y);
  color: #000;
  transition: background-color .2s, transform .15s;
}
.mobile-nav__phone:hover { background: var(--y-bright); }
.mobile-nav__phone:active { transform: scale(.99); }
.mobile-nav__phone .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.08);
}
.mobile-nav__phone .ico svg { width: 20px; height: 20px; }
.mobile-nav__phone .txt { display: grid; gap: 2px; line-height: 1.15; text-align: left; }
.mobile-nav__phone small {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(0,0,0,.65);
}
.mobile-nav__phone strong {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.mobile-nav__phone .arrow { width: 18px; height: 18px; }

.mobile-nav__meta {
  display: grid;
  gap: 12px;
  padding: 4px 4px 0;
}
.mobile-nav__meta a,
.mobile-nav__meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.mobile-nav__meta a:hover { color: var(--y); }
.mobile-nav__meta svg { width: 14px; height: 14px; color: var(--y); flex-shrink: 0; }

@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 960px) { .mobile-nav { display: none !important; } }

/* =============================================================
   Landscape orientation lock on mobile (ask the user to rotate to portrait)
   ============================================================= */
.zf-rotate-lock { display: none; }
@media (orientation: landscape) and (max-height: 500px) {
  html, body { overflow: hidden; }
  .zf-rotate-lock {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
    color: var(--ink);
    text-align: center;
  }
  .zf-rotate-lock__inner {
    display: grid;
    gap: 14px;
    place-items: center;
    max-width: 320px;
  }
  .zf-rotate-lock svg { width: 52px; height: 52px; color: var(--y); }
  .zf-rotate-lock p {
    margin: 0;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
  }
}
