/* ============================================================
   CONSULTING POLSKA — global stylesheet
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Tokens ---------- */
:root {
  --navy:        #0F2A6E;
  --navy-deep:   #091B4A;
  --navy-darker: #050E2A;
  --navy-bright: #1E4AB8;

  --gold:        #C9A24B;
  --gold-light:  #E1BA63;
  --gold-deep:   #A3801F;
  --gold-soft:   #F2E4BE;

  --ivory:       #F8F6F1;
  --ivory-warm:  #F2EEE3;
  --ivory-deep:  #EAE5D7;
  --white:       #FFFFFF;

  --ink:         #0A1124;
  --ink-soft:    #2A3148;
  --ink-muted:   #5B6280;
  --muted:       #8A8F9F;

  --line:        #E4E1D6;
  --line-soft:   #ECE9DE;
  --line-on-navy: rgba(255,255,255,0.10);
  --line-on-navy-strong: rgba(255,255,255,0.22);

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", "Source Serif Pro", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1320px;
  --container-narrow: 1080px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-card: 0 1px 2px rgba(10,17,36,.04), 0 12px 32px -8px rgba(10,17,36,.08);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: var(--navy-deep); }

/* ---------- Type ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.kicker.no-line::before { display: none; }
.kicker.on-navy { color: var(--gold-light); }
.kicker.on-navy::before { background: var(--gold-light); }
.kicker.muted { color: var(--ink-muted); }
.kicker.muted::before { background: var(--ink-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.h-display {
  font-size: clamp(56px, 7.2vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
}
.h-display em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.h-1 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.h-1 em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.015em;
}
.h-2 {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.h-2 em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink-soft);
}
.bg-navy .h-1 em, .bg-navy .h-2 em, .bg-navy .h-display em { color: rgba(255,255,255,.7); }

.h-3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

.body-lg { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.body { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.body-sm { font-size: 13px; line-height: 1.55; color: var(--ink-muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: var(--container-narrow); }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section { padding: clamp(72px, 9vw, 140px) 0; position: relative; }
.section.tight { padding: clamp(48px, 6vw, 96px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .left .kicker { margin-bottom: 18px; }
.section-head .right { padding-bottom: 4px; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

.bg-ivory { background: var(--ivory); }
.bg-ivory-warm { background: var(--ivory-warm); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy-deep); color: var(--white); }
.bg-navy.deeper { background: var(--navy-darker); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy .h-display, .bg-navy .h-1, .bg-navy .h-2, .bg-navy .h-3 { color: var(--white); }
.bg-navy .lead, .bg-navy .body-lg, .bg-navy .body { color: rgba(255,255,255,.78); }
.bg-navy .body-sm { color: rgba(255,255,255,.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-navy { background: var(--navy-deep); color: var(--white); }
.btn-navy:hover { background: var(--navy-darker); transform: translateY(-1px); }
.btn-navy:disabled,
.btn-primary:disabled,
.btn:disabled {
  background: var(--ivory-deep);
  color: var(--ink-muted);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.btn-ghost { background: transparent; border-color: var(--ink-soft); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn-ghost-on-navy { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost-on-navy:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.btn-link:hover { gap: 14px; }
.btn-link.on-navy { color: var(--gold-light); }
.btn-link.gold { color: var(--gold-deep); }

.btn-sm { padding: 10px 16px; font-size: 13px; }

.btn-lg {
  padding: 18px 28px;
  font-size: 15px;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(10,17,36,.06), 0 14px 28px -10px rgba(201,162,75,.55);
}
.btn-lg.btn-primary:hover {
  box-shadow: 0 1px 2px rgba(10,17,36,.08), 0 18px 36px -10px rgba(201,162,75,.7);
}
.btn-lg .arrow { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.on-navy {
  background: rgba(5, 14, 42, 0.65);
  border-bottom-color: var(--line-on-navy);
  color: var(--white);
}
.site-header .nav-inner {
  height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 32px; width: auto; display: block; }
@media (max-width: 540px) { .brand-logo { height: 26px; } }

.nav-list { display: flex; justify-content: flex-start; gap: 4px; margin-left: 16px; }
.nav-list a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-list a:hover { background: rgba(15, 42, 110, 0.06); color: var(--navy-deep); }
.nav-list a[aria-current="page"] { color: var(--navy-deep); font-weight: 600; }
.site-header.on-navy .nav-list a { color: rgba(255,255,255,.7); }
.site-header.on-navy .nav-list a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.site-header.on-navy .nav-list a[aria-current="page"] { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 4px;
}
.lang .sep { opacity: .35; }
.lang .active { color: var(--ink); }
.site-header.on-navy .lang { color: rgba(255,255,255,.55); }
.site-header.on-navy .lang .active { color: var(--white); }

.phone-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: var(--white);
  font-weight: 600;
  font-size: 13.5px;
  transition: background .2s var(--ease);
}
.phone-cta:hover { background: var(--navy-darker); }
.phone-cta .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--gold);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,162,75,.6); }
  70% { box-shadow: 0 0 0 8px rgba(201,162,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,75,0); }
}
.site-header.on-navy .phone-cta { background: var(--gold); color: var(--navy-deep); }
.site-header.on-navy .phone-cta:hover { background: var(--gold-light); }

.mobile-toggle { display: none; }
@media (max-width: 980px) {
  .nav-list, .lang { display: none; }
  .site-header .nav-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .phone-cta .label { display: none; }
  .phone-cta { padding: 11px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-darker);
  color: rgba(255,255,255,.7);
  padding: 80px 0 32px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 56px;
  margin-bottom: 64px;
}
@media (max-width: 880px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand-word { color: var(--white); margin-bottom: 20px; display: block; }
.footer-brand .tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
  max-width: 28ch;
}
.footer-brand .meta { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: color .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col a:hover { color: var(--white); }
.footer-col a .ext { opacity: .4; font-size: 11px; }

.contact-block address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
}
.contact-block .phone {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 18px;
  display: block;
  margin-top: 12px;
}
.contact-block .email { color: var(--white); }

.site-footer .bottom {
  border-top: 1px solid var(--line-on-navy);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.site-footer .bottom a:hover { color: rgba(255,255,255,.8); }
.site-footer .bottom .legal { display: flex; gap: 24px; }
.site-footer .bottom .legal a { color: rgba(255,255,255,.55); }
.site-footer .bottom .legal a:hover { color: var(--white); }

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-on-navy-strong);
  border-radius: 50%;
  color: rgba(255,255,255,.75);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.footer-socials a:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.footer-socials svg { width: 16px; height: 16px; }

/* ---------- Consents (form) ---------- */
.consents {
  margin-top: 22px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 14px 12px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.consent:has(input:checked) {
  border-color: var(--gold);
  background: var(--white);
}
.consent.required { border-left: 3px solid var(--gold-deep); padding-left: 14px; }
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1.5px solid var(--ink-soft);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.consent input[type="checkbox"]:hover { border-color: var(--navy-deep); }
.consent input[type="checkbox"]:checked {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}
.consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 0px;
  width: 6px; height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.consent label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.consent label .req,
.consent label .opt {
  display: none;
}
.consent label .req-mark {
  color: #C0392B;
  font-weight: 700;
  margin-right: 6px;
  font-size: 14px;
  display: inline-block;
  vertical-align: -1px;
}
.consent:has(input:checked) label .req-mark {
  display: none;
}

.consent label a {
  color: var(--navy-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 600;
}
.consent label a:hover { color: var(--navy-bright); }
.consent .small {
  display: none;
}

/* ---------- Success modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 42, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: var(--ivory);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 56px 48px 40px;
  box-shadow: 0 24px 80px rgba(5, 14, 42, .45);
  position: relative;
  transform: translateY(16px) scale(.98);
  transition: transform .35s var(--ease);
}
.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  transition: background .2s, color .2s;
  cursor: pointer;
}
.modal-close:hover { background: var(--ivory-deep); color: var(--ink); }
.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.modal-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.modal-card h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}
.modal-card h3 em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink-soft);
}
.modal-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.modal-meta {
  margin: 28px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.modal-meta .row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.modal-meta .row svg { color: var(--gold-deep); flex-shrink: 0; }
.modal-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: end;
  padding-bottom: 100px;
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-bottom: 56px; }
}

.hero-display {
  margin-top: 28px;
  margin-bottom: 36px;
}
.hero-display .underline-word {
  display: inline-block;
  position: relative;
}
.hero-display .underline-word::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 0.14em;
  background: var(--gold);
  z-index: -1;
  opacity: .9;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  align-items: center;
}

/* ---------- Hero — trust bullets ---------- */
.hero-points {
  list-style: none;
  margin: 48px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 18px;
  max-width: 640px;
}
@media (max-width: 720px) { .hero-points { grid-template-columns: 1fr; } }
.hero-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}
.hero-points li:first-child {
  grid-column: 1 / -1;
}
.hero-points li .ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.hero-points li .ico svg { width: 11px; height: 11px; }
.hero-points li strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.005em;
  margin-bottom: 2px;
  line-height: 1.35;
}
.hero-points li > div > span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.hero-tagrow {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-tagrow .lbl {
  color: var(--gold-deep);
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.hero-tagrow .tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
}
.hero-tagrow .tags li {
  position: relative;
  padding-left: 14px;
}
.hero-tagrow .tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Inline form card */
.calc-card.is-highlighted {
  animation: calc-pulse 2.4s var(--ease);
}
@keyframes calc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,162,75, .55), 0 1px 2px rgba(10,17,36,.06), 0 18px 40px -10px rgba(10,17,36,.22); }
  30%  { box-shadow: 0 0 0 22px rgba(201,162,75, 0), 0 1px 2px rgba(10,17,36,.06), 0 24px 48px -8px rgba(10,17,36,.28); }
  60%  { box-shadow: 0 0 0 0 rgba(201,162,75, .35), 0 1px 2px rgba(10,17,36,.06), 0 24px 48px -8px rgba(10,17,36,.28); }
  100% { box-shadow: 0 0 0 16px rgba(201,162,75, 0), 0 1px 2px rgba(10,17,36,.04), 0 12px 32px -8px rgba(10,17,36,.08); }
}

.calc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.calc-card .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}
.calc-card .header .kicker { margin-bottom: 0; }
.calc-card .header .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-soft);
  color: var(--gold-deep);
  padding: 5px 9px;
  border-radius: 4px;
  font-weight: 600;
}
.calc-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.calc-card .sub { font-size: 13px; color: var(--ink-muted); margin-bottom: 22px; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--ivory);
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip.active {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

.calc-card .submit {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.calc-card .submit .btn { flex: 1; justify-content: center; }
.legal-note {
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-top: 14px;
  max-width: 70ch;
}
.calc-card .legal-note {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 14px;
  line-height: 1.5;
}

/* Mini-chart background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,42,110,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,42,110,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 80%, transparent);
}
.hero-bg .glow {
  position: absolute;
  right: -200px;
  top: 200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,75,.18), transparent 60%);
  filter: blur(40px);
}

/* ---------- Ticker / counter strip ---------- */
.stats-strip {
  background: var(--navy-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 80px 100%;
  opacity: .6;
}
.stats-strip .inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 880px) { .stats-strip .inner { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 56px 32px;
  border-right: 1px solid var(--line-on-navy);
  position: relative;
}
.stat:last-child { border-right: none; }
@media (max-width: 880px) {
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-on-navy); }
}
.stat .num {
  font-family: var(--font-sans);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat .num .unit {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.45em;
  margin-left: 2px;
  vertical-align: 0.55em;
}
.stat .num .plus { color: var(--gold-light); }
.stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 16px;
}
.stat .sub {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-top: 8px;
  max-width: 26ch;
}

/* ---------- Service / Offer block ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 880px) { .offer-grid { grid-template-columns: 1fr; } }

.offer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
}
.offer-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: 0.16em;
}
.offer-card h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.offer-card .desc { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.offer-card .bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.offer-card .bullets li {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.offer-card .bullets li::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 11px;
}
.offer-card .foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Process / timeline ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 880px) { .process { grid-template-columns: 1fr; } }
.process::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.process-step {
  padding: 0 24px 0 0;
  position: relative;
  cursor: default;
}
.process-step .dot {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--ivory);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.process-step .dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.process-step:hover .dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 28px -10px rgba(201,162,75,.55);
}
.process-step:hover .dot::after {
  opacity: 1;
  transform: scale(1);
}
.bg-navy .process-step .dot {
  background: var(--navy-deep);
  border-color: var(--line-on-navy-strong);
  color: var(--gold-light);
}
.bg-navy .process-step:hover .dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 14px 28px -10px rgba(201,162,75,.65);
}
.bg-navy .process::before { background: var(--line-on-navy); }
.process-step h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.process-step:hover h4 {
  color: var(--gold-light);
  transform: translateX(2px);
}
.process-step .desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  transition: color .35s var(--ease);
}
.bg-navy .process-step .desc { color: rgba(255,255,255,.65); }
.bg-navy .process-step:hover .desc { color: rgba(255,255,255,.88); }

/* ---------- Logos strip ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .logos { grid-template-columns: repeat(2, 1fr); } }
.logo-cell {
  padding: 32px 16px;
  border-right: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  min-height: 110px;
}
.logo-cell:last-child { border-right: none; }
.logo-cell .name { font-weight: 700; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.05em; text-transform: uppercase; }
.logo-cell .industry { font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: 0.14em; }

/* ---------- Case / testimonial ---------- */
.case-pull {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) { .case-pull { grid-template-columns: 1fr; } }
.case-pull .quote {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
}
.bg-navy .case-pull .quote { color: var(--white); }
.case-pull .quote::before {
  content: "“";
  display: block;
  font-size: 80px;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 12px;
  font-family: var(--font-serif);
}
.case-pull .attribution {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.case-pull .avatar {
  width: 52px; height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.case-pull .who .name { font-weight: 700; font-size: 15px; }
.case-pull .who .role { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.bg-navy .case-pull .who .name { color: var(--white); }
.bg-navy .case-pull .who .role { color: rgba(255,255,255,.6); }

.case-meta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: grid;
  gap: 20px;
}
.bg-navy .case-meta { background: rgba(255,255,255,.04); border-color: var(--line-on-navy-strong); }
.case-meta .row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.bg-navy .case-meta .row { border-bottom-color: var(--line-on-navy); }
.case-meta .row:last-child { padding-bottom: 0; border-bottom: none; }
.case-meta .row .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.bg-navy .case-meta .row .k { color: rgba(255,255,255,.55); }
.case-meta .row .v { font-size: 16px; color: var(--ink); font-weight: 600; }
.bg-navy .case-meta .row .v { color: var(--white); }
.case-meta .row .v.big { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; color: var(--gold-deep); }
.bg-navy .case-meta .row .v.big { color: var(--gold-light); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: 24px;
  padding: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 110%, rgba(201,162,75,.25), transparent 50%),
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 80px 100%;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-headline { text-wrap: balance; }
.cta-headline .hl {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--gold-light);
  padding: 0 .05em;
  background-image: linear-gradient(to top, rgba(201,162,75,.55) 0, rgba(201,162,75,.55) .18em, transparent .18em);
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.cta-band .lead { color: rgba(255,255,255,.78); margin-top: 16px; }
.cta-band .right { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (max-width: 880px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- News / cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.news-card:hover { transform: translateY(-3px); border-color: var(--navy-deep); }
.news-card .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.news-card .meta .tag { color: var(--gold-deep); }
.news-card h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.news-card .excerpt { font-size: 14px; color: var(--ink-muted); }
.news-card .more { margin-top: auto; }

/* News footer — CTA to full archive */
.news-foot {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ---------- Aktualności page ---------- */
.news-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.news-toolbar .eyebrow { color: var(--gold-deep); flex-shrink: 0; }
.news-toolbar .chip-group { flex-wrap: wrap; }

.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
}
.news-entry {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
  transition: background .4s var(--ease);
  padding-left: 24px;
  padding-right: 24px;
  margin-left: -24px;
  margin-right: -24px;
  border-radius: 4px;
}
.news-entry:last-child { border-bottom: none; }
.news-entry.is-target {
  background: linear-gradient(to right, rgba(201,162,75,.10), transparent 60%);
  border-left: 3px solid var(--gold);
  padding-left: 21px;
}
.news-entry .entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.news-entry .entry-meta .tag {
  color: var(--gold-deep);
  font-weight: 700;
}
.news-entry h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  text-wrap: balance;
}
.news-entry .lead-row {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 62ch;
  text-wrap: pretty;
}
.news-entry .entry-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 70ch;
}
.news-entry .entry-body p:last-child { margin-bottom: 0; }

/* ---------- Aktualności — programs aside ---------- */
.programs-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 28px 12px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.programs-aside .aside-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.programs-aside .aside-kicker::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.programs-aside .programs-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.programs-aside .programs-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
  position: relative;
  transition: padding-left .25s var(--ease);
}
.programs-aside .programs-list li:last-child { border-bottom: none; }
.programs-aside .programs-list li::before {
  content: "";
  position: absolute;
  left: -28px; top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.programs-aside .programs-list li:hover { padding-left: 8px; }
.programs-aside .programs-list li:hover::before { opacity: 1; }
.programs-aside .ab {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
  padding-top: 2px;
}
.programs-aside .meta { display: flex; flex-direction: column; gap: 4px; }
.programs-aside .full {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.programs-aside .dim {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Aktualności — blog list cards ---------- */
.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
  /* override the older padding rule */
}
.news-list .news-post {
  display: block;
  padding: 32px 28px;
  margin-bottom: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.news-list .news-post:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 1px 2px rgba(10,17,36,.04), 0 18px 36px -14px rgba(10,17,36,.16);
}
.news-list .news-post .post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.news-list .news-post .post-meta .tag {
  color: var(--gold-deep);
  font-weight: 700;
}
.news-list .news-post h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  text-wrap: balance;
}
.news-list .news-post .excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 64ch;
}
.news-list .news-post .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
  text-transform: none;
  letter-spacing: 0;
}
.news-list .news-post:hover .more { gap: 12px; }
.news-list .news-post .more svg { transition: transform .3s var(--ease); }

/* ---------- Aktualności — single detail view ---------- */
.news-detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 4px;
}
.news-detail .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 32px;
  padding: 8px 12px 8px 4px;
  border-radius: 4px;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.news-detail .back-link:hover { color: var(--navy-deep); gap: 12px; }
.news-detail .detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.news-detail .detail-meta .tag {
  color: var(--gold-deep);
  font-weight: 700;
  padding: 6px 12px;
  border: 1px solid var(--gold-soft);
  background: rgba(201,162,75,.08);
  border-radius: 999px;
}
.news-detail h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.news-detail .detail-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  text-wrap: pretty;
  font-weight: 500;
}
.news-detail .detail-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 68ch;
  text-wrap: pretty;
}
.news-detail .detail-body p:first-child::first-letter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 64px;
  line-height: 0.85;
  float: left;
  padding: 6px 14px 0 0;
  color: var(--gold-deep);
  font-weight: 500;
}
.news-detail .detail-foot {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: var(--ivory);
  color: var(--ink);
  padding: 56px 0 88px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,42,110,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,42,110,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 80% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 30%, black, transparent 70%);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -180px; top: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(201,162,75,.28), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.page-hero .inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) {
  .page-hero .inner { grid-template-columns: 1fr; gap: 48px; align-items: start; }
}
.page-hero .hero-main { min-width: 0; }
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.crumbs a:hover { color: var(--navy-deep); }
.crumbs .sep { opacity: .5; }
.crumbs .current { color: var(--gold-deep); }

.page-hero h1 { max-width: 14ch; font-size: clamp(48px, 6vw, 92px); line-height: 1.08; }
.page-hero h1 em {
  letter-spacing: 0.005em;
  word-spacing: 0.04em;
  padding-right: 0.1em;
  line-height: 1.05;
  display: inline-block;
}
.page-hero .lead { margin-top: 32px; max-width: 56ch; color: var(--ink-soft); }

.page-hero .hero-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.page-hero .hero-aside .aside-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero .hero-aside .aside-kicker::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.page-hero .hero-aside .row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .hero-aside .row:last-child { border-bottom: none; padding-bottom: 0; }
.page-hero .hero-aside .row:first-of-type { padding-top: 0; }
.page-hero .hero-aside .row .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.page-hero .hero-aside .row .v {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  line-height: 1.35;
}
.page-hero .hero-aside .row .v.big {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}
.page-hero .hero-aside .row .v .unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-left: 4px;
}

/* ---------- About / story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }
.story-grid p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 18px; }
.story-grid p:first-child::first-letter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 80px;
  line-height: 0.85;
  float: left;
  padding: 8px 16px 0 0;
  color: var(--gold-deep);
  font-weight: 500;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }
.principle {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.principle .num {
  font-family: var(--font-mono);
  color: var(--gold-deep);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.principle h4 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.principle p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Team / leadership ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.member {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}
.member .photo {
  aspect-ratio: 4/5;
  background:
    linear-gradient(135deg, var(--ivory-warm), var(--ivory-deep));
  position: relative;
  display: grid;
  place-items: center;
  color: var(--navy-deep);
}
.member .photo .initials {
  font-size: 96px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(15,42,110,.18);
  font-family: var(--font-serif);
  font-style: italic;
}
.member .photo .frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(15,42,110,.1);
}
.member .info { padding: 22px; }
.member .name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.member .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 6px;
}
.member .bio { font-size: 13.5px; color: var(--ink-muted); margin-top: 14px; line-height: 1.55; }

/* ---------- Founder (O nas) ---------- */
.founder-card {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: 56px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 1px 2px rgba(10,17,36,.04), 0 24px 56px -20px rgba(10,17,36,.16);
}
@media (max-width: 880px) {
  .founder-card { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
}

.founder-portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy-darker);
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.founder-portrait .frame-rule {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
  border-radius: 2px;
}

.founder-info {
  padding-top: 4px;
}
.founder-info .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-deep);
}
.founder-info .eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
}
.founder-name {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
  margin-top: 18px;
}
.founder-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.founder-bio {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.founder-bio p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 60ch;
}
.founder-specs {
  list-style: none;
  margin: 32px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.founder-specs li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}
.founder-specs .ico {
  width: 24px; height: 24px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.founder-foot {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.founder-social {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.founder-social:hover {
  background: var(--navy-deep);
  color: var(--white);
  border-color: var(--navy-deep);
}
.founder-social svg { width: 16px; height: 16px; }

/* ---------- Programs / funding sources table ---------- */
.programs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.program {
  display: grid;
  grid-template-columns: 80px 1.4fr 1fr 1fr 160px;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: background .2s var(--ease);
}
.program:hover { background: var(--white); }
@media (max-width: 880px) {
  .program {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .program .col-amount, .program .col-deadline { font-size: 13px; }
}
.program .col-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
}
.program .col-name { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.program .col-name .sub { display: block; font-size: 13px; font-weight: 400; color: var(--ink-muted); margin-top: 4px; letter-spacing: 0; }
.program .col-amount {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 15px;
}
.program .col-deadline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}
.program .col-action { display: flex; justify-content: flex-end; }
.program .col-action .btn-link { font-size: 13px; }

.program.header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 16px 0;
}
.program.header > * { font-weight: 500; color: var(--ink-muted) !important; font-size: 10px !important; }

/* ---------- Financing types ---------- */
.fintype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .fintype-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .fintype-grid { grid-template-columns: 1fr; } }

.fintype-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  position: relative;
}
.fintype-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(10,17,36,.04), 0 24px 48px -16px rgba(10,17,36,.16);
}

.fintype-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.fintype-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.12em;
}
.fintype-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.fintype-card:hover .fintype-tag {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-deep);
}
.fintype-card h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}
.fintype-card .desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 24px;
  text-wrap: pretty;
}
.fintype-card .bullets {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fintype-card .bullets li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.fintype-card .bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 10px;
  height: 1px;
  background: var(--gold);
}
.fintype-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fintype-meta { display: flex; flex-direction: column; gap: 4px; }
.fintype-meta .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.fintype-meta .val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ---------- News teaser strip ---------- */
.news-teaser {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
@media (max-width: 720px) {
  .news-teaser { grid-template-columns: 1fr; gap: 24px; }
  .news-teaser .btn { justify-self: start; }
}
.news-teaser .teaser-left { max-width: 56ch; }
.news-teaser .h-3 em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-block-l {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.contact-block-l:last-child { border-bottom: none; }
.contact-block-l .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.contact-block-l .value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.contact-block-l .value.gold { color: var(--gold-deep); }
.contact-block-l .sub { font-size: 14px; color: var(--ink-muted); margin-top: 6px; }
.contact-block-l address { font-style: normal; font-size: 16px; line-height: 1.5; color: var(--ink); margin-top: 8px; }

/* Big form */
.big-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
}
.big-form h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 28px; }
.big-form .submit { margin-top: 8px; }
.big-form .legal-note { margin-top: 16px; }

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Recommendations carousel ---------- */
.rec-strip {
  position: relative;
  overflow: hidden;
  padding: 24px 0 32px;
  /* Edge fade so cards softly enter / exit */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}
.rec-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: rec-scroll 75s linear infinite;
  will-change: transform;
}
@keyframes rec-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .rec-track { animation: none; }
}

.rec-card {
  flex: 0 0 auto;
  width: 280px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: scale(.92);
  opacity: .58;
  filter: saturate(.85);
  transition: transform .6s var(--ease), opacity .6s var(--ease), filter .6s var(--ease);
}
.rec-card.is-focus {
  transform: scale(1.05);
  opacity: 1;
  filter: saturate(1);
}
.rec-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.414; /* A4 */
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(10,17,36,.04), 0 16px 36px -12px rgba(10,17,36,.18);
  transition: box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.rec-card.is-focus .rec-frame {
  box-shadow: 0 1px 2px rgba(10,17,36,.06), 0 32px 56px -10px rgba(10,17,36,.28);
  border-color: var(--gold);
}
.rec-frame iframe,
.rec-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  background: var(--white);
  object-fit: contain;
  object-position: center top;
  -webkit-user-drag: none;
  user-select: none;
}
/* Transparent overlay catches all wheel/click/touch so the user
   cannot scroll, zoom, or interact with the embedded PDF. */
.rec-shield {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  z-index: 2;
}
.rec-card figcaption {
  text-align: center;
  padding: 0 8px;
}
.rec-card figcaption .company {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.rec-card figcaption .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.4;
}
.rec-card.is-focus figcaption .company { color: var(--navy-deep); }
.rec-card.is-focus figcaption .role { color: var(--gold-deep); }

@media (max-width: 720px) {
  .rec-card { width: 220px; }
  .rec-track { gap: 24px; animation-duration: 60s; }
}

/* utility */
.flex { display: flex; }
.row { flex-direction: row; }
.col { flex-direction: column; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* Web3Forms — success message replaces the form in place. Inherits .calc-card
   / .big-form chrome; tighten spacing because no submit/consents follow. */
.form-success { padding-top: 28px; padding-bottom: 28px; }
.form-success .header { margin-bottom: 12px; }
.form-success h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; color: var(--navy-deep); }
.form-success p.sub { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* Web3Forms — inline error banner inserted at top of form on submit failure */
.form-error {
  background: #FFF4F4;
  border: 1px solid #E8B4B4;
  color: #7A1F1F;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* FAQ section (finansowanie-dla-firm.html) — spójne z paletą i typografią strony.
   .faq-section dziedziczy padding po .section; .faq-list dostaje górną kreskę,
   każdy .faq-item kreskę dolną. summary i details>p używają tych samych
   zmiennych co reszta strony. */
.faq-section .faq-list {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item > summary {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 32px 4px 0;
  position: relative;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.faq-item[open] > summary::after {
  content: "−";
}
.faq-item > p {
  margin-top: 16px;
  padding-right: 32px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: 70ch;
}

/* =========================================================================
   COOKIE CONSENT — bottom banner + preferences modal
   Palette: navy backdrop, ivory copy, gold accents. Manrope for body,
   stays consistent with the rest of the site.
   ========================================================================= */

/* --- Banner (fixed bottom strip) -------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: var(--navy-deep);
  color: var(--ivory);
  box-shadow: 0 -8px 24px rgba(5, 14, 42, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(110%);
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-banner-inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 60%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.cookie-banner .cookie-banner-text a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(225, 186, 99, 0.4);
}
.cookie-banner .cookie-banner-text a:hover { color: var(--white); }
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.cookie-banner .cookie-btn.cookie-btn--primary {
  background: var(--gold);
  color: var(--navy-darker);
}
.cookie-banner .cookie-btn.cookie-btn--primary:hover { background: var(--gold-light); }
.cookie-banner .cookie-btn.cookie-btn--secondary {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.28);
}
.cookie-banner .cookie-btn.cookie-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}
.cookie-banner .cookie-btn.cookie-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 12px;
}
.cookie-banner .cookie-btn.cookie-btn--ghost:hover { color: var(--white); }

@media (max-width: 880px) {
  .cookie-banner .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
  }
  .cookie-banner .cookie-banner-text { font-size: 13px; }
  .cookie-banner .cookie-banner-actions {
    justify-content: stretch;
    flex-direction: column;
  }
  .cookie-banner .cookie-btn { width: 100%; text-align: center; }
}

/* --- Modal (preferences) --------------------------------------------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(5, 14, 42, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-modal.is-open { display: flex; }
.cookie-modal-card {
  background: var(--ivory);
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(5, 14, 42, 0.28);
  padding: 32px;
  font-family: var(--font-sans);
}
.cookie-modal-card h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin: 0 0 8px;
}
.cookie-modal-card .cookie-modal-intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.cookie-modal-card .cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  transition: background-color 140ms ease, color 140ms ease;
}
.cookie-modal-card .cookie-modal-close:hover { background: var(--ivory-deep); color: var(--ink); }
.cookie-modal-card .cookie-category {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.cookie-modal-card .cookie-category:last-of-type { border-bottom: 1px solid var(--line); }
.cookie-modal-card .cookie-category-text { flex: 1 1 auto; }
.cookie-modal-card .cookie-category-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.cookie-modal-card .cookie-category-text span {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.cookie-modal-card .cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cookie-modal-card .cookie-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.cookie-modal-card .cookie-btn.cookie-btn--primary {
  background: var(--navy-deep);
  color: var(--ivory);
}
.cookie-modal-card .cookie-btn.cookie-btn--primary:hover { background: var(--navy); }
.cookie-modal-card .cookie-btn.cookie-btn--secondary {
  background: transparent;
  color: var(--navy-deep);
  border-color: var(--line);
}
.cookie-modal-card .cookie-btn.cookie-btn--secondary:hover { background: var(--ivory-deep); }

/* --- Sliding toggle (replaces standard checkbox) --------------------- */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle .cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #C9C9D0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms ease;
}
.cookie-toggle .cookie-toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 180ms ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--gold); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { background: var(--gold-deep); opacity: 0.7; cursor: not-allowed; }
.cookie-toggle input:focus-visible + .cookie-toggle-slider {
  outline: 2px solid var(--navy-bright);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .cookie-modal-card { padding: 24px 20px; }
  .cookie-modal-card .cookie-modal-actions { flex-direction: column; }
  .cookie-modal-card .cookie-modal-actions .cookie-btn { width: 100%; }
}
