/* ============================================
   MACIEK STUDIO — wygląd strony
   Motyw: ciemne tło + światło w światłowodzie
   ============================================ */
:root {
  --bg: #070a12;
  --bg-2: #0c1120;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf5;
  --muted: #9aa4b8;
  --cyan: #33e1ff;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --amber: #fbbf24;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--pink));
  --radius: 18px;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* --- Przyciski --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font: 600 1rem var(--font-body);
  text-decoration: none; cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--grad); color: #0a0d16; box-shadow: 0 10px 30px rgba(51, 225, 255, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(139, 92, 246, 0.4); }
.btn-ghost { color: var(--text); border: 1px solid var(--card-border); background: rgba(255,255,255,0.03); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-block { width: 100%; }

/* --- Nagłówek --- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(7, 10, 18, 0.78); backdrop-filter: blur(14px); border-color: var(--card-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 12px rgba(51,225,255,.35)); }
.logo-text { font: 700 1.2rem var(--font-head); letter-spacing: -0.02em; }
.logo-text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }
.logo-text.small { font-size: 1rem; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.main-nav a:hover { color: var(--text); }
.main-nav .nav-cta { color: var(--text); padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(51,225,255,.4); }
.main-nav .nav-cta:hover { background: rgba(51,225,255,.1); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* --- Hero ze światłowodami --- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 120px 0 90px; }
.fiber-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow { position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(ellipse at center, rgba(139,92,246,.22), transparent 60%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 860px; }
/* przyciemnienie światłowodów pod tekstem, żeby impulsy nie utrudniały czytania */
.hero-content::before { content: ''; position: absolute; inset: -60px -120px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 40% 50%, rgba(7,10,18,.82) 30%, rgba(7,10,18,.5) 55%, transparent 75%); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border: 1px solid var(--card-border); border-radius: 999px; background: rgba(7,10,18,.5); backdrop-filter: blur(6px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(51,225,255,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(51,225,255,0); } 100% { box-shadow: 0 0 0 0 rgba(51,225,255,0); } }
.hero-title { font-size: clamp(2.4rem, 6.4vw, 4.9rem); font-weight: 800; margin: 22px 0 18px; text-shadow: 0 4px 30px rgba(7,10,18,.8); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #c7cede; max-width: 680px; margin: 0 0 34px; text-shadow: 0 2px 16px rgba(7,10,18,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-chips { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--card-border); color: #cdd4e3; font-size: .92rem; backdrop-filter: blur(6px); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* --- Pasek liczb --- */
.trust { border-block: 1px solid var(--card-border); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 36px 0; }
.trust-item strong { display: block; font: 800 2.1rem var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-item span { color: var(--muted); font-size: .95rem; }

/* --- Sekcje --- */
.section { padding: clamp(80px, 11vw, 130px) 0; position: relative; }
.section-kicker { color: var(--cyan); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin: 0 0 12px; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 820px; margin-bottom: 40px; }

/* --- Oferta: zakładki + karty --- */
.pillar-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.pillar-tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-border); color: var(--muted);
  font: 600 .98rem var(--font-body); cursor: pointer; transition: all .25s;
}
.pillar-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar-tab:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.pillar-tab.is-active { color: #0a0d16; background: var(--grad); border-color: transparent; box-shadow: 0 10px 30px rgba(51,225,255,.2); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: start; }
.glow-card {
  position: relative; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border);
  padding: 28px; overflow: hidden; transition: transform .3s, border-color .3s;
  --mx: 50%; --my: 0%;
}
.glow-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(51,225,255,.13), transparent 45%);
}
.glow-card:hover { transform: translateY(-4px); border-color: rgba(51,225,255,.35); }
.glow-card:hover::before { opacity: 1; }
.service-card h3 { font-size: 1.3rem; }
.service-card .desc { color: var(--muted); }
.service-card .price { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--card-border); font-weight: 600; }
.service-card .price em { font-style: normal; color: var(--muted); font-weight: 500; font-size: .9rem; }
.service-card .price b { font-family: var(--font-head); font-size: 1.15rem; }
.service-card .price .promo { color: var(--amber); }
.service-card .price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.service-card .card-cta { display: inline-block; margin-top: 16px; color: var(--cyan); text-decoration: none; font-weight: 600; }
.service-card .card-cta:hover { text-decoration: underline; }
.service-card.is-entering { animation: cardIn .5s both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }

/* --- Panel / makieta --- */
.section-panel { background: radial-gradient(900px 500px at 85% 40%, rgba(139,92,246,.12), transparent 60%), var(--bg-2); }
.panel-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.feature-list li { padding-left: 30px; position: relative; color: #c7cede; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 5px; background: var(--grad); box-shadow: 0 0 14px rgba(51,225,255,.4); }
.mock { position: relative; border-radius: 20px; background: #0e1424; border: 1px solid var(--card-border); box-shadow: var(--shadow), 0 0 80px rgba(139,92,246,.15); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--card-border); background: rgba(255,255,255,.02); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3148; }
.mock-bar span:first-child { background: #ff5f57; } .mock-bar span:nth-child(2) { background: #febc2e; } .mock-bar span:nth-child(3) { background: #28c840; }
.mock-bar em { margin-left: 12px; color: var(--muted); font-style: normal; font-size: .82rem; }
.mock-body { display: grid; grid-template-columns: 140px 1fr; min-height: 330px; }
.mock-side { border-right: 1px solid var(--card-border); padding: 14px 10px; display: grid; align-content: start; gap: 6px; }
.mock-side i { white-space: nowrap; font-style: normal; font-size: .84rem; color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.mock-side i.is-active { background: rgba(51,225,255,.12); color: var(--text); }
.mock-side b { background: var(--pink); color: #0a0d16; border-radius: 999px; padding: 0 7px; font-size: .74rem; margin-left: 4px; }
.mock-cal { display: grid; grid-template-columns: 38px repeat(5, 1fr); grid-auto-rows: 34px; gap: 5px; padding: 14px; font-size: .74rem; color: var(--muted); }
.mock-cal .h { display: flex; align-items: center; }
.mock-cal .d { text-align: center; font-weight: 600; color: #c7cede; align-self: center; }
.mock-cal .c { border-radius: 7px; background: rgba(255,255,255,.035); }
.mock-cal .c.busy { background: linear-gradient(135deg, rgba(139,92,246,.55), rgba(51,225,255,.4)); }
.mock-cal .c.new { animation: newSlot 1.4s ease both; }
@keyframes newSlot { 0% { background: rgba(255,255,255,.035); } 30% { background: var(--amber); box-shadow: 0 0 20px var(--amber); } 100% { background: linear-gradient(135deg, rgba(244,114,182,.7), rgba(251,191,36,.55)); } }
.mock-toast { position: absolute; right: 16px; bottom: 16px; background: rgba(12,17,32,.95); border: 1px solid rgba(251,191,36,.5); padding: 10px 14px; border-radius: 12px; font-size: .85rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: all .4s; }
.mock-toast.show { opacity: 1; transform: none; }

/* --- Realizacje --- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.project-card { padding: 0; }
.project-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #131a2e, #1b1340); display: grid; place-items: center; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .thumb .art { width: 100%; height: 100%; }
.project-card .thumb .ph { font: 800 2.4rem var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.project-card .body { padding: 24px 26px 26px; }
.project-card .tag { display: inline-block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.project-card h3 { font-size: 1.2rem; }

/* Rozwijane opisy: widać początek, całość po najechaniu / kliknięciu (jak w Harmonii) */
.expandable { color: var(--muted); max-height: var(--clamp, 7.5em); overflow: hidden; transition: max-height .5s ease; }
.expandable.has-more { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.expandable.is-open { max-height: var(--full-height, 400em); -webkit-mask-image: none; mask-image: none; }
.expand-toggle { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--cyan); font: 600 .92rem var(--font-body); cursor: pointer; }
@media (hover: hover) {
  .glow-card:hover .expandable, .glow-card:focus-within .expandable { max-height: var(--full-height, 400em); -webkit-mask-image: none; mask-image: none; }
  .glow-card:hover .expand-toggle:not([aria-expanded="true"]) { visibility: hidden; }
}

/* --- Galeria --- */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.gallery-tabs button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--card-border); background: var(--card); color: var(--muted); cursor: pointer; font: 500 .9rem var(--font-body); }
.gallery-tabs button.is-active { color: #0a0d16; background: var(--grad); border-color: transparent; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; border: 1px solid var(--card-border); }

/* --- Proces (oś połączona "światłowodem") --- */
.section-process { background: var(--bg-2); }
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: step; }
.process::before { content: ''; position: absolute; left: 4%; right: 4%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)); opacity: .5; }
.process::after { content: ''; position: absolute; top: 24px; left: 4%; width: 60px; height: 8px; border-radius: 8px; background: radial-gradient(closest-side, #fff, var(--cyan) 50%, transparent); filter: blur(1px); animation: travel 4s linear infinite; }
@keyframes travel { from { left: 4%; } to { left: calc(96% - 60px); } }
.process li { position: relative; counter-increment: step; }
.process li::before { content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(51,225,255,.5); font: 700 1.2rem var(--font-head); margin-bottom: 18px; position: relative; z-index: 1; box-shadow: 0 0 24px rgba(51,225,255,.2); }
.process h3 { font-size: 1.15rem; }
.process p { color: var(--muted); margin: 0; }

/* --- Opinie --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 8px; }
.testimonial-card .who { color: var(--muted); font-weight: 600; margin-top: 12px; }

/* --- FAQ --- */
.faq-wrap { max-width: 880px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--card-border); border-radius: 16px; background: var(--card); padding: 0 22px; transition: border-color .2s; }
.faq-item[open] { border-color: rgba(51,225,255,.35); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font: 600 1.05rem var(--font-head); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 1.4rem; color: var(--cyan); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--muted); }
.service-card .tag { display: none; }

/* --- Kontakt --- */
.section-contact { background: radial-gradient(800px 400px at 15% 30%, rgba(51,225,255,.1), transparent 60%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a, .contact-list b { font: 600 1.2rem var(--font-head); text-decoration: none; }
.contact-form { background: var(--card); border: 1px solid var(--card-border); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: .9rem; color: #c7cede; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--card-border);
  background: rgba(7,10,18,.6); color: var(--text); font: 400 1rem var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(51,225,255,.15); }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.consent input { margin-top: 4px; accent-color: var(--cyan); }
.form-msg { min-height: 1.4em; margin: 12px 0 0; font-weight: 500; }
.form-msg.ok { color: #4ade80; } .form-msg.err { color: #f87171; }

/* --- Stopka --- */
.site-footer { border-top: 1px solid var(--card-border); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* --- Pojawianie się przy przewijaniu --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Telefon / tablet --- */
@media (max-width: 900px) {
  .panel-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr 1fr; }
  .process::before, .process::after { display: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7,10,18,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--card-border);
    padding: 8px 16px 18px; transform: translateY(-120%); transition: transform .35s; z-index: 49;
  }
  .main-nav.is-open { transform: none; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--card-border); }
  .main-nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 1px solid rgba(51,225,255,.4); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .eyebrow { font-size: .72rem; letter-spacing: .04em; padding: 6px 12px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .process { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .pillar-tab { flex: 1 1 calc(50% - 10px); justify-content: center; font-size: .9rem; padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
