/* Rachunkowa Przystań — arkusz stylów */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/cormorant-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/cormorant-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/cormorant-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/cormorant-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy-900: #030a4d;
  --navy-800: #051072;   /* kolor z logo */
  --navy-700: #13208a;
  --blue-600: #2e3fb0;
  --blue-500: #4a5bc9;
  --blue-200: #c9cff0;
  --blue-100: #e4e8f8;
  --blue-50:  #f3f5fc;
  --ink: #141a33;
  --muted: #535a75;
  --line: #dde1ef;
  --white: #ffffff;
  --ok: #17703d;
  --err: #b42318;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(5, 16, 114, .06), 0 8px 28px rgba(5, 16, 114, .08);
  --shadow-lg: 0 2px 4px rgba(5, 16, 114, .06), 0 18px 48px rgba(5, 16, 114, .14);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy-800); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy-800); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: .75rem;
}

/* --- Przyciski ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy-800); color: #fff; box-shadow: 0 6px 18px rgba(5,16,114,.25); }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--blue-100); color: var(--navy-800); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* --- Nagłówek ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(5,16,114,.06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 210px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .98rem; text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--navy-800); background: var(--blue-50); }
.site-nav li:last-child { margin-left: 10px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .brand img { width: 180px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .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); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(5,16,114,.1);
    padding: 12px 16px 20px; display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: .8rem 1rem; border-radius: 10px; font-size: 1.05rem; }
  .site-nav li:last-child { margin: 10px 0 0; }
  .site-nav .btn { width: 100%; padding: .85rem; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 600px at 78% 30%, rgba(74, 91, 201, .45), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  padding: clamp(56px, 9vw, 110px) 0 clamp(90px, 12vw, 150px);
}
.hero-beams {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    conic-gradient(from 250deg at 74% 38%, transparent 0deg, rgba(255,255,255,.10) 12deg, transparent 26deg),
    conic-gradient(from 70deg at 74% 38%, transparent 0deg, rgba(255,255,255,.08) 12deg, transparent 26deg);
  animation: sweep 9s ease-in-out infinite alternate;
  transform-origin: 74% 38%;
}
@keyframes sweep { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .eyebrow { color: var(--blue-200); }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.86); max-width: 38em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2rem; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: rgba(255,255,255,.85); font-size: .97rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero-visual { display: flex; justify-content: center; }
.lighthouse { position: relative; width: min(440px, 100%); }
.lighthouse::before {
  content: ""; position: absolute; left: 50%; top: 34%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.30), rgba(255,255,255,0) 65%);
  animation: glow 4.5s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.lighthouse img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.25)); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; fill: #fff; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .lighthouse { width: min(260px, 70%); }
  .hero-beams { transform-origin: 50% 14%; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-beams, .lighthouse::before { animation: none; }
  .btn:hover { transform: none; }
}

/* --- Sekcje ---------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--blue-50); }
.section-navy { background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); color: rgba(255,255,255,.88); }
.section-navy h2 { color: #fff; }
.section-navy .eyebrow { color: var(--blue-200); }
.section-navy strong { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

/* Usługi */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-featured { border-color: var(--blue-200); }
.card-featured::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--navy-800), var(--blue-500));
}
.card > p { color: var(--muted); }
.card-icon, .feature-icon, .contact-icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px; background: var(--blue-100); color: var(--navy-800);
  margin-bottom: 18px;
}
.card-icon svg, .feature-icon svg, .contact-icon svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 1.3rem; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 9px; font-size: .98rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat;
}
.note { text-align: center; color: var(--muted); margin: 36px auto 0; max-width: 640px; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Jak pracujemy */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.steps li p { color: var(--muted); margin: 0; font-size: .98rem; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.45rem;
}
@media (min-width: 981px) {
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 49px; right: -24px; width: 24px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--blue-200) 0 5px, transparent 5px 9px);
  }
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Dlaczego */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* O biurze */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-logo { display: flex; justify-content: center; }
.about-logo img { width: min(320px, 100%); height: auto; opacity: .95; }
.about-copy p { font-size: 1.06rem; }
.about-copy .btn { margin-top: 10px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-logo img { width: 200px; }
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--blue-200); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 60px 20px 24px; font-weight: 600; font-size: 1.05rem; color: var(--navy-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23051072' stroke-width='2.6' stroke-linecap='round' d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.06rem; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list .contact-icon { margin: 0; width: 48px; height: 48px; background: #fff; border: 1px solid var(--line); }
.contact-list a { font-weight: 600; text-decoration: none; color: var(--navy-800); font-size: 1.08rem; }
.contact-list a:hover { text-decoration: underline; }
.contact-label { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.contact-form { background: #fff; border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.contact-form label { font-weight: 600; font-size: .93rem; color: var(--ink); }
.contact-form label span { color: var(--err); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form select {
  appearance: none; padding-right: 2.4rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23535a75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .8rem center/18px no-repeat;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(74, 91, 201, .15);
}
.contact-form .invalid { border-color: var(--err) !important; }
.checkbox-row { flex-direction: row; align-items: flex-start; gap: 12px; }
.checkbox-row input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy-800); }
.checkbox-row label { font-weight: 400; font-size: .9rem; color: var(--muted); }
.checkbox-row.invalid label { color: var(--err); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: .97rem; min-height: 1.5em; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: var(--err); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* --- Stopka --------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); font-size: .96rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 36px; padding: 64px 0 40px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 18px; }
.site-footer h2 { font-family: var(--sans); font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0 28px; font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

/* --- Podstrony (polityka prywatności, 404) --------------------------------- */
.page-hero { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; padding: 64px 0 56px; }
.page-hero .eyebrow { color: var(--blue-200); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: 0; }
.prose { padding: 56px 0 88px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page img { width: 180px; margin: 0 auto 24px; }
