:root {
  --bg: #09090a;
  --bg-lift: #101012;
  --surface: #151518;
  --line: #2a2a2f;
  --text: #f2ede2;
  --muted: #a9a294;
  --gold: #d4af37;
  --gold-light: #f0d77a;
  --gold-deep: #9c7a1e;
  --gilt: linear-gradient(135deg, #f0d77a 0%, #d4af37 42%, #9c7a1e 100%);
  --gutter: clamp(20px, 5vw, 64px);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.65; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 112px) var(--gutter); }
.section-lift { background: var(--bg-lift); border-block: 1px solid var(--line); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.lede { color: var(--muted); max-width: 58ch; font-size: 1.08rem; margin-bottom: 48px; }

/* Nawigacja */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(9, 9, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nav-brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.06em; text-decoration: none; }
.nav-brand:hover { color: var(--gold); }
.nav-sep { width: 1px; height: 18px; background: var(--line); }
.nav-project { font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.92rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #15110a; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 6px;
  font: 600 0.98rem var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap; transition: filter 0.2s, border-color 0.2s;
}
.btn-gold { background: var(--gilt); color: #15110a; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-line { border-color: rgba(212, 175, 55, 0.45); color: var(--text); }
.btn-line:hover { border-color: var(--gold); }
.btn-dark { background: #0b0b0c; color: var(--gold-light); }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* Hero */
.hero {
  background:
    radial-gradient(760px 520px at 78% 38%, rgba(212, 175, 55, 0.16), transparent 62%),
    radial-gradient(600px 400px at 0% 0%, rgba(212, 175, 55, 0.06), transparent 60%),
    var(--bg);
  padding: clamp(56px, 9vw, 112px) var(--gutter) 0;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.hero-copy { padding-bottom: clamp(56px, 9vw, 112px); }
.hero-kicker { color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-size: 0.98rem; }
.hero-kicker::before { content: ''; width: 36px; height: 1px; background: var(--gilt); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); margin-bottom: 24px; }
.hero p.hero-desc { color: var(--muted); font-size: 1.13rem; max-width: 50ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.portrait {
  position: relative; justify-self: center; align-self: end;
  width: min(380px, 100%); aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(212, 175, 55, 0.55); border-bottom: 0;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.01));
  overflow: hidden;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.portrait-fallback {
  position: absolute; inset: 0; display: grid; place-content: center;
  font-family: var(--serif); font-size: 6rem;
  background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.7;
}
.portrait.has-photo .portrait-fallback { display: none; }
.portrait-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 24px 22px; background: linear-gradient(to top, var(--bg) 8%, transparent); }
.portrait-tag strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.portrait-tag span { color: var(--muted); font-size: 0.9rem; }

/* Usługi */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 48px; }
.service { border-top: 1px solid var(--line); position: relative; padding-top: 24px; margin-bottom: 36px; }
.service::before { content: ''; position: absolute; top: -1px; left: 0; width: 64px; height: 2px; background: var(--gilt); }
.service h3 { font-size: 1.55rem; margin-bottom: 14px; }
.service ul { list-style: none; padding: 0; }
.service li { color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }

/* Dla kogo */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.aud { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(28px, 4vw, 44px); }
.aud h3 { font-size: 1.6rem; margin-bottom: 8px; }
.aud > p { color: var(--muted); margin-bottom: 20px; }
.aud ul { padding-left: 20px; display: grid; gap: 8px; }
.aud li::marker { color: var(--gold); }

/* Jak pracuję */
.process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: s; }
.process li { counter-increment: s; border-top: 1px solid var(--line); padding: 26px 28px 8px 0; }
.process li::before {
  content: counter(s); font-family: var(--serif); font-size: 2.8rem; line-height: 1; display: block; margin-bottom: 12px;
  background: var(--gilt); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.process h3 { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; letter-spacing: 0; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: 0.95rem; }

/* Dlaczego warto */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.trust { background: var(--surface); border: 1px solid rgba(212, 175, 55, 0.5); padding: clamp(28px, 4vw, 48px); border-radius: 4px; }
.trust h3 { font-size: 1.7rem; margin-bottom: 16px; }
.trust p { color: var(--muted); margin-bottom: 14px; }
.trust strong { color: var(--text); font-weight: 600; }
.reasons { list-style: none; padding: 0; display: grid; gap: 28px; margin-top: 28px; }
.reasons h3 { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; letter-spacing: 0; margin-bottom: 4px; }
.reasons p { color: var(--muted); }
.reasons li { padding-left: 20px; border-left: 2px solid var(--gold); }

/* Kontakt – pozłacany pas, główny akcent strony */
.contact { background: var(--gilt); color: #15110a; }
.contact h2 { color: #15110a; }
.contact .lede { color: rgba(21, 17, 10, 0.78); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; margin-bottom: 36px; }
.contact-item { border-top: 1px solid rgba(21, 17, 10, 0.3); padding: 20px 0; }
.contact-item dt { color: rgba(21, 17, 10, 0.7); font-size: 0.85rem; margin-bottom: 4px; }
.contact-item dd { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-item .route { display: inline-block; margin-top: 8px; font-size: 0.9rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.contact :focus-visible { outline-color: #15110a; }

.footer { background: #050506; color: #8d887c; padding: 28px var(--gutter); font-size: 0.85rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer a { text-underline-offset: 3px; }
.footer a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .hero-grid, .why, .audience { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 40px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .nav-project, .nav-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Remont wizualny: Antkowiak Finanse ===== */
:root { --foil: linear-gradient(180deg, #f0d77a, #d4af37 55%, #b0891f); }
h1, h2, h3 { font-optical-sizing: auto; text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-weight: 400; font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.025em; }
.section h2::before { content: ''; display: block; width: 56px; height: 2px; margin-bottom: 24px; background: var(--gilt); }
.lede { line-height: 1.75; }
.btn { border-radius: 4px; letter-spacing: 0.01em; }
.btn-gold { background: var(--foil); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 24px rgba(0,0,0,.35); }
.btn-gold:hover { transform: translateY(-1px); }
.nav { border-bottom: 0; }
.nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.55), transparent); }
.nav-brand { letter-spacing: 0.18em; font-size: 1.15rem; }

/* Hero: linie księgowe w tle, podwójny łuk wokół portretu */
.hero { background: radial-gradient(760px 520px at 78% 38%, rgba(212,175,55,.2), transparent 62%), radial-gradient(600px 400px at 0% 0%, rgba(212,175,55,.07), transparent 60%), repeating-linear-gradient(0deg, rgba(212,175,55,.045) 0 1px, transparent 1px 56px), var(--bg); }
.hero h1 { font-weight: 400; font-size: clamp(2.7rem, 6vw, 4.8rem); letter-spacing: -0.035em; line-height: 1.04; }
.hero-kicker { font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; }
.hero p.hero-desc { line-height: 1.75; font-size: 1.15rem; }
.portrait { outline: 1px solid rgba(212,175,55,.28); outline-offset: 14px; box-shadow: 0 0 90px rgba(212,175,55,.12); }

/* Usługi: złota linia rozwija się po najechaniu */
.service::before { width: 64px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.service:hover::before { width: 100%; }
.service h3 { font-weight: 400; font-size: 1.7rem; }
.service li { transition: color .2s, padding-left .25s; }
.service li:hover { color: var(--text); padding-left: 8px; }

/* Dla kogo, zaufanie, powody */
.aud { position: relative; border-radius: 2px; background: linear-gradient(180deg, #1a1a1f, var(--surface) 60%); transition: border-color .3s, transform .3s; }
.aud::before { content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: var(--gilt); }
.aud:hover { border-color: rgba(212,175,55,.45); transform: translateY(-3px); }
.aud h3 { font-weight: 400; font-size: 1.8rem; }
.trust { position: relative; border-radius: 2px; outline: 1px solid rgba(212,175,55,.2); outline-offset: 8px; background: linear-gradient(160deg, #1c1b17, var(--surface)); }
.trust h3 { font-weight: 400; font-size: 1.9rem; }
.reasons li { border-left: 0; border-image: linear-gradient(180deg, #f0d77a, #9c7a1e) 1; border-left: 2px solid; }
.section-lift { background: var(--bg-lift) repeating-linear-gradient(0deg, rgba(212,175,55,.025) 0 1px, transparent 1px 56px); }

/* Kontakt: pozłacany pas z delikatną fakturą */
.contact { position: relative; }
.contact::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(21,17,10,.05) 0 1px, transparent 1px 14px); pointer-events: none; }
.contact .wrap { position: relative; }
.contact h2::before { background: #15110a; }
.contact-item dd { font-size: 1.25rem; }
.footer { position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,.5), transparent); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-kicker, .hero h1, .hero-desc, .hero-actions { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .1s; } .hero-desc { animation-delay: .22s; } .hero-actions { animation-delay: .34s; }
  .portrait { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) .25s both; }
}
@media (max-width: 560px) { .portrait { outline-offset: 8px; } .trust { outline: 0; } }
