:root {
  --bs-font-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-color: #1e293b;
  --bs-body-bg: #f7f8fa;
  --bs-link-color: #0f172a;
  --bs-link-hover-color: #a97c1f;

  --brand-navy: #0f172a;
  --brand-navy-light: #1e2a4a;
  --brand-gold: #c9972c;
  --brand-gold-dark: #a97c1f;
}

body {
  color: var(--bs-body-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
}

/* --- Navbar --- */
.navbar {
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.3rem;
  color: var(--brand-navy) !important;
}

.navbar-brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.navbar-brand-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--brand-navy);
  transition: color 0.15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--brand-gold-dark) !important;
}

.navbar .btn-link {
  color: var(--brand-navy);
  text-decoration: none;
}

.navbar .btn-link:hover {
  color: var(--brand-gold-dark);
}

/* --- Third-level nav dropdown (Category > Subcategory > Service) ---
   Bootstrap 5 only ships one dropdown level; this adds a flyout submenu
   that opens to the right, per spec. static/js/main.js handles the
   click-to-toggle behavior needed for touch devices (no :hover there). */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.5rem;
  margin-left: 0.125rem;
}

@media (hover: hover) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

@media (max-width: 767.98px) {
  /* No room to flyout sideways inside the collapsed mobile menu — stack
     the submenu inline (indented) instead, like Bootstrap's own dropdown
     already does inside a collapsed navbar. */
  .dropdown-submenu > .dropdown-menu {
    position: static;
    left: 0;
    margin-left: 1rem;
    box-shadow: none;
    border: none;
  }
}

/* --- Buttons --- */
.btn {
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.6rem 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
}

.btn-primary {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-gold-dark);
  border-color: var(--brand-gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201, 151, 44, 0.3);
}

.btn-outline-primary {
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.btn-outline-primary:hover {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  transform: translateY(-1px);
}

.btn-outline-secondary:hover {
  transform: translateY(-1px);
}

.btn-warning {
  font-weight: 700;
}

/* --- Cards --- */
.card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

/* Article cover images (Wiedza on the homepage, article list, article
   category pages) — a fixed aspect ratio + object-fit:cover so every
   card tile is the same size regardless of the uploaded image's own
   dimensions, instead of Bootstrap's default width:100%/height:auto
   (which would make cards different heights per image). */
.card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.card-title {
  font-weight: 700;
}

/* --- Hero (homepage) --- */
.hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 3.5rem 2.5rem;
  margin-bottom: 3rem;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 0;
}

/* --- Badges --- */
.badge {
  font-weight: 600;
  padding: 0.42em 0.8em;
  border-radius: 0.4rem;
  letter-spacing: 0.01em;
}

/* --- Forms --- */
.form-control,
.form-select {
  border-radius: 0.5rem;
  padding: 0.55rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 0.2rem rgba(15, 23, 42, 0.12);
}

.form-check-input:checked {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
}

/* --- Alerts --- */
.alert {
  border-radius: 0.6rem;
  border: none;
}

/* --- Footer --- */
footer {
  background: var(--brand-navy) !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Default breathing room above the footer on normal (light-background)
   pages. Pages that already end flush with a full-bleed dark band (e.g.
   the homepage) drop this via {% block footer_class %} — otherwise it'd
   show as a visible light gap between two dark sections. */
.footer-spaced {
  margin-top: 4rem;
}

footer small,
footer a {
  color: rgba(255, 255, 255, 0.65);
}

footer a:hover {
  color: var(--brand-gold);
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75) !important;
}

.footer-social-icon:hover {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-navy) !important;
}

/* --- Misc --- */
.text-price {
  color: var(--brand-navy);
  font-weight: 800;
}

/* Bootstrap 5 dropped the .text-justify utility that existed in Bootstrap 4.
   No longer used on article/service/about body text (2026-08-23) — on
   longer Polish words at this line length, justify produced very uneven
   word-spacing ("rivers") that visibly stood out from the rest of the
   site's normal left-aligned type. Kept here in case it's wanted again
   for a narrower column where it doesn't have that problem. */
.text-justify {
  text-align: justify;
}

/* --- Homepage news banner --- */
.news-banner {
  background: linear-gradient(135deg, rgba(201, 151, 44, 0.12) 0%, rgba(201, 151, 44, 0.04) 100%);
  border-left: 4px solid var(--brand-gold);
  border-radius: 0.75rem;
}

/* --- Live password requirement checklist (register.html) --- */
#id_password1_helptext li.pw-requirement-met {
  color: #198754;
  font-weight: 600;
}

#id_password1_helptext li.pw-requirement-met::before {
  content: "\2713  ";
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

/* --- Image placeholders (about.html) --- swap for a real <img> later,
   this class is only meant to hold the layout's shape until then. */
.img-placeholder {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.06) 0%, rgba(201, 151, 44, 0.1) 100%);
  border: 1px dashed rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.9rem;
  width: 100%;
  border-radius: 0.9rem;
}

/* --- Homepage: large hero --- a CSS-only dot-grid texture over the usual
   navy gradient (no photography/image asset needed). */
.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 5rem 2rem;
  margin-bottom: 3rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(201, 151, 44, 0.22), transparent 42%),
    radial-gradient(circle at 82% 0%, rgba(201, 151, 44, 0.14), transparent 38%),
    linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-light) 55%, #16213e 100%);
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-main-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  color: #fff;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--brand-gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero-main-inner h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-main-inner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

.hero-main .btn-outline-light:hover {
  color: var(--brand-navy);
}

.hero-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Homepage: "najpopularniejsze usługi" featured offer cards --- */
.featured-offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: var(--brand-navy);
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.featured-offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  color: var(--brand-navy);
}

.featured-offer-card h5 {
  font-weight: 700;
  margin: 0;
}

.featured-offer-card p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
  flex-grow: 1;
}

.featured-offer-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201, 151, 44, 0.16) 0%, rgba(15, 23, 42, 0.06) 100%);
  color: var(--brand-gold-dark);
}

.featured-offer-icon svg {
  width: 24px;
  height: 24px;
}

.featured-offer-link {
  font-weight: 700;
  color: var(--brand-navy);
  font-size: 0.9rem;
}

.featured-offer-card:hover .featured-offer-link {
  color: var(--brand-gold-dark);
}

/* The one offer we most want to sell — same gold-accent treatment as
   the highlighted pricing-card tiers, so it reads as "start here"
   without an unverifiable popularity claim. */
.featured-offer-highlight {
  border: 2px solid var(--brand-gold);
  box-shadow: 0 12px 32px rgba(201, 151, 44, 0.18);
}

.featured-offer-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  background: var(--brand-gold);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.35em 0.9em;
  border-radius: 2rem;
}

/* --- Homepage: quick-start cards --- */
.quickstart-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  padding: 1.5rem;
}

.quickstart-card h5 {
  font-weight: 700;
}

/* --- Homepage: country tiles --- */
.country-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: var(--brand-navy);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.country-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  color: var(--brand-navy);
}

.country-flag {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 0.25rem;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.country-name {
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}

/* --- Homepage: Premium CTA banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 3rem 2rem;
  margin-bottom: 1rem;
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Homepage: full-bleed section bands ---
   Lets a section span the entire viewport width (edge to edge, like a
   real landing page) even though it lives inside base.html's Bootstrap
   `.container`. `.full-bleed-inner` re-applies a centered max-width so
   the actual content still lines up with the rest of the site. */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.full-bleed-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Hero keeps its own padding/eyebrow-driven layout; as a full-bleed band
   it should sit flush under the navbar with no rounded corners. */
.full-bleed.hero-main {
  border-radius: 0;
  margin-bottom: 0;
}

.band-light {
  background: #fff;
}

.band-muted {
  background: var(--bs-body-bg);
}

.band-light + .band-dark,
.band-muted + .band-dark {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.band-dark {
  background: linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-light) 55%, #16213e 100%);
  color: #fff;
}

.band-dark h2,
.band-dark h3 {
  color: #fff;
}

.band-dark .section-heading a.btn-outline-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.band-dark .section-heading a.btn-outline-primary:hover {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-navy);
}

.band-lede {
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
}

.band-light .band-lede,
.band-muted .band-lede {
  color: #475569;
}

/* --- Homepage: dynamic trust stat row --- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: center;
  text-align: center;
}

.stat-item .stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-gold-dark);
  letter-spacing: -0.02em;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

/* --- Homepage: "Jak działamy" numbered process band --- */
.process-step {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  height: 100%;
}

.process-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.process-step h5 {
  color: #fff;
  font-weight: 700;
}

.process-step p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* --- Homepage: bottom "tematy" dark tile grid --- */
.topic-tile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  height: 100%;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.topic-tile:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.topic-tile .topic-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 151, 44, 0.18);
  color: var(--brand-gold);
}

.topic-tile .topic-icon svg {
  width: 20px;
  height: 20px;
}

.topic-tile .topic-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.topic-tile .topic-count {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* --- Product pages (service list/detail, subcategory detail) ---
   A shorter cousin of `.hero-main`: same navy gradient + dot-grid texture,
   sized for an internal listing/detail page header rather than the full
   homepage hero. */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(201, 151, 44, 0.16), transparent 40%),
    linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-light) 55%, #16213e 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.page-hero > * {
  position: relative;
}

.page-hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
}

.page-hero .breadcrumb-trail {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
}

.page-hero .breadcrumb-trail a {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb-trail a:hover {
  color: var(--brand-gold);
}

.page-hero .country-flag {
  width: 28px;
  height: 21px;
  vertical-align: -3px;
  margin-right: 0.4rem;
  border-radius: 0.2rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* --- Product pages: headings inside an HTML service description (SEO
   copy with <h2> sections) — sized for body content, not a page title. */
.service-description h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.service-description h2:first-child {
  margin-top: 0;
}

.service-description h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-description p {
  margin-bottom: 1rem;
}

/* --- Case-study landing pages: important-notice callout box --- */
.notice-box {
  background: rgba(201, 151, 44, 0.08);
  border-left: 4px solid var(--brand-gold);
  border-radius: 0.6rem;
  padding: 1.25rem 1.5rem;
}

.notice-box strong {
  color: var(--brand-navy);
}

/* --- Case-study landing pages: tax/cost comparison table --- */
.comparison-table {
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.comparison-table thead th {
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0.9rem 1.1rem;
}

.comparison-table tbody td {
  vertical-align: middle;
  padding: 0.9rem 1.1rem;
  border-color: rgba(15, 23, 42, 0.08);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--bs-body-bg);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--brand-navy);
}

/* --- Product pages: subcategory pill badge on service cards --- */
.badge-subcategory {
  display: inline-block;
  background: rgba(201, 151, 44, 0.12);
  color: var(--brand-gold-dark);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.35em 0.75em;
  border-radius: 2rem;
}

.service-card-country {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card-country .country-flag {
  width: 22px;
  height: 16px;
  border-radius: 0.2rem;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

/* --- Product pages: service detail buy-box --- */
.buy-box {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.buy-box::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
}

.buy-box .buy-box-body {
  padding: 1.75rem;
}

.buy-box-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.trust-list li:last-child {
  margin-bottom: 0;
}

/* Icon slot shared by .trust-list bullets and inline meta lines (e.g. the
   duration line in .buy-box) — matches the site's monochrome line-icon
   language (pillar/topic icons) instead of mixing in emoji, which render
   in a completely different (color) font from the rest of the page. */
.trust-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--brand-gold-dark);
}

.trust-icon svg {
  width: 100%;
  height: 100%;
}

/* --- LLC-USA offer landing page: 3-tier pricing cards --- */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  padding: 2rem 1.75rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.pricing-card-highlight {
  border: 2px solid var(--brand-gold);
  box-shadow: 0 12px 32px rgba(201, 151, 44, 0.18);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gold);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.35em 0.9em;
  border-radius: 2rem;
  white-space: nowrap;
}

.pricing-tier {
  display: block;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brand-navy);
  margin-top: 0.5rem;
}

.pricing-tagline {
  color: #64748b;
  font-size: 0.9rem;
  min-height: 2.5rem;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 1.25rem;
}

.pricing-period {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.pricing-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.65rem;
}

.pricing-feature-list li:last-child {
  margin-bottom: 0;
}

.pricing-feature-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--brand-gold-dark);
}

/* --- Consultation landing page: dark-band variant of .pricing-feature-list
   (same checkmark markup, readable on a navy background) --- */
.feature-list-dark {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list-dark li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.feature-list-dark li:last-child {
  margin-bottom: 0;
}

.feature-list-dark svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--brand-gold);
}

/* --- Consultation landing page: "dla kogo" audience cards --- */
.audience-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  padding: 1.25rem;
  height: 100%;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.audience-card .audience-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201, 151, 44, 0.16) 0%, rgba(15, 23, 42, 0.06) 100%);
  color: var(--brand-gold-dark);
}

.audience-card .audience-icon svg {
  width: 16px;
  height: 16px;
}

/* --- Homepage: enlarged jurisdiction tiles --- */
.country-tile.country-tile-lg {
  flex-direction: row;
  justify-content: flex-start;
  padding: 1.5rem 1.6rem;
  gap: 1.1rem;
}

.country-tile-lg .country-flag {
  width: 48px;
  height: 36px;
}

.country-tile-lg .country-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.country-tile-lg .country-name {
  font-size: 1.15rem;
}

.country-tile-lg .country-sub {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

/* --- Rezerwacja terminu: kalendarz (Flatpickr) --- */
.booking-calendar {
  display: inline-block;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.booking-calendar .flatpickr-calendar {
  box-shadow: none;
  width: 320px;
  max-width: 100%;
}

.booking-calendar .flatpickr-months .flatpickr-month,
.booking-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
.booking-calendar .flatpickr-weekdays,
.booking-calendar span.flatpickr-weekday {
  background: var(--brand-navy);
  color: #fff;
  fill: #fff;
}

.booking-calendar .flatpickr-current-month input.cur-year {
  color: #fff;
}

.booking-calendar .flatpickr-prev-month:hover svg,
.booking-calendar .flatpickr-next-month:hover svg {
  fill: var(--brand-gold);
}

.booking-calendar .flatpickr-day.flatpickr-disabled,
.booking-calendar .flatpickr-day.flatpickr-disabled:hover {
  color: #cbd5e1;
}

.booking-calendar .flatpickr-day.today {
  border-color: var(--brand-gold);
}

.booking-calendar .flatpickr-day.selected,
.booking-calendar .flatpickr-day.selected:hover {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.booking-calendar .flatpickr-day:hover {
  background: #f1f5f9;
}

/* --- Regulamin / Polityka Prywatności: numbered legal-text sections --- */
.legal-content h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-content ol {
  padding-left: 1.4rem;
}

.legal-content ol > li {
  margin-bottom: 1rem;
  padding-left: 0.25rem;
}

.legal-content ol[type="a"] {
  margin-top: 0.75rem;
}

.legal-content ol[type="a"] > li {
  margin-bottom: 0.5rem;
}

.legal-quote {
  margin: 1rem 0 0;
  padding: 0.75rem 1.1rem;
  border-left: 3px solid var(--brand-gold);
  background: #f8fafc;
  border-radius: 0 0.4rem 0.4rem 0;
}

/* --- FAQ accordion (dark bars + gold chevron) --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  background: var(--brand-navy);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 1.25rem;
  border-radius: 0.6rem;
  transition: background 0.15s ease;
}

.faq-question:hover {
  background: var(--brand-navy-light);
}

.faq-question:not(.collapsed) {
  border-radius: 0.6rem 0.6rem 0 0;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-gold);
  transition: transform 0.2s ease;
}

.faq-question:not(.collapsed) .faq-icon {
  transform: rotate(90deg);
}

.faq-answer {
  background: #f8fafc;
  padding: 1.1rem 1.25rem;
  border-radius: 0 0 0.6rem 0.6rem;
  color: #334155;
}

.faq-answer p,
.faq-answer ul {
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  padding-left: 1.2rem;
}

/* Bootstrap 5 dropped .text-justify (present in v4) — Konsultacja landing
   page uses justified body copy throughout, on request. */
.text-justify {
  text-align: justify;
}

/* --- Contact form embedded in a dark CTA band --- */
.contact-form-card {
  background: #fff;
  border-radius: 0.9rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  padding: 1.75rem;
  color: var(--brand-navy);
}

.contact-form-card label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

/* --- Atlas Rezydencji Podatkowych: tile before an image is uploaded --- */
.atlas-placeholder {
  background: #f1f5f9;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.15);
  color: #94a3b8;
  font-size: 0.85rem;
}
