/* ============================================================
   Tomasz Kościuczuk, tłumacz przysięgły
   Editorial premium: atrament + krem + lak
   ============================================================ */

:root {
  --ink: #0d1622;
  --ink-2: #131f30;
  --ink-3: #1b2a3f;
  --paper: #f7f2e9;
  --paper-2: #efe8da;
  --wax: #8f1f2e;
  --wax-2: #a8283a;
  --gold: #b5893c;
  --text-ink: #22303f;
  --text-muted: #5b6675;
  --text-paper: #e9e2d4;
  --text-paper-muted: #a9b2bf;
  --line-paper: rgba(13, 22, 34, 0.14);
  --line-ink: rgba(247, 242, 233, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; color: var(--ink); }

h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.22rem; line-height: 1.3; font-weight: 600; }

h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--wax); }
.section-ink h2 em, .cta h2 em, .hero h1 em { color: #d98a94; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wax);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.7; }

.lead { font-size: 1.13rem; line-height: 1.7; }

.dot { opacity: 0.45; padding: 0 2px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 3px;
  text-decoration: none;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-wax { background: var(--wax); color: #fdf9f2; }
.btn-wax:hover { background: var(--wax-2); }

.btn-ghost { border: 1px solid var(--line-ink); color: var(--text-paper); }
.btn-ghost:hover { border-color: rgba(247, 242, 233, 0.45); color: #fff; }

.btn-small { padding: 9px 18px; font-size: 0.85rem; }
.btn-full { justify-content: center; margin-top: 8px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(13, 22, 34, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-ink);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: #f3eee3; font-family: var(--serif); font-size: 1.02rem; font-weight: 500; letter-spacing: 0.01em; }
.brand-text small { color: var(--text-paper-muted); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  color: var(--text-paper);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.25s;
}
.nav-links a:not(.btn):hover { opacity: 1; }

.nav-social {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-ink);
  border-radius: 50%;
  color: var(--text-paper);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-social:hover { border-color: var(--gold); color: var(--gold); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span { width: 24px; height: 2px; background: var(--text-paper); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-paper);
  padding: 150px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 82% 8%, rgba(143, 31, 46, 0.16), transparent 65%),
    radial-gradient(700px 600px at 8% 95%, rgba(181, 137, 60, 0.10), transparent 60%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { color: #f3eee3; }
.hero .lead { color: var(--text-paper-muted); max-width: 54ch; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line-ink);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-paper-muted);
}
.hero-trust svg { color: var(--gold); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(247, 242, 233, 0.28);
  border-radius: 2px;
  pointer-events: none;
}
.hero-frame img { width: 100%; height: auto; }

.hero-badge {
  position: absolute;
  left: -44px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--wax);
  border-radius: 50%;
  box-shadow: 0 20px 45px -12px rgba(143, 31, 46, 0.55);
}
.hero-badge .badge-spin { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.hero-badge text { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; fill: var(--paper); }
.hero-badge .badge-icon { color: var(--paper); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */

.marquee {
  background: var(--paper);
  border-bottom: 1px solid var(--line-paper);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-style: italic;
  color: var(--text-muted);
}
.marquee-group svg { color: var(--wax); opacity: 0.55; flex-shrink: 0; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: var(--text-paper); }
.section-ink h2 { color: #f3eee3; }

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-sub { margin-top: 18px; color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Cards (usługi) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-paper);
  border-left: 1px solid var(--line-paper);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-paper);
  border-bottom: 1px solid var(--line-paper);
  background: transparent;
  transition: background 0.4s var(--ease);
}
.card:hover { background: rgba(255, 255, 255, 0.55); }
.card-img {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body {
  position: relative;
  padding: 44px 30px 42px;
  flex: 1;
}
.card-num {
  position: absolute;
  top: 16px;
  right: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  opacity: 0.55;
}
.card-icon {
  position: absolute;
  top: -27px;
  left: 28px;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line-paper);
  border-radius: 50%;
  color: var(--wax);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover .card-icon { background: var(--wax); border-color: var(--wax); color: var(--paper); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.94rem; color: var(--text-muted); }

/* ---------- Stats band ---------- */

.band {
  position: relative;
  background: var(--ink-2);
  color: var(--text-paper);
  overflow: hidden;
}
.band-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/dokumenty.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.16;
}
.band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--ink-2) 8%, transparent 60%, rgba(143, 31, 46, 0.35));
}
.band-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 500;
  color: #f3eee3;
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat span { font-size: 0.85rem; color: var(--text-paper-muted); display: block; max-width: 24ch; }

/* ---------- O mnie ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.about-grid + .about-grid { margin-top: 90px; }
.about-grid-flip { grid-template-columns: 1.15fr 0.85fr; }
.about-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(13, 22, 34, 0.45);
}
.about-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(13, 22, 34, 0.35));
  z-index: 1;
}
.about-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(247, 242, 233, 0.5);
  border-radius: 2px;
  z-index: 2;
}
.about-ireland {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 22px 50px -22px rgba(13, 22, 34, 0.4);
}
.about-ireland figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 18px 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: #f3eee3;
  background: linear-gradient(180deg, transparent, rgba(13, 22, 34, 0.8));
}
.about-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--wax);
  margin: 10px 0 26px;
}
.about-text p { margin-bottom: 18px; color: var(--text-ink); }
.about-text p:last-child { margin-bottom: 0; }

.about-creds {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line-paper);
  display: grid;
  gap: 16px;
}
.cred { display: flex; align-items: center; gap: 15px; font-size: 0.93rem; color: var(--text-ink); font-weight: 500; }
.cred-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line-paper);
  border-radius: 50%;
  color: var(--wax);
  flex-shrink: 0;
}

/* ---------- PROGRES ---------- */

.progres {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}
.progres .lead { color: var(--text-paper-muted); margin-bottom: 18px; }
.progres p { color: var(--text-paper-muted); }
.progres h2 { margin-bottom: 26px; }

.progres-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-ink);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f3eee3;
}
.flow-step svg { color: var(--gold); }
.flow-arrow { color: var(--wax-2); flex-shrink: 0; }

.progres-visual {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

/* ---------- Proces ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line-paper);
}
.step { padding: 44px 30px 10px 0; position: relative; }
.step + .step { padding-left: 30px; border-left: 1px solid var(--line-paper); }
.step-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--wax);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 20px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 10px; }
.step p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  background: var(--ink);
  color: var(--text-paper);
  padding: 110px 0;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 15% 20%, rgba(143, 31, 46, 0.22), transparent 65%);
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}
.cta h2 { color: #f3eee3; margin-bottom: 22px; }
.cta .lead { color: var(--text-paper-muted); max-width: 44ch; }

.cta-panel {
  background: rgba(247, 242, 233, 0.04);
  border: 1px solid var(--line-ink);
  border-radius: 6px;
  padding: 34px;
  display: grid;
  gap: 8px;
}
.cta-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s var(--ease);
}
.cta-line:hover { background: rgba(247, 242, 233, 0.06); }
.cta-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-ink);
  border-radius: 50%;
  color: var(--gold);
  flex-shrink: 0;
}
.cta-line small { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-paper-muted); }
.cta-line strong { color: #f3eee3; font-size: 1.02rem; font-weight: 600; }

/* ---------- Footer ---------- */

.footer {
  background: #0a111b;
  color: var(--text-paper-muted);
  padding: 34px 0;
  font-size: 0.84rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer a { color: var(--text-paper); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: #fff; }

/* ---------- Podstrona: polityka prywatności ---------- */

.page-head {
  background: var(--ink);
  padding: 150px 0 64px;
}
.page-head h1 { color: #f3eee3; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

.legal { max-width: 780px; }
.legal h2 {
  font-size: 1.4rem;
  margin: 44px 0 14px;
}
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--wax); text-underline-offset: 3px; }
.legal-updated {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-paper);
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
}

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hero-badge .badge-spin { animation: none; }
  .btn:hover { transform: none; }
  .card-img img { transition: none; }
  .card:hover .card-img img { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 70px; }
  .hero-visual { max-width: 440px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .band-inner { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .about-grid-flip { grid-template-columns: 1fr; gap: 44px; }
  .about-grid + .about-grid { margin-top: 64px; }
  .about-frame, .about-ireland { max-width: 460px; }
  .progres { grid-template-columns: 1fr; gap: 50px; }
  .cta-inner { grid-template-columns: 1fr; gap: 50px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step { border-bottom: 1px solid var(--line-paper); padding-bottom: 40px; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 70px; }
  .brand-text small { display: none; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    background: rgba(13, 22, 34, 0.98);
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { font-size: 1.25rem; }
  .nav-burger { display: flex; position: relative; z-index: 110; }
  .cards { grid-template-columns: 1fr; }
  .band-inner { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; }
  .hero-badge { left: auto; right: -14px; bottom: -30px; width: 104px; height: 104px; }
  .cta-panel { padding: 22px; }
  .footer-inner { justify-content: center; text-align: center; }
}
