/* Mazowieckie LP - mobile first, conversion-optimized */
:root {
  --color-primary: #13255B;
  --color-secondary: #C8DCFC;
  --color-accent: #C9B4A5;
  --color-button: #1E4EC4;
  --color-text: #454444;
  --color-bg: #F2F5F7;
  --color-white: #FFFFFF;
  --color-success: #109C07;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius-btn: 10px;
  --shadow: 0 8px 26px rgba(19, 37, 91, 0.12);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.5;
  font-size: 16px;
}

.container {
  width: min(100% - 1.5rem, 1120px);
  margin-inline: auto;
}

.narrow { max-width: 860px; }
.center { text-align: center; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(1.2rem, 4vw, 2.1rem);
  line-height: 1.2;
  font-weight: 800;
}

h2 { font-size: clamp(1.25rem, 3.6vw, 1.85rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
a { color: var(--color-button); }

.botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.site-header {
  position: sticky;   /* pasek z logo i menu jedzie razem z użytkownikiem */
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 37, 91, 0.08);
  box-shadow: 0 6px 20px rgba(19, 37, 91, 0.06);
}

html { scroll-padding-top: 5rem; }   /* linki do sekcji nie chowają nagłówka pod paskiem */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
}

.logo-mascot {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.logo:hover .logo-mascot { transform: translateY(-2px) rotate(-4deg); }

.logo-text {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.logo-text small {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--color-text);
}

.header-phone {
  color: var(--color-button);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }

.btn-primary {
  background: var(--color-button);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(30, 78, 196, 0.35);
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 0.95rem;
}

.btn-block { width: 100%; }

.hero {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
  text-align: center;
  padding: 1.35rem 0 1rem;
}

.hero-content {
  max-width: 760px;
}

.lead {
  font-size: clamp(0.92rem, 2.5vw, 1.08rem);
  max-width: 640px;
  margin: 0 auto 0.9rem;
  line-height: 1.5;
}

.hero-cta { margin: 0 0 0.55rem; }

.hero-proof {
  font-size: 0.88rem;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0;
}

.trust-bar {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.85rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.45rem;
  text-align: center;
  align-items: start;
}

.trust-grid strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 3.1vw, 1.7rem);
  line-height: 1.1;
}

.trust-grid span {
  display: block;
  margin-top: 0.18rem;
  font-size: clamp(0.75rem, 3vw, 0.92rem);   /* 16.10.2026: na telefonie co najmniej 12 px (było 9,3 px) */
  line-height: 1.2;
  opacity: 0.94;
}

.section { padding: 1.85rem 0; }
.section-alt { background: var(--color-bg); }

.form-section {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
}

.section-params {
  background: linear-gradient(180deg, rgba(200, 220, 252, 0.25) 0%, rgba(200, 220, 252, 0.42) 100%);
}

.section-params .container {
  background: var(--color-white);
  border: 1px solid rgba(19, 37, 91, 0.12);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.05rem;
}

.section-params h2 { text-align: center; }

.form-wrap {
  display: flex;
  justify-content: center;
}

.form-card {
  background: var(--color-white);
  border: 1px solid rgba(19, 37, 91, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
  width: min(100%, 620px);
}

.form-title {
  margin-bottom: 0.2rem;
  font-size: clamp(1.1rem, 3.2vw, 1.55rem);
}

.form-subtitle {
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.form--compact .field { margin-bottom: 0.62rem; }

.field label,
.field legend {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.28rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  padding: 0.58rem 0.72rem;
  font: inherit;
  font-size: 0.93rem;
  background: var(--color-white);
  min-height: 2.5rem;
}

.field input:focus {
  outline: 2px solid var(--color-secondary);
  border-color: var(--color-button);
}

.form-row {
  display: grid;
  gap: 0.55rem;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
}

.radio-row label,
.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--color-text);
  font-weight: 400;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
}

.checkbox-field label {
  font-size: 0.78rem;
  line-height: 1.4;
}

.btn-submit {
  margin-top: 0.25rem;
  min-height: 2.85rem;
  font-size: 1rem;
}

.section h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: 0 0 0.9rem;
}

.section-intro {
  font-size: 0.93rem;
  margin-bottom: 0.75rem;
}

.regions {
  font-size: 0.84rem;
  background: var(--color-white);
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  margin-bottom: 1.1rem;
}

.two-cols {
  display: grid;
  gap: 1rem;
  margin: 1.15rem 0;
}

.card {
  padding: 1rem;
  border-radius: 12px;
  background: var(--color-white);
  font-size: 0.88rem;
}

.card h3 {
  margin-top: 0;
  font-size: 0.93rem;
  color: var(--color-primary);
}

.card ul { margin: 0; padding-left: 1.15rem; }

.card-yes { border-top: 3px solid #109C07; }
.card-no { border-top: 3px solid #960404; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 1.25rem 0;
}

.stat {
  text-align: center;
  padding: 0.9rem;
  background: var(--color-bg);
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label { font-size: 0.75rem; }

.fine-print { font-size: 0.78rem; opacity: 0.85; }

.check-list {
  list-style: none;
  padding: 0;
  font-size: 0.91rem;
}

.check-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.45rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-button);
  font-weight: 700;
}

.warn {
  background: #fff8f0;
  border-left: 4px solid var(--color-accent);
  padding: 0.7rem 0.95rem;
  font-size: 0.84rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 1.35rem 0;
}

.step {
  background: var(--color-bg);
  padding: 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--color-button);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  color: var(--color-primary);
  font-size: 1rem;
}

.success-fee--inline {
  margin-top: 1rem;
  background: var(--color-secondary);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.success-fee--inline p {
  margin: 0;
  font-size: 0.92rem;
}

.testimonials--3 {
  display: grid;
  gap: 1rem;
}

.testimonials--3 blockquote {
  margin: 0;
  padding: 0.95rem;
  background: var(--color-white);
  border-radius: 10px;
  border-left: 4px solid var(--color-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.testimonials--3 p { margin: 0; }

.testimonials--3 footer {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--color-primary);
  font-style: normal;
}

.testimonials--3 .role {
  display: block;
  color: var(--color-text);
  font-weight: 400;
  margin-top: 0.15rem;
}

.btn-outline {
  background: transparent;
  color: var(--color-button);
  border-color: var(--color-button);
}

.cta-inline {
  margin-top: 1.35rem;
  text-align: center;
}

.cta-inline .btn {
  padding: 0.9rem 1.7rem;
  font-size: 0.95rem;
}

@media (hover: hover) {
  .stat:hover,
  .step:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 10px 24px rgba(19, 37, 91, 0.14);
  }
}

.final-cta {
  background: var(--color-primary);
  color: var(--color-white);
}

.final-cta h2 { color: var(--color-white); }

.final-cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.93rem;
}

.final-cta .btn-lg { margin-inline: auto; }

/* Stopka (układ jak hyros.com, nasz styl) */
.site-footer {
  padding: 2.5rem 0 calc(5.5rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.9rem;
  background: #fafbfc;
  border-top: 1px solid rgba(19, 37, 91, 0.1);
  color: #5c6370;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.25rem;
}

.footer-brand { grid-column: 1 / -1; }

.footer-tagline {
  margin: 0.85rem 0 0.9rem;
  max-width: 17rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #5c6370;
}

.footer-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.footer-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(19, 37, 91, 0.16);
  border-radius: 8px;
  background: var(--color-white);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.footer-badge-btn:hover {
  border-color: var(--color-button);
  box-shadow: 0 6px 16px rgba(30, 78, 196, 0.14);
  transform: translateY(-1px);
}

.footer-badge-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--color-button);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Popup z certyfikatem */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.cert-modal[hidden] { display: none; }
.cert-modal.is-in { opacity: 1; }

.cert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 48, 0.72);
  backdrop-filter: blur(3px);
}

.cert-modal__box {
  position: relative;
  max-width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border-radius: 14px;
  background: var(--color-white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cert-modal.is-in .cert-modal__box { transform: none; }

.cert-modal__box img {
  display: block;
  width: 100%;
  height: auto;
}

.cert-modal__close {
  position: sticky;
  top: 0.6rem;
  float: right;
  margin: 0.6rem 0.6rem -2.8rem 0;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(19, 37, 91, 0.25);
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

body.cert-open { overflow: hidden; }
body.cert-open .wf-chat, body.cert-open .sticky-cta { display: none; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  overflow-wrap: anywhere;   /* 16.10.2026: biuro@waszkiefinanse.pl wystawał poza ekran 320 px */
}

.footer-col h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}

.footer-col a,
.footer-social a {
  color: #5c6370;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover,
.footer-social a:hover { color: var(--color-button); }

.footer-soon { color: #98a2b3; }

.footer-soon em {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  background: #eef3fb;
  color: var(--color-button);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 600;
  vertical-align: 0.08em;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(19, 37, 91, 0.1);
  font-size: 0.82rem;
}

.footer-bottom p { margin: 0; }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 960px) {
  .site-footer { padding: 3.5rem 0 2rem; }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1.15fr 0.9fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 110;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-btn);
  background: var(--color-button);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 8px 22px rgba(30, 78, 196, 0.4);
}

.sticky-cta.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(1rem);
}

.reveal-section {
  opacity: 1;
  transform: none;
}

body.reveal-enabled .reveal-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.reveal-enabled .reveal-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Analysis loader overlay */
.analysis-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 37, 91, 0.72);
  backdrop-filter: blur(4px);
  padding: 1.25rem;
}

.analysis-loader[hidden] { display: none; }

.analysis-loader__card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.6rem;
  width: min(100%, 340px);
  text-align: center;
  box-shadow: 0 20px 50px rgba(19, 37, 91, 0.28);
}

.progress-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.1rem;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring__track {
  fill: none;
  stroke: #e6ecf5;
  stroke-width: 8;
}

.progress-ring__value {
  fill: none;
  stroke: var(--color-button);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.05s linear;
}

.progress-ring__pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
}

.analysis-loader__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
  font-weight: 700;
}

.analysis-loader__sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-text);
  opacity: 0.85;
}

/* ===== Thank-you page ===== */
.ty-page {
  background: var(--color-bg);
  min-height: 100vh;
}

.ty-header {
  background: var(--color-white);
  border-bottom: 1px solid rgba(19, 37, 91, 0.08);
  padding: 0.55rem 0;
}

.ty-main { padding: 1.5rem 0 2.5rem; }

.ty-score-section {
  text-align: center;
  padding: 1.25rem 0 1.75rem;
}

.ty-score-section h1 {
  font-size: clamp(1.25rem, 3.8vw, 1.85rem);
  margin-bottom: 1.1rem;
}

.score-ring {
  position: relative;
  width: min(200px, 58vw);
  height: min(200px, 58vw);
  margin: 0.85rem auto 1rem;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring__track {
  fill: none;
  stroke: #dde6f3;
  stroke-width: 10;
}

.score-ring__value {
  fill: none;
  stroke: var(--color-button);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 502.65;
  stroke-dashoffset: 502.65;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-ring__value.is-ready {
  stroke: var(--color-success);
}

.score-ring__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-ring__pct {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.score-ring__label {
  font-size: 0.78rem;
  color: var(--color-text);
  margin-top: 0.2rem;
}

.ty-score-copy {
  max-width: 520px;
  margin: 0 auto 0.25rem;
  font-size: 0.92rem;
  color: #667085;
  font-weight: 400;
  line-height: 1.45;
}

.ty-score-sub {
  max-width: 520px;
  margin: 0.25rem auto 0;
  font-size: clamp(1.05rem, 2.8vw, 1.22rem);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.4;
}

.ty-card {
  background: var(--color-white);
  border: 1px solid rgba(19, 37, 91, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.1rem;
  margin-bottom: 1.25rem;
}

.ty-card h2 {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  margin-bottom: 0.85rem;
  text-align: center;
}

.ty-meta {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.ty-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.8rem;
  background: var(--color-bg);
  border-radius: 8px;
  font-size: 0.9rem;
}

.ty-meta-item span { color: var(--color-text); }
.ty-meta-item strong {
  color: var(--color-primary);
  text-align: right;
}

.cost-chart {
  position: relative;
  margin: 0.5rem 0 0.75rem;
}

.line-chart-wrap {
  margin: 0.25rem 0 0.5rem;
}

.line-chart-y-label,
.line-chart-x-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0.75;
  text-align: center;
}

.line-chart-y-label {
  margin-bottom: 0.25rem;
}

.line-chart-x-label {
  margin-top: 0.15rem;
}

.line-chart {
  position: relative;
  width: 100%;
  touch-action: pan-y;
}

.line-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(19, 37, 91, 0.08);
  stroke-width: 1;
}

.chart-axis-label {
  fill: #6b7280;
  font-size: 11px;
  font-family: var(--font-body);
}

.chart-line {
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line--eu { stroke: var(--color-button); }
.chart-line--bank { stroke: #6b778f; }

.chart-area--eu {
  fill: rgba(30, 78, 196, 0.14);
}

.chart-area--bank {
  fill: rgba(107, 119, 143, 0.1);
}

.chart-dot--eu,
.chart-hover-dot.chart-dot--eu {
  fill: var(--color-button);
  stroke: #fff;
  stroke-width: 2;
}

.chart-dot--bank,
.chart-hover-dot.chart-dot--bank {
  fill: #6b778f;
  stroke: #fff;
  stroke-width: 2;
}

.chart-crosshair {
  stroke: rgba(19, 37, 91, 0.28);
  stroke-width: 1.25;
  stroke-dasharray: 4 4;
}

.line-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.75rem;
  line-height: 1.35;
  pointer-events: none;
  z-index: 6;
  min-width: 148px;
  box-shadow: 0 10px 24px rgba(19, 37, 91, 0.22);
}

.line-tooltip strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
}

.line-tooltip span {
  display: block;
}

.line-tooltip__eu { color: #a8c4ff; }
.line-tooltip__bank { color: #d0d5dd; }
.line-tooltip__diff {
  margin-top: 0.28rem;
  color: #9dffb0;
  font-weight: 600;
}

.cost-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

.cost-legend__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cost-legend__swatch {
  width: 18px;
  height: 3px;
  border-radius: 999px;
}

.cost-legend__swatch--eu { background: var(--color-button); }
.cost-legend__swatch--bank { background: #6b778f; }

.cost-note {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  opacity: 0.82;
  text-align: center;
  line-height: 1.4;
}

.cost-savings {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(16, 156, 7, 0.08);
  border: 1px solid rgba(16, 156, 7, 0.25);
  border-radius: 10px;
  text-align: center;
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ===== Clean offer stack (popup + inline) ===== */
.offer-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #eef3fb;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.offer-headline {
  margin: 0 0 0.7rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 4.2vw, 1.9rem);
  line-height: 1.2;
  color: var(--color-primary);
  font-weight: 800;
}

.offer-headline mark {
  background: linear-gradient(180deg, transparent 58%, rgba(200, 220, 252, 0.95) 58%);
  color: inherit;
  padding: 0 0.12em;
}

.offer-lead {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5c6370;
  max-width: 38rem;
}

.offer-stack {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.offer-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
  padding: 0.9rem 0.95rem;
  background: #f7f9fc;
  border: 1px solid rgba(19, 37, 91, 0.08);
  border-radius: 12px;
}

.offer-item__num {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-button);
  line-height: 1;
  padding-top: 0.1rem;
}

.offer-item h3 {
  margin: 0 0 0.28rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.offer-item h3 span {
  color: var(--color-button);
  font-weight: 600;
  white-space: nowrap;
}

.offer-item p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #667085;
}

.offer-item--featured {
  position: relative;
  background: #eef3fb;
  border-color: rgba(30, 78, 196, 0.28);
  box-shadow: 0 8px 22px rgba(19, 37, 91, 0.08);
  padding-top: 1.45rem;
}

.offer-item__tag {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-button);
  background: #fff;
  border: 1px solid rgba(30, 78, 196, 0.2);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.offer-price-block {
  text-align: center;
  padding: 1rem 0.25rem 0.25rem;
}

.offer-price-was {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: #7a8090;
  text-decoration: line-through;
}

.offer-price-now {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.offer-price-now strong {
  display: inline-block;
  margin-left: 0.2rem;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 6vw, 2.35rem);
  font-weight: 800;
  color: var(--color-button);
  line-height: 1;
  vertical-align: middle;
}

.offer-price-note {
  margin: 0 auto 1rem;
  max-width: 32rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--color-text);
}

.offer-fine {
  margin: 0.65rem 0 0;
  font-size: 0.76rem;
  color: #7a8090;
}

.offer-price-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin: 0 0 0.85rem;
}

.offer-price-hero--center {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.offer-price-hero__was {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 800;
  color: #98a2b3;
  text-decoration: line-through;
  text-decoration-thickness: 0.12em;
  text-decoration-color: #98a2b3;
}

.offer-price-hero__arrow {
  font-size: 1.15rem;
  font-weight: 700;
  color: #98a2b3;
}

.offer-price-hero__now {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 2.65rem);
  font-weight: 800;
  color: var(--color-button);
  line-height: 1;
}

.offer-guarantee-short {
  margin: 0.85rem 0 0.15rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: #667085;
}

.offer-guarantee-note {
  margin: 0.95rem 0 1rem;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #667085;
}

.offer-cta-wrap {
  text-align: center;
}

.offer-inline {
  margin: 1.5rem 0 0.5rem;
  padding: 1.25rem 1.05rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(19, 37, 91, 0.1);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.offer-inline[hidden] { display: none !important; }

.offer-inline.is-measuring {
  opacity: 0;
  pointer-events: none;
}

.offer-inline.is-revealed {
  animation: offer-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes offer-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Modal */
body.slo-modal-open { overflow: hidden; }

.slo-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.75rem;
}

.slo-modal[hidden] { display: none !important; }

.slo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 48, 0.58);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.slo-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  max-height: min(92vh, 860px);
  overflow: hidden;
  background: #fff;
  border-radius: 18px 18px 14px 14px;
  box-shadow: 0 24px 60px rgba(12, 22, 48, 0.35);
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.slo-modal__scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1.25rem 1.05rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.slo-modal__cta-bar {
  flex: 0 0 auto;
  padding: 0.75rem 1.05rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(19, 37, 91, 0.08);
  background: #fff;
  box-shadow: 0 -8px 20px rgba(19, 37, 91, 0.06);
}

.slo-modal.is-open .slo-modal__backdrop { opacity: 1; }
.slo-modal.is-open .slo-modal__dialog {
  transform: none;
  opacity: 1;
}

.slo-modal.is-closing .slo-modal__backdrop { opacity: 0; }
.slo-modal.is-closing .slo-modal__dialog {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.slo-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #98a2b3;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease, background 0.15s ease, color 0.15s ease;
}

.slo-modal__close:disabled {
  cursor: not-allowed;
}

.slo-modal__close.is-ready {
  opacity: 0.38;
  visibility: visible;
  pointer-events: auto;
  color: #8b93a3;
}

.slo-modal__close.is-ready:hover {
  opacity: 0.85;
  background: #f2f4f7;
  color: var(--color-primary);
}

.offer-stack--modal {
  margin-bottom: 0.35rem;
}

.offer-stack--modal .offer-item {
  padding: 0.72rem 0.8rem;
}

.offer-stack--modal .offer-item h3 { font-size: 0.9rem; }
.offer-stack--modal .offer-item p { font-size: 0.8rem; }

.slo-flyer {
  position: fixed;
  z-index: 1300;
  overflow: hidden;
  pointer-events: none;
  background: #fff;
  box-shadow:
    0 22px 50px rgba(12, 22, 48, 0.32),
    0 0 0 2px rgba(30, 78, 196, 0.18);
  transition:
    top 1.15s cubic-bezier(0.28, 0.8, 0.28, 1),
    left 1.15s cubic-bezier(0.28, 0.8, 0.28, 1),
    width 1.15s cubic-bezier(0.28, 0.8, 0.28, 1),
    height 1.15s cubic-bezier(0.28, 0.8, 0.28, 1),
    opacity 1.15s ease,
    transform 1.15s cubic-bezier(0.28, 0.8, 0.28, 1),
    border-radius 1.15s ease,
    box-shadow 1.15s ease;
}

.slo-flyer.is-flying {
  box-shadow: 0 10px 24px rgba(12, 22, 48, 0.14);
}

.slo-flyer .slo-modal__close,
.slo-flyer .slo-modal__cta-bar {
  display: none;
}

/* Long-form sales */
.sales-section {
  padding: 2.25rem 0;
}

.sales-section--alt {
  background: var(--color-bg);
}

.sales-section--final {
  background: var(--color-primary);
  color: #fff;
}

.sales-section--final .sales-h2,
.sales-section--final .sales-copy {
  color: #fff;
}

.sales-section--final .sales-copy {
  opacity: 0.92;
}

.sales-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-button);
}

.sales-section--final .sales-eyebrow {
  color: var(--color-secondary);
}

.sales-h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.3rem, 3.8vw, 1.85rem);
  line-height: 1.22;
  color: var(--color-primary);
}

.sales-copy {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text);
}

.sales-points {
  display: grid;
  gap: 0.85rem;
}

.sales-point {
  background: #fff;
  border: 1px solid rgba(19, 37, 91, 0.08);
  border-radius: 12px;
  padding: 1rem 1.05rem;
}

.sales-point strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
  font-size: 0.98rem;
}

.sales-point p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5c6370;
}

.detail-grid {
  display: grid;
  gap: 0.85rem;
}

.detail-card {
  background: #fff;
  border: 1px solid rgba(19, 37, 91, 0.08);
  border-radius: 14px;
  padding: 1.1rem 1.05rem;
  box-shadow: 0 6px 18px rgba(19, 37, 91, 0.05);
}

.detail-card__num {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-button);
}

.detail-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--color-primary);
}

.detail-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5c6370;
}

.detail-card__value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-button);
}

.live-card {
  background: linear-gradient(180deg, #eef3fb 0%, #fff 55%);
  border: 1px solid rgba(30, 78, 196, 0.22);
  border-radius: 18px;
  padding: 1.35rem 1.15rem 1.4rem;
  box-shadow: var(--shadow);
}

.live-card__tag {
  display: inline-flex;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(30, 78, 196, 0.18);
  color: var(--color-button);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.live-card__title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.25rem, 3.8vw, 1.7rem);
  line-height: 1.2;
  color: var(--color-primary);
}

.live-card__title span {
  color: var(--color-button);
  font-weight: 700;
}

.live-card__lead {
  margin: 0 0 0.95rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
}

.live-card__list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-primary);
}

.live-card__list li { margin-bottom: 0.35rem; }

.live-card__note {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #5c6370;
}

.faq {
  display: grid;
  gap: 0.65rem;
}

.faq__item {
  background: #fff;
  border: 1px solid rgba(19, 37, 91, 0.1);
  border-radius: 12px;
  padding: 0.15rem 0.95rem;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 0;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
  line-height: 1.35;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--color-button);
  font-weight: 700;
}

.faq__item[open] summary::after { content: "-"; }

.faq__item p {
  margin: 0 0 0.95rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5c6370;
}

@media (min-width: 700px) {
  .slo-modal {
    align-items: center;
    padding: 1.25rem;
  }

  .slo-modal__dialog {
    border-radius: 18px;
  }

  .slo-modal__scroll {
    padding: 1.45rem 1.35rem 1.1rem;
  }

  .slo-modal__cta-bar {
    padding: 0.85rem 1.35rem 1rem;
  }

  .sales-points {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-inline {
    padding: 1.55rem 1.45rem 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-inline.is-revealed,
  .slo-modal__dialog,
  .slo-modal__backdrop,
  .slo-flyer {
    transition: none !important;
    animation: none !important;
  }
}

@media (min-width: 480px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 600px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .ty-meta { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 700px) {
  .two-cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 1.85rem 0 1.25rem; }
}

@media (min-width: 900px) {
  .testimonials--3 { grid-template-columns: repeat(3, 1fr); }
  .ty-card { padding: 1.5rem 1.6rem; }
}

@media (min-width: 960px) {
  .sticky-cta { display: none; }
  .hero { padding: 2.25rem 0 1.5rem; }
  .lead { font-size: 1.08rem; }
}

/* =====================================================================
   v2 (09.2026): header CTA, hero z maskotką, chipy województw, quiz overlay
   ===================================================================== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.header-cta { display: none; white-space: nowrap; }

/* Nawigacja (jak hyros.com) */
.site-nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.site-nav a:hover { opacity: 1; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

body.nav-open .site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-white);
  border-bottom: 1px solid rgba(19, 37, 91, 0.08);
  box-shadow: 0 16px 30px rgba(19, 37, 91, 0.12);
  padding: 0.35rem 0 0.5rem;
}

body.nav-open .site-nav a {
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border-top: 1px solid rgba(19, 37, 91, 0.06);
}

@media (min-width: 600px) {
  .header-actions .header-cta { display: inline-flex; }
}

.btn-on-dark {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.btn:focus-visible,
.chip:focus-visible,
.qcard:focus-visible {
  outline: 3px solid rgba(30, 78, 196, 0.45);
  outline-offset: 2px;
}

/* Hero v2 */
.hero--v2 {
  text-align: center;
  padding: 1.5rem 0 1.4rem;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(200, 220, 252, 0.55) 0%, rgba(200, 220, 252, 0) 70%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
  overflow: hidden;
}

.hero-center {
  max-width: 820px;
}

.hero-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-button);
}

.hero--v2 h1 {
  font-size: clamp(1.85rem, 6.6vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 0.6rem;
  animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rotator {
  display: inline-grid;
  justify-items: center;
  vertical-align: bottom;
  color: var(--color-button);
  max-width: 100%;
  overflow: hidden;
  padding: 0 0.1em;
}

.rotator__word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.rotator__word.is-active {
  opacity: 1;
  transform: none;
}

.rotator__word.is-leaving {
  opacity: 0;
  transform: translateY(-0.4em);
}

.hero-sub {
  margin: 0 auto 1.45rem;
  font-size: clamp(1.15rem, 3.4vw, 1.618rem);
  line-height: 1.35;
  color: var(--color-primary);
  font-weight: 400;
  animation: fade-up 0.6s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fade-up 0.6s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-actions .btn-lg { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #7a8090;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.25rem;
  transition: color 0.15s ease;
}

.btn-ghost:hover { color: var(--color-primary); }
.btn-ghost span { transition: transform 0.2s ease; }
.btn-ghost:hover span { transform: translateY(2px); }

.hero--v2 .lead {
  margin: 0 0 1.1rem;
  max-width: 560px;
  animation: fade-up 0.6s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero--v2 .hero-cta {
  margin: 0 0 0.75rem;
  animation: fade-up 0.6s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero--v2 .hero-cta .btn { width: 100%; }

.hero-proof-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
}

.hero-proof-list li { position: relative; padding-left: 1.15rem; }
.hero-proof-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.hero-visual {
  order: -1;
  display: flex;
  justify-content: center;
}

.hero-mascot-wrap {
  position: relative;
  width: 128px;
  height: 128px;
}

.hero-mascot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(19, 37, 91, 0.22));
  animation: mascot-float 4.5s ease-in-out infinite;
}

.hero-bubble {
  display: none;
  position: absolute;
  padding: 0.5rem 0.75rem;
  background: var(--color-white);
  border: 1px solid rgba(19, 37, 91, 0.1);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(19, 37, 91, 0.14);
  line-height: 1.1;
  white-space: nowrap;
}

.hero-bubble strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-button);
}

.hero-bubble span {
  font-size: 0.7rem;
  color: var(--color-text);
}

.hero-bubble--1 { top: -2%; right: -6%; animation: bubble-float 5s 0.4s ease-in-out infinite; }
.hero-bubble--2 { bottom: 2%; left: -8%; animation: bubble-float 5.6s 1.1s ease-in-out infinite; }

@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-9px) rotate(1.5deg); }
}

@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Chips (województwa, kwoty) */
.region-chips,
.quiz__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(19, 37, 91, 0.18);
  background: var(--color-white);
  color: var(--color-primary);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chip:hover,
.chip.is-selected {
  border-color: var(--color-button);
  background: #eef3fb;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 78, 196, 0.16);
}

.chip--sm {
  padding: 0.42rem 0.75rem;
  font-size: 0.8rem;
}

.final-mascot {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
  animation: mascot-float 5s ease-in-out infinite;
}

.final-cta .btn-on-dark { margin-inline: auto; }

.faq summary { font-family: var(--font-body); }

.sticky-cta {
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

body.quiz-open { overflow: hidden; }
body.quiz-open .sticky-cta { opacity: 0; pointer-events: none; }

/* ===== Quiz overlay ===== */
.quiz {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.quiz[hidden] { display: none !important; }

.quiz__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 48, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.quiz__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
}

.quiz.is-open .quiz__backdrop { opacity: 1; }
.quiz.is-open .quiz__panel { opacity: 1; transform: none; }

.quiz__top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem 0.55rem;
  background: var(--color-white);
}

.quiz__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
}

.quiz__mascot {
  width: 36px;
  height: 36px;
  object-fit: contain;
  animation: mascot-float 4s ease-in-out infinite;
}

.quiz__counter {
  font-size: 0.76rem;
  font-weight: 600;
  color: #667085;
  text-align: center;
}

.quiz__close {
  justify-self: end;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.quiz__close:hover { background: #e4e9f2; }

.quiz__progress {
  position: sticky;
  top: 3.3rem;
  z-index: 2;
  height: 4px;
  background: #e6ecf5;
}

.quiz__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-button), #5b8cff);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.25rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.quiz__steps {
  flex: 1 1 auto;
  position: relative;
}

.quiz__step { display: none; }

.quiz__step.is-active {
  display: block;
  animation: qstep-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.quiz__steps.is-back .quiz__step.is-active {
  animation-name: qstep-in-back;
}

@keyframes qstep-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes qstep-in-back {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

.quiz__title {
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  line-height: 1.2;
  margin: 0.5rem 0 0.4rem;
  outline: none;
}

/* pytanie bez dopisku (14.11.2026: mniej drobnego druku): odstęp przed odpowiedziami zostaje jak z dopiskiem */
.quiz__title + :not(.quiz__hint) { margin-top: 0.9rem; }

.quiz__hint {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: #667085;
}

/* Bramka zabezpieczenia (15.11.2026): krok 4 ma trzy widoki, a ekran końcowy nie pokazuje licznika ani paska postępu */
.quiz__zab[hidden] { display: none; }
.quiz__koniec { margin: 0.6rem 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--color-primary); }
.quiz.is-koniec .quiz__counter,
.quiz.is-koniec .quiz__progress { visibility: hidden; }
/* zapis na newsletter na ekranie końcowym: pole, zgoda jednym zdaniem i przycisk */
.quiz__news { margin-top: 1.1rem; }
.quiz__news .quiz__zgoda { margin: 0.6rem 0 0; }
.quiz__news .quiz__nav { margin-top: 0.8rem; }
#zab-news[hidden], #zab-news-ok[hidden] { display: none; }

.quiz__amount {
  position: relative;
  margin-bottom: 0.8rem;
}

.quiz__amount input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 1rem;
  border: 2px solid #cfd4dc;
  border-radius: 14px;
  font: inherit;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-white);
}

.quiz__amount input::placeholder {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: #b9c1cc;
  opacity: 0.8;
}

.quiz__amount input:focus {
  outline: none;
  border-color: var(--color-button);
  box-shadow: 0 0 0 4px rgba(30, 78, 196, 0.14);
}

.quiz__amount-unit {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: #98a2b3;
}

.quiz__cards {
  display: grid;
  gap: 0.6rem;
}

.quiz__cards--2 { grid-template-columns: 1fr 1fr; }
.quiz__cards--dense { grid-template-columns: 1fr 1fr; }

.qcard {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.8rem 0.95rem;
  border: 2px solid rgba(19, 37, 91, 0.12);
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-primary);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.qcard__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-button);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qcard--center {
  justify-content: center;
  text-align: center;
  font-size: 1.05rem;
  min-height: 3.8rem;
}

.qcard:hover {
  border-color: rgba(30, 78, 196, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(19, 37, 91, 0.1);
}

.qcard.is-selected {
  border-color: var(--color-button);
  background: #eef3fb;
  box-shadow: 0 8px 20px rgba(30, 78, 196, 0.18);
}

.qcard:active { transform: scale(0.985); }

/* Czego oczekujesz? (23.10.2026): karta z nazwą i jednym zdaniem pod spodem */
.qcard--opis span { display: flex; flex-direction: column; gap: 0.15rem; }
.qcard--opis strong { font-weight: 700; font-size: 1rem; }
.qcard--opis small { font-size: 0.84rem; font-weight: 400; line-height: 1.35; color: #667085; }
.qcard--opis.is-selected small { color: #475467; }

/* Kiedy dzwonić (27.10.2026): pory jako przyciski do zaznaczenia */
.quiz__pory { margin: 0; padding: 0; border: 0; }
.quiz__pory legend em { font-style: normal; font-weight: 400; color: #98a2b3; }
.quiz__label em { font-style: normal; font-weight: 400; color: #98a2b3; }
/* zgoda na kontakt przez kliknięcie przycisku (3.11.2026), tekst tuż nad przyciskiem */
.quiz__zgoda { margin: 0.25rem 0 0.75rem; font-size: 0.78rem; line-height: 1.4; color: #5c6370; }
.quiz__zgoda a { color: inherit; text-decoration: underline; }
/* 14.11.2026: cztery pory w jednej linii, także na telefonie */
.quiz__pory-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.quiz__pory-l label { position: relative; cursor: pointer; }
.quiz__pory-l input { position: absolute; opacity: 0; pointer-events: none; }
.quiz__pory-l span { display: block; padding: 0.55rem 0.4rem; border: 2px solid rgba(19, 37, 91, 0.12); border-radius: 10px; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--color-primary); background: var(--color-white); transition: border-color 0.15s ease, background 0.15s ease; }
.quiz__pory-l input:checked + span { border-color: var(--color-button); background: #eef3fb; }
.quiz__pory-l input:focus-visible + span { outline: 2px solid var(--color-button); outline-offset: 2px; }

/* Jak pracujemy: ostatni krok formularza, nad przyciskiem */
.quiz__jak {
  margin: 1rem 0 0.2rem;
  padding: 0.85rem 1rem 0.95rem;
  border: 1px solid rgba(30, 78, 196, 0.14);
  border-radius: 14px;
  background: #f4f7fc;
}
.quiz__jak-title { margin: 0 0 0.5rem; font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--color-primary); }
.quiz__jak-list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; counter-reset: jak; }
.quiz__jak-list li { position: relative; padding-left: 1.9rem; font-size: 0.84rem; line-height: 1.45; color: #475467; counter-increment: jak; }
.quiz__jak-list li::before {
  content: counter(jak);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--color-button);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.quiz__jak-list strong { font-weight: 600; color: var(--color-primary); }

.qcard--sm {
  min-height: 2.8rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.86rem;
  justify-content: center;
  text-align: center;
}

.quiz__other { margin-top: 1rem; }

.quiz__combo { position: relative; }

.quiz__combo-input {
  padding-right: 3rem;
  font-size: 1.1rem;
  min-height: 3.4rem;
}

.quiz__combo-arrow {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #667085;
}

.quiz__combo-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiz__combo-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 260px;
  overflow: auto;
  background: var(--color-white);
  border: 1px solid rgba(19, 37, 91, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(19, 37, 91, 0.16);
}

.quiz__combo-list[hidden] { display: none; }

.quiz__combo-list li {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--color-primary);
  cursor: pointer;
}

.quiz__combo-list li:hover,
.quiz__combo-list li.is-active { background: #eef3fb; }
.quiz__combo-list li.is-selected { font-weight: 700; }

.quiz__label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
}

.quiz__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid #cfd4dc;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  background: var(--color-white);
}

.quiz__input:focus {
  outline: none;
  border-color: var(--color-button);
  box-shadow: 0 0 0 4px rgba(30, 78, 196, 0.14);
}

.quiz__input.is-invalid,
.quiz__amount input.is-invalid {
  border-color: #c62828;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.quiz__fields { display: grid; gap: 0.75rem; }
.quiz__fields .field { margin: 0; }
/* Imię i nazwisko obok siebie, także na telefonie (dwa krótkie pola) */
.quiz__powiat { margin-top: 1rem; display: grid; gap: 0.4rem; }
/* bez tego „display: grid” wygrywało z atrybutem hidden i pole powiatu widział każdy, nie tylko mazowieckie (14.11.2026) */
.quiz__powiat[hidden] { display: none; }
.quiz__powiat select { width: 100%; }
.quiz__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quiz__pair .field { min-width: 0; }
.quiz__pair .quiz__input { width: 100%; min-width: 0; }
/* E-mail i NIP obok siebie na szerszym ekranie; na telefonie jedno pod drugim, bo adres e-mail potrzebuje całej szerokości */
.quiz__pair--szer { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 559px) { .quiz__pair--szer { grid-template-columns: 1fr; } }

.quiz__fields .checkbox-field label {
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5c6370;
}

.quiz__fields .checkbox-field input { margin-top: 0.2rem; }
.quiz__fields .checkbox-field label.is-invalid { color: #c62828; }

.quiz__error {
  margin: 0.6rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #c62828;
}

.quiz__nav { margin-top: 1.1rem; }
.quiz__nav .btn { width: 100%; }

.quiz__fine {
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: #98a2b3;
}

.quiz__footer {
  padding-top: 1rem;
  min-height: 2.6rem;
}

.quiz__back {
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
  cursor: pointer;
}

.quiz__back:hover { color: var(--color-primary); }

/* Loader mascot */
.loader-mascot {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: -0.5rem auto 0.4rem;
  display: block;
  animation: mascot-float 2.4s ease-in-out infinite;
}

.analysis-loader__title { font-weight: 700; }

/* Breakpoints */
@media (min-width: 480px) {
  .hero--v2 .hero-cta .btn { width: auto; }
  .quiz__cards { grid-template-columns: 1fr 1fr; }
  .quiz__cards--stack { grid-template-columns: 1fr; }
}

@media (min-width: 700px) {
  .quiz { align-items: center; padding: 1.25rem; }
  .quiz__panel {
    width: min(100%, 620px);
    height: auto;
    max-height: min(92vh, 780px);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(12, 22, 48, 0.4);
  }
  .quiz__top { padding: 0.9rem 1.25rem 0.6rem; border-radius: 22px 22px 0 0; }
  .quiz__form { padding: 1.5rem 1.75rem 1.5rem; }
  .quiz__cards--dense { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 820px) {
  .hero--v2 { padding: 3rem 0 2.75rem; }
}

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; justify-content: center; align-items: center; gap: 1.25rem; }
  .hero-actions .btn-lg { width: auto; }
}

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .header-inner { gap: 1.25rem; }
}

@media (min-width: 960px) and (max-width: 1139px) {
  .site-nav { gap: 0.9rem; }
  .site-nav a { font-size: 0.8rem; }
  .hero--v2 { padding: 4rem 0 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rotator__word,
  .hero-mascot, .hero-bubble, .final-mascot, .quiz__mascot, .loader-mascot,
  .hero--v2 h1, .hero--v2 .lead, .hero--v2 .hero-cta,
  .quiz__step.is-active, .quiz__panel, .quiz__backdrop {
    animation: none !important;
    transition: none !important;
  }
}

.ty-mascot {
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 10px 18px rgba(19, 37, 91, 0.2));
  animation: mascot-float 4.5s ease-in-out infinite;
}


/* ===== Czat kontaktowy ===== */
.wf-chat { font-family: var(--font-body); }

.wf-chat__avatar {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-button), var(--color-primary));
}

.wf-chat__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.wf-chat__initials {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wf-chat__launcher,
.wf-chat__teaser,
.wf-chat__panel {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.24s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-chat__launcher[hidden],
.wf-chat__teaser[hidden],
.wf-chat__panel[hidden] { display: none; }

.wf-chat__launcher.is-in,
.wf-chat__teaser.is-in,
.wf-chat__panel.is-in { opacity: 1; transform: none; }

.wf-chat__launcher {
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 10px 28px rgba(19, 37, 91, 0.25);
  cursor: pointer;
}

.wf-chat__launcher .wf-chat__avatar { width: 52px; height: 52px; }

.wf-chat__teaser {
  display: flex;
  gap: 0.8rem;
  width: min(350px, calc(100vw - 2rem));
  padding: 1rem 2rem 0.9rem 1rem;
  background: var(--color-white);
  border: 1px solid rgba(19, 37, 91, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(19, 37, 91, 0.2);
  cursor: pointer;
}

.wf-chat__teaser-body p {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #2b3140;
}

.wf-chat__teaser-body .wf-chat__meta {
  margin: 0;
  font-size: 0.78rem;
  color: #98a2b3;
}

.wf-chat__teaser-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  background: transparent;
  color: #98a2b3;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.wf-chat__panel {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(600px, calc(100vh - 2rem));
  max-height: min(600px, calc(100dvh - 2rem));
  background: var(--color-white);
  border: 1px solid rgba(19, 37, 91, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(19, 37, 91, 0.28);
  overflow: hidden;
}

.wf-chat__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(19, 37, 91, 0.08);
}

.wf-chat__who { flex: 1 1 auto; line-height: 1.25; }
.wf-chat__who strong { display: block; font-size: 0.98rem; color: var(--color-primary); }
.wf-chat__who span { font-size: 0.78rem; color: #7a8090; }

.wf-chat__close {
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #667085;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.wf-chat__close:hover { background: #f2f4f7; }

.wf-chat__scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wf-chat__hours {
  margin: 0 0 0.3rem;
  text-align: center;
  font-size: 0.78rem;
  color: #7a8090;
}

.wf-chat__bubble {
  max-width: 88%;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.42;
  animation: fade-up 0.3s ease both;
}

.wf-chat__bubble p { margin: 0 0 0.4rem; }
.wf-chat__bubble p:last-child { margin-bottom: 0; }

.wf-chat__bubble--them {
  align-self: flex-start;
  background: #f2f4f7;
  color: #2b3140;
  border-bottom-left-radius: 6px;
}

.wf-chat__bubble--me {
  align-self: flex-end;
  background: var(--color-button);
  color: #fff;
  border-bottom-right-radius: 6px;
  word-break: break-word;
}

.wf-chat__typing { display: flex; gap: 4px; padding: 0.2rem 0; }

.wf-chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #98a2b3;
  animation: wf-typing 1s infinite ease-in-out;
}

.wf-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.wf-chat__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes wf-typing {
  0%, 60%, 100% { transform: none; opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.wf-chat__form {
  padding: 0.75rem 0.9rem 0.85rem;
  border-top: 1px solid rgba(19, 37, 91, 0.08);
}

.wf-chat__form.is-done .wf-chat__inputs { display: none; }

.wf-chat__inputs {
  position: relative;
  border: 2px solid rgba(19, 37, 91, 0.16);
  border-radius: 14px;
  transition: border-color 0.15s ease;
}

.wf-chat__inputs:focus-within { border-color: var(--color-primary); }

.wf-chat__inputs input,
.wf-chat__inputs textarea {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: #2b3140;
  padding: 0.7rem 0.85rem;
  outline: none;
  resize: none;
}

.wf-chat__inputs input { border-bottom: 1px solid rgba(19, 37, 91, 0.1); }
.wf-chat__inputs textarea { padding-right: 3.2rem; }
.wf-chat__inputs .is-invalid::placeholder { color: #c62828; }

.wf-chat__send {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-button);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wf-chat__send:disabled { opacity: 0.45; cursor: default; }

.wf-chat__send svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wf-chat__error {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c62828;
}

.wf-chat__legal {
  margin: 0.6rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #98a2b3;
}

.wf-chat__legal a { color: inherit; }

body.quiz-open .wf-chat,
body.slo-modal-open .wf-chat { display: none; }

@media (max-width: 959px) {
  /* nad przyklejonym CTA */
  .wf-chat__launcher,
  .wf-chat__teaser { bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)); }
  body.wf-chat-open .sticky-cta { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-chat__launcher, .wf-chat__teaser, .wf-chat__panel, .wf-chat__bubble, .wf-chat__typing span {
    transition: none !important;
    animation: none !important;
  }
}


/* ===== Strona analizy: hero z wynikiem (v3, skala wg złotej proporcji: 0.618 / 1 / 1.618 / 2.618) ===== */
.ty-page .ty-main { padding-top: 0; }

.ty-hero {
  padding: 1.618rem 0 2.618rem;
  margin-bottom: 1.618rem;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(200, 220, 252, 0.6) 0%, rgba(200, 220, 252, 0) 70%),
    linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
}

.ty-hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ty-hero__eyebrow {
  margin: 0 0 1.309rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-button);
}

.ty-hero__ring { margin-bottom: 1.618rem; }

.ty-hero__title {
  margin: 0;
  max-width: 33rem;
  text-wrap: balance;
  font-size: clamp(1.05rem, 2.6vw, 1.309rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
  animation: fade-up 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Podziękowanie od 23.10.2026: krótki nagłówek, zdanie o przygotowaniu do rozmowy i przycisk do kalkulatora */
.ty-hero__title--big { font-size: clamp(1.35rem, 4.2vw, 1.75rem); line-height: 1.25; }
.ty-hero__lead {
  max-width: 33rem;
  margin: 0.75rem auto 0;
  text-wrap: pretty;
  font-size: 1rem;
  line-height: 1.55;
  color: #475467;
  animation: fade-up 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ty-hero__cta { margin: 1.15rem 0 0; animation: fade-up 0.6s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }

.score-ring--v2 {
  width: 204px;
  height: 204px;
  margin: 0;
  animation: ring-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ring-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: none; }
}

.score-ring--v2 svg { overflow: visible; }

.score-ring--v2 .score-ring__ticks {
  fill: none;
  stroke: rgba(19, 37, 91, 0.16);
  stroke-width: 3;
  stroke-dasharray: 1.5 8.553;
}

.score-ring--v2 .score-ring__track {
  fill: var(--color-white);
  stroke: #e3eaf6;
  stroke-width: 13;
}

.score-ring--v2 .score-ring__value {
  stroke: url(#score-grad);
  stroke-width: 13;
  stroke-linecap: round;
  transition: none;
  filter: drop-shadow(0 4px 10px rgba(30, 78, 196, 0.35));
}

.score-ring--v2 .score-ring__dot {
  fill: var(--color-white);
  stroke: var(--color-button);
  stroke-width: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.score-ring--v2.is-running .score-ring__dot { opacity: 1; }

.score-ring--v2 .score-ring__pct {
  font-size: 3rem;
  font-variant-numeric: tabular-nums;
}

.score-ring--v2 .score-ring__label {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.25;
  text-align: center;
  color: #7a8090;
}

.score-ring--v2.is-done .score-ring__inner { animation: score-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1); }

.score-ring--v2.is-done::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px solid rgba(30, 78, 196, 0.45);
  animation: score-wave 0.9s ease-out forwards;
  pointer-events: none;
}

@keyframes score-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes score-wave {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(1.28); }
}

@media (min-width: 820px) {
  .ty-hero { padding: 2.618rem 0 4.236rem; }
  .ty-hero__eyebrow { margin-bottom: 1.618rem; font-size: 1.05rem; }
  .score-ring--v2 { width: 246px; height: 246px; }
  .score-ring--v2 .score-ring__pct { font-size: 3.6rem; }
  .ty-hero__ring { margin-bottom: 1.618rem; }
}

/* ===== VSL: rozsuwa stronę po animacji wyniku ===== */
.vsl {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  background: var(--color-primary);
  transition: grid-template-rows 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease 0.2s;
}

.vsl[hidden] { display: none; }
.vsl.is-open { grid-template-rows: 1fr; opacity: 1; }
.vsl__inner { overflow: hidden; min-height: 0; }

.vsl__container {
  max-width: 860px;
  padding-top: 1.618rem;
  padding-bottom: 1.618rem;
  text-align: center;
}

.vsl__eyebrow {
  margin: 0 0 0.618rem;
  font-size: 0.809rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.vsl__title {
  margin: 0 0 1.618rem;
  font-size: clamp(1.45rem, 4.4vw, 2.618rem);
  line-height: 1.15;
  color: var(--color-white);
}

.vsl__title span { color: #f2c94c; }

.vsl__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1638;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.vsl__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vsl__unmute {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 0;
  background: rgba(11, 22, 56, 0.45);
  color: #fff;
  font: inherit;
  font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  font-weight: 700;
  cursor: pointer;
}

.vsl__unmute svg {
  width: clamp(48px, 9vw, 72px);
  height: clamp(48px, 9vw, 72px);
  padding: 0.9rem;
  border-radius: 50%;
  background: var(--color-button);
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-shadow: 0 0 0 0 rgba(91, 140, 255, 0.6);
  animation: vsl-pulse 1.8s ease-out infinite;
}

@keyframes vsl-pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 140, 255, 0.6); }
  100% { box-shadow: 0 0 0 22px rgba(91, 140, 255, 0); }
}

.vsl__frame.is-sound-on .vsl__unmute,
.vsl__frame.is-placeholder .vsl__unmute,
.vsl__frame.is-placeholder video { display: none; }

.vsl__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  border: 2px dashed rgba(200, 220, 252, 0.35);
  border-radius: 14px;
}

.vsl__frame.is-placeholder .vsl__placeholder { display: flex; }
.vsl__placeholder svg { width: 54px; height: 54px; fill: rgba(200, 220, 252, 0.8); }
.vsl__placeholder strong { font-size: 1.1rem; }
.vsl__placeholder span { font-size: 0.85rem; opacity: 0.7; }

@media (min-width: 820px) {
  .vsl__container { padding-top: 2.618rem; padding-bottom: 2.618rem; }
}

/* ===== Wykres kosztów: animacja po wjechaniu w ekran ===== */
.line-chart.is-armed .chart-area,
.line-chart.is-armed .chart-dot {
  opacity: 0;
}

.line-chart.is-armed .chart-dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}

.line-chart.is-playing .chart-area {
  opacity: 1;
  transition: opacity 1.1s ease 0.9s;
}

.line-chart.is-playing .chart-dot {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease 1.75s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.75s;
}

.cost-savings.is-in { animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; font-variant-numeric: tabular-nums; }

/* ===== Stopka: ikony social w kolorze marki ===== */
.footer-social { gap: 0.4rem; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  color: var(--color-button);
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.footer-social a:hover {
  background: #eef3fb;
  color: var(--color-primary);
  transform: translateY(-1px);
}

.footer-social svg { width: 19px; height: 19px; fill: currentColor; }
.footer-social svg.is-stroke { fill: none; stroke: currentColor; stroke-width: 2.1; }
.footer-social svg.is-stroke .is-dot { fill: currentColor; stroke: none; }

@media (prefers-reduced-motion: reduce) {
  .score-ring--v2, .ty-hero__title, .ty-hero__lead, .ty-hero__cta,
  .score-ring--v2.is-done .score-ring__inner, .score-ring--v2.is-done::after,
  .vsl, .vsl__unmute svg, .cost-savings.is-in { animation: none !important; transition: none !important; }
}

/* ===== Popup wyjścia: newsletter ===== */
.exit-pop {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.exit-pop[hidden] { display: none; }

.exit-pop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 48, 0.68);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.exit-pop__card {
  position: relative;
  width: min(100%, 460px);
  margin-top: 3rem;
  padding: 4.4rem 1.75rem 1.5rem;
  background: var(--color-white);
  border: 1px solid rgba(19, 37, 91, 0.08);
  border-top: 4px solid var(--color-button);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(12, 22, 48, 0.45);
  text-align: center;
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.exit-pop.is-in .exit-pop__backdrop { opacity: 1; }
.exit-pop.is-in .exit-pop__card { opacity: 1; transform: none; }

.exit-pop__mascot {
  position: absolute;
  top: -58px;
  left: 50%;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(19, 37, 91, 0.3));
  animation: mascot-float 4s ease-in-out infinite;
}

.exit-pop.is-done .exit-pop__mascot { animation: exit-cheer 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), mascot-float 4s 0.7s ease-in-out infinite; }

@keyframes exit-cheer {
  0% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(-16px) rotate(-8deg); }
  70% { transform: translateY(-4px) rotate(6deg); }
  100% { transform: translateY(0) rotate(0); }
}

.exit-pop__close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #98a2b3;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.exit-pop__close:hover { background: #f2f4f7; color: var(--color-primary); }

.exit-pop__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-button);
}

.exit-pop__title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.2;
  text-wrap: balance;
}

.exit-pop__lead {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5c6370;
}

.exit-pop__input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.75rem 1rem;
  border: 2px solid #cfd4dc;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.exit-pop__input:focus {
  outline: none;
  border-color: var(--color-button);
  box-shadow: 0 0 0 4px rgba(30, 78, 196, 0.14);
}

.exit-pop__input.is-invalid {
  border-color: #c62828;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.exit-pop__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #5c6370;
  text-align: left;
  cursor: pointer;
}

.exit-pop__consent input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  accent-color: var(--color-button);
}

.exit-pop__consent.is-invalid { color: #c62828; }

.exit-pop__error {
  margin: -0.35rem 0 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c62828;
  text-align: left;
}

.exit-pop__alt {
  margin-top: 0.9rem;
  border: 0;
  background: transparent;
  color: #7a8090;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.exit-pop__alt:hover { color: var(--color-primary); }

.exit-pop__view--done { animation: fade-up 0.4s ease both; }

.exit-pop__check {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: rgba(16, 156, 7, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-pop__check svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--color-success);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: exit-check 0.5s 0.15s ease forwards;
}

@keyframes exit-check { to { stroke-dashoffset: 0; } }

body.exit-pop-open { overflow: hidden; }
body.exit-pop-open .wf-chat { display: none; }

@media (prefers-reduced-motion: reduce) {
  .exit-pop__card, .exit-pop__backdrop, .exit-pop__mascot, .exit-pop__check svg, .exit-pop__view--done {
    animation: none !important;
    transition: none !important;
  }
  .exit-pop__check svg { stroke-dashoffset: 0; }
}

.exit-pop__view--done .btn { padding: 0.7rem 1.4rem; font-size: 0.92rem; }
#exit-pop-submit span { margin-left: 0.45rem; transition: transform 0.2s ease; }
#exit-pop-submit:hover span { transform: translateX(3px); }

.quiz__fields .checkbox-field--optional { margin-top: -0.35rem; }
.quiz__fields .checkbox-field--optional em { font-style: normal; color: #98a2b3; }

/* Certyfikat: powiększanie */
.cert-modal__box img { cursor: zoom-in; }
.cert-modal.is-zoomed .cert-modal__box { max-width: min(1080px, 100%); }
.cert-modal.is-zoomed .cert-modal__box img { cursor: zoom-out; }
.cert-modal__bar {
  position: sticky; bottom: 0; display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.6rem; background: rgba(255, 255, 255, 0.96); border-top: 1px solid rgba(19, 37, 91, 0.1);
}
.cert-modal__bar button, .cert-modal__bar a {
  border: 1px solid rgba(19, 37, 91, 0.18); border-radius: 8px; background: #fff; color: var(--color-primary);
  font: 600 0.82rem var(--font-body); padding: 0.45rem 0.8rem; cursor: pointer; text-decoration: none;
}
.cert-modal__bar button:hover, .cert-modal__bar a:hover { border-color: var(--color-button); color: var(--color-button); }

/* strona analizy: uwaga o zabezpieczeniu, informacja o mailu, sekcja edukacyjna */
.ty-warn { max-width: 560px; margin: 0.9rem auto 0; padding: 0.8rem 1rem; border-radius: 12px; background: #FDF1EC; border: 1px solid #F0C9B8; color: #8A3B1E; font-size: 0.95rem; line-height: 1.5; }
.ty-warn strong { color: #8A3B1E; }
/* 14.11.2026: strona podziękowania prościej. Informacja o mailu jako zwykła linijka, wybór godziny bez ramki, kalkulator jako link */
.ty-mail { max-width: 560px; margin: 0.9rem auto 0; color: #667085; font-size: 0.9rem; line-height: 1.5; }
.ty-termin { margin: 1.4rem auto 0; text-align: center; }
.ty-termin__q { margin: 0 0 0.6rem; font-weight: 700; font-size: 1.05rem; color: var(--color-primary); }
.ty-link { color: var(--color-button); font-weight: 600; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; }
.score-ring.is-low .score-ring__value { stroke: #C2603E; }
.sales-h2--sub { margin-top: 2.2rem; }
.ty-edu .card { font-size: 0.92rem; line-height: 1.55; }
.ty-edu .card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.ty-edu .card p { margin: 0; }
.ty-edu .card a { color: var(--color-button); font-weight: 700; text-decoration: none; }
@media (min-width: 640px) { .ty-edu { grid-template-columns: 1fr 1fr; } }

/* sekcja "Za każdą pożyczką stoi konkretna osoba" (jak na stronie głównej) */
.split { display: grid; gap: 1.75rem; align-items: center; }
.split__media { position: relative; margin: 0; }
.split__media::before { content: ""; position: absolute; inset: 12% -6% -8% 10%; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; background: var(--color-secondary); opacity: 0.55; z-index: 0; }
/* 16.10.2026: na telefonie plama za zdjęciem wychodziła 6% w prawo poza ekran i strona przesuwała się na boki */
@media (max-width: 640px) { .split__media::before { right: -3%; } }
.split__media img { position: relative; z-index: 1; display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; border-radius: 20px; box-shadow: 0 18px 44px rgba(19, 37, 91, 0.18); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
.split__text > h2 { margin-bottom: 1rem; }
.cta-inline--left { text-align: left; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; } }

/* stopka jak w serwisie: certyfikat ISO, Firma Godna Zaufania, PTG */
.footer-badges { align-items: center; gap: 0.85rem; }
.footer-fgz { height: 62px; width: auto; opacity: 0.85; mix-blend-mode: multiply; }
.site-footer .footer-tagline { margin-bottom: 0; }
.site-footer .footer-badges { display: inline-flex; flex-direction: column; align-items: center; gap: 1.1rem; margin-top: 1.1rem; }
.footer-badges__row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }

/* Landingi kategorii (/pozyczka-unijna/oze/, /cyfryzacja/, /turystyka/, od 9.10.2026): pytanie z reklamy nad nagłówkiem
   i warunki pod nim (filtr: zysk, brak zaległości, nieruchomość na zabezpieczenie) */
.hero-hook {
  margin: 0 auto 0.6rem;
  max-width: 640px;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-button);
}

.hero-cond {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  max-width: 640px;
  margin: -0.6rem auto 1.4rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(30, 78, 196, 0.07);
  color: var(--color-primary);
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero-cond svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--color-button);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Strona analizy: „Doprecyzuj w 30 sekund” (pytania pod rodzaj pożyczki, dziekujemy.js) ===== */
.ty-dop h2 { margin-bottom: 0.4rem; }
.ty-dop__lead { max-width: 560px; margin: 0 auto 1.15rem; text-align: center; font-size: 0.95rem; line-height: 1.5; }
.ty-q { margin: 0 0 1.05rem; }
.ty-q__p { margin: 0 0 0.5rem; color: var(--color-primary); font-size: 0.98rem; font-weight: 700; line-height: 1.35; }
.ty-q__p span { color: #6b7280; font-size: 0.85rem; font-weight: 400; }
.ty-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ty-chip {
  min-height: 2.75rem;
  padding: 0.55rem 0.95rem;
  border: 2px solid rgba(19, 37, 91, 0.12);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-primary);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.ty-chip:hover { border-color: rgba(30, 78, 196, 0.5); }
.ty-chip[aria-pressed="true"] { border-color: var(--color-button); background: #eef3fb; box-shadow: 0 6px 16px rgba(30, 78, 196, 0.16); }
.ty-chip[aria-pressed="true"]::before { content: "\2713\00a0"; color: var(--color-button); }
.ty-chip:focus-visible, .ty-dop__input:focus-visible { outline: 3px solid rgba(30, 78, 196, 0.35); outline-offset: 2px; }
.ty-dop__input {
  width: 100%;
  max-width: 420px;
  min-height: 2.9rem;
  padding: 0.6rem 0.85rem;
  border: 2px solid rgba(19, 37, 91, 0.12);
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-primary);
  font: inherit;
  font-size: 1rem;
}
.ty-dop__input:focus { border-color: var(--color-button); outline: none; }
.ty-dop__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.3rem; }
.ty-dop__status { min-height: 1.3em; margin: 0; color: var(--color-success); font-size: 0.88rem; }
.ty-dop__done[hidden] { display: none; }

/* ---------- test A/B pierwszego ekranu (13.10.2026): wariant B z kalkulatorem ---------- */
.hero-kalk { display: none; }
.ab-b .hero-kalk { display: block; }
/* landingi kategorii (14.11.2026): ten sam kalkulator bez losowania wersji */
.hero-kalk--kat { display: block; }
.ab-b .hero.hero--v2:not(.hero-kalk) { display: none; }
.hero-kalk h1 { margin-bottom: 0.45rem; }
.hero-kalk .kalk-h { color: var(--color-button); }
.hero-kalk .hero-sub { margin-bottom: 1.1rem; font-size: clamp(1rem, 3vw, 1.3rem); }
.kalk { width: 100%; max-width: 520px; margin: 0 auto; background: var(--color-white); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 16px 16px; text-align: left; box-sizing: border-box; }
.kalk__row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; margin: 0 0 14px; }
.kalk__row label { font: 600 13px/1.3 var(--font-body); color: #5b6478; }
.kalk__row output { font: 700 17px/1.2 var(--font-body); color: var(--color-primary); font-variant-numeric: tabular-nums; }
.kalk__row input[type=range] { grid-column: 1 / -1; width: 100%; height: 32px; margin: 2px 0 0; accent-color: var(--color-button); cursor: pointer; }
.kalk__wynik { background: #eef3fb; border-radius: 12px; padding: 14px 14px 12px; margin: 4px 0 14px; text-align: center; }
.kalk__label { display: block; font: 700 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--color-button); }
.kalk__wynik strong { display: block; font: 700 38px/1.15 var(--font-heading); color: var(--color-primary); font-variant-numeric: tabular-nums; margin: 2px 0 8px; }
.kalk__por { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font: 400 13.5px/1.4 var(--font-body); color: var(--color-text); }
.kalk__por b { color: var(--color-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kalk .btn-lg { width: 100%; white-space: normal; line-height: 1.25; padding-top: 14px; padding-bottom: 14px; }
.kalk__zal { margin: 10px 0 0; font: 400 12px/1.45 var(--font-body); color: #7a8090; text-align: center; }
@media (min-width: 700px) { .kalk { padding: 24px 26px 20px; } .kalk__wynik strong { font-size: 46px; } }
/* test A/B nr 2 (14.11.2026), wersja D: pytanie o cel z kafelkami zamiast przycisku pod kalkulatorem */
.kalk-pyt { display: none; margin: 2px 0 0; }
.ab-d .kalk-pyt { display: block; }
.ab-d #kalk-cta { display: none; }
.kalk-pyt__q { margin: 0 0 10px; font: 700 18px/1.3 var(--font-heading); color: var(--color-primary); text-align: center; }
.kalk-pyt__q span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.kalk-pyt__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kalk-pyt__card { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 8px 10px; border: 2px solid rgba(19, 37, 91, 0.14); border-radius: 12px; background: var(--color-white); color: var(--color-primary); font: 600 14px/1.25 var(--font-body); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.kalk-pyt__card:hover, .kalk-pyt__card:focus-visible { border-color: var(--color-button); background: #eef3fb; outline: none; }
.kalk-pyt__card:active { transform: scale(0.98); }
.kalk-pyt__card .qcard__icon { width: 20px; height: 20px; }
@media (min-width: 700px) { .kalk-pyt__q { font-size: 20px; } .kalk-pyt__card { font-size: 15px; min-height: 54px; padding: 10px 12px; } }
