/* ============================================================
   Skoczylas Rodzinne — style strony Alimenty
   Re-ekstrakcja 1:1 z bloków <style> w alimenty.html.
   Tokeny globalne: colors_and_type.css; layout: main.css.
   ============================================================ */

  :root {
    --teal: #2A9D8F;
    --teal-hover: #238A7E;
    --teal-glow: rgba(42, 157, 143, 0.12);
    --teal-soft: rgba(42, 157, 143, 0.08);
  }


  /* ========== Entry animations ========== */
  .svc-reveal { opacity: 0; transform: translateY(12px); animation: svc-reveal var(--t-section) var(--ease) forwards; }
  .svc-reveal-1 { animation-delay: 80ms; }
  .svc-reveal-2 { animation-delay: 160ms; }
  .svc-reveal-3 { animation-delay: 260ms; }
  .svc-reveal-4 { animation-delay: 360ms; }
  .svc-reveal-5 { animation-delay: 480ms; }
  .svc-reveal-6 { animation-delay: 600ms; }
  .svc-reveal-7 { animation-delay: 720ms; }
  @keyframes svc-reveal { to { opacity: 1; transform: translateY(0); } }


  /* Fade-in */
  .fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity var(--t-slow) var(--ease),
      transform var(--t-slow) var(--ease);
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hero responsive */
  @media (max-width: 960px) {
    .hero {
      padding: var(--s-8) 0 var(--s-8);
    }
    .hero-grid {
      grid-template-columns: 1fr;
      gap: var(--s-7);
      margin-bottom: var(--s-7);
    }
    .hero .display-title {
      font-size: clamp(32px, 7vw, 48px);
    }
    .hero-photo__frame {
      aspect-ratio: 16 / 10;
    }
    .hero-trust-inline {
      margin-top: var(--s-4);
    }
    .hero-ctas {
      flex-direction: column;
      align-items: stretch;
    }
    .hero-ctas .btn { justify-content: center; }
    .hero-ctas .btn-ghost { order: -1; }
  }

  @media (max-width: 400px) {
    .hero { padding: var(--s-7) 0; }
  }

  /* ========== Section 2: Situational Routing Cards ========== */
  /* Unified section header (from rozwody.html) */
  .section-head {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-8);
    margin-bottom: var(--s-8);
    align-items: end;
  }
  .section-head .sh-left {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
  }
  .section-head .display-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(36px, 4.4vw, 64px);
    line-height: 1.05;
    letter-spacing: var(--ls-snug);
    margin: 0;
    color: var(--ink);
  }
  .section-head .display-title em { font-style: italic; color: var(--accent); }
  .section-head .sh-desc {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink-2);
    margin: 0;
    max-width: 44ch;
  }
  .section-head .sh-right-col {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    align-self: end;
  }
  .section-head .sh-cta {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    transition: color var(--t-base) var(--ease);
    margin-top: var(--s-2);
  }
  .section-head .sh-cta:hover { color: var(--accent-hover); }
  .section-head .sh-cta svg {
    width: 14px; height: 14px;
    transition: transform var(--t-base) var(--ease);
  }
  .section-head .sh-cta:hover svg { transform: translateX(4px); }
  @media (max-width: 860px) {
    .section-head {
      grid-template-columns: 1fr;
      gap: var(--s-5);
      margin-bottom: var(--s-7);
    }
  }

  .routing {
    background: var(--paper);
    padding: var(--s-10) 0;
    border-top: 1px solid var(--rule);
  }
  .routing-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--s-8);
  }
  .routing-eyebrow {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: var(--ls-eyebrow);
    color: var(--muted);
    margin-bottom: var(--s-3);
  }
  .routing-header h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 56px);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-snug);
    color: var(--ink);
    margin: 0 0 var(--s-4);
  }
  .routing-header h2 em {
    font-style: italic;
    color: var(--accent);
  }
  .routing-header p {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink-2);
    margin: 0;
  }

  /* Card grid — 2×2 */
  .routing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-5);
  }

  /* Individual card */
  .routing-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: var(--s-7);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    transition:
      transform var(--t-base) var(--ease),
      border-color var(--t-base) var(--ease),
      box-shadow var(--t-base) var(--ease);
  }
  .routing-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-card), 0 8px 24px rgba(127, 86, 217, 0.06);
  }

  /* Urgency card variant — subtle amber accent */
  .routing-card--urgency:hover {
    border-color: #D97706;
    box-shadow: var(--shadow-card), 0 8px 24px rgba(217, 119, 6, 0.06);
  }

  /* Card thumbnail + icon row */
  .routing-card__top {
    display: flex;
    align-items: center;
    gap: var(--s-4);
  }
  .routing-card__thumb {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 100%);
    border: 1px solid var(--rule);
    flex-shrink: 0;
    overflow: hidden;
    filter: sepia(0.15) saturate(0.9);
    display: flex; align-items: center; justify-content: center;
  }
  .routing-card__thumb .ph-label {
    font-family: 'Courier New', monospace;
    font-size: 7px; color: var(--muted);
    text-align: center; line-height: 1.3;
  }
  .routing-card__icon {
    width: 48px; height: 48px;
    color: var(--accent);
    flex-shrink: 0;
  }
  .routing-card--urgency .routing-card__icon {
    color: #D97706;
  }
  .routing-card__icon svg {
    width: 48px; height: 48px;
    stroke-width: 1.2;
  }

  /* Card content */
  .routing-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h4);
    line-height: var(--lh-heading);
    color: var(--ink);
    margin: 0;
  }
  .routing-card p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: var(--lh-body);
    color: var(--ink-2);
    margin: 0;
    flex: 1;
  }

  /* Card link */
  .routing-card__link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    transition: color var(--t-base) var(--ease);
  }
  .routing-card__link:hover {
    color: var(--accent-hover);
  }
  .routing-card__link svg {
    width: 16px; height: 16px;
    transition: transform var(--t-base) var(--ease);
  }
  .routing-card__link:hover svg {
    transform: translateX(4px);
  }
  .routing-card--urgency .routing-card__link {
    color: #D97706;
  }
  .routing-card--urgency .routing-card__link:hover {
    color: #B45309;
  }

  @media (max-width: 960px) {
    .routing-cards {
      grid-template-columns: 1fr;
    }
  }

  /* ========== Section 3: Types of Alimony — Tabs ========== */
  .types {
    background: var(--paper-2);
    padding: var(--s-10) 0;
    border-top: 1px solid var(--rule);
  }

  /* Tab bar */
  .types-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--rule);
    margin-bottom: var(--s-7);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .types-tabs::-webkit-scrollbar { display: none; }
  .types-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-4) var(--s-5);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition:
      color var(--t-base) var(--ease),
      border-color var(--t-base) var(--ease);
    white-space: nowrap;
  }
  .types-tab:hover {
    color: var(--ink);
  }
  .types-tab[aria-selected="true"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }
  .types-tab svg {
    width: 20px; height: 20px;
    stroke-width: 1.5;
    flex-shrink: 0;
  }

  /* Tab panel */
  .types-panel {
    display: none;
    animation: types-fade var(--t-base) var(--ease);
  }
  .types-panel[aria-hidden="false"] {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-7);
    align-items: start;
  }
  @keyframes types-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .types-panel__text {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
  }
  .types-panel__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h3);
    line-height: var(--lh-heading);
    color: var(--ink);
    margin: 0;
  }
  .types-panel__body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink-2);
    margin: 0;
    max-width: var(--content-measure);
  }
  .types-panel__cta {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    transition: color var(--t-base) var(--ease);
  }
  .types-panel__cta:hover { color: var(--accent-hover); }
  .types-panel__cta svg {
    width: 15px; height: 15px;
    transition: transform var(--t-base) var(--ease);
  }
  .types-panel__cta:hover svg { transform: translateX(4px); }

  /* Panel bullet list */
  .types-panel__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
  }
  .types-panel__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: var(--lh-body);
    color: var(--ink-2);
  }
  .types-panel__list li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 8px;
  }
  .types-panel__example {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    border-left: 2px solid var(--accent);
    padding-left: var(--s-4);
    margin: 0;
  }

  /* Panel photo */
  .types-panel__photo {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 100%);
    border: 1px solid var(--rule);
    overflow: hidden;
    filter: sepia(0.15) saturate(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .types-panel__photo .ph-label {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
    max-width: 22ch;
  }

  @media (max-width: 600px) {
    .types-tabs {
      scroll-snap-type: x mandatory;
    }
    .types-tab {
      scroll-snap-align: start;
      padding: var(--s-3) var(--s-4);
      font-size: 13px;
    }
    .types-panel[aria-hidden="false"] {
      grid-template-columns: 1fr;
    }
    .types-panel__photo {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .types-panel {
      animation: none;
    }
  }

  /* ========== Section 4: How Alimony Amounts Are Determined ========== */
  .determination {
    background: var(--paper);
    padding: var(--s-10) 0;
    border-top: 1px solid var(--rule);
  }
  .determination-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-8);
    align-items: start;
  }
  .determination-text {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
  }
  .determination-text h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h3);
    line-height: var(--lh-heading);
    color: var(--ink);
    margin: 0;
  }
  .determination-text h3 em {
    font-style: italic;
    color: var(--accent);
  }
  .determination-text p {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink-2);
    margin: 0;
    max-width: var(--content-measure);
  }
  .determination-callout {
    border-left: 2px solid var(--accent);
    padding: var(--s-5) var(--s-6);
    background: var(--accent-soft);
  }
  .determination-callout p {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.45;
    color: var(--ink);
    max-width: 52ch;
  }
  .determination-cta {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    transition: color var(--t-base) var(--ease);
  }
  .determination-cta:hover { color: var(--accent-hover); }
  .determination-cta svg {
    width: 15px; height: 15px;
    transition: transform var(--t-base) var(--ease);
  }
  .determination-cta:hover svg { transform: translateX(4px); }

  /* Photo */
  .determination-photo {
    position: sticky;
    top: 120px;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 100%);
    border: 1px solid var(--rule);
    overflow: hidden;
    filter: sepia(0.15) saturate(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .determination-photo .ph-label {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
    max-width: 24ch;
  }

  @media (max-width: 960px) {
    .determination-layout {
      grid-template-columns: 1fr;
    }
    .determination-photo {
      position: static;
      order: -1;
      aspect-ratio: 16 / 9;
    }
  }

  /* ========== Section 5: Calculator ========== */
  .calculator-section {
    background: var(--paper-2);
    padding: var(--s-10) 0;
    border-top: 1px solid var(--rule);
  }

  /* ========== Section 6: Step-by-Step Process ========== */
  .process {
    background: var(--paper);
    padding: var(--s-10) 0;
    border-top: 1px solid var(--rule);
  }
  .process-layout {
    display: grid;
    grid-template-columns: 1fr 0.38fr;
    gap: var(--s-8);
    align-items: start;
  }

  /* Timeline */
  .process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
  }
  .process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--s-5);
    padding-bottom: var(--s-7);
    position: relative;
  }
  .process-step:last-child { padding-bottom: 0; }

  /* Vertical line */
  .process-step::before {
    content: '';
    position: absolute;
    left: 27px; top: 56px; bottom: 0;
    width: 1px;
    background: var(--rule);
  }
  .process-step:last-child::before { display: none; }

  /* Number circle */
  .process-step__num {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--rule);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    color: var(--accent);
    flex-shrink: 0;
    background: var(--paper);
    position: relative;
    z-index: 1;
  }

  /* Step content */
  .process-step__content {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    padding-top: var(--s-3);
  }
  .process-step__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h4);
    line-height: var(--lh-heading);
    color: var(--ink);
    margin: 0;
  }
  .process-step__body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: var(--lh-body);
    color: var(--ink-2);
    margin: 0;
    max-width: var(--content-measure);
  }
  .process-step__time {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-meta);
    color: var(--muted);
    margin-top: var(--s-1);
  }
  .process-step__time svg {
    width: 14px; height: 14px;
    color: var(--accent);
  }

  /* Photo strip (desktop) */
  .process-photos {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    position: sticky;
    top: 120px;
  }
  .process-photo {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 100%);
    border: 1px solid var(--rule);
    overflow: hidden;
    filter: sepia(0.15) saturate(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .process-photo .ph-label {
    font-family: 'Courier New', monospace;
    font-size: 10px; color: var(--muted);
    text-align: center; line-height: 1.5;
    max-width: 22ch;
  }

  /* Mobile photo (between steps 3-4) */
  .process-mobile-photo {
    display: none;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 100%);
    border: 1px solid var(--rule);
    overflow: hidden;
    filter: sepia(0.15) saturate(0.9);
    align-items: center;
    justify-content: center;
    margin: var(--s-5) 0;
  }
  .process-mobile-photo .ph-label {
    font-family: 'Courier New', monospace;
    font-size: 10px; color: var(--muted);
    text-align: center; line-height: 1.5;
  }

  @media (max-width: 960px) {
    .process-layout {
      grid-template-columns: 1fr;
    }
    .process-photos {
      display: none;
    }
    .process-mobile-photo {
      display: flex;
    }
  }

  /* ========== Section 7: Interim Alimony ========== */
  .interim {
    background: var(--paper-2);
    padding: var(--s-10) 0;
    border-top: 1px solid var(--rule);
  }
  .interim-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s-8);
    align-items: start;
  }
  .interim-text {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
  }
  .interim-text p {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink-2);
    margin: 0;
    max-width: var(--content-measure);
  }
  .interim-text p strong {
    color: var(--ink);
    font-weight: 500;
  }

  /* Fact card */
  .interim-card {
    background: var(--card);
    border: 1px solid var(--rule);
    padding: 0;
    position: sticky;
    top: 120px;
  }
  .interim-card__accent {
    height: 3px;
    background: #D97706;
  }
  .interim-card__inner {
    padding: var(--s-7);
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
  }
  .interim-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h4);
    line-height: var(--lh-heading);
    color: var(--ink);
    margin: 0;
  }
  .interim-card__facts {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .interim-fact {
    display: flex;
    align-items: flex-start;
    gap: var(--s-4);
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--rule);
  }
  .interim-fact:last-child { border-bottom: none; }
  .interim-fact__icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(217, 119, 6, 0.08);
    border-radius: var(--r-2);
    flex-shrink: 0;
    color: #D97706;
  }
  .interim-fact__icon svg {
    width: 18px; height: 18px;
  }
  .interim-fact__text {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: var(--lh-body);
    color: var(--ink-2);
    padding-top: var(--s-1);
  }

  /* CTA */
  .interim-cta {
    margin-top: var(--s-3);
  }
  .interim-cta .btn-amber {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    padding: var(--s-3) var(--s-5);
    border-radius: var(--r-2);
    cursor: pointer;
    border: 1px solid #D97706;
    background: #D97706;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    text-decoration: none;
    transition: background var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
  }
  .interim-cta .btn-amber:hover { background: #B45309; border-color: #B45309; }
  .interim-cta .btn-amber:active { opacity: 0.85; }

  @media (max-width: 960px) {
    .interim-layout {
      grid-template-columns: 1fr;
    }
    .interim-card {
      position: static;
      order: -1;
    }
  }

  /* ========== Section 8: Criminal Law Heritage ========== */
  .heritage {
    background: var(--gray-900);
    padding: var(--s-10) 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .heritage::before {
    content: '';
    position: absolute;
    top: -30%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(180, 140, 80, 0.04) 0%, transparent 70%);
    pointer-events: none;
  }
  .heritage .container { position: relative; z-index: 1; }

  /* Header with portrait */
  .heritage-head-with-photo {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-7);
    align-items: end;
    margin-bottom: var(--s-8);
  }
  .heritage-portrait {
    width: 200px; height: 260px;
    border-radius: 10px;
    border: 1px solid rgba(180, 140, 80, 0.25);
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    filter: sepia(0.15) saturate(0.9);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .heritage-portrait .ph-label {
    font-family: 'Courier New', monospace;
    font-size: 9px; color: var(--gray-500);
    text-align: center; line-height: 1.4;
    max-width: 18ch;
  }

  /* Heritage badge */
  .heritage-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    border: 1px solid rgba(180, 140, 80, 0.4);
    padding: var(--s-2) var(--s-4);
    border-radius: var(--r-1);
    margin-bottom: var(--s-5);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: var(--ls-eyebrow);
    color: rgba(180, 140, 80, 0.85);
  }

  .section-head--dark .display-title { color: var(--gray-100); }
  .section-head--dark .sh-desc { color: var(--gray-400); }

  /* Heritage cards */
  .heritage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
    margin-bottom: var(--s-8);
  }
  .heritage-card {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: var(--s-7);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    transition:
      transform var(--t-base) var(--ease),
      border-color var(--t-base) var(--ease);
  }
  .heritage-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(180, 140, 80, 0.7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base) var(--ease);
  }
  /* BEZ translateY — karta nie jest linkiem (patrz .testimonial-card). */
  .heritage-card:hover {
    border-color: rgba(180, 140, 80, 0.3);
  }
  .heritage-card:hover::before {
    transform: scaleX(1);
  }
  .heritage-card__icon {
    width: 48px; height: 48px;
    color: rgba(180, 140, 80, 0.75);
    flex-shrink: 0;
  }
  .heritage-card__icon svg {
    width: 48px; height: 48px;
    stroke-width: 1.2;
  }
  .heritage-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h4);
    line-height: var(--lh-heading);
    color: var(--gray-100);
    margin: 0;
  }
  .heritage-card p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: var(--lh-body);
    color: var(--gray-400);
    margin: 0;
  }

  .heritage-footer {
    text-align: center;
  }
  .heritage-footer .btn-primary {
    background: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-100);
  }
  .heritage-footer .btn-primary:hover {
    background: var(--card);
  }

  /* Background photo layer */
  .heritage__bg-photo {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    opacity: 0.12;
    mix-blend-mode: luminosity;
    filter: sepia(0.15) saturate(0.9);
    display: flex; align-items: center; justify-content: center;
  }
  .heritage__bg-photo .ph-label {
    font-family: 'Courier New', monospace;
    font-size: 11px; color: var(--gray-600);
    text-align: center; line-height: 1.5;
  }

  @media (max-width: 960px) {
    .heritage-head-with-photo {
      grid-template-columns: 1fr;
      justify-items: center;
    }
    .heritage-portrait {
      width: 240px; height: 320px;
      order: -1;
    }
    .heritage-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ========== Section 9: Service for Claimants ========== */
  .service-claimants {
    background: var(--paper);
    padding: var(--s-10) 0;
    border-top: 1px solid var(--rule);
  }
  .service-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-8);
    align-items: start;
  }
  .service-text {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
  }
  .service-text p {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink-2);
    margin: 0;
    max-width: var(--content-measure);
  }
  .service-text p strong {
    color: var(--ink);
    font-weight: 500;
  }
  .service-callout {
    border-left: 2px solid var(--accent);
    padding: var(--s-5) var(--s-6);
    background: var(--accent-soft);
  }
  .service-callout p {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.45;
    color: var(--ink);
    max-width: 52ch;
  }
  .service-cta {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    transition: color var(--t-base) var(--ease);
  }
  .service-cta:hover { color: var(--accent-hover); }
  .service-cta svg {
    width: 15px; height: 15px;
    transition: transform var(--t-base) var(--ease);
  }
  .service-cta:hover svg { transform: translateX(4px); }

  .service-photo {
    position: sticky;
    top: 120px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--paper-3) 0%, var(--paper-2) 100%);
    border: 1px solid var(--rule);
    overflow: hidden;
    filter: sepia(0.15) saturate(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .service-photo .ph-label {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
    max-width: 22ch;
  }

  @media (max-width: 960px) {
    .service-layout {
      grid-template-columns: 1fr;
    }
    .service-photo {
      position: static;
      order: -1;
      aspect-ratio: 16 / 9;
      border-radius: 14px;
    }
  }

  /* ========== Section 10: Service – Modification ========== */
  .service-modification {
    background: var(--paper-2);
    padding: var(--s-10) 0;
    border-top: 1px solid var(--rule);
  }
  .service-layout--mirrored {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--s-8);
    align-items: start;
  }

  @media (max-width: 960px) {
    .service-layout--mirrored {
      grid-template-columns: 1fr;
    }
    .service-layout--mirrored .service-photo {
      position: static;
      order: -1;
      aspect-ratio: 16 / 9;
      border-radius: 14px;
    }
  }

  /* ========== Section 11: Enforcement ========== */
  .enforcement {
    background: var(--paper);
    padding: var(--s-10) 0;
    border-top: 1px solid var(--rule);
  }
  .enforcement-tracks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
    margin-bottom: var(--s-7);
  }
  .enforcement-track {
    background: var(--card);
    border: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
  }
  .enforcement-track__accent {
    height: 3px;
  }
  .enforcement-track__accent--teal { background: var(--accent); }
  .enforcement-track__accent--bronze { background: rgba(180, 140, 80, 0.7); }
  .enforcement-track__inner {
    padding: var(--s-7);
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
    flex: 1;
  }
  .enforcement-track__header {
    display: flex;
    align-items: center;
    gap: var(--s-4);
  }
  .enforcement-track__icon {
    width: 48px; height: 48px;
    flex-shrink: 0;
  }
  .enforcement-track__icon--teal { color: var(--accent); }
  .enforcement-track__icon--bronze { color: rgba(180, 140, 80, 0.75); }
  .enforcement-track__icon svg {
    width: 48px; height: 48px;
    stroke-width: 1.2;
  }
  .enforcement-track h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h3);
    line-height: var(--lh-heading);
    color: var(--ink);
    margin: 0;
  }
  .enforcement-track__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
  }
  .enforcement-track__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: var(--lh-body);
    color: var(--ink-2);
  }
  .enforcement-track__list li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
  }
  .enforcement-track--teal .enforcement-track__list li::before {
    background: var(--accent);
  }
  .enforcement-track--bronze .enforcement-track__list li::before {
    background: rgba(180, 140, 80, 0.7);
  }

  /* Full-width highlight box */
  .enforcement-highlight {
    border-left: 2px solid #D97706;
    padding: var(--s-5) var(--s-6);
    background: rgba(217, 119, 6, 0.06);
    margin-bottom: var(--s-7);
  }
  .enforcement-highlight p {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.45;
    color: var(--ink);
    margin: 0;
    max-width: 72ch;
  }

  .enforcement-cta {
    text-align: center;
  }

  @media (max-width: 960px) {
    .enforcement-tracks {
      grid-template-columns: 1fr;
    }
  }

  /* ========== Section 12: Service for Obligors ========== */
  .service-obligors {
    background: var(--paper-2);
    padding: var(--s-10) 0;
    border-top: 1px solid var(--rule);
  }

  /* ========== Section 13: Photo Break ========== */
  .photo-break {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: var(--gray-900);
  }
  .photo-break__image {
    width: 100%;
    height: 500px;
    background:
      linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    filter: sepia(0.15) saturate(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .photo-break__image .ph-label {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
    line-height: 1.5;
  }
  .photo-break__quote {
    position: absolute;
    bottom: var(--s-7);
    right: var(--s-7);
    max-width: 480px;
    background: rgba(16, 24, 40, 0.88);
    backdrop-filter: blur(12px);
    padding: var(--s-6) var(--s-7);
    border-left: 2px solid var(--accent);
  }
  .photo-break__quote blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.45;
    color: var(--gray-100);
    margin: 0 0 var(--s-3);
  }
  .photo-break__quote cite {
    font-family: var(--font-body);
    font-style: normal;
    font-size: var(--fs-meta);
    color: var(--gray-400);
  }

  @media (max-width: 960px) {
    .photo-break__image { height: 300px; }
    .photo-break__quote {
      position: relative;
      bottom: auto; right: auto;
      max-width: none;
      border-left: none;
      border-top: 2px solid var(--accent);
    }
  }

  /* ========== Section 14: Costs ========== */
  .costs {
    background: var(--paper);
    padding: var(--s-10) 0;
    border-top: 1px solid var(--rule);
  }

  /* Court fees info box */
  .costs-fixed {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    padding: var(--s-7);
    margin-bottom: var(--s-7);
  }
  .costs-fixed__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h4);
    line-height: var(--lh-heading);
    color: var(--ink);
    margin: 0 0 var(--s-5);
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--rule);
  }
  .costs-fixed__rows {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .costs-fixed__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-5);
    align-items: baseline;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--rule);
  }
  .costs-fixed__row:last-child { border-bottom: none; }
  .costs-fixed__row-label {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: var(--lh-body);
    color: var(--ink-2);
  }
  .costs-fixed__row-value {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
    color: var(--ink);
    white-space: nowrap;
    text-align: right;
  }
  .costs-fixed__row-value .free {
    color: var(--accent);
    font-style: italic;
  }

  /* Pricing cards */
  .costs-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
    margin-bottom: var(--s-7);
  }
  .costs-card {
    background: var(--card);
    border: 1px solid var(--rule);
    padding: var(--s-7);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    position: relative;
  }
  .costs-card__label {
    display: inline-flex;
    width: fit-content;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-eyebrow);
    text-transform: uppercase;
    letter-spacing: var(--ls-eyebrow);
    color: var(--accent);
    background: var(--accent-soft);
    padding: var(--s-1) var(--s-3);
    border-radius: var(--r-1);
  }
  .costs-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h4);
    line-height: var(--lh-heading);
    color: var(--ink);
    margin: 0;
  }
  .costs-card__price {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    letter-spacing: var(--ls-tight);
    color: var(--ink);
  }
  .costs-card__price span {
    font-family: var(--font-body);
    font-size: var(--fs-meta);
    color: var(--muted);
    font-weight: 400;
  }
  .costs-card__includes {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
    padding-top: var(--s-4);
  }
  .costs-card__includes li {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: var(--lh-body);
    color: var(--ink-2);
  }
  .costs-card__includes li svg {
    width: 15px; height: 15px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 3px;
  }

  .costs-footer {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
  }
  .costs-footer p {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--ink-2);
    margin: 0 0 var(--s-6);
  }

  @media (max-width: 960px) {
    .costs-cards {
      grid-template-columns: 1fr;
    }
  }

  /* ========== Section 15: FAQ — przeniesione do section-faq.css + section-commons.css (warunkowo) ========== */

  /* ========== Section 16: Testimonials — przeniesione do section-testimonials.css (warunkowo) ========== */

  /* Section: Team — przeniesione do section-team.css (warunkowo) */

  /* Section: Related Services — przeniesione do section-related.css (warunkowo) */
  /* Section: Contact form — przeniesione do section-contact-form.css (warunkowo) */

  /* ========== Reduced motion ========== */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    .svc-reveal, .reveal {
      opacity: 1 !important;
      transform: none !important;
    }
  }


/* ============================================================
   DODATEK MOBILNY (≤600px) — jednokolumnowy układ na telefonie.
   Wyłącznie max-width; desktop nietknięty.
   ============================================================ */
@media (max-width: 600px) {
  .routing-cards,
  .costs-cards,
  .testimonials-grid,
  .related-grid { grid-template-columns: 1fr !important; }
  .faq-layout,
  .interim-layout { grid-template-columns: 1fr !important; }
  .interim-card { position: static !important; top: auto !important; }
  .determination-photo,
  .service-photo,
  .process-photos { display: none !important; }
  .section-head { grid-template-columns: 1fr !important; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .cform-field input { min-height: 44px; }
}

/* ============================================================
   DODATEK MOBILNY — POLISH (≤600). Desktop (>600) nietknięty.
   ============================================================ */
@media (max-width: 600px) {
  .hero, .routing, .types, .determination, .calculator-section, .process,
  .interim, .heritage, .service-claimants, .service-modification,
  .service-obligors, .enforcement, .costs, .faq-section, .testimonials,
  .team, .related, .contact-section { padding-top: var(--s-7); padding-bottom: var(--s-7); }
  /* Kadr: sama wysokość, BEZ aspect-ratio — proporcja + max-height przenosi
     limit wysokości na max-WIDTH (190 × 16/10 = 304px) i kadr zwężał się. */
  .hero-photo__frame { aspect-ratio: auto; height: 190px; max-height: none; min-height: 0; }
  .photo-break__image { height: 200px; min-height: 0; }
  .routing-card, .costs-card, .heritage-card, .testimonial-card { padding: var(--s-5); }
}

/* Hero: na telefonie bez wymuszania pełnego ekranu — przylega do treści (koniec pustki) */
@media (max-width: 600px) {
  .hero { min-height: auto; }
}
