/* ── wieniu.com — baza projektów ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0b;
  --bg2: #100d0e;
  --surf: #151113;
  --surf2: #1d1719;
  --border: #2b2325;
  --text: #f2eeee;
  --text2: #9a8f90;
  --accent: #ff4444;
  --accent-soft: rgba(255, 68, 68, .12);
  --green: #4ade80;
  --amber: #fbbf24;
  --r: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', Consolas, monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--accent); color: #fff; }

/* ── tło ambientowe ── */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; }
.glow-a { width: 60vw; height: 60vw; background: radial-gradient(circle, #3a1012 0%, transparent 70%); top: -20vw; left: -15vw; animation: drift-a 26s ease-in-out infinite alternate; }
.glow-b { width: 50vw; height: 50vw; background: radial-gradient(circle, #2a0d18 0%, transparent 70%); bottom: -18vw; right: -12vw; animation: drift-b 32s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-6vw, -8vh) scale(.95); } }

/* ── nawigacja ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 11, .72);
  border-bottom: 1px solid rgba(43, 35, 37, .6);
}
.nav-in { max-width: 1140px; margin: 0 auto; padding: 0 28px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 20px; font-weight: 900; letter-spacing: -.8px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 9px; }
.brand em { color: var(--accent); font-style: normal; }
.brand svg { display: block; border-radius: 8px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.lang-sw { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang-sw a, .lang-sw span { padding: 5px 11px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-decoration: none; }
.lang-sw span { color: var(--accent); background: var(--accent-soft); }
.lang-sw a { color: var(--text2); transition: color .2s; }
.lang-sw a:hover { color: var(--text); }

/* ── hero ── */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; padding: 120px 28px 80px; max-width: 1140px; margin: 0 auto; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(46px, 8.5vw, 96px); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.hero h1 .dot { color: var(--accent); }
.hero .lede { margin-top: 30px; font-size: clamp(16px, 2vw, 20px); color: var(--text2); max-width: 56ch; line-height: 1.7; }
.hero-cta { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 28px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none; font-family: var(--font); cursor: pointer; border: none; transition: transform .18s, background .2s, border-color .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 32px rgba(255, 68, 68, .25); }
.btn-primary:hover { background: #ff6161; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text2); transform: translateY(-2px); }
.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); color: var(--text2); font-size: 22px; animation: bob 2.2s ease-in-out infinite; text-decoration: none; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }

/* ── pasek przewijany ── */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 17px 0; background: rgba(21, 17, 19, .5); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrolltrack 30s linear infinite; }
.marquee-track span { font-family: var(--mono); font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text2); white-space: nowrap; }
.marquee-track span::after { content: '●'; color: var(--accent); margin-left: 56px; font-size: 8px; vertical-align: middle; }
@keyframes scrolltrack { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── sekcje ── */
.section { max-width: 1140px; margin: 0 auto; padding: 110px 28px 30px; }
.sec-head { margin-bottom: 54px; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }

/* ── projekty ── */
.proj-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 22px; }
.proj-card { background: var(--surf); border: 1px solid var(--border); border-radius: var(--r); padding: 36px; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; }
.proj-card:hover { transform: translateY(-5px); border-color: #3d3235; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; padding: 6px 13px; border-radius: 20px; width: fit-content; }
.badge-live { color: var(--green); background: rgba(74, 222, 128, .09); border: 1px solid rgba(74, 222, 128, .25); }
.badge-soon { color: var(--amber); background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .25); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, .4); } 50% { opacity: .6; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } }
.proj-card h3 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin: 22px 0 12px; }
.proj-card p { color: var(--text2); font-size: 15px; max-width: 52ch; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chips span { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--text2); border: 1px solid var(--border); padding: 5px 11px; border-radius: 7px; }
.proj-cta { margin-top: 28px; }
.proj-visual { margin-top: 34px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg2); line-height: 0; }
.proj-visual svg { width: 100%; height: auto; display: block; }

.teaser { justify-content: flex-start; background: repeating-linear-gradient(-45deg, var(--surf) 0 14px, rgba(29, 23, 25, .55) 14px 28px); }
.teaser h3 { color: var(--text); }
.dots span { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--text2); animation: think 1.4s ease-in-out infinite; }
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
.dots { margin-top: auto; padding-top: 34px; }
@keyframes think { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }

/* ── o mnie ── */
.about-card { background: linear-gradient(135deg, var(--surf) 0%, var(--bg2) 100%); border: 1px solid var(--border); border-radius: var(--r); padding: 52px; display: grid; grid-template-columns: auto 1fr; gap: 38px; align-items: center; }
.about-mark { width: 86px; height: 86px; border-radius: 24px; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 40px rgba(255, 68, 68, .3); }
.about-card p { font-size: clamp(16px, 2vw, 19px); line-height: 1.75; color: var(--text); max-width: 62ch; }
.about-card p b { color: var(--accent); }

/* ── kontakt ── */
.contact-wrap { text-align: center; padding-bottom: 40px; }
.contact-wrap h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 16px; }
.contact-wrap p { color: var(--text2); font-size: 16px; margin-bottom: 36px; }
.mail-btn { font-size: clamp(16px, 2.4vw, 21px); padding: 19px 38px; }

/* ── stopka ── */
.site-footer { border-top: 1px solid var(--border); margin-top: 90px; }
.footer-in { max-width: 1140px; margin: 0 auto; padding: 30px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text2); }
.footer-in a { color: var(--text2); text-decoration: none; transition: color .2s; }
.footer-in a:hover { color: var(--text); }
.footer-links { display: flex; gap: 22px; }

/* ── animacje wejścia ── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .12s; }
.rv-d2 { transition-delay: .24s; }

/* ── podstrony (polityka) ── */
.doc { max-width: 760px; margin: 0 auto; padding: 140px 28px 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 10px; }
.doc .date { font-family: var(--mono); font-size: 13px; color: var(--text2); margin-bottom: 44px; }
.doc h2 { font-size: 20px; font-weight: 800; margin: 38px 0 12px; }
.doc p, .doc li { color: var(--text2); font-size: 15px; line-height: 1.8; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc a { color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  .proj-grid { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; padding: 36px; gap: 24px; }
  .nav-links a.nav-item { display: none; }
  .hero { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .glow-a, .glow-b, .marquee-track, .scroll-cue, .pulse, .dots span { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
