:root{
  --bg:#070813;
  --text:#f2f3f6;
  --muted:rgba(242,243,246,.76);
  --gold:#d7b46a;
  --gold2:#b8893a;
  --border:rgba(255,255,255,.12);
  --panel:rgba(255,255,255,.05);
  --shadow:0 20px 70px rgba(0,0,0,.55);
  --radius:22px;
  --max:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:linear-gradient(180deg,#070813,#0b0e1f);
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 22px}
img{max-width:100%;height:auto;display:block}

/* Top header */
header{
  position:fixed; top:0; left:0; right:0;
  z-index:50;
  background:rgba(7,8,19,.56);
  backdrop-filter: blur(18px);
  border-bottom:1px solid rgba(255,255,255,.10);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px;font-weight:850;letter-spacing:.12em;text-transform:uppercase;font-size:13px}
.brand img{width:34px;height:34px;border-radius:999px}
.menu{display:flex;gap:12px;align-items:center;font-size:13px;color:var(--muted)}
.menu a{padding:8px 10px;border-radius:12px;opacity:.9}
.menu a:hover{opacity:1;background:rgba(255,255,255,.06)}
@media (max-width: 920px){ .menu{display:none} }

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 18px;border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.07);
  font-weight:820;
  box-shadow:0 14px 34px rgba(0,0,0,.30);
  transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}


/* Hero CTA buttons */
.hero-actions{display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:22px}
.btn.hero-btn{
  padding:12px 22px;
  border-radius:999px;
  border:1px solid rgba(196,167,103,.55);
  background:rgba(0,0,0,.18);
  color:#f3efe3;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  transition:transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn.hero-btn:hover{
  background:linear-gradient(135deg, rgba(220,186,120,.95), rgba(170,128,65,.9));
  border-color:rgba(220,186,120,.95);
  color:#1a1208;
  box-shadow:0 10px 30px rgba(220,186,120,.22);
  transform:translateY(-1px);
}
.btn.hero-btn:active{transform:translateY(0)}
.btn.hero-btn.primary{border-color:rgba(220,186,120,.75)}
.btn:hover{background:rgba(255,255,255,.10);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn{ -webkit-backdrop-filter: blur(10px); pointer-events:auto; }

/* Gold buttons: default outline (so it doesn't look "stuck/pressed"),
   hover/focus = gold fill. Use .is-active for permanent fill if needed. */
.btn.gold{
  background: rgba(0,0,0,.16);
  border-color: rgba(217,176,103,.55);
  color: rgba(255,255,255,.92);
  box-shadow: none;
}
.btn.gold:hover{
  /* subtle gold like the hero CTA hover (avoid neon/yellow look) */
  background: rgba(245,203,99,.65);
  border-color: rgba(245,203,99,.85);
  color: #141212;
  box-shadow: 0 18px 42px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset;
  filter:saturate(1.02) brightness(1.03);
}
.btn.gold:focus-visible{outline:2px solid rgba(217,176,103,.65); outline-offset:3px;}
.btn.gold.is-active{
  background: linear-gradient(90deg, rgba(217,176,103,.92), rgba(173,133,63,.92));
  border-color: rgba(217,176,103,.95);
  color: #101015;
  box-shadow: 0 18px 42px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.btn.ghost{background:rgba(0,0,0,.16);border:1px solid rgba(215,180,106,.35);box-shadow:none}
.btn.ghost:hover{
  background: linear-gradient(90deg, rgba(217,176,103,.85), rgba(173,133,63,.85));
  border-color: rgba(217,176,103,.95);
  color: #101015;
  box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.05) inset;
}


/* HERO */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:118px 0 78px;
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:
    linear-gradient(180deg, rgba(7,8,19,.40), rgba(7,8,19,.86)),
    url("assets/img/hero-1771573503.jpg") center/cover no-repeat;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(860px 520px at 50% 44%, rgba(215,180,106,.18), transparent 65%);
  pointer-events:none;
}
.hero-inner{text-align:center;max-width:980px;margin:0 auto;position:relative}
.logo-wrap{
  width:340px;
  margin:0 auto 8px;
  position:relative;
}
.logo-wrap::before{
  content:"";
  position:absolute;
  inset:-18%;
  border-radius:999px;
  background:
    radial-gradient(circle at 50% 58%, rgba(255,214,140,.14), rgba(255,214,140,.04) 48%, rgba(0,0,0,0) 78%);
  filter:blur(22px);
  opacity:.70;
  mix-blend-mode:screen;
  pointer-events:none;
}
.logo-wrap::after{content:none}
.logo{
  width:340px;
  margin:0 auto;
  object-fit:contain;
  background:transparent;
  border-radius:50%;
  overflow:hidden;
  -webkit-mask-image:none;
  mask-image:none;
  clip-path:none;
  will-change: transform, filter;
  transform:none;
  /* subtelna głębia bez "odcięcia" */
  filter: drop-shadow(0 18px 48px rgba(0,0,0,.55)) drop-shadow(0 0 26px rgba(90,160,255,.12)) drop-shadow(0 0 22px rgba(217,176,103,.14));
}

.wordmark{
  margin:10px 0 0;
  font-size:56px;
  letter-spacing:.20em;
  text-transform:uppercase;
  color:rgba(215,180,106,.97);
}
.tagline{
  margin:18px 0 6px;
  font-size:28px;
  font-weight:860;
}
.subtag{
  margin:0;
  font-size:16px;
  color:var(--muted);
}
.script{
  margin:10px 0 0;
  font-size:26px;
  font-weight:700;
  letter-spacing:.02em;
  color:rgba(215,180,106,.95);
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-style: italic;
}
.hero-actions{margin-top:22px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

.pills a{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  color:rgba(242,243,246,.86);
  font-size:13px;
  box-shadow:0 10px 26px rgba(0,0,0,.28);
}
.pills a:hover{border-color:rgba(215,180,106,.35)}

@media (max-width:520px){
  .logo-wrap{width:250px} .logo{width:250px}
  .wordmark{font-size:40px}
  .tagline{font-size:22px}
  .script{font-size:22px}
}

/* Sections */
.section{padding:82px 0; position:relative}
.section.alt{overflow:hidden; isolation:isolate}
.section.alt::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(7,8,19,.90), rgba(7,8,19,.92)),
    url("assets/img/bokeh-1771573503.jpg") center/cover no-repeat;
  opacity:.72;
  z-index:-1;
}
.kicker{color:rgba(215,180,106,.95);font-weight:850;letter-spacing:.14em;text-transform:uppercase;font-size:12px}
.h2{margin:10px 0 10px;font-size:38px}
.lead{margin:0;color:var(--muted);max-width:78ch}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px}
@media (max-width:920px){ .cards{grid-template-columns:1fr} }

.card{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  padding:22px;
  box-shadow:var(--shadow);
}
.card .icon{
  width:46px;height:46px;border-radius:16px;
  display:grid;place-items:center;
  border:1px solid rgba(215,180,106,.35);
  background:linear-gradient(135deg, rgba(215,180,106,.22), rgba(255,255,255,.06));
  font-size:20px;
}
.card h3{margin:12px 0 8px}
.card p{margin:0;color:var(--muted)}

.split{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:start;margin-top:22px}
@media (max-width:920px){ .split{grid-template-columns:1fr} }
.panel{border-radius:var(--radius);border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);padding:22px;box-shadow:var(--shadow)}
.list{margin:10px 0 0;padding-left:18px;color:var(--muted)}
.list li{margin:6px 0}
hr.sep{border:0;height:1px;background:rgba(255,255,255,.10);margin:0}

/* Form */
form label{display:block;margin:10px 0 6px;color:rgba(242,243,246,.86);font-weight:700;font-size:13px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
textarea{min-height:110px;resize:vertical}
input::placeholder, textarea::placeholder{color:rgba(242,243,246,.55)}
input:focus, textarea:focus{border-color:rgba(215,180,106,.55); box-shadow:0 0 0 4px rgba(215,180,106,.12)}

footer{padding:44px 0 50px;border-top:1px solid rgba(255,255,255,.10);color:rgba(242,243,246,.65)}
.footer-row{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;align-items:center}
.social{display:flex;gap:10px}
.social a{width:40px;height:40px;display:grid;place-items:center;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05)}

/* Big tiles menu (dark -> light on hover) */
.tiles{
  margin: 22px auto 0;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
  max-width: 980px;
}
@media (max-width: 920px){
  .tiles{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 520px){
  .tiles{grid-template-columns: 1fr;}
}
.tile{
  position:relative;
  padding:18px 16px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  overflow:hidden;
  min-height: 86px;
}
.tile::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(360px 220px at 20% 20%, rgba(70,160,255,.16), transparent 60%),
              radial-gradient(360px 220px at 80% 80%, rgba(255,170,80,.14), transparent 60%);
  opacity:.55;
  pointer-events:none;
}
.tile-title{
  font-weight: 900;
  letter-spacing:.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(242,243,246,.92);
}
.tile-sub{
  margin-top:8px;
  font-size: 12px;
  color: rgba(242,243,246,.70);
}
.tile:hover{
  transform: translateY(-2px);
  background: rgba(242,243,246,.92);
  border-color: rgba(215,180,106,.55);
}
.tile:hover .tile-title{
  color: rgba(9,10,24,.92);
}
.tile:hover .tile-sub{
  color: rgba(9,10,24,.72);
}


/* Mock-style service tiles (light featured + dark tiles) */
.cards-mock{
  margin-top: 34px;
  align-items: stretch;
}
.cards-mock .card{
  padding: 28px 26px;
  border-radius: 18px;
}
.mock-icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  margin: 0 0 16px;
  font-size: 20px;
}
.card-light{background: linear-gradient(180deg, rgba(22,26,44,.58), rgba(10,12,20,.55)); color: var(--text)}
.card-light p{color: var(--muted)}
.card-light .mock-icon{
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(9,10,24,.12);
}
.card-dark{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.card-dark .mock-icon{
  border:1px solid rgba(215,180,106,.35);
  background: linear-gradient(135deg, rgba(215,180,106,.20), rgba(255,255,255,.06));
}
/* On touch devices, :hover can become "stuck" after tap.
   So we only use :hover when the device supports hover.
   For mobile tap, JS toggles .is-active with the same visuals. */
@media (hover:hover) {
  .cards-mock .card:hover{
    transform: translateY(-2px);
    background: rgba(255,255,255,.92);
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 28px 70px rgba(0,0,0,.45);
    color: #0b0e16;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  }
  .card:hover p{color:#3e424c}
}

.cards-mock .card.is-active{
  transform: translateY(-2px);
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
  color: #0b0e16;
}
.cards-mock .card.is-active p{color:#3e424c}



/* v14 hero: background + logo sizing tuned */
.hero {
  background-image: url('../img/hero-1771573503.jpg');
  background-size: cover;
  background-position: center;
}
.hero .hero-logo {
  width: clamp(140px, 18vw, 240px);
  height: auto;
  margin: 0 auto 12px;
  display:block;
}
@media (max-width: 520px) {
  .hero .hero-logo { width: 170px; }
}


/* v16 hero/logo tuning */
.hero .hero-logo{
  width:clamp(210px, 26vw, 380px);
  height:auto;
  margin:0 auto 12px;
  display:block;
  object-fit:contain;
  /* Let the artwork glow carry the depth.
     Extra drop-shadow makes the logo look like a separate sticker. */
  filter:none;
  transform:translateZ(0);
}
@media (max-width: 520px){
  .hero .hero-logo{ width: 270px; }
  .hero{ padding-top: 84px; }
}
.hero-actions .btn{ position:relative; z-index:3; }


/* Ensure all mock cards can invert on hover */
.cards-mock .card{background:rgba(10,12,18,.42)}
.cards-mock .card:hover{
  background:rgba(245,242,232,.92);
  color:#141218;
}
.cards-mock .card:hover h4,
.cards-mock .card:hover p{color:#141218}


/* v16B: logo mobile */
@media (max-width: 640px){
  .logo-wrap{ width: min(86vw, 380px); margin-bottom: 6px; }
  .logo{ width: min(86vw, 380px); filter: drop-shadow(0 14px 34px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(217,176,103,.12)); }
  .logo-wrap::before{ opacity:.45; filter: blur(18px); inset:-14%; }
}
@media (hover: none){
  /* na dotyku ograniczamy poświatę żeby nie robiła "kuli" */
  .logo-wrap::before{ opacity:.35; }
}


/* v16B: hero primary neutral */
.btn.hero-btn.primary{
  background: rgba(0,0,0,.18);
  border-color: rgba(220,186,120,.55);
  color:#f3efe3;
}
.btn.hero-btn.primary:focus-visible{
  outline:2px solid rgba(217,176,103,.55);
  outline-offset:3px;
}

/*
  Fix: "Skontaktuj się" (hero primary, next to "Zobacz usługi") wasn't turning gold on hover.
  The base hover (.btn.hero-btn:hover) had the same specificity as this later primary rule,
  so the primary background was overriding hover background.
*/
.btn.hero-btn.primary:hover,
.btn.hero-btn.primary:active{
  background: rgba(245,203,99,.65);
  border-color: rgba(245,203,99,.85);
  color: #141212;
}



/* --- Mobile hero polish (requested) --- */
@media (max-width: 640px){
  .hero .logo-wrap{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    overflow: visible !important;
  }
  .hero .orb{
    width: min(340px, 86vw) !important;
    height: min(340px, 86vw) !important;
  }
  .hero .logo{
    width: min(300px, 76vw) !important;
    height: auto !important;
  }
  .hero h1{
    font-size: clamp(2.1rem, 9vw, 3.1rem) !important;
    letter-spacing: 0.22em !important;
  }
  .hero .subhead{
    font-size: clamp(1.1rem, 4.8vw, 1.35rem) !important;
  }
}


/* --- Mobile polish + emblem blend overrides --- */
.btn-primary{

  color: var(--text) !important;
  border: 1px solid rgba(205,166,95,.55) !important;
  box-shadow: none !important;

    background: transparent;
  }
.btn-primary:hover,
.btn-primary:focus-visible{
  background: linear-gradient(135deg, rgba(240,210,140,.95), rgba(185,135,55,.95)) !important;
  color: #1a140b !important;
  border-color: rgba(240,210,140,.95) !important;
}
.btn-secondary{
  background: rgba(255,255,255,.06) !important;
}
.btn-secondary:hover,
.btn-secondary:focus-visible{
  background: linear-gradient(135deg, rgba(240,210,140,.95), rgba(185,135,55,.95)) !important;
  color: #1a140b !important;
  border-color: rgba(240,210,140,.95) !important;
}

#start .logo-wrap{ background: transparent !important; }
#start .logo-wrap:after{
  inset: -18px !important;
  opacity: .78 !important;
}
#start .logo{
  background: transparent !important;
  filter: drop-shadow(0 24px 42px rgba(0,0,0,.55)) drop-shadow(0 0 22px rgba(255,190,95,.18)) !important;
}

@media (max-width: 900px){
  #start{ padding-top: 96px !important; }
  #start .logo-wrap{ width: min(64vw, 280px) !important; margin-bottom: 14px !important; }
  #start h1{ font-size: clamp(34px, 8.5vw, 54px) !important; letter-spacing: .14em !important; }
  #start .tagline{ font-size: 20px !important; }
  #start .slogan{ font-size: 26px !important; margin-top: 10px !important; }
  .hero-actions{ flex-direction: column !important; width: 100% !important; max-width: 360px !important; gap: 12px !important; }
  .hero-actions .btn{ width: 100% !important; justify-content: center !important; }
}


/* --- Mobile Chrome hover/tap fix (added 2026-02-20) --- */


/* ===============================
   FIX: Chrome Mobile Sticky Hover
   =============================== */

/* Hover only on desktop devices */
@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .btn-outline:hover {
    background: linear-gradient(135deg, #d4af37, #b8891c);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, #d4af37, #b8891c);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
  }


  .service-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  }
}

/* Disable sticky hover on mobile */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .btn:focus,
  .btn:active,
  .btn-outline:hover,
  .btn-outline:focus,
  .btn-outline:active,
  .service-tile:hover {
    background: inherit !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .btn:focus-visible,
  .btn-outline:focus-visible {
    outline: none;
  }
}

/* Remove tap highlight */
.btn,
.btn-outline,
.service-tile {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}


@media (max-width: 360px){
  .hero-actions{ flex-direction: column !important; max-width: 360px !important; }
  .hero-actions .btn{ width: 100% !important; max-width: 420px !important; }
}


/* --- Mobile Chrome/Safari consistency fixes (fallback when backdrop-filter is unsupported) --- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .logo-wrap {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .logo-wrap::before { display: none !important; }
}

@media (max-width: 768px) {
  /* Reduce "orb" feeling on mobile - cleaner logo integration */
  .logo-wrap {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .logo-wrap::before { display: none !important; }
  .hero-logo { margin-bottom: 18px !important; }
  .hero-title { font-size: clamp(32px, 10vw, 56px) !important; letter-spacing: 0.18em !important; }
  .hero-subtitle { font-size: 18px !important; }
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: min(92vw, 420px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}



/* v16B hotfix: make header "Skontaktuj się" gold hover match hero buttons */
@media (hover: hover) and (pointer: fine) {
  a.btn.gold:hover, .btn.gold:hover, a.gold:hover, .gold:hover {
    background: rgba(245,203,99,.65) !important;
    color: #141212 !important;
    border-color: rgba(245,203,99,.85) !important;
    box-shadow: 0 0 20px rgba(245,203,99, 0.35) !important;
    filter: saturate(1.02) brightness(1.03) !important;
  }
}
