/* ============================================================
   VESTRA — AB-TEST "EDITION 2026"
   Editorial design system · cream / ink / logo-blue
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand — derived from logo (black glyphs + #1899d2 spark) */
  --ink: #101617;
  --ink-2: #0B1112;
  --ink-soft: #1C2527;
  --cream: #F6F3ED;
  --paper: #FFFFFF;
  --blue: #1899D2;
  --blue-deep: #0F6E9E;
  --blue-dark: #0B5679;
  --blue-glow: rgba(24, 153, 210, 0.14);
  --muted: #5A6467;
  --muted-on-dark: #9FB0B5;
  --line: rgba(16, 22, 23, 0.11);
  --line-strong: rgba(16, 22, 23, 0.2);
  --line-on-dark: rgba(246, 243, 237, 0.12);
  --error: #C93335;

  /* Legacy aliases (markup / older scripts) */
  --color-bg: var(--cream);
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-accent: var(--blue);
  --color-btn-bg: var(--blue-deep);
  --color-btn-hover: var(--blue-dark);
  --color-border: var(--line);
  --color-white: var(--paper);
  --color-input-bg: #EFEAE1;
  --color-error: var(--error);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  --spacing-giant: 112px;
  --border-radius: 12px;

  --serif: var(--font-display);
  --sans: var(--font-body);
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px -24px rgba(16, 22, 23, 0.22);
  --shadow-lift: 0 32px 80px -28px rgba(16, 22, 23, 0.3);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  pointer-events: none;
  z-index: 2000;
}

::selection { background: var(--blue); color: #fff; }

/* Ensure the [hidden] attribute always wins over component display rules
   (.featured-card/.post-card set display:grid/flex, which would otherwise
   override the UA [hidden]{display:none} and keep filtered cards visible). */
[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section-padding {
  padding-block: clamp(72px, 9vw, 128px);
}

/* ---------- Typography ---------- */
.h1, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.h1 {
  font-size: clamp(2.35rem, 2.4vw + 1.3rem, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.h2 {
  font-size: clamp(2.1rem, 2.6vw + 1rem, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.h3 {
  font-size: clamp(1.4rem, 0.9vw + 1rem, 1.75rem);
  line-height: 1.15;
}
.text-lead {
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
}
.text-small { font-size: 0.82rem; line-height: 1.55; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: clamp(16px, 2vw, 24px);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--blue);
}
.on-dark .eyebrow { color: var(--blue); }

/* Italic serif accent — the signature move */
.accent-i {
  font-style: italic;
  font-weight: 400;
  color: var(--blue-deep);
}
.on-dark .accent-i { color: var(--blue); }

/* Animated highlight (observed by main.js → .animated) */
.highlight-text {
  position: relative;
  white-space: normal;
  font-style: italic;
  font-weight: 400;
  color: var(--blue-deep);
}
.highlight-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.04em;
  width: 100%;
  height: 0.08em;
  background: linear-gradient(90deg, var(--blue), rgba(24, 153, 210, 0.25));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease-out) 0.35s;
}
.highlight-text.animated::after { transform: scaleX(1); }

/* ---------- Reveal on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.fade-in.animated { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.12s; }
.delay-200 { transition-delay: 0.24s; }
.delay-300 { transition-delay: 0.36s; }

/* Hero intro (runs on load, staggered via inline --i) */
.rise {
  opacity: 0;
  transform: translateY(34px);
  animation: rise 1.1s var(--ease-out) forwards;
  animation-delay: calc(0.1s + var(--i, 0) * 0.14s);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(16, 22, 23, 0.5);
}
.btn-primary::before { background: var(--blue-deep); }
.btn-primary:hover::before, .btn-primary:focus-visible::before { transform: translateY(0); }
.btn-primary:hover { box-shadow: 0 18px 36px -14px rgba(15, 110, 158, 0.55); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary::before { background: var(--ink); }
.btn-secondary:hover, .btn-secondary:focus-visible { color: #fff; border-color: var(--ink); }
.btn-secondary:hover::before, .btn-secondary:focus-visible::before { transform: translateY(0); }

.btn .btn-arrow {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  z-index: 1002;
  pointer-events: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(246, 243, 237, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.logo-img { width: 132px; height: auto; }

.nav-actions { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: color var(--transition);
}
.phone-link svg { width: 17px; height: 17px; fill: var(--blue-deep); }
.phone-link:hover { color: var(--blue-deep); }
.header .btn { min-height: 46px; padding: 0 24px; font-size: 0.85rem; }

@media (max-width: 640px) {
  .phone-text { display: none; }
  .phone-link svg { width: 20px; height: 20px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(12px, 2vh, 40px));
  padding-bottom: clamp(22px, 3vh, 64px);
  overflow: hidden;
}
@media (min-width: 992px) {
  /* Flex already centers vertically, so top padding only needs to clear the
     fixed header — no extra offset (that double-counted space and clipped
     the badges on short 1366x768-class screens). */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 6px);
    padding-bottom: 16px;
  }
  .hero > .container { width: 100%; }
}
.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -220px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--blue-glow), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "Vestra";
  position: absolute;
  bottom: -0.28em;
  left: -0.04em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(9rem, 22vw, 21rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(16, 22, 23, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Hero headline scales with BOTH width and viewport height so it never
   pushes the chat/CTA below the fold on short laptop screens (e.g. 1366x768). */
.hero-content .h1 {
  font-size: clamp(2.05rem, min(2.4vw + 1.3rem, 6.3vh), 3.6rem);
  margin-bottom: clamp(12px, 1.4vh, 26px);
}
.hero-content .text-lead { margin-bottom: clamp(18px, 2vh, 32px); }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(22px, 2.4vw, 34px);
}

/* Google rating — sits under the hero CTAs as a review cue, not a button */
.hero-rating {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-rating-stars {
  display: inline-flex;
  gap: 3px;
  color: var(--blue);
  font-size: 1.15rem;
  line-height: 1;
}
.hero-rating-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  line-height: 1.3;
}
.hero-rating-text strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
}
.hero-rating-text span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Chat window ---------- */
.chat-window {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  max-width: 500px;
  width: 100%;
  justify-self: end;
}
@media (max-width: 991px) {
  .chat-window { justify-self: stretch; max-width: 560px; margin-inline: auto; }
}
.chat-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--blue-deep));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 153, 210, 0.05), transparent);
}
.chat-bot-info { display: flex; align-items: center; gap: 12px; }

/* Close button — only visible once the chat is docked as a widget */
.chat-close-btn {
  display: none;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background-color var(--transition), color var(--transition);
}
.chat-close-btn svg { width: 18px; height: 18px; fill: currentColor; }
.chat-close-btn:hover { background: rgba(16, 22, 23, 0.06); color: var(--ink); }
body.chat-docked .chat-close-btn { display: grid; }
.chat-bot-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}
.chat-bot-status { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.chat-bot-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2FAE68;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 174, 104, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(47, 174, 104, 0); }
}

.chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(16,22,23,0.2) transparent;
  background:
    radial-gradient(circle at 100% 0%, rgba(24, 153, 210, 0.05), transparent 55%);
}
.chat-msg {
  max-width: 86%;
  padding: 12px 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  border-radius: 16px;
  animation: msg-in 0.4s var(--ease-out);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.chat-msg.bot {
  align-self: flex-start;
  background: #F1EDE5;
  border-bottom-left-radius: 5px;
  color: var(--ink);
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--blue-deep);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-reply-btn {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid rgba(15, 110, 158, 0.35);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.chat-reply-btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
  transform: translateY(-1px);
}
.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 14px 16px;
  background: #F1EDE5;
  border-radius: 16px;
  border-bottom-left-radius: 5px;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.chat-input {
  flex: 1;
  min-height: 46px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  background: #F4F1EA;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: border-color var(--transition), background-color var(--transition);
}
.chat-input:focus { outline: none; border-color: var(--blue); background: #fff; }
.chat-input:disabled { opacity: 0.6; }
.chat-send-btn {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background-color var(--transition), transform var(--transition);
}
.chat-send-btn:hover:not(:disabled) { background: var(--blue-deep); transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Floating launcher (FAB) + docked chat widget ---------- */
.chat-fab {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 1001;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 40px -14px rgba(16, 22, 23, 0.55);
  transform: scale(0) translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), opacity 0.4s var(--ease-out), background-color var(--transition);
}
.chat-fab svg { width: 30px; height: 30px; fill: currentColor; position: relative; z-index: 1; }
.chat-fab:hover { background: var(--blue-deep); }
.chat-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--blue);
  opacity: 0;
  animation: fab-pulse 2.6s ease-out infinite;
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.55); opacity: 0; }
}
.chat-fab-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2FAE68;
  border: 2px solid var(--ink);
  z-index: 2;
  transition: border-color var(--transition);
}
.chat-fab:hover .chat-fab-dot { border-color: var(--blue-deep); }
.chat-fab-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 9px 15px;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 28px -14px rgba(16, 22, 23, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.chat-fab-tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--ink);
}
.chat-fab:hover .chat-fab-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Reveal the FAB once docked; hide it while the widget is open */
body.chat-docked .chat-fab { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
body.chat-docked.chat-open .chat-fab { transform: scale(0) translateY(14px); opacity: 0; pointer-events: none; }

/* Docked widget: same #chat-window node re-anchored to the corner */
body.chat-docked #chat-window {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  left: auto;
  top: auto;
  z-index: 1002;
  width: min(384px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 120px);
  margin: 0;
  transform-origin: bottom right;
  transform: scale(0.82) translateY(12px);
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: transform 0.35s var(--ease-out), opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}
body.chat-docked.chat-open #chat-window {
  transform: scale(1) translateY(0);
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
body.chat-docked #chat-messages { height: min(320px, 42vh); }

@media (max-width: 767px) {
  /* The mobile sticky CTA bar occupies ~82px at the bottom (≈70px tall + 12px
     inset). Lift the closed FAB clearly above it so they don't touch. */
  .chat-fab { bottom: 104px; }
  /* When the widget opens, the sticky bar slides away, so the window can sit
     low and use the full height. */
  body.chat-docked #chat-window { bottom: 20px; max-height: calc(100vh - 40px); }
  body.chat-open .sticky-cta-bar { transform: translateY(160%); }
}

/* ============================================================
   TRUST MARQUEE
   ============================================================ */
.section-trust {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding-block: clamp(40px, 5vw, 68px);
}
.trust-overline {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(16px, 2.4vw, 32px);
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1 1 240px;
  max-width: 320px;
  padding: clamp(28px, 3.2vw, 44px) clamp(24px, 3vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 44px -30px rgba(16, 22, 23, 0.28);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color var(--transition);
}
.trust-badge:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(24, 153, 210, 0.35);
}
.trust-badge-img {
  height: clamp(64px, 7vw, 92px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.trust-badge-caption {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}
/* ============================================================
   SECTION INTROS
   ============================================================ */
.services-intro {
  max-width: 780px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.services-intro .h2 { margin-bottom: 18px; }
.services-intro.centered { margin-inline: auto; text-align: center; }
.services-intro.centered .text-lead { margin-inline: auto; }
.services-intro.centered .eyebrow::before { display: none; }
.services-intro.centered .eyebrow::after { display: none; }

/* ============================================================
   SERVICES
   ============================================================ */
.section-services { position: relative; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 2.6vw, 34px);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color var(--transition);
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(24, 153, 210, 0.35);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 13px;
  margin-bottom: 18px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(24, 153, 210, 0.09);
  border-radius: var(--radius-pill);
}
.service-card .h3 { margin-bottom: 12px; }
.service-card-bluf {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.service-card-criteria {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-block: 18px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.criteria-item {
  position: relative;
  padding-left: 26px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.criteria-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(24, 153, 210, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230F6E9E'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.service-card-footer { margin-top: auto; }
.service-card-benefit {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.service-card-benefit strong { color: var(--blue-dark); }
.service-card-btn { width: 100%; }

/* ============================================================
   RESULTS (dark)
   ============================================================ */
.section-results {
  position: relative;
  background: var(--ink-2);
  color: #EFEBE2;
  overflow: hidden;
}
.section-results::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(24, 153, 210, 0.16), transparent 70%);
  pointer-events: none;
}
.section-results .h2, .section-results .h3 { color: #F6F3ED; }
.section-results .text-lead { color: var(--muted-on-dark); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  margin-bottom: clamp(52px, 7vw, 88px);
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  padding: clamp(28px, 3.4vw, 46px) clamp(18px, 2.4vw, 34px);
  border-right: 1px solid var(--line-on-dark);
}
.stat-card:last-child { border-right: none; }
@media (max-width: 860px) {
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line-on-dark); }
}
.stat-number {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 3.6vw, 4rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-number .stat-suffix { color: var(--blue); }
.stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.cases-title {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }
.case-card {
  display: flex;
  flex-direction: column;
  background: rgba(246, 243, 237, 0.04);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease-out), border-color var(--transition), background-color var(--transition);
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(24, 153, 210, 0.45);
  background: rgba(246, 243, 237, 0.06);
}
.case-header {
  padding: 18px 26px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
.case-body { padding: 24px 26px; flex: 1; }
.case-amount { margin-bottom: 16px; }
.case-amount-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 6px;
}
.case-amount-value {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.05;
  color: var(--blue);
  white-space: nowrap;
}
.case-description { font-size: 0.875rem; color: #C6CFD1; }
.case-footer {
  padding: 16px 26px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6FCF97;
  border-top: 1px solid var(--line-on-dark);
}

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-container {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(26px, 4vw, 44px);
}
.quiz-progress-wrapper { margin-bottom: clamp(24px, 3vw, 32px); }
.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.quiz-progress-track {
  height: 5px;
  background: #EDE8DF;
  border-radius: 3px;
  overflow: hidden;
}
#quiz-progress-bar {
  width: 33%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  transition: width 0.5s var(--ease-out);
}
.quiz-question {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.6vw, 1.6rem);
  line-height: 1.2;
  margin-bottom: 22px;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  position: relative;
  text-align: left;
  padding: 17px 22px 17px 52px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.quiz-opt::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.quiz-opt:hover {
  border-color: var(--blue);
  background: #fff;
  transform: translateX(4px);
  box-shadow: 0 10px 24px -16px rgba(15, 110, 158, 0.4);
}
.quiz-opt:hover::before {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 12px var(--blue);
}
.quiz-result-head { text-align: center; margin-bottom: 26px; }
.quiz-result-emoji { font-size: 2.4rem; line-height: 1; display: inline-block; }
.quiz-result-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  margin-top: 12px;
}
.quiz-result-sub { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.quiz-nav {
  display: none;
  justify-content: flex-start;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quiz-nav .btn { min-height: 42px; font-size: 0.8rem; padding: 0 20px; }

/* ============================================================
   PROCESS
   ============================================================ */
.section-process {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
  counter-reset: step;
}
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { position: relative; padding-top: 22px; }
.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
}
.process-step::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--blue);
}
.process-step-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.2rem, 4.6vw, 4.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--blue-deep);
  margin-bottom: 18px;
}
.process-step-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  margin-bottom: 12px;
}
.process-step-desc { font-size: 0.92rem; color: var(--muted); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(26px, 3vw, 38px);
  padding-top: clamp(52px, 5vw, 64px);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.testimonial-card::before {
  content: "\201D";
  position: absolute;
  top: 6px;
  left: 22px;
  font-family: var(--serif);
  font-size: 5.4rem;
  line-height: 1;
  color: var(--blue);
  opacity: 0.85;
}
.testimonial-stars {
  color: var(--blue);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.testimonial-text {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 24px;
  flex: 1;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.testimonial-author { font-weight: 600; font-size: 0.9rem; }
.testimonial-source { font-size: 0.76rem; color: var(--muted); }

/* ============================================================
   TEAM SLIDER
   ============================================================ */
.section-team { background: var(--paper); border-top: 1px solid var(--line); }
.team-slider-container { position: relative; }
.team-slider-track-viewport { overflow: hidden; }
.team-slider-track {
  display: flex;
  transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.team-member-card {
  flex: 0 0 100%;
  min-width: 0;
  padding: 10px 14px 20px;
  text-align: center;
}
@media (min-width: 576px) { .team-member-card { flex-basis: 50%; } }
@media (min-width: 992px) { .team-member-card { flex-basis: 25%; } }

.team-member-avatar-wrapper {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(140deg, rgba(24, 153, 210, 0.5), rgba(16, 22, 23, 0.08) 60%);
  transition: background 0.4s ease, transform 0.5s var(--ease-out);
}
.team-member-card:hover .team-member-avatar-wrapper {
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  transform: translateY(-4px);
}
.team-member-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  filter: grayscale(0.35);
  transition: filter 0.4s ease;
}
.team-member-card:hover .team-member-avatar { filter: none; }
.team-member-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.2;
  margin-bottom: 5px;
}
.team-member-role {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.team-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}
.team-slider-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.team-slider-btn svg { width: 20px; height: 20px; fill: currentColor; }
.team-slider-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.team-slider-dots { display: flex; gap: 8px; }
.team-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(16, 22, 23, 0.18);
  transition: background-color var(--transition), width 0.35s var(--ease-out);
}
.team-slider-dot.active { background: var(--blue-deep); width: 26px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-container { max-width: 820px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background-color var(--transition);
}
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: clamp(20px, 2.6vw, 28px) 60px clamp(20px, 2.6vw, 28px) 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.3;
  transition: color var(--transition);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { color: var(--blue-deep); }
.faq-summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  color: var(--ink);
  transition: transform 0.45s var(--ease-out), background-color var(--transition), border-color var(--transition), color var(--transition);
}
.faq-item[open] .faq-summary::after {
  transform: rotate(135deg);
  background-color: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
}
.faq-content {
  padding: 0 60px 28px 0;
  animation: faq-open 0.5s var(--ease-out);
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.faq-bluf { font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; color: var(--ink-soft); }
.faq-body { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 640px) {
  .faq-content { padding-right: 0; }
}

/* ============================================================
   LEAD FORM
   ============================================================ */
.section-lead { background: var(--paper); border-top: 1px solid var(--line); }
.lead-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-radius: calc(var(--radius-card) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .lead-split { grid-template-columns: 1fr; } }

.lead-aside {
  position: relative;
  background: var(--ink-2);
  color: #EFEBE2;
  padding: clamp(30px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lead-aside::before {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(24, 153, 210, 0.22), transparent 70%);
  pointer-events: none;
}
.lead-aside .h2 { color: #F6F3ED; font-size: clamp(1.8rem, 2.4vw, 2.5rem); margin-bottom: 16px; }
.lead-aside .text-lead { color: var(--muted-on-dark); font-size: 1rem; margin-bottom: 30px; }
.lead-aside-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.lead-aside-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #D8DEE0;
}
.lead-aside-item::before {
  content: "";
  flex: none;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(24, 153, 210, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231899D2'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.lead-aside-contact {
  position: relative;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.85rem;
  color: var(--muted-on-dark);
}
.lead-aside-contact a {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
  margin-top: 6px;
  transition: color var(--transition);
}
.lead-aside-contact a:hover { color: var(--blue); }

.lead-card { background: var(--paper); padding: clamp(30px, 4vw, 52px); }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23101617'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
  cursor: pointer;
}
.form-control::placeholder { color: #9AA1A3; }
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(24, 153, 210, 0.14);
}

/* Textarea + file input variants */
.form-textarea {
  min-height: auto;
  padding: 14px 18px;
  line-height: 1.55;
  resize: vertical;
}
.form-file {
  height: auto;
  padding: 11px 14px;
  cursor: pointer;
  color: var(--muted);
}
.form-file::file-selector-button {
  margin-right: 14px;
  padding: 9px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color var(--transition);
}
.form-file::file-selector-button:hover { background: var(--blue-deep); }
.form-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Reveal animation for conditional fields */
.form-conditional { animation: field-in 0.35s var(--ease-out); }
@keyframes field-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Segmented "how can we help" control */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.segmented-opt { position: relative; display: block; }
.segmented-opt input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.segmented-opt span {
  display: block;
  text-align: center;
  padding: 11px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.segmented-opt input:hover + span { color: var(--ink); }
.segmented-opt input:checked + span {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(16, 22, 23, 0.5);
}
.segmented-opt input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .segmented { grid-template-columns: 1fr; }
}
.form-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--blue-deep);
  cursor: pointer;
}
.form-checkbox a { color: var(--blue-deep); text-decoration: underline; }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-status-msg {
  display: none;
  margin-top: 22px;
  padding: 18px 20px;
  font-size: 0.85rem;
  background: rgba(24, 153, 210, 0.09);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  color: var(--ink-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--ink-2);
  color: #C6CFD1;
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: 34px;
  overflow: hidden;
}
.footer::before {
  content: "Vestra";
  position: absolute;
  bottom: -0.3em;
  right: -0.03em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(8rem, 18vw, 17rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 243, 237, 0.05);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(44px, 5vw, 64px);
  border-bottom: 1px solid var(--line-on-dark);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo {
  width: 138px;
  height: auto;
  margin-bottom: 22px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-brand-text { font-size: 0.9rem; max-width: 40ch; color: var(--muted-on-dark); }
.footer-socials { display: flex; gap: 12px; margin-top: 24px; }
.social-icon-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}
.social-icon-link svg { width: 17px; height: 17px; fill: #F6F3ED; }
.social-icon-link:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-3px); }

.footer-nav-title, .footer-contact-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}
.footer-nav-links { display: flex; flex-direction: column; gap: 11px; }
.footer-nav-links a {
  position: relative;
  align-self: flex-start;
  font-size: 0.9rem;
  color: #C6CFD1;
  transition: color var(--transition), transform var(--transition);
}
.footer-nav-links a:hover { color: #fff; transform: translateX(5px); }
.footer-contact-item { margin-bottom: 13px; font-size: 0.9rem; color: var(--muted-on-dark); }
.footer-contact-item strong { display: block; color: #F6F3ED; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.footer-contact-item a { color: #C6CFD1; transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--blue); }

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 28px;
}
.footer-copyright { font-size: 0.76rem; color: var(--muted-on-dark); }
.footer-copyright a { text-decoration: underline; }
.footer-copyright a:hover { color: #fff; }
.footer-disclaimer { text-align: right; max-width: 480px; font-size: 0.7rem; opacity: 0.7; }
@media (max-width: 640px) { .footer-disclaimer { text-align: left; } }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px 12px 22px;
  background: rgba(11, 17, 18, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(246, 243, 237, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(130%);
  transition: transform 0.55s var(--ease-out);
}
.sticky-cta-bar.visible { transform: translateY(0); }
.sticky-cta-bar-text { font-size: 0.82rem; font-weight: 600; color: #F6F3ED; }
.sticky-cta-bar .btn { min-height: 44px; padding: 0 20px; font-size: 0.82rem; background: var(--blue-deep); }
.sticky-cta-bar .btn::before { background: var(--blue); }
@media (min-width: 768px) { .sticky-cta-bar { display: none; } }

/* ---------- Utilities ---------- */
.d-none { display: none; }
@media (min-width: 768px) { .d-md-block { display: block; } }

/* ============================================================
   BLOG (blog.html)
   ============================================================ */

/* Header text links (Usługi / Blog) */
.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink); }
@media (max-width: 720px) { .nav-link { display: none; } }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.breadcrumbs a { color: var(--muted); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--blue-deep); }
.breadcrumbs-sep { color: var(--line-strong); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* Blog hero */
.blog-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(32px, 5vh, 64px));
  padding-bottom: clamp(32px, 4vw, 56px);
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -240px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--blue-glow), transparent 70%);
  pointer-events: none;
}
.blog-hero .h1 {
  font-size: clamp(2.2rem, 2.6vw + 1.1rem, 3.6rem);
  margin-bottom: clamp(16px, 2vw, 24px);
}
.blog-hero .text-lead { margin-bottom: clamp(26px, 3vw, 38px); }

/* Category filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Featured article */
.blog-featured-section { padding-bottom: clamp(20px, 2.6vw, 32px); }
.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color var(--transition);
}
.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(24, 153, 210, 0.35);
}
@media (max-width: 860px) { .featured-card { grid-template-columns: 1fr; } }

.featured-visual {
  position: relative;
  min-height: 240px;
  background:
    radial-gradient(circle at 20% 110%, rgba(24, 153, 210, 0.35), transparent 60%),
    var(--ink-2);
  overflow: hidden;
}
.featured-visual-word {
  position: absolute;
  top: 24px;
  left: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--blue);
}
.featured-visual-num {
  position: absolute;
  bottom: -0.18em;
  right: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(8rem, 12vw, 12rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(246, 243, 237, 0.22);
}
.featured-body {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 48px);
}
.featured-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  line-height: 1.12;
  margin: 14px 0 16px;
  text-wrap: balance;
}
.featured-title a { transition: color var(--transition); }
.featured-title a:hover { color: var(--blue-deep); }

/* Post meta / tags */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.post-tag {
  display: inline-block;
  padding: 5px 13px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(24, 153, 210, 0.09);
  border-radius: var(--radius-pill);
}
.post-dot { color: var(--line-strong); }

.post-excerpt {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 22px;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.post-author { display: flex; align-items: center; gap: 10px; }
.post-author-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
}
.post-author-name { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-deep);
  transition: color var(--transition), gap 0.3s var(--ease-out);
}
.post-link .btn-arrow { width: 15px; height: 15px; fill: currentColor; }
.post-link:hover { color: var(--blue-dark); gap: 12px; }

/* Post grid */
.blog-grid-section { padding-bottom: clamp(56px, 7vw, 96px); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
@media (max-width: 1080px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color var(--transition);
}
.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(24, 153, 210, 0.35);
}
.post-media {
  position: relative;
  height: 132px;
  background:
    radial-gradient(circle at 15% 120%, rgba(24, 153, 210, 0.3), transparent 55%),
    var(--ink-2);
  overflow: hidden;
}
.post-media-num {
  position: absolute;
  bottom: -0.2em;
  right: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 6.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(246, 243, 237, 0.2);
}
.post-media-word {
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--blue);
}
.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(20px, 2.4vw, 30px);
}
.post-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.2;
  margin: 12px 0 12px;
  text-wrap: balance;
}
.post-title a { transition: color var(--transition); }
.post-title a:hover { color: var(--blue-deep); }
.post-meta-bottom { font-size: 0.74rem; }

.post-grid-empty {
  margin-top: 26px;
  padding: 26px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
}

/* CTA banner */
.blog-cta-section { padding-bottom: clamp(64px, 8vw, 112px); }
.blog-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(30px, 4.4vw, 60px);
  background: var(--ink-2);
  border-radius: calc(var(--radius-card) + 4px);
  overflow: hidden;
}
@media (max-width: 860px) { .blog-cta { grid-template-columns: 1fr; } }
.blog-cta::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(24, 153, 210, 0.22), transparent 70%);
  pointer-events: none;
}
.blog-cta .h2 {
  color: #F6F3ED;
  font-size: clamp(1.7rem, 2.3vw, 2.5rem);
  margin-bottom: 14px;
}
.blog-cta .text-lead { color: var(--muted-on-dark); font-size: 1rem; }
.blog-cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.blog-cta-btn { background: var(--blue-deep); }
.blog-cta-btn::before { background: var(--blue); }
.blog-cta-phone { font-size: 0.85rem; color: var(--muted-on-dark); transition: color var(--transition); }
.blog-cta-phone strong { color: #fff; }
.blog-cta-phone:hover strong { color: var(--blue); }

/* ============================================================
   ARTICLE PAGES (Czytelnia → pojedynczy artykuł)
   ============================================================ */
.article-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 4.5vh, 56px));
  padding-bottom: clamp(28px, 3.6vw, 48px);
  overflow: hidden;
}
.article-hero::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -240px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--blue-glow), transparent 70%);
  pointer-events: none;
}
.article-hero-inner { max-width: 860px; }
.article-hero .h1 {
  font-size: clamp(1.9rem, 2.4vw + 1rem, 3.2rem);
  line-height: 1.1;
  margin: 18px 0 20px;
}
.article-hero .post-meta { font-size: 0.8rem; }

/* Layout: sticky TOC + prose */
.article-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(32px, 4.4vw, 72px);
  align-items: start;
  padding-bottom: clamp(48px, 6vw, 88px);
}
@media (max-width: 991px) {
  .article-layout { grid-template-columns: 1fr; }
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
@media (max-width: 991px) { .article-toc { position: static; order: -1; } }
.article-toc-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.article-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-toc a {
  position: relative;
  display: block;
  padding: 7px 0 7px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted);
  border-left: 2px solid var(--line);
  transition: color var(--transition), border-color var(--transition);
}
.article-toc a:hover { color: var(--ink); }
.article-toc a.is-current { color: var(--blue-deep); border-left-color: var(--blue); }

/* Prose typography */
.article-prose { max-width: 760px; }
.article-lead {
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  padding: 22px 26px;
  background: var(--paper);
  border-left: 3px solid var(--blue);
  border-radius: 0 14px 14px 0;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.article-prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.6vw + 0.8rem, 2.05rem);
  line-height: 1.15;
  margin: clamp(36px, 4.4vw, 56px) 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.article-prose h2:first-of-type { margin-top: 0; }
.article-prose h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 30px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.article-prose p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.article-prose ul, .article-prose ol {
  margin: 0 0 18px;
  padding-left: 4px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.article-prose ul li, .article-prose ol li {
  position: relative;
  padding-left: 28px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.article-prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.article-prose ol { counter-reset: prose-ol; }
.article-prose ol li { counter-increment: prose-ol; padding-left: 34px; }
.article-prose ol li::before {
  content: counter(prose-ol);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: rgba(24, 153, 210, 0.12);
  border-radius: 50%;
}
.article-prose strong { color: var(--ink); }
.article-prose a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.article-prose a:hover { color: var(--blue-dark); }

/* Tables (point ranges, amounts) */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 420px;
}
.article-prose th {
  text-align: left;
  padding: 13px 18px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  white-space: nowrap;
}
.article-prose td {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.article-prose tbody tr:nth-child(even) { background: rgba(16, 22, 23, 0.02); }
.article-prose td strong { color: var(--blue-deep); white-space: nowrap; }

/* Callout */
.article-note {
  display: flex;
  gap: 14px;
  padding: 20px 24px;
  margin: 26px 0;
  background: rgba(24, 153, 210, 0.07);
  border: 1px solid rgba(24, 153, 210, 0.25);
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.article-note::before {
  content: "§";
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #fff;
  background: var(--blue-deep);
  border-radius: 50%;
}

/* FAQ inside article */
.article-prose .faq-item .faq-summary { font-size: 1.08rem; padding-block: 18px; }
.article-prose .faq-content { padding-bottom: 20px; }

/* Author / source box */
.article-endnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(36px, 4.4vw, 56px);
  padding: 22px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.article-endnote .post-author-avatar { width: 44px; height: 44px; font-size: 1.2rem; }
.article-endnote-meta { display: flex; flex-direction: column; gap: 2px; }
.article-endnote-name { font-weight: 600; font-size: 0.9rem; }
.article-endnote-role { font-size: 0.76rem; color: var(--muted); }
.article-source { font-size: 0.76rem; color: var(--muted); }
.article-source a { color: var(--blue-deep); text-decoration: underline; }

/* Related articles */
.related-section { padding-bottom: clamp(40px, 5vw, 64px); }
.related-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color var(--transition);
}
.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(24, 153, 210, 0.35);
}
.related-card-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.25;
  flex: 1;
}
.related-card .post-link { font-size: 0.8rem; }

/* ============================================================
   STATUS SPRAWY (Panel Klienta)
   ============================================================ */
.status-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 4.5vh, 56px));
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.status-hero::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -220px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--blue-glow), transparent 70%);
  pointer-events: none;
}
.status-hero-inner { max-width: 660px; margin-bottom: clamp(28px, 3.4vw, 40px); }
.status-hero .h1 {
  font-size: clamp(2.1rem, 2.4vw + 1rem, 3.4rem);
  margin: 16px 0 18px;
}

/* Lookup panel */
.status-panel {
  position: relative;
  z-index: 1;
  max-width: 720px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3.4vw, 40px);
}
.status-panel .form-label { margin-bottom: 10px; }
.status-input-row {
  display: flex;
  gap: 12px;
}
@media (max-width: 560px) { .status-input-row { flex-direction: column; } }
.status-input-wrap { position: relative; flex: 1; }
.status-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--blue-deep);
  pointer-events: none;
}
.status-input { padding-left: 46px; text-transform: uppercase; letter-spacing: 0.02em; }
.status-input::placeholder { text-transform: none; letter-spacing: 0; }
.status-submit { flex: none; }
@media (max-width: 560px) { .status-submit { width: 100%; } }
.status-submit.is-loading { opacity: 0.7; pointer-events: none; }

.status-error {
  margin-top: 12px;
  padding: 12px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--error);
  background: rgba(201, 51, 53, 0.07);
  border: 1px solid rgba(201, 51, 53, 0.25);
  border-radius: 10px;
}

/* Result */
.status-result { margin-top: clamp(22px, 2.6vw, 30px); }
.status-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.status-spinner {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 2.5px solid rgba(24, 153, 210, 0.25);
  border-top-color: var(--blue-deep);
  animation: status-spin 0.8s linear infinite;
}
@keyframes status-spin { to { transform: rotate(360deg); } }

.status-found {
  border-top: 1px solid var(--line);
  padding-top: clamp(22px, 2.6vw, 30px);
  animation: field-in 0.4s var(--ease-out);
}
.status-found-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.status-found-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.status-found-id {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  color: var(--ink);
  letter-spacing: 0.01em;
}
.status-badge {
  flex: none;
  padding: 8px 16px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.status-badge.tone-progress { color: var(--blue-dark); background: rgba(24, 153, 210, 0.12); }
.status-badge.tone-done { color: #1E7D4F; background: rgba(47, 174, 104, 0.14); }
.status-badge.tone-hold { color: #9A6A00; background: rgba(214, 158, 0, 0.14); }

.status-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: clamp(28px, 3.4vw, 40px);
}
@media (max-width: 600px) { .status-meta { grid-template-columns: 1fr; } }
.status-meta-item { padding: 16px 20px; background: var(--paper); }
.status-meta-key {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.status-meta-val { font-size: 0.92rem; font-weight: 600; color: var(--ink); }

/* Timeline / stepper */
.status-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: clamp(26px, 3vw, 36px);
}
.status-step {
  position: relative;
  padding-top: 40px;
  text-align: center;
}
.status-step::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.status-step:first-child::before { display: none; }
.status-step.is-done::before,
.status-step.is-current::before { background: var(--blue); }
.status-step-dot {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--line-strong);
  z-index: 1;
  transition: background-color var(--transition), border-color var(--transition);
}
.status-step.is-done .status-step-dot {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 11px no-repeat;
  border-color: var(--blue);
}
.status-step.is-current .status-step-dot {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-glow);
}
.status-step-num { display: none; }
.status-step-label {
  display: block;
  padding: 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}
.status-step.is-done .status-step-label,
.status-step.is-current .status-step-label { color: var(--ink); }

@media (max-width: 620px) {
  .status-timeline { grid-template-columns: 1fr; gap: 0; }
  .status-step { padding: 0 0 20px 34px; text-align: left; }
  .status-step:last-child { padding-bottom: 0; }
  .status-step::before {
    top: 0; left: 8px; right: auto;
    width: 2px; height: 100%;
  }
  .status-step:first-child::before { display: block; top: 12px; height: calc(100% - 12px); }
  .status-step-dot { top: 0; left: 0; transform: none; }
  .status-step-label { padding: 0; }
}

.status-next {
  padding: 20px 24px;
  background: rgba(24, 153, 210, 0.06);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
}
.status-next-key {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 6px;
}
.status-next-val { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }

/* Not found */
.status-notfound {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  animation: field-in 0.4s var(--ease-out);
}
.status-notfound-icon { flex: none; }
.status-notfound-icon svg { width: 32px; height: 32px; fill: var(--error); opacity: 0.85; }
.status-notfound strong { display: block; font-size: 1.02rem; margin-bottom: 6px; color: var(--ink); }
.status-notfound p { font-size: 0.9rem; line-height: 1.6; color: var(--muted); }

/* Help row */
.status-help {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  max-width: 720px;
  margin-top: clamp(26px, 3vw, 38px);
}
@media (max-width: 720px) { .status-help { grid-template-columns: 1fr; } }
.status-help-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.status-help-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(24, 153, 210, 0.1);
}
.status-help-icon svg { width: 18px; height: 18px; fill: var(--blue-deep); }
.status-help-title { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.status-help-text { font-size: 0.82rem; line-height: 1.5; color: var(--muted); }
.status-help-text a { color: var(--blue-deep); font-weight: 600; }

/* ============================================================
   HERO — WARIANT B (czat jako bohater hero)
   Prefiks .hero-b / .chat-b — nie koliduje z wariantem A (.hero).
   ============================================================ */
.hero-b {
  position: relative;
  background: var(--cream);
  padding-top: calc(var(--header-h) + clamp(18px, 3.5vh, 40px));
  padding-bottom: clamp(36px, 5vh, 68px);
  overflow: hidden;
}
.hero-b::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--blue-glow), transparent 70%);
  pointer-events: none;
}
.hero-b-inner { position: relative; z-index: 1; max-width: 900px; margin-inline: auto; }

.hero-b-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(18px, 2.6vh, 28px); }
.hero-b-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.hero-b-eyebrow-rating { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-dark); }
.hero-b-eyebrow-star { color: var(--blue); }
.hero-b-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1.85rem, 3vw + 0.8rem, 3rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 12px;
  text-wrap: balance;
}
.hero-b-title-short { display: none; }
.hero-b-sub { font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem); color: var(--muted); }

/* Chat centrepiece */
.hero-b .chat-window.chat-b {
  max-width: 880px;
  width: 100%;
  justify-self: auto;
  margin-inline: auto;
}
.chat-b .chat-header { gap: 8px; }
.chat-b .chat-bot-info { flex: 1; min-width: 0; }
.chat-b-name { font-weight: 600; font-size: 0.95rem; line-height: 1.2; color: var(--ink); }
.chat-b-status-text { font-size: 0.72rem; }
.chat-b-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.chat-b-tool {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--paper);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.chat-b-tool svg { width: 17px; height: 17px; fill: currentColor; }
.chat-b-tool:hover { border-color: var(--blue); color: var(--blue-deep); }
.chat-b-tool[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.chat-b .chat-messages { height: auto; max-height: 56vh; }
.chat-b .chat-msg.bot { font-size: 0.95rem; line-height: 1.6; }

/* Tiles — liczba kolumn zależna od realnej szerokości czatu (container query).
   Bąbelek z kaflami rozciąga się na pełną szerokość i jest kontenerem zapytania. */
.chat-b .chat-msg.bot:has(.chat-tiles) {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  container-type: inline-size;
}
.chat-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
@container (min-width: 420px) { .chat-tiles { grid-template-columns: 1fr 1fr; } }
@container (min-width: 680px) { .chat-tiles { grid-template-columns: repeat(4, 1fr); } }
.chat-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.chat-tile-icon { width: 22px; height: 22px; flex: none; fill: var(--blue-deep); }
.chat-tile:hover {
  border-color: var(--blue);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -14px rgba(15, 110, 158, 0.4);
}
.chat-tile-rescue {
  grid-column: 1 / -1;
  justify-content: center;
  text-align: center;
  color: var(--blue-dark);
  border-style: dashed;
  background: rgba(24, 153, 210, 0.05);
}
.chat-tile-rescue:hover { border-style: solid; }

/* Input row with prominent mic */
.chat-b-input-area { gap: 10px; align-items: center; }
.chat-b-mic {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-deep);
  color: #fff;
  transition: background-color var(--transition), transform var(--transition);
}
.chat-b-mic svg { width: 22px; height: 22px; fill: currentColor; }
.chat-b-mic:hover { background: var(--blue); transform: scale(1.05); }
.chat-b-mic.is-recording { background: var(--error); animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 51, 53, 0.5); }
  50% { box-shadow: 0 0 0 9px rgba(201, 51, 53, 0); }
}
.chat-b .chat-send-btn { width: 52px; height: 52px; }

/* Callback footer */
.chat-b-callback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: rgba(16, 22, 23, 0.02);
}
.chat-b-callback > span { font-size: 0.8rem; color: var(--muted); }
.chat-b-callback-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 0 18px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.chat-b-callback-btn svg { width: 16px; height: 16px; fill: var(--blue-deep); transition: fill var(--transition); }
.chat-b-callback-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}
.chat-b-callback-btn:hover svg { fill: currentColor; }

/* Mikro-zgoda RODO w czacie (krok podania telefonu) */
.chat-b-consent {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: rgba(24, 153, 210, 0.05);
  animation: field-in 0.35s var(--ease-out);
}
.chat-b-consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.chat-b-consent-label input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--blue-deep);
  cursor: pointer;
}
.chat-b-consent-label a { color: var(--blue-deep); text-decoration: underline; }
.chat-b-consent.is-error .chat-b-consent-label input {
  outline: 2px solid var(--error);
  outline-offset: 2px;
  border-radius: 3px;
}
.chat-b-consent-error {
  margin-top: 8px;
  padding-left: 28px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--error);
}

/* A+ enlarged text mode */
.chat-b.chat-lg .chat-msg { font-size: 1.06rem; line-height: 1.62; }
.chat-b.chat-lg .chat-tile { font-size: 1rem; }
.chat-b.chat-lg .chat-input { font-size: 1rem; }

/* Mobile: swap to shorter headline */
@media (max-width: 560px) {
  .hero-b-title-full { display: none; }
  .hero-b-title-short { display: inline; }
}

/* ============================================================
   WIDŻET DOSTĘPNOŚCI (rozmiar tekstu) — globalny, zakładka lewy brzeg
   ============================================================ */
.a11y-widget {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1004;
}
.a11y-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 46px;
  height: 52px;
  border-radius: 0 14px 14px 0;
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 4px 0 18px -6px rgba(16, 22, 23, 0.4);
  transition: background-color var(--transition), width var(--transition);
}
.a11y-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.a11y-toggle-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1; }
.a11y-toggle:hover { background: var(--blue); width: 50px; }
.a11y-widget.is-open .a11y-toggle { background: var(--ink); }

.a11y-panel {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: 232px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  animation: a11y-in 0.28s var(--ease-out);
}
@keyframes a11y-in {
  from { opacity: 0; transform: translateY(-50%) translateX(-8px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.a11y-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.a11y-sizes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.a11y-size-btn {
  height: 48px;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.a11y-size-btn span { pointer-events: none; }
.a11y-size-btn:first-child span { font-size: 0.85rem; }
.a11y-reset span { font-size: 1rem; }
.a11y-inc span { font-size: 1.25rem; }
.a11y-size-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-deep); background: #fff; }
.a11y-size-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.a11y-level { margin-top: 12px; font-size: 0.8rem; color: var(--muted); text-align: center; }
.a11y-level strong { color: var(--ink); }

@media (max-width: 480px) {
  .a11y-panel { width: 208px; }
}

/* ============================================================
   WERYFIKACJA KODEM SMS (2FA MOCKUP)
   ============================================================ */
.status-sms {
  margin-top: 24px;
  animation: rise 0.4s var(--ease-out);
}
.status-sms-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.status-sms-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.status-sms-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(24, 153, 210, 0.12);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.status-sms-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-deep);
  background: rgba(24, 153, 210, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}
.status-sms-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}
.status-sms-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}
.sms-hint-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 153, 210, 0.06);
  border: 1px dashed var(--blue);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.sms-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.sms-input {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-align: center;
  max-width: 220px;
}
.sms-actions-row {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 10px;
}
.btn-text {
  background: none;
  border: none;
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.btn-text:hover { text-decoration: underline; }

