/* ============================================================
   Aurum Capital – Unified Stylesheet
   https://aurum-capital.pl
   ============================================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:  #162332;
  --dark2: #1d2e40;
  --white: #ffffff;
  --text:  #111318;
  --muted: #60697a;
  --font:  'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── GLOBAL TRANSITIONS ── */
a, button { transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important; }
a:hover, button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }

/* ── NAVIGATION (glass – default for subpages) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3.5rem; height: 100px;
  background: linear-gradient(135deg, rgba(23,42,54,0.82) 0%, rgba(29,46,64,0.78) 50%, rgba(23,42,54,0.85) 100%);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(23,42,54,0.25), inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -1px 0 rgba(0,0,0,0.1);
}

/* Homepage nav starts transparent – JS handles the transition */
nav.nav-hero {
  background: transparent;
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  border-bottom-color: transparent;
  box-shadow: none;
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

.nav-logo {
  font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--white); text-decoration: none; white-space: nowrap;
  text-shadow: 0 2px 12px rgba(22,35,50,0.15);
}
.nav-logo:hover { transform: none !important; box-shadow: none !important; }
.nav-links { display: flex; align-items: center; gap: 2.6rem; list-style: none; }
.nav-links a { font-size: 1.1rem; font-weight: 400; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s !important; }
.nav-links a:hover { color: var(--white); transform: none !important; box-shadow: none !important; }


/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.85); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu { display: none; position: fixed; top: 100px; left: 0; right: 0; bottom: 0; background: var(--dark); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.4rem; font-weight: 500; color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.2s; }
.mobile-menu a:hover { color: var(--white); }
.mob-btn {
  display: inline-flex; align-items: center;
  font-size: 0.9rem !important; font-weight: 600;
  color: var(--dark) !important; background: var(--white);
  border-radius: 999px; padding: 0.75rem 2rem; margin-top: 0.5rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.mob-btn:hover { background: #e2e5e8 !important; transform: scale(1.04) !important; box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important; }


/* ============================================================
   HERO (index.html only)
   ============================================================ */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; min-height: -webkit-fill-available; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 3.5rem 7rem; overflow: hidden; }
.hero-video { position: absolute; top: 0; left: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(22,35,50,0.3); }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3rem,6vw,5.4rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.04em; color: var(--white); max-width: 580px; margin-bottom: 2.6rem; opacity: 0; animation: fadeUp 0.7s 0.2s forwards; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.7s 0.38s forwards; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }


/* ── BUTTONS ── */
.btn-solid-white {
  display: inline-flex; align-items: center;
  font-size: 0.82rem; font-weight: 600;
  color: var(--dark); background: var(--white);
  border-radius: 999px; padding: 0.85rem 2rem; text-decoration: none;
}
.btn-solid-white:hover { background: #e2e5e8; }

.btn-ghost {
  display: inline-flex; align-items: center;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--white); border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px; padding: 0.85rem 2rem; text-decoration: none;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); }

.btn-dark {
  display: inline-flex; align-items: center;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--dark); border: 1px solid rgba(0,0,0,0.22);
  border-radius: 999px; padding: 0.9rem 2.2rem; text-decoration: none;
  background: transparent;
}
.btn-dark:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }


/* ============================================================
   ABOUT  (index.html)
   ============================================================ */
.about { background: var(--white); padding: 3rem 3.5rem 2.5rem; text-align: center; }
.about h2 { font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1.8rem; }
.about p { font-size: 1.2rem; line-height: 1.78; font-weight: 400; color: var(--muted); max-width: 640px; margin: 0 auto; }
.about p strong { color: var(--text); font-weight: 600; }


/* ============================================================
   HOW IT WORKS  (index.html)
   ============================================================ */
.how { background: var(--white); padding: 2.5rem 3.5rem 3.5rem; text-align: center; }
.how h2 { font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 3rem; }
.how-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; max-width: 1100px; margin: 0 auto; }
.how-card {
  background: var(--dark2); border-radius: 22px; padding: 2.8rem 2.2rem;
  color: var(--white); border: 1px solid rgba(255,255,255,0.04);
  cursor: default; transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.how-card:hover { transform: translateY(-8px) !important; box-shadow: 0 24px 55px rgba(0,0,0,0.3) !important; }
.how-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.16); display: inline-block; margin-bottom: 1.4rem; color: rgba(255,255,255,0.45); }
.how-card p { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.82); font-weight: 400; }


/* ============================================================
   BENEFITS  (index.html)
   ============================================================ */
.benefits { background: var(--white); padding: 2.5rem 3.5rem 3.5rem; }
.benefits h2 { font-size: clamp(2.2rem,4.5vw,3.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 3rem; text-align: center; }
.benefit-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; margin-bottom: 2rem; }
.benefit-row:last-child { margin-bottom: 0; }
.benefit-row.reverse { direction: rtl; }
.benefit-row.reverse > * { direction: ltr; }
.benefit-text { font-size: 1.25rem; line-height: 1.72; font-weight: 400; color: var(--muted); text-align: center; max-width: 420px; margin: 0 auto; }
.benefit-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px;
  justify-self: center; box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease !important; display: block;
}
.benefit-img:hover { transform: scale(1.02) !important; box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important; }


/* ============================================================
   CONTACT CTA  (index.html section)
   ============================================================ */
.contact-cta { background: var(--white); padding: 2.5rem 3.5rem 2rem; text-align: center; }
.contact-cta h2 { font-size: clamp(2.5rem,5vw,4.2rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 2rem; line-height: 1.1; }
.contact-cta .sub { font-size: 1.1rem; color: var(--muted); margin-bottom: 0.4rem; }
.contact-cta .nie { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 2.5rem; }
.contact-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }


/* ============================================================
   WAVE & FOOTER (shared)
   ============================================================ */
.wave { background: var(--white); line-height: 0; display: block; margin-bottom: -2px; }
.wave svg { display: block; width: 100%; }

footer { background: var(--dark); padding: 4rem 3.5rem 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.footer-logo { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--white); display: block; margin-bottom: 1.2rem; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.38); line-height: 1.7; }
.footer-right { text-align: right; }
.footer-right h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--white); margin-bottom: 0.8rem; }
.footer-right p { font-size: 0.95rem; color: rgba(255,255,255,0.65); line-height: 1.9; }
.footer-right p a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-right p a:hover { color: var(--white); transform: none !important; box-shadow: none !important; }
.socials { display: flex; gap: 0.7rem; justify-content: flex-end; margin-top: 1.2rem; }
.socials a {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: opacity 0.2s;
}
.socials a:hover { transform: none !important; box-shadow: none !important; }
.socials a img { width: 20px; height: 20px; opacity: 0.6; transition: opacity 0.2s; }
.socials a:hover img { opacity: 1; }


/* ============================================================
   SCROLL REVEAL (shared)
   ============================================================ */
.reveal { opacity: 0; transition: opacity 0.65s ease; }
.reveal.visible { opacity: 1; }
.reveal-slide { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-slide.visible { opacity: 1; transform: none; }


/* ============================================================
   PAGE CONTENT (ranking hub & subpages)
   ============================================================ */
.page-content {
  padding-top: 100px; max-width: 1200px; margin: 0 auto;
  padding-left: 3.5rem; padding-right: 3.5rem; padding-bottom: 6rem;
}
.page-header { padding-top: 4rem; padding-bottom: 3rem; }
.page-header h1 {
  font-size: clamp(3rem,6vw,5rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.08; color: var(--text); margin-bottom: 1rem;
  text-align: center;
}
.page-header p { font-size: 1.3rem; color: var(--muted); font-weight: 400; text-align: center; }


/* ============================================================
   RANKING CATEGORIES (ranking-kredytow.html)
   ============================================================ */
.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem; padding: 2.8rem 2rem;
  border: 1.5px solid #e4e7ec; border-bottom: 3px solid #e4e7ec;
  border-radius: 20px; text-decoration: none; color: var(--text);
  background: var(--white); cursor: pointer; text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
}
.cat-card:hover { transform: translateY(-5px) !important; box-shadow: 0 16px 40px rgba(0,0,0,0.1) !important; border-color: #c8cdd6 !important; border-bottom-color: #9ca3af !important; }
.cat-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-icon img { width: 64px; height: 64px; object-fit: contain; }
.cat-label { font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--text); }


/* ============================================================
   DATA TABLES (ranking subpages – shared)
   ============================================================ */
.content-grid { display: flex; flex-direction: column; gap: 2rem; }
.table-section { width: 100%; font-family: inherit; }

/* Mortgage / "mort" prefix tables */
.mort-updated, .mort3-updated {
  display: inline-block; margin-bottom: 10px;
  font-size: 0.75rem; color: #2D6A4F; background: #D8EFE3;
  padding: 3px 10px; border-radius: 20px; font-weight: 500;
}
.mort-scroll, .mort3-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mort-scroll table, .mort3-scroll table { width: 100%; border-collapse: collapse; font-size: 0.9rem; border: 1px solid #E8E4DC; }
.mort-scroll thead tr, .mort3-scroll thead tr { background: #1A1714; color: #fff; }
.mort-scroll thead th, .mort3-scroll thead th { padding: 14px 18px; text-align: center; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.mort-scroll tbody tr, .mort3-scroll tbody tr { border-bottom: 1px solid #E8E4DC; transition: background 0.15s ease; animation: tableFadeIn 0.4s ease forwards; opacity: 0; }
.mort-scroll tbody tr:last-child, .mort3-scroll tbody tr:last-child { border-bottom: none; }
.mort-scroll tbody tr:hover, .mort3-scroll tbody tr:hover { background: #F2F2F2; }
@keyframes tableFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.mort-scroll td, .mort3-scroll td { padding: 15px 18px; vertical-align: middle; text-align: center; white-space: nowrap; color: #1A1714; }
.mort-bank, .mort3-bank { min-width: 130px; }
.mort-bank img, .mort3-bank img { height: 34px; width: auto; max-width: 120px; object-fit: contain; display: block; margin: 0 auto; }
.mort-val, .mort3-val { font-weight: 500; }
.mort-best, .mort3-best { color: #2D6A4F; font-weight: 600; }
.mort-worst, .mort3-worst { color: #C0392B; font-weight: 600; }
.mort-badge, .mort3-badge { display: inline-block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.mort-badge-best, .mort3-badge-best { background: #D8EFE3; color: #2D6A4F; }
.mort-badge-worst, .mort3-badge-worst { background: #FDECEA; color: #C0392B; }
.mort-loading, .mort3-loading { text-align: center; padding: 40px; color: #8A8580; font-size: 0.88rem; }
.mort-spinner, .mort3-spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid #E8E4DC; border-top-color: #2D6A4F; border-radius: 50%; animation: tableSpin 0.7s linear infinite; margin-bottom: 10px; }
@keyframes tableSpin { to { transform: rotate(360deg); } }


/* ── Sidebar (ranking subpages) ── */
.sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 1.25rem; align-items: stretch; }
.side-card {
  border: 1.5px solid #e4e7ec; border-bottom: 3px solid #e4e7ec;
  border-radius: 20px; padding: 2rem; background: var(--white);
}
.side-card h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin-bottom: 1.2rem; }
.side-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.side-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.side-card ul li { font-size: 0.95rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.side-card ul li::before { content: '\00b7'; font-size: 1.4rem; line-height: 1; color: var(--text); flex-shrink: 0; }

/* Sidebar buttons */
.sidebar .btn-dark {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: var(--dark); color: var(--white);
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  border: none; border-radius: 14px; padding: 1rem 1.4rem;
  text-decoration: none; cursor: pointer; margin-top: 0.5rem; min-height: 54px;
}
.sidebar .btn-dark:hover { box-shadow: 0 8px 24px rgba(22,35,50,0.3) !important; }
.sidebar .btn-outline {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  border: 1.5px solid #e4e7ec; border-bottom: 3px solid #e4e7ec;
  border-radius: 14px; padding: 1rem 1.4rem; min-height: 54px;
  text-decoration: none; cursor: pointer;
}
.sidebar .btn-outline:hover { border-color: #c8cdd6; border-bottom-color: #9ca3af; }


/* ============================================================
   OFERTA – Card grid & modals
   ============================================================ */
.cards-section {
  padding-top: 100px; max-width: 1300px; margin: 0 auto;
  padding-left: 3.5rem; padding-right: 3.5rem; padding-bottom: 6rem;
}
.cards-section h1 {
  font-size: clamp(2.8rem,5.5vw,4.8rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.1; color: var(--text);
  margin-bottom: 2.5rem; text-align: center; padding-top: 2rem;
}
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Offer card (shared class prefix "offer-") */
.offer-wrapper { width: 100%; font-family: var(--font); line-height: normal; font-size: 16px; }
.offer-card {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14); cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-bottom 0.2s ease !important;
  width: 100%; border-bottom: 3px solid transparent;
}
.offer-card:hover { transform: translateY(-5px) !important; box-shadow: 0 20px 48px rgba(0,0,0,0.2) !important; border-bottom: 3px solid #9ca3af !important; }
.offer-card-img { width: 100%; height: 210px; object-fit: cover; object-position: center; display: block; transition: transform 0.5s ease; }
.offer-card:hover .offer-card-img { transform: scale(1.04); }
.offer-card-body {
  background: #172A36; padding: 36px 24px 40px; text-align: center;
  color: #fff; height: 260px; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; width: 100%;
}
.offer-card-title { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 0; text-align: center; width: 100%; }
.offer-card-btn {
  display: inline-block; padding: 13px 30px;
  background: transparent; color: #fff;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  border-radius: 50px; cursor: pointer;
  transition: all 0.25s ease;
  border: 1.5px solid rgba(255,255,255,0.55);
  letter-spacing: 0.2px; white-space: nowrap;
}
.offer-card-btn:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.08); }

/* Modal overlay */
.offer-overlay {
  position: fixed; inset: 0;
  background: rgba(10,22,30,0.65);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 40px 20px 60px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2147483647; overflow-y: auto;
}
.offer-overlay.active { opacity: 1; visibility: visible; }
.offer-modal {
  background: #fff; border-radius: 20px; width: 100%; max-width: 680px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1);
  position: relative; margin: auto;
}
.offer-overlay.active .offer-modal { transform: translateY(0); }
.offer-modal-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.offer-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92); border-radius: 50%;
  font-size: 18px; cursor: pointer; color: #172A36; z-index: 2;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); line-height: 1;
}
.offer-close:hover { background: #fff; transform: scale(1.1) rotate(90deg) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important; }
.offer-modal-body { padding: 36px 44px 44px; color: #1a2e3b; line-height: 1.75; font-size: 15.5px; }
.offer-modal-title { font-size: 22px; font-weight: 700; color: #172A36; margin-bottom: 20px; line-height: 1.3; }
.offer-modal-body p { margin: 0 0 14px; color: #2a3d4a; font-size: 15px; line-height: 1.75; }
.offer-modal-body strong { color: #172A36; font-weight: 700; }
.offer-benefits-label { font-weight: 700; font-size: 14px; color: #172A36; margin: 22px 0 12px; display: block; }
.offer-benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.offer-benefits li {
  display: flex; align-items: flex-start; gap: 10px;
  background: #f0f4f7; border-radius: 10px; padding: 12px 14px;
  font-size: 14px; color: #1a2e3b; font-weight: 500; line-height: 1.4;
}
.offer-check {
  width: 20px; height: 20px; min-width: 20px;
  background: #172A36; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px; font-size: 11px; color: #fff; font-weight: 700;
}
.offer-modal-cta { margin-top: 28px; text-align: center; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.offer-modal-cta a {
  display: inline-block; padding: 13px 32px;
  background: #172A36; color: #fff;
  font-weight: 600; font-size: 14px; border-radius: 50px; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
  box-shadow: 0 4px 16px rgba(23,42,54,0.25);
}
.offer-modal-cta a:hover { background: #1e3a4d !important; box-shadow: 0 8px 24px rgba(23,42,54,0.35) !important; color: #fff !important; }
.offer-modal-cta a.offer-btn-outline {
  background: transparent; color: #172A36;
  border: 1.5px solid #172A36; box-shadow: none;
}
.offer-modal-cta a.offer-btn-outline:hover { background: #172A36 !important; color: #fff !important; }

/* Product entries inside modal (klienci indywidualni) */
.offer-product { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #e8edf0; }
.offer-product:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.offer-product-title { font-size: 15px; font-weight: 700; color: #172A36; margin-bottom: 8px; }
.offer-product-desc { margin: 0 0 12px; color: #2a3d4a; font-size: 14px; line-height: 1.7; }
.offer-product-benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.offer-product-benefits li {
  display: flex; align-items: flex-start; gap: 8px;
  background: #f0f4f7; border-radius: 8px; padding: 10px 12px;
  font-size: 13px; color: #1a2e3b; font-weight: 500; line-height: 1.4;
}


/* ============================================================
   KONTAKT – Contact page
   ============================================================ */
.contact-section { background: var(--white); padding: 9rem 3.5rem 6rem; }
.contact-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 6rem; align-items: start;
}

.contact-info { padding-top: 0.5rem; }
.contact-info h2 { font-size: clamp(1.9rem,3.5vw,2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; margin-bottom: 1.4rem; }
.contact-info .lead { font-size: 1.1rem; color: var(--muted); line-height: 1.78; margin-bottom: 3rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-detail-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-detail-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: #536C7C; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.contact-detail-icon svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.85); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-detail-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 0.25rem; }
.contact-detail-value { font-size: 1rem; font-weight: 500; color: var(--text); }
.contact-detail-value a { color: var(--text); text-decoration: none; }
.contact-detail-value a:hover { color: var(--dark2); transform: none !important; box-shadow: none !important; }

/* Form card */
.contact-form-wrap {
  background: #536C7C; border-radius: 24px; padding: 3rem;
  box-shadow: 0 24px 64px rgba(22,35,50,0.18);
}
.contact-form-wrap h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--white); margin-bottom: 2rem; text-align: center; }
.form-group { margin-bottom: 0.8rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,1); margin-bottom: 0.5rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 0.85rem 1.1rem; font-family: var(--font); font-size: 0.95rem;
  color: var(--white); outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(255,255,255,0.38); background: rgba(255,255,255,0.1); box-shadow: 0 0 0 3px rgba(255,255,255,0.05); }
.form-group select {
  color: rgba(255,255,255,0.5); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  background-color: rgba(255,255,255,0.07); padding-right: 2.5rem;
}
.form-group select option { background: #3d5563; color: var(--white); }
.form-group select.chosen { color: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.form-row .form-group { margin-bottom: 0; }
.amount-wrap { position: relative; }
.amount-wrap input { padding-right: 4.2rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.amount-suffix { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); pointer-events: none; }
.submit-btn {
  width: 100%; padding: 1rem; background: var(--white); color: var(--dark);
  border: none; border-radius: 10px; font-family: var(--font);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer; margin-top: 0.5rem;
}
.submit-btn:hover { background: #e8ecf0; }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.form-message { display: none; border-radius: 10px; padding: 1rem 1.3rem; font-size: 0.9rem; font-weight: 500; margin-top: 1rem; line-height: 1.5; }
.form-message.success { background: rgba(76,175,125,0.15); border: 1px solid rgba(76,175,125,0.3); color: #6fdfaa; display: block; }
.form-message.error { background: rgba(239,83,80,0.12); border: 1px solid rgba(239,83,80,0.25); color: #f4978e; display: block; }
.form-note { font-size: 0.78rem; color: rgba(255,255,255,0.28); margin-top: 1.1rem; text-align: center; line-height: 1.6; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  nav { padding: 0 1.4rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 0 1.4rem 5rem; min-height: 100vh; min-height: 100dvh; min-height: -webkit-fill-available; }
  .about { padding: 2.5rem 1.4rem 2rem; }
  .how { padding: 2rem 1.4rem 3rem; }
  .benefits { padding: 2rem 1.4rem 3rem; }
  .contact-cta { padding: 2.5rem 1.4rem 2rem; }
  .how-cards { grid-template-columns: 1fr; }
  .benefit-row { grid-template-columns: 1fr; gap: 2rem; }
  .benefit-row.reverse { direction: ltr; }
  .benefit-text { font-size: 1.05rem; max-width: 100%; }
  .about p { font-size: 1.05rem; }
  .contact-cta .sub, .contact-cta .nie { font-size: 1rem; }

  .page-content { padding-left: 1.4rem; padding-right: 1.4rem; padding-bottom: 4rem; }
  .page-header h1 { font-size: clamp(2.4rem,8vw,3.5rem); }
  .categories { grid-template-columns: 1fr; gap: 1rem; }
  .cat-card { flex-direction: row; justify-content: flex-start; padding: 1.8rem 2rem; gap: 1.5rem; text-align: left; }
  .cat-icon { width: 48px; height: 48px; }
  .cat-icon img { width: 48px; height: 48px; }

  .sidebar { grid-template-columns: 1fr; }

  .cards-section { padding: 7rem 1.4rem 4rem; }
  .cards-section h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .cards-grid { grid-template-columns: 1fr; }
  .offer-card-body { height: auto; padding: 28px 20px 32px; gap: 1.2rem; }

  .contact-section { padding: 7rem 1.4rem 5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form-wrap { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .mobile-menu { overflow-y: auto; padding: 2rem 1.4rem; }

  footer { grid-template-columns: 1fr; padding: 3rem 1.4rem 2.5rem; }
  .footer-right { text-align: left; }
  .socials { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .offer-modal-body { padding: 28px 22px 32px; }
  .offer-benefits, .offer-product-benefits { grid-template-columns: 1fr; }
  .offer-modal-img { height: 160px; }
  .offer-modal-cta { flex-direction: column; }
  .offer-modal-cta a { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-actions { flex-direction: column; }
  .btn-ghost, .btn-solid-white { justify-content: center; }
  .categories { grid-template-columns: 1fr; }
  .how-card { padding: 2.2rem 1.6rem; }
  .page-header { padding-top: 2.5rem; padding-bottom: 2rem; }
  .contact-info h2 { font-size: 1.8rem; }
}


/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
#cookie-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(10, 22, 30, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 1.2rem;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
#cookie-overlay.cb-visible { opacity: 1; pointer-events: auto; }

#cookie-banner {
  background: var(--white); border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  width: 100%; max-width: 540px;
  transform: translateY(20px); transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1);
  max-height: 90vh; overflow-y: auto;
}
#cookie-overlay.cb-visible #cookie-banner { transform: translateY(0); }

.cb-content { padding: 2rem 2rem 1.8rem; }

.cb-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.cb-icon { color: var(--dark); flex-shrink: 0; }
.cb-title { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }

.cb-text { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.4rem; }

/* Advanced panel */
.cb-advanced { display: none; margin-bottom: 1.4rem; }
.cb-advanced.cb-show { display: block; }

.cb-option { padding: 0.9rem 0; border-top: 1px solid #e8ecf0; }
.cb-option:first-child { border-top: none; }
.cb-opt-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.cb-opt-label { font-size: 0.88rem; font-weight: 600; color: var(--text); cursor: default; }
.cb-opt-tag { font-size: 0.68rem; font-weight: 600; color: #2D6A4F; background: #D8EFE3; padding: 2px 8px; border-radius: 20px; letter-spacing: 0.02em; }
.cb-opt-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }

/* Toggle switch */
.cb-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.cb-toggle input { opacity: 0; width: 0; height: 0; }
.cb-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #d1d5db; border-radius: 22px;
  transition: background 0.2s;
}
.cb-slider::before {
  content: ''; position: absolute;
  left: 3px; top: 3px; width: 16px; height: 16px;
  background: white; border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cb-toggle input:checked + .cb-slider { background: var(--dark); }
.cb-toggle input:checked + .cb-slider::before { transform: translateX(18px); }

/* Buttons */
.cb-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cb-save-wrap { display: none; margin-top: 0.6rem; }
.cb-save-wrap.cb-show { display: flex; }

.cb-btn {
  flex: 1; min-width: 130px;
  padding: 0.75rem 1.2rem;
  border: none; border-radius: 12px;
  font-family: var(--font); font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  text-align: center;
}
.cb-btn:hover { transform: translateY(-1px) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important; }

.cb-btn-accept { background: var(--dark); color: var(--white); }
.cb-btn-accept:hover { background: #1e3a4d; }
.cb-btn-reject { background: #f1f3f5; color: var(--text); }
.cb-btn-reject:hover { background: #e4e7ec; }
.cb-btn-settings { background: transparent; color: var(--muted); border: 1.5px solid #e4e7ec; }
.cb-btn-settings:hover { border-color: #c8cdd6; color: var(--text); }

@media (max-width: 520px) {
  .cb-content { padding: 1.5rem 1.3rem 1.4rem; }
  .cb-buttons { flex-direction: column; }
  .cb-btn { min-width: 100%; }
}
