/*
Theme Name: UbezpieczenieBudowy
Theme URI: https://ubezpieczeniebudowy.com
Author: KG Broker
Author URI: https://gawron-broker.pl
Description: Custom motyw dla ubezpieczeniebudowy.com — ekspercki portal o ubezpieczeniach budowy z systemem konwersji.
Version: 1.0.0
License: Proprietary
Text Domain: ubtheme
*/

/* ══════════════════════════════════════
   DESIGN SYSTEM
   Colors from logo SVG
   Typography: Outfit + Fraunces
   ══════════════════════════════════════ */

:root {
  /* Brand — from logo */
  --brand: #0075A7;
  --brand-dark: #00476B;
  --brand-deep: #00334F;
  --brand-light: #E6F3F8;
  --brand-10: rgba(0,117,167,0.1);
  --brand-5: rgba(0,117,167,0.05);

  /* Neutrals */
  --ink: #1A1A2E;
  --ink-80: #3B3B3B;
  --ink-60: #666666;
  --ink-40: #999999;
  --ink-20: #CCCCCC;
  --ink-10: #E8E8E8;
  --ink-5: #F4F5F7;
  --white: #FFFFFF;

  /* Accents */
  --gold: #E8A838;
  --gold-light: #FFF8EC;
  --green: #00C48C;
  --green-light: #E6FAF3;
  --red: #FF4757;
  --red-light: #FFF0F1;

  /* Stage colors (monday.com) */
  --stage-plan: #00CA72;
  --stage-build: #579BFC;
  --stage-protect: #FDAB3D;
  --stage-done: #A25DDC;

  /* Tile palette */
  --tile-1: #0075A7;
  --tile-2: #00A878;
  --tile-3: #E8A838;
  --tile-4: #6C5CE7;
  --tile-5: #FF6B6B;
  --tile-6: #00476B;

  /* System */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.14);
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1180px;
  --gap: 28px;
}

/* ══════════ RESET ══════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-80);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--brand-dark); }
ul, ol { list-style: none; }

/* ══════════ UTILITY ══════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}
.section { padding: 100px 0; }
.section--gray { background: var(--ink-5); }
.section--dark { background: var(--brand-deep); color: var(--white); }
.text-center { text-align: center; }

/* ══════════ TYPOGRAPHY ══════════ */
.display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.25; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--brand);
}
.section-title {
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.08rem;
  color: var(--ink-40);
  line-height: 1.7;
  max-width: 560px;
}

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  line-height: 1.4;
}
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,117,167,0.25); }
.btn--outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn--outline:hover { background: var(--brand); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #D4922E; color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,168,56,0.3); }
.btn--white { background: var(--white); color: var(--brand-deep); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn--ghost:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.btn--large { padding: 16px 36px; font-size: 1.02rem; border-radius: 12px; }
.btn--small { padding: 8px 18px; font-size: 0.82rem; }
.btn--block { width: 100%; justify-content: center; }

/* ══════════ NAV ══════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--ink-10);
  transition: box-shadow var(--ease);
}
.site-nav.scrolled {
  box-shadow: 0 4px 30px rgba(0,51,80,0.06);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo { height: 40px; width: auto; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-menu a {
  color: var(--ink-80);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--ease);
}
.nav-menu a:hover { color: var(--brand); }
.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-phone {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-80);
  padding: 8px;
}

/* ══════════ HERO ══════════ */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--white);
  position: relative;
  padding-top: 76px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: -5%;
  bottom: 0;
  width: 45%;
  background: linear-gradient(160deg, var(--brand-light) 0%, rgba(0,117,167,0.04) 60%, transparent 100%);
  border-radius: 0 0 0 40%;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 50%;
  height: 90%;
  background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=800&q=80') center/cover no-repeat;
  opacity: 0.25;
  z-index: 1;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 80%);
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 8px;
  background: var(--green-light);
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0A7B5A;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: 3.8rem;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 .price {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), #FFF3D6);
  padding: 2px 16px;
  border-radius: 8px;
  color: var(--gold);
}
.hero-desc {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink-60);
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  margin-top: 12px;
}
.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-proof-num {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}
.hero-proof-label {
  font-size: 0.78rem;
  color: var(--ink-40);
  line-height: 1.3;
}
.hero-proof-divider {
  width: 1px;
  height: 36px;
  background: var(--ink-10);
}

/* ══════════ TRUST BAR ══════════ */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.trust-bar-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-20);
  font-weight: 600;
}
.trust-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-20);
  letter-spacing: 0.5px;
  transition: color var(--ease);
}
.trust-logo:hover { color: var(--brand); }

/* ══════════ STAGE CARDS ══════════ */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stage-card {
  border-radius: 20px;
  padding: 36px 28px 28px;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.stage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  color: var(--white);
}
.stage-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: transform var(--ease);
}
.stage-card:hover::before { transform: scale(1.6); }
.stage-card--plan { background: linear-gradient(160deg, #00CA72, #00A85A); }
.stage-card--build { background: linear-gradient(160deg, #579BFC, #3B7AE0); }
.stage-card--protect { background: linear-gradient(160deg, #FDAB3D, #E89520); }
.stage-card--done { background: linear-gradient(160deg, #A25DDC, #8B3FC4); }
.stage-card-icon {
  font-size: 2.4rem;
  margin-bottom: auto;
  opacity: 0.85;
}
.stage-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--white);
}
.stage-card p {
  font-size: 0.82rem;
  opacity: 0.8;
  line-height: 1.45;
}
.stage-card .stage-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.7;
  transition: all var(--ease);
}
.stage-card:hover .stage-cta {
  opacity: 1;
  transform: translateX(4px);
}

/* ══════════ CONTENT TILES ══════════ */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--ease);
  cursor: pointer;
  text-decoration: none;
  display: block;
  min-height: 200px;
  color: var(--white);
}
.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}
.tile--1 { background: linear-gradient(145deg, #0088C2, #005F8A); }
.tile--2 { background: linear-gradient(145deg, #00B88A, #008C68); }
.tile--3 { background: linear-gradient(145deg, #F0B542, #D49A30); color: var(--ink); }
.tile--4 { background: linear-gradient(145deg, #7B6FE8, #5A4FCF); }
.tile--5 { background: linear-gradient(145deg, #FF7979, #E84545); }
.tile--6 { background: linear-gradient(145deg, #00557A, #003D5C); }
.tile::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: transform var(--ease);
}
.tile:hover::before { transform: scale(1.5); }
.tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.tile--3 .tile-icon { background: rgba(0,0,0,0.08); }
.tile-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
}
.tile-desc {
  font-size: 0.82rem;
  opacity: 0.75;
  line-height: 1.5;
  position: relative;
}
.tile-count {
  position: absolute;
  bottom: 28px;
  right: 28px;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity var(--ease);
}
.tile-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--ease);
  opacity: 0;
}
.tile:hover .tile-arrow { opacity: 1; transform: translateX(4px); }
.tile:hover .tile-count { opacity: 0; }

/* ══════════ STEPS ══════════ */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 48px;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--ink-10);
}
.step {
  text-align: center;
  position: relative;
  padding: 0 16px;
}
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--brand);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand);
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: all var(--ease);
}
.step:hover .step-num {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0,117,167,0.3);
}
.step h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.82rem; color: var(--ink-40); line-height: 1.55; }

/* ══════════ CALCULATOR ══════════ */
.calc-section {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-dark), #004A70);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.calc-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.calc-box {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 32px;
}
.calc-field { margin-bottom: 16px; }
.calc-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.calc-field select,
.calc-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255,255,255,0.05);
  outline: none;
  transition: all var(--ease);
  appearance: none;
}
.calc-field select:focus,
.calc-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,117,167,0.2);
}
.calc-field input::placeholder { color: rgba(255,255,255,0.25); }
.calc-field select option { background: var(--brand-deep); color: var(--white); }

/* ══════════ AUTHORITY ══════════ */
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.auth-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.auth-num-card {
  background: var(--ink-5);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--ease);
}
.auth-num-card:hover {
  background: var(--brand-light);
  transform: translateY(-4px);
}
.auth-num-card .num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
}
.auth-num-card .num-label {
  font-size: 0.78rem;
  color: var(--ink-40);
  font-weight: 500;
}

/* ══════════ INSURANCE TILES ══════════ */
.ins-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ins-tile {
  background: var(--white);
  border: 2px solid var(--ink-10);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--ink-80);
  transition: all var(--ease);
  display: block;
}
.ins-tile:hover {
  border-color: var(--brand);
  color: var(--ink-80);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ins-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  transition: background var(--ease);
}
.ins-tile:hover .ins-tile-icon { background: var(--brand); }
.ins-tile-title { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ins-tile-desc { font-size: 0.78rem; color: var(--ink-40); line-height: 1.5; }

/* ══════════ CTA BANNER ══════════ */
.cta-banner {
  border-radius: 24px;
  padding: 72px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-dark), var(--brand));
}
.cta-banner h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}
.cta-banner h2 span { color: var(--gold); }
.cta-banner p { color: rgba(255,255,255,0.55); font-size: 0.92rem; margin-top: 12px; }

/* ══════════ TESTIMONIALS ══════════ */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test-card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--ease);
}
.test-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.test-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 3px; margin-bottom: 16px; }
.test-quote {
  font-size: 0.92rem;
  color: var(--ink-60);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--brand-light);
}
.test-author { font-weight: 700; font-size: 0.85rem; }
.test-meta { font-size: 0.75rem; color: var(--ink-40); margin-top: 2px; }

/* ══════════ FAQ ══════════ */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--ink-10); }
.faq-q {
  padding: 22px 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--ease);
}
.faq-q:hover { color: var(--brand); }
.faq-q .toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink-40);
  transition: all var(--ease);
  flex-shrink: 0;
}
.faq-item.open .faq-q .toggle { background: var(--brand); color: var(--white); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 22px; }
.faq-a p { font-size: 0.92rem; color: var(--ink-60); line-height: 1.7; }

/* ══════════ FOOTER ══════════ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand-desc { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255,255,255,0.45); font-size: 0.85rem; display: block; margin-bottom: 10px; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ══════════ ARTICLE CTA BLOCKS ══════════ */
.article-cta-inline {
  padding: 16px 0;
  margin: 16px 0;
  border-left: 3px solid var(--brand);
  padding-left: 20px;
  font-size: 0.95rem;
}
.article-cta-inline a { font-weight: 600; }

.article-cta-box {
  background: var(--brand-light);
  border: 2px solid rgba(0,117,167,0.15);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px 0;
}
.article-cta-box h3 { font-size: 1.15rem; margin-bottom: 10px; }
.article-cta-box p { color: var(--ink-60); margin-bottom: 16px; }

.article-cta-end {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  border-radius: var(--radius);
  padding: 48px 40px;
  margin: 48px 0 0;
  color: var(--white);
  text-align: center;
}
.article-cta-end h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 12px; }
.article-cta-end p { color: rgba(255,255,255,0.6); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ══════════ AUTHOR BOX ══════════ */
.author-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--ink-5);
  border-radius: var(--radius);
  margin: 40px 0;
}
.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand);
}
.author-box .author-name { font-weight: 700; font-size: 1rem; }
.author-box .author-bio { font-size: 0.85rem; color: var(--ink-40); line-height: 1.5; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  .tiles-grid, .ins-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-grid, .calc-inner { grid-template-columns: 1fr; gap: 40px; }
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; padding: 48px 32px; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-proof { flex-wrap: wrap; gap: 20px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 2rem; }
  .tiles-grid, .ins-grid, .stage-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; gap: 28px; }
  .steps-row::before { display: none; }
  .test-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { display: none !important; }
  .nav-cta-wrap { display: none !important; }
  .nav-toggle { display: block !important; }
  .hero::after, .hero::before { display: none; }
  .calc-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ══════════ ADDITIONAL STYLES ══════════ */

/* Breadcrumbs */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--ink-40);
  border-bottom: 1px solid var(--ink-10);
  margin-top: 76px;
}
.breadcrumbs a { color: var(--ink-40); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { margin: 0 6px; color: var(--ink-20); }

/* Article */
.article-layout { max-width: 100%; margin: 0 auto; }
.article-header { margin-bottom: 32px; }
.article-cats { display: flex; gap: 8px; margin-bottom: 16px; }
.article-cat {
  background: var(--brand-light);
  color: var(--brand);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-header h1 { font-size: 2.4rem; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.article-meta-item { font-size: 0.82rem; color: var(--ink-40); display: flex; align-items: center; }
.article-thumbnail { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.article-thumbnail img { width: 100%; }
.article-content { font-size: 1.02rem; line-height: 1.8; color: var(--ink-80); }
.article-content h2 { font-size: 1.6rem; margin: 40px 0 16px; }
.article-content h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.article-content p { margin-bottom: 1.2em; }
.article-content ul, .article-content ol { margin: 0 0 1.2em 24px; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: var(--radius-sm); margin: 24px 0; }
.article-content blockquote {
  border-left: 4px solid var(--brand);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--ink-5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-60);
}
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.article-content th, .article-content td {
  padding: 12px 16px;
  border: 1px solid var(--ink-10);
  text-align: left;
  font-size: 0.92rem;
}
.article-content th { background: var(--ink-5); font-weight: 600; }

/* Related posts */
.related-posts { margin-top: 64px; padding-top: 40px; border-top: 2px solid var(--ink-10); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  text-decoration: none;
  color: var(--ink-80);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--ease);
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink-80); }
.related-card-img { height: 160px; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-body { padding: 16px; }
.related-card-body h4 { font-size: 0.95rem; line-height: 1.35; margin-bottom: 8px; }
.related-card-meta { font-size: 0.75rem; color: var(--ink-40); }

/* Archive grid */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.archive-card {
  text-decoration: none;
  color: var(--ink-80);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--ease);
  background: var(--white);
}
.archive-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink-80); }
.archive-card-img { height: 200px; overflow: hidden; }
.archive-card-img img { width: 100%; height: 100%; object-fit: cover; }
.archive-card-img--placeholder {
  background: var(--ink-5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.archive-card-body { padding: 24px; }
.archive-card-body h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; }
.archive-card-body p { font-size: 0.88rem; color: var(--ink-60); line-height: 1.55; margin-bottom: 12px; }
.archive-card-meta { font-size: 0.75rem; color: var(--ink-40); display: flex; gap: 16px; }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--ink-10);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}
.nav-mobile.open { display: block; }
.nav-mobile-menu { list-style: none; }
.nav-mobile-menu li { border-bottom: 1px solid var(--ink-5); }
.nav-mobile-menu a {
  display: block;
  padding: 14px 28px;
  color: var(--ink-80);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-mobile-menu a:hover { color: var(--brand); background: var(--ink-5); }

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--white);
  border-top: 3px solid var(--brand);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 14px 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-close {
  background: none;
  border: 1px solid var(--ink-10);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-40);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
}
.sticky-cta-close:hover { background: var(--ink-5); color: var(--ink); }

/* Pagination */
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-60);
  background: var(--ink-5);
  text-decoration: none;
  transition: all var(--ease);
}
.pagination .page-numbers:hover, .pagination .page-numbers.current {
  background: var(--brand);
  color: var(--white);
}

/* Pulse animation */
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,196,140,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0,196,140,0); }
}

/* Responsive archive */
@media (max-width: 768px) {
  .archive-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.8rem; }
  .sticky-cta .container { flex-direction: column; text-align: center; gap: 12px; }
}

/* ══════════ PAGE CONTENT FIX ══════════ */
.page-content {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink-80);
}
.page-content h2 { font-size: 1.6rem; margin: 40px 0 16px; }
.page-content h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.page-content p { margin-bottom: 1.2em; }
.page-content ul, .page-content ol { margin: 0 0 1.2em 24px; list-style: initial; }
.page-content li { margin-bottom: 8px; }
.page-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; }

/* Fix WPBakery remnants */
.wpb_wrapper, .vc_row, .vc_column-inner { max-width: 100% !important; }
.wpb_text_column p { margin-bottom: 1.2em; }

/* Fix Porto remnants */
.porto-content, .entry-content { width: 100%; max-width: 100%; }

/* Custom logo fix */
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { height: 60px !important; width: auto !important; max-height: 60px !important; }
.nav-logo { height: 60px; width: auto; }
.site-nav .custom-logo-link img { height: 60px !important; width: auto !important; max-height: 60px !important; }

/* Nav menu items styling */
.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-menu li { list-style: none; }
.nav-menu li a { color: var(--ink-80); font-size: 0.88rem; font-weight: 500; text-decoration: none; transition: color 0.3s; }
.nav-menu li a:hover { color: var(--brand); }

/* Stage section spacing */
.stage-section { padding: 80px 0; }

/* ══════════ CONTACT PAGE ══════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-10);
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-label { font-size: 0.78rem; color: var(--ink-40); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-info-value { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.contact-info-value a { color: var(--brand); }
.contact-form-box {
  background: var(--ink-5);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-form-box h3 { margin-bottom: 8px; }
.contact-form-box p { color: var(--ink-40); font-size: 0.92rem; margin-bottom: 24px; }
.contact-form-field { margin-bottom: 16px; }
.contact-form-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-60); margin-bottom: 6px; }
.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ink-10);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-80);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease);
}
.contact-form-field input:focus,
.contact-form-field textarea:focus { border-color: var(--brand); }
.contact-form-field textarea { min-height: 120px; resize: vertical; }

/* ══════════ FAQ PAGE ══════════ */
.faq-page-list { max-width: 800px; }
.faq-page-list .faq-item { padding: 0; }
.faq-page-list .faq-q { padding: 24px 0; font-size: 1.08rem; }
.faq-page-list .faq-a p { font-size: 0.95rem; }

/* ══════════ ABOUT PAGE ══════════ */
.about-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--brand);
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0;
}
.about-value-card {
  background: var(--ink-5);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.about-value-card .num {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
}
.about-value-card .num-label { font-size: 0.82rem; color: var(--ink-40); }

/* ══════════ LEGAL PAGE ══════════ */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.4rem; margin: 36px 0 12px; color: var(--ink); }
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.legal-content p { font-size: 0.95rem; color: var(--ink-60); line-height: 1.75; margin-bottom: 1em; }
.legal-content ul { margin: 0 0 1.2em 24px; list-style: disc; }
.legal-content li { font-size: 0.95rem; color: var(--ink-60); margin-bottom: 6px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; }
  .about-values { grid-template-columns: 1fr; }
}

/* ══════════ STICKY CTA REDESIGN ══════════ */
.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sticky-cta-text { display: flex; flex-direction: column; gap: 2px; }
.sticky-cta-text strong { color: var(--ink); font-size: 0.92rem; }
.sticky-cta-text span { color: var(--ink-40); font-size: 0.78rem; }
.sticky-cta-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sticky-cta-phone { display: none; }

/* ══════════ MOBILE OPTIMIZATION ══════════ */

/* Mobile nav - fixed bottom CTA buttons */
@media (max-width: 768px) {
  /* Nav */
  .nav-cta-wrap { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { height: 60px; }
  .nav-mobile { top: 60px; }

  /* Hero */
  .hero { min-height: auto; padding: 80px 0 48px; }
  .hero h1 { font-size: 2rem; line-height: 1.15; }
  .hero-eyebrow { font-size: 0.72rem; margin-bottom: 20px; }
  .hero-desc { font-size: 1rem; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-proof { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero-proof-divider { display: none; }
  .hero-proof-item { gap: 8px; }

  /* Trust bar */
  .trust-bar-inner { gap: 24px; }
  .trust-bar-label { width: 100%; text-align: center; }
  .trust-logo { font-size: 1rem; }

  /* Stage cards */
  .stage-section { padding: 48px 0; }
  .stage-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stage-card { min-height: 180px; padding: 24px 20px 20px; border-radius: 16px; }
  .stage-card h3 { font-size: 1.1rem; }
  .stage-card-icon { font-size: 1.8rem; }
  .stage-card p { font-size: 0.75rem; }

  /* Section spacing */
  .section { padding: 48px 0; }
  .section-title { font-size: 1.7rem; }
  .section-sub { font-size: 0.95rem; }

  /* Tiles */
  .tiles-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { min-height: 160px; padding: 24px 20px; border-radius: 14px; }
  .tile-title { font-size: 0.95rem; }
  .tile-desc { font-size: 0.75rem; }
  .tile-count { font-size: 0.65rem; bottom: 20px; right: 20px; }
  .tile-icon { width: 40px; height: 40px; font-size: 1.1rem; margin-bottom: 14px; }

  /* Steps */
  .steps-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps-row::before { display: none; }
  .step-num { width: 52px; height: 52px; font-size: 1.1rem; }
  .step h3 { font-size: 0.88rem; }
  .step p { font-size: 0.78rem; }

  /* Calculator */
  .calc-section { padding: 48px 0; }
  .calc-inner { grid-template-columns: 1fr; gap: 32px; }
  .calc-text h2 { font-size: 1.6rem !important; }
  .calc-box { padding: 28px 24px; }

  /* Authority */
  .auth-grid { grid-template-columns: 1fr; gap: 32px; }
  .auth-text h2 { font-size: 1.6rem; }
  .auth-nums { grid-template-columns: 1fr 1fr; gap: 12px; }
  .auth-num-card { padding: 24px 16px; }
  .auth-num-card .num { font-size: 1.6rem; }

  /* Insurance tiles */
  .ins-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ins-tile { padding: 20px 16px; }
  .ins-tile-title { font-size: 0.85rem; }
  .ins-tile-desc { font-size: 0.72rem; }

  /* CTA banner */
  .cta-banner { padding: 36px 24px; border-radius: 16px; flex-direction: column; text-align: center; }
  .cta-banner h2 { font-size: 1.5rem; }

  /* Testimonials */
  .test-grid { grid-template-columns: 1fr; gap: 16px; }
  .test-card { padding: 24px 20px; }

  /* FAQ */
  .faq-q { font-size: 0.92rem; padding: 18px 0; }
  .faq-a p { font-size: 0.85rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Sticky CTA mobile */
  .sticky-cta { padding: 12px 0; }
  .sticky-cta-inner { flex-direction: column; gap: 10px; text-align: center; }
  .sticky-cta-text strong { font-size: 0.85rem; }
  .sticky-cta-text span { font-size: 0.72rem; }
  .sticky-cta-actions { width: 100%; justify-content: center; }
  .sticky-cta-phone { display: inline-flex !important; }

  /* Article */
  .article-header h1 { font-size: 1.6rem; }
  .article-meta { gap: 12px; }
  .related-grid { grid-template-columns: 1fr; }

  /* Archive */
  .archive-grid { grid-template-columns: 1fr; gap: 16px; }
  .archive-card-img { height: 160px; }

  /* Risk stats */
  .auth-grid + div,
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Contextual CTA bridge */
  [style*="display:flex"][style*="justify-content:space-between"] {
    flex-direction: column !important;
    text-align: center;
  }

  /* About page */
  .about-hero { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; width: 150px; height: 150px; }
  .about-values { grid-template-columns: 1fr; }

  /* Contact page */
  .contact-grid { grid-template-columns: 1fr; }
}

/* Extra small screens */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 1.65rem; }
  .stage-grid { grid-template-columns: 1fr; }
  .tiles-grid { grid-template-columns: 1fr; }
  .ins-grid { grid-template-columns: 1fr; }
  .auth-nums { grid-template-columns: 1fr; }
  .stage-card { min-height: auto; }
}

/* Touch-friendly elements */
@media (hover: none) {
  .tile:hover { transform: none; box-shadow: none; }
  .stage-card:hover { transform: none; box-shadow: none; }
  .ins-tile:hover { transform: none; box-shadow: none; }
  .test-card:hover { transform: none; box-shadow: none; }
  .stage-card .stage-cta { opacity: 1; transform: none; }
  .tile-arrow { display: none; }
}

/* Safe area for iOS notch */
@supports (padding: env(safe-area-inset-bottom)) {
  .sticky-cta { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
}

/* ══════════ MOBILE CRITICAL FIXES ══════════ */

/* Force hide desktop nav elements on mobile */
@media (max-width: 900px) {
  .nav-menu { display: none !important; }
  .nav-cta-wrap { display: none !important; }
  .nav-toggle { display: block !important; }
  
  /* Logo smaller on mobile */
  .custom-logo { height: 44px !important; max-height: 44px !important; }
  .site-nav .custom-logo-link img { height: 44px !important; max-height: 44px !important; }
  .nav-inner { height: 60px; }
}

/* Wycena form mobile fixes */
@media (max-width: 768px) {
  /* Form container */
  .page-content form,
  .page-content [style*="max-width"] {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Form fields full width */
  .page-content input,
  .page-content select,
  .page-content textarea {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important; /* prevents iOS zoom on focus */
    box-sizing: border-box !important;
  }
  
  /* Form rows stack vertically */
  .page-content [style*="grid-template-columns"],
  .page-content .ubform-row {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }
  
  /* Form buttons full width */
  .page-content button[type="submit"],
  .page-content .ubform-btn,
  .page-content [style*="cursor:pointer"][style*="padding"] {
    width: 100% !important;
  }
  
  /* Breadcrumbs smaller */
  .breadcrumbs { font-size: 0.72rem; padding: 8px 0; }
  
  /* Stats row stack on mobile */
  div[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  /* CTA bridge stack */
  div[style*="display:flex"][style*="justify-content:space-between"] {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  /* Footer CTA section */
  .section--dark .container { padding: 0 20px; }
  .section--dark h2 { font-size: 1.5rem !important; }
}

/* Very small phones */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 1.65rem !important; }
  .section-title { font-size: 1.5rem !important; }
  .stage-card { min-height: auto; padding: 20px 16px 16px; }
  .stage-card h3 { font-size: 1rem; }
  .stage-card-icon { font-size: 1.5rem; }
  .tile { min-height: auto; padding: 20px 16px; }
  .tile-title { font-size: 0.88rem; }
  .auth-num-card .num { font-size: 1.4rem; }
  .cta-banner h2 { font-size: 1.3rem !important; }
}

/* ══════════ WYCENA FORM MOBILE FIXES ══════════ */

/* Fix 1: Breadcrumbs under fixed nav */
@media (max-width: 900px) {
  .breadcrumbs { margin-top: 60px !important; }
}

/* Fix 2: Stepper on mobile - hide labels, show only numbers */
@media (max-width: 600px) {
  .ubform-step-label {
    display: none !important;
  }
  .ubform-step-line {
    width: 40px !important;
  }
  .ubform-step-dot {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.9rem !important;
  }
  .ubform-progress {
    margin-bottom: 24px !important;
    padding-bottom: 8px !important;
  }
  .ubform-wrapper {
    padding: 0 12px !important;
    margin: 16px auto !important;
  }
  .ubform-header {
    margin-bottom: 20px !important;
  }
  .ubform-header h1 {
    font-size: 1.2rem !important;
  }
  .ubform-header p {
    font-size: 0.82rem !important;
  }
  .ubform-card {
    padding: 20px 16px !important;
    margin-top: 20px !important;
  }
  .ubform-card h2 {
    font-size: 1.1rem !important;
  }
  .ubform-row,
  .ubform-row.triple {
    grid-template-columns: 1fr !important;
  }
  .ubform-group input,
  .ubform-group select,
  .ubform-group textarea {
    font-size: 16px !important;
    padding: 14px !important;
  }
  .ubform-buttons {
    flex-direction: column !important;
  }
  .ubform-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 14px 20px !important;
  }
  .ubform-btn-next,
  .ubform-btn-submit {
    margin-left: 0 !important;
  }
  .ubform-radio-group {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .ubform-radio-option {
    min-width: 100% !important;
    flex: none !important;
  }
  .ubform-radio-option label.radio-label {
    padding: 14px 16px !important;
  }
  .ubform-trust {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }
  #ubCalcBox {
    padding: 14px 16px !important;
  }
  #ubCalcPrice {
    font-size: 1.4rem !important;
  }
  #ubSummary {
    padding: 16px !important;
    font-size: 0.82rem !important;
  }
  #ubSummary div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .pesel-tooltip {
    font-size: 0.75rem !important;
    padding: 10px 12px !important;
  }
  .ub-badge {
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
  }
}

/* Fix 3: Very small phones */
@media (max-width: 380px) {
  .ubform-step-line {
    width: 28px !important;
  }
  .ubform-step-dot {
    width: 34px !important;
    height: 34px !important;
  }
  .ubform-header h1 {
    font-size: 1.05rem !important;
  }
}

/* ══════════ END OF MOBILE FIXES ══════════ */

/* ══════════ WYCENA PAGE TOP SPACING ══════════
   Nav fixed: 76px desktop / 60px mobile (≤900px)
   ubform-wrapper ma margin: 40px auto w inline CSS formularza —
   nadpisujemy go tak żeby górna krawędź zaczęła się PO navie
   z dodatkowym oddechem 20px
═══════════════════════════════════════════════ */

.wycena-page-wrap {
  padding-top: 0;
}

/* Desktop ≥901px: nav=76px + 20px oddechu */
.wycena-page-wrap .ubform-wrapper {
  margin-top: 96px !important;
}

/* Mobile ≤900px: nav=60px + 12px oddechu */
@media (max-width: 900px) {
  .wycena-page-wrap .ubform-wrapper {
    margin-top: 72px !important;
  }
}

/* Fallback dla starszych inline styli (poprzednie wersje motywu) */
@media (max-width: 900px) {
  div[style*="padding-top:80px"],
  div[style*="padding-top:76px"] {
    padding-top: 60px !important;
  }
}
