/* ============================================================
   PEEKY - wspólny arkusz sekcji migracji (/uslugi/migracje/*)
   Plik: /wp-content/themes/<motyw-potomny>/assets/migracje.css
   Ładowany z functions.php tylko na stronach pod /uslugi/migracje/
   (patrz functions-php-migracje.txt). Prefiks klas: .mig-
   Zależności: --pk-container / --pk-pad / --pk-font (fallbacki w środku)
   ============================================================ */

/* ---------- Baza ---------- */
.mig-section { width: 100%; padding: 96px 0; background: #FFFFFF; }
.mig-section--alt { background: #F8F9FC; }
.mig-section--dark { background: #0f1733; }
.mig-section--foot { padding: 72px 0 80px; background: #FFFFFF; border-top: 1px solid #ECEEF3; }
.mig-section--form { background: #F8F9FC; }

.mig-inner {
  max-width: var(--pk-container, 1600px);
  margin: 0 auto;
  padding: 0 var(--pk-pad, 2.5rem);
}
.mig-inner--narrow { max-width: 960px; }

.mig-eyebrow {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #4F5FE6; margin: 0 0 16px;
}
.mig-section--dark .mig-eyebrow { color: #93A4FF; }

.mig-h2 {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; color: #1A1A1A;
  margin: 0 0 20px; max-width: 980px;
}
.mig-h3 {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700; line-height: 1.25;
  letter-spacing: -0.01em; color: #1A1A1A;
  margin: 0 0 18px;
}
.mig-section--dark .mig-h2, .mig-section--dark .mig-h3 { color: #FFFFFF; }

.mig-lead {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 17px; line-height: 1.7; color: #374151;
  max-width: 880px; margin: 0 0 20px;
}
.mig-section--dark .mig-lead { color: rgba(255,255,255,0.74); }

.mig-note {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 15px; line-height: 1.7; color: #374151;
  background: #F8F9FC; border-left: 3px solid #4F5FE6; border-radius: 0 12px 12px 0;
  padding: 16px 22px; margin: 32px 0 0; max-width: 880px;
}
.mig-section--alt .mig-note { background: #FFFFFF; border: 1px solid #ECEEF3; border-left: 3px solid #4F5FE6; }
.mig-finenote {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,0.55);
  margin: 28px 0 0; max-width: 880px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em; background: rgba(79,95,230,0.08); color: #3730A3;
  padding: 1px 6px; border-radius: 5px;
}
.mig-section--dark code { background: rgba(255,255,255,0.1); color: #C7D2FE; }

.mig-link { color: #4F5FE6; text-decoration: none; font-weight: 600; }
.mig-link:hover { text-decoration: underline; }

/* ---------- Przyciski ---------- */
.mig-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 10px;
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.mig-btn:hover { transform: translateY(-1px); }
.mig-btn--primary { background: #4F5FE6; color: #FFFFFF; }
.mig-btn--primary:hover { background: #4351D1; color: #FFFFFF; }
.mig-btn--ghost { border: 1px solid rgba(255,255,255,0.28); color: #FFFFFF; background: transparent; }
.mig-btn--ghost:hover { border-color: rgba(255,255,255,0.65); color: #FFFFFF; }

/* ---------- HERO ---------- */
.mig-hero { position: relative; background: #0B1120; padding: 64px 0 88px; overflow: hidden; }
.mig-hero::before {
  content: ''; position: absolute;
  width: 800px; height: 800px; top: -220px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(79,95,230,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.mig-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}
.mig-hero__grain {
  position: absolute; inset: 0; opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px 256px;
  pointer-events: none;
}
.mig-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--pk-container, 1600px);
  margin: 0 auto; padding: 0 var(--pk-pad, 2.5rem);
}
.mig-hero__breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 44px;
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6;
}
.mig-hero__breadcrumbs a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 150ms ease; }
.mig-hero__breadcrumbs a:hover { color: rgba(255,255,255,0.7); }
.mig-hero__breadcrumbs span { margin: 0 8px; color: rgba(255,255,255,0.2); }
.mig-hero__breadcrumbs strong { color: rgba(255,255,255,0.7); font-weight: 500; }

.mig-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.mig-hero__grid > * { min-width: 0; }

/* Kierunek migracji: dwie białe karty z logotypami + strzałka, obok odznaka partnera */
.mig-hero__brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.mig-route { display: inline-flex; align-items: center; gap: 12px; }
.mig-logo-card {
  display: inline-flex; align-items: center;
  background: #FFFFFF; border-radius: 12px; padding: 16px 22px;
}
.mig-logo-card img { display: block; height: 32px; width: auto; }
.mig-route__arrow {
  width: 26px; height: 26px; flex-shrink: 0;
  stroke: #93A4FF; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.mig-badge {
  display: inline-flex; align-items: center;
  background: #FFFFFF; border-radius: 12px; padding: 12px 18px;
}
.mig-badge img { display: block; height: 40px; width: auto; }
/* Grupa odznak w hero - zawija się razem, gdy nie mieści się obok logotypów */
.mig-hero__badges { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; min-width: 0; }
/* Logo programu partnerskiego bez karty, na ciemnym tle hero (np. Shoper Premium) */
.mig-partner { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.mig-partner img { display: block; height: 30px; width: auto; margin-bottom: 2px; }
.mig-partner__label { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 13px; font-weight: 700; line-height: 1.3; color: #FFFFFF; }
.mig-partner__sub { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 12px; line-height: 1.35; color: rgba(255,255,255,0.72); }

.mig-hero__eyebrow {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  color: #93A4FF; margin: 0 0 16px;
}
.mig-hero__h1 {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  color: #FFFFFF; margin: 0 0 16px;
}
.mig-hero__tagline {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.88); margin: 0 0 20px; max-width: 720px;
}
.mig-hero__tagline em {
  font-style: normal;
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 50%, #4F46E5 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mig-hero__sub {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: clamp(16px, 1.15vw, 18px); line-height: 1.65;
  color: rgba(255,255,255,0.6); margin: 0 0 36px; max-width: 680px;
}
.mig-hero__ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.mig-hero__trust { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; }
.mig-hero__trust b { color: rgba(255,255,255,0.8); font-weight: 600; }
.mig-hero__media img {
  display: block; width: 100%; max-width: 100%; height: auto; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}

/* ---------- Sub-nawigacja ---------- */
.mig-subnav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #ECEEF3;
}
.mig-subnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mig-subnav ul::-webkit-scrollbar { display: none; }
.mig-subnav a {
  display: inline-block; white-space: nowrap;
  padding: 14px 14px;
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 13.5px; font-weight: 600; color: #4B5563; text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.mig-subnav a:hover, .mig-subnav a.is-active { color: #4F5FE6; border-bottom-color: #4F5FE6; }
.mig-subnav a.is-cta { margin-left: auto; color: #4F5FE6; }

/* ---------- W skrócie ---------- */
.mig-tldr {
  background: #FFFFFF; border: 1px solid rgba(79,95,230,0.25);
  border-left: 4px solid #4F5FE6; border-radius: 0; padding: 36px 40px;
}
.mig-tldr .mig-lead { margin-bottom: 24px; }
.mig-tldr__list { list-style: none; margin: 0; padding: 0; }
.mig-tldr__list li {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 15.5px; line-height: 1.7; color: #374151;
  padding: 9px 0; border-bottom: 1px solid #F3F4F6;
}
.mig-tldr__list li:last-child { border-bottom: none; }
.mig-tldr__list b { color: #1A1A1A; }

/* Przykładowy raport zgodności */
.mig-report { margin-top: 40px; background: #FFFFFF; border: 1px solid #ECEEF3; border-radius: 16px; padding: 36px 40px; }
.mig-report__head .mig-lead { margin-bottom: 24px; }
.mig-table--report { min-width: 760px; }
.mig-table--report tbody td:nth-child(2),
.mig-table--report tbody td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mig-status {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
  border-radius: 100px; padding: 3px 10px; line-height: 1.4;
}
.mig-status--ok { background: rgba(16,185,129,0.12); color: #047857; }
.mig-status--note { background: rgba(245,158,11,0.14); color: #92400E; }

/* ---------- Dla kogo ---------- */
.mig-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mig-fit__yes, .mig-fit__no { border-radius: 16px; padding: 32px; }
.mig-fit__yes { background: linear-gradient(135deg, rgba(79,95,230,0.06), rgba(129,140,248,0.10)); border: 1px solid rgba(79,95,230,0.25); }
.mig-fit__no { background: #FFFFFF; border: 1px solid #ECEEF3; }
.mig-fit h3 { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 18px; font-weight: 700; color: #1A1A1A; margin: 0 0 16px; }
.mig-fit ul { list-style: none; margin: 0; padding: 0; }
.mig-fit li {
  position: relative; font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 15px; line-height: 1.65; color: #374151; padding: 6px 0 6px 26px;
}
.mig-fit__yes li::before {
  content: ''; position: absolute; left: 0; top: 14px; width: 12px; height: 7px;
  border-left: 2px solid #4F5FE6; border-bottom: 2px solid #4F5FE6; transform: rotate(-45deg);
}
.mig-fit__no li::before {
  content: ''; position: absolute; left: 2px; top: 17px; width: 10px; height: 2px;
  background: #9CA3AF; border-radius: 2px;
}

/* ---------- Zakres: legenda, grupy, tabele ---------- */
.mig-legend {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-family: var(--pk-font, 'Inter', sans-serif); font-size: 13.5px; color: #4B5563;
}
.mig-legend li { display: inline-flex; align-items: center; gap: 8px; }
.mig-how {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  font-size: 0; line-height: 0; color: transparent; vertical-align: middle; position: relative; top: -1px; margin-right: 7px;
  box-sizing: border-box;
}
.mig-how--auto { background: #047857; }
.mig-how--semi { border: 2px solid #4F5FE6; background: linear-gradient(90deg, #4F5FE6 0 50%, transparent 50% 100%); }
.mig-how--manual { border: 2px solid #6B7280; background: transparent; }
.mig-how--none {
  border-radius: 2px;
  background:
    linear-gradient(45deg, transparent 0 41%, #B91C1C 41% 59%, transparent 59% 100%),
    linear-gradient(-45deg, transparent 0 41%, #B91C1C 41% 59%, transparent 59% 100%);
}
.mig-legend .mig-how { margin-right: 0; }

.mig-group { margin-top: 40px; }
.mig-group .mig-h3 { margin-bottom: 14px; }

.mig-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 8px; }
.mig-table {
  width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0;
  background: #FFFFFF; border: 1px solid #ECEEF3; border-radius: 16px; overflow: hidden;
}
.mig-table th, .mig-table td {
  font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 14px; line-height: 1.55; padding: 14px 16px; text-align: left;
  border-bottom: 1px solid #F3F4F6; vertical-align: top;
}
.mig-table thead th {
  background: #0B1120; color: #FFFFFF; font-weight: 600; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.mig-table tbody td { color: #374151; }
.mig-table tbody td:first-child { font-weight: 600; color: #1A1A1A; }
.mig-table tbody tr:last-child td { border-bottom: none; }

.mig-table--map { min-width: 920px; }
.mig-table--map th:nth-child(1), .mig-table--map td:nth-child(1) { width: 21%; }
.mig-table--map th:nth-child(2), .mig-table--map td:nth-child(2) { width: 22%; background: rgba(79,95,230,0.04); }
.mig-table--map th:nth-child(3), .mig-table--map td:nth-child(3) { width: 14%; white-space: nowrap; }
.mig-table--map thead th:nth-child(2) { background: #0B1120; }

.mig-table--tiers { min-width: 860px; }
.mig-table--tiers tbody td:first-child { width: 16%; }

.mig-table--alt { min-width: 920px; }
.mig-table--alt td:first-child { width: 22%; }
.mig-table--alt tbody tr:last-child td { background: rgba(79,95,230,0.05); }

/* „Czego Shopify nie da” + słownik */
.mig-limits {
  margin-top: 40px; background: #FFFFFF; border: 1px solid #ECEEF3; border-radius: 16px; padding: 32px 36px;
}
.mig-limits h3, .mig-glossary h3, .mig-prep h3, .mig-url h3, .mig-cost h3 {
  font-family: var(--pk-font, 'Inter', sans-serif); font-size: 18px; font-weight: 700; color: #1A1A1A; margin: 0 0 16px;
}
.mig-limits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; }
.mig-limits li {
  position: relative; font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 15px; line-height: 1.65; color: #374151; padding: 6px 0 6px 24px;
}
.mig-limits li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 10px; height: 2px; background: #B91C1C; border-radius: 2px; }

.mig-glossary { margin-top: 24px; background: #FFFFFF; border: 1px solid #ECEEF3; border-radius: 16px; padding: 32px 36px; }
.mig-glossary dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; }
.mig-glossary dl > div { background: #F8F9FC; border-radius: 10px; padding: 12px 16px; }
.mig-glossary dt { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 12.5px; color: #6B7280; margin: 0 0 2px; }
.mig-glossary dd { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 15px; font-weight: 700; color: #1A1A1A; margin: 0; }

/* ---------- Bezpieczeństwo (dark) ---------- */
.mig-safe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.mig-safe__card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px; padding: 26px 26px 28px;
}
.mig-safe__num {
  display: inline-block; font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 13px; font-weight: 700; letter-spacing: 1px; color: #93A4FF; margin-bottom: 14px;
}
.mig-safe__card h3 { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 17.5px; font-weight: 700; color: #FFFFFF; margin: 0 0 10px; line-height: 1.3; }
.mig-safe__card p { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,0.7); margin: 0; }

/* ---------- SEO ---------- */
.mig-url { background: #F8F9FC; border: 1px solid #ECEEF3; border-radius: 16px; padding: 28px 32px; margin: 8px 0 40px; }
.mig-url__rows { display: grid; gap: 10px; }
.mig-url__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-family: var(--pk-font, 'Inter', sans-serif); font-size: 14px; }
.mig-url__row code { background: #FFFFFF; border: 1px solid #ECEEF3; color: #1A1A1A; padding: 6px 10px; border-radius: 8px; }
.mig-url__row span { color: #4F5FE6; font-weight: 700; }
.mig-url__row em { font-style: normal; font-size: 13px; color: #6B7280; margin-left: 4px; }
.mig-url__note { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 13.5px; line-height: 1.6; color: #6B7280; margin: 16px 0 0; }

.mig-steps { list-style: none; margin: 0; padding: 0; counter-reset: migstep; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mig-steps li {
  counter-increment: migstep; position: relative;
  background: #FFFFFF; border: 1px solid #ECEEF3; border-radius: 16px; padding: 26px 28px 26px 76px;
}
.mig-steps li::before {
  content: counter(migstep, decimal-leading-zero);
  position: absolute; left: 26px; top: 26px;
  font-family: var(--pk-font, 'Inter', sans-serif); font-size: 22px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #818CF8, #4F46E5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mig-steps h3 { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 17px; font-weight: 700; color: #1A1A1A; margin: 0 0 8px; line-height: 1.3; }
.mig-steps p { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 14.5px; line-height: 1.7; color: #4B5563; margin: 0; }

/* ---------- Proces ---------- */
.mig-process { list-style: none; margin: 0; padding: 0; max-width: 980px; }
.mig-step { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid #ECEEF3; }
.mig-step:last-child { border-bottom: none; }
.mig-step__num {
  font-family: var(--pk-font, 'Inter', sans-serif); font-size: 28px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #818CF8, #4F46E5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mig-step__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.mig-step__head h3 { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 18px; font-weight: 700; color: #1A1A1A; margin: 0; }
.mig-step__time { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 12px; font-weight: 600; color: #4F5FE6; background: rgba(79,95,230,0.08); border-radius: 100px; padding: 3px 10px; }
.mig-step p { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 15px; line-height: 1.7; color: #4B5563; margin: 0; }
.mig-step p b { color: #1A1A1A; }

.mig-prep { margin-top: 40px; background: #FFFFFF; border: 1px solid #ECEEF3; border-radius: 16px; padding: 32px 36px; max-width: 980px; }

.mig-checks { list-style: none; margin: 0; padding: 0; }
.mig-checks li {
  position: relative; font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 15px; line-height: 1.65; color: #374151; padding: 7px 0 7px 28px;
}
.mig-checks li::before {
  content: ''; position: absolute; left: 0; top: 15px; width: 12px; height: 7px;
  border-left: 2px solid #4F5FE6; border-bottom: 2px solid #4F5FE6; transform: rotate(-45deg);
}
.mig-checks--cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }

/* ---------- Czas i koszt ---------- */
.mig-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.mig-cost__col { background: #F8F9FC; border-radius: 16px; padding: 32px 36px; }
.mig-cost__note {
  font-family: var(--pk-font, 'Inter', sans-serif); font-size: 14.5px; line-height: 1.7; color: #1A1A1A;
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #E5E7EB;
}

/* ---------- Karty ogólne ---------- */
.mig-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mig-grid3 > * { min-width: 0; }
.mig-logo-card--lg img { height: 40px; }

.mig-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mig-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mig-card {
  display: block; background: #FFFFFF; border: 1px solid #ECEEF3;
  border-radius: 16px; padding: 28px; text-decoration: none;
}
.mig-card h3 { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 17.5px; font-weight: 700; color: #1A1A1A; margin: 0 0 10px; }
.mig-card p { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 14.5px; line-height: 1.7; color: #4B5563; margin: 0; }
.mig-card--link { transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.mig-card--link:hover { border-color: rgba(79,95,230,0.45); transform: translateY(-3px); box-shadow: 0 10px 32px rgba(17,24,39,0.08); }
.mig-card__more { display: inline-block; margin-top: 14px; font-family: var(--pk-font, 'Inter', sans-serif); font-size: 13.5px; font-weight: 600; color: #4F5FE6; }

/* ---------- FAQ ---------- */
.mig-faq { max-width: 980px; }
.mig-faq__item { border: 1px solid #ECEEF3; border-radius: 14px; background: #FFFFFF; margin-bottom: 12px; overflow: hidden; }
.mig-faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--pk-font, 'Inter', sans-serif); font-size: 16px; font-weight: 600; color: #1A1A1A; padding: 20px 24px;
}
.mig-faq__q::after {
  content: ''; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2px solid #4F5FE6; border-bottom: 2px solid #4F5FE6;
  transform: rotate(45deg); transition: transform 200ms ease; margin-top: -4px;
}
.mig-faq__item.is-open .mig-faq__q::after { transform: rotate(-135deg); margin-top: 4px; }
.mig-faq__a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 250ms ease; }
.mig-faq__item.is-open .mig-faq__a-wrap { grid-template-rows: 1fr; }
.mig-faq__a { overflow: hidden; }
.mig-faq__a p { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 15px; line-height: 1.7; color: #4B5563; margin: 0; padding: 0 24px 22px; }
.mig-faq__a a { color: #4F5FE6; font-weight: 600; text-decoration: none; }
.mig-faq__a a:hover { text-decoration: underline; }

/* ---------- Formularz wstępnej oceny (własny AJAX, sekcja w bloku 2) ---------- */
.mig-form-wrap { max-width: 980px; }
.mig-form-head { margin-bottom: 28px; }
.mig-form-head .mig-lead { margin-bottom: 8px; }
.mig-form { position: relative; background: #FFFFFF; border: 1px solid #ECEEF3; border-radius: 16px; padding: 36px 40px; }
.mig-form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.mig-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.mig-form__row { min-width: 0; }
.mig-form__row--full { grid-column: 1 / -1; }
.mig-form__label {
  display: block; font-family: var(--pk-font, 'Inter', sans-serif);
  font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px;
}
.mig-form__label span { color: #4F5FE6; }
.mig-form__input {
  display: block; width: 100%; box-sizing: border-box;
  font-family: var(--pk-font, 'Inter', sans-serif); font-size: 15px; line-height: 1.4; color: #1A1A1A;
  background: #FFFFFF; border: 1px solid #D1D5DB; border-radius: 10px; padding: 13px 14px; margin: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none; appearance: none;
}
.mig-form__input::placeholder { color: #9CA3AF; }
.mig-form__input:focus { outline: none; border-color: #4F5FE6; box-shadow: 0 0 0 3px rgba(79,95,230,0.15); }
.mig-form__input.is-invalid { border-color: #B91C1C; box-shadow: 0 0 0 3px rgba(185,28,28,0.10); }
textarea.mig-form__input { min-height: 110px; resize: vertical; }
select.mig-form__input {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%234B5563' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px;
}
.mig-form__check {
  display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 0; cursor: pointer;
  font-family: var(--pk-font, 'Inter', sans-serif); font-size: 13px; line-height: 1.6; color: #4B5563;
}
.mig-form__check input { width: 16px; height: 16px; margin: 3px 0 0; flex-shrink: 0; accent-color: #4F5FE6; cursor: pointer; }
.mig-form__check a { color: #4F5FE6; text-decoration: underline; }
.mig-form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.mig-form__btn { border: none; cursor: pointer; }
.mig-form__btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.mig-form__msg { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 14px; line-height: 1.5; color: #4B5563; margin: 0; }
.mig-form__msg.is-error { color: #B91C1C; }
.mig-form__msg.is-success { color: #047857; }
.mig-form-note {
  font-family: var(--pk-font, 'Inter', sans-serif); font-size: 13.5px; line-height: 1.7; color: #6B7280; margin: 16px 0 0;
}

/* ---------- Powiązane / źródła / odpowiedzialność ---------- */
.mig-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mig-related__grid a {
  display: block; background: #F8F9FC; border: 1px solid #ECEEF3; border-radius: 12px;
  padding: 18px 20px; text-decoration: none; transition: border-color 180ms ease;
}
.mig-related__grid a:hover { border-color: rgba(79,95,230,0.45); }
.mig-related__grid b { display: block; font-family: var(--pk-font, 'Inter', sans-serif); font-size: 14.5px; font-weight: 700; color: #1A1A1A; margin-bottom: 4px; }
.mig-related__grid span { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 13px; color: #6B7280; }

.mig-sources { margin-top: 48px; padding-top: 32px; border-top: 1px solid #ECEEF3; max-width: 980px; }
.mig-sources__intro { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 14px; line-height: 1.7; color: #4B5563; margin: 0 0 10px; }
.mig-sources ul { list-style: none; margin: 0; padding: 0; }
.mig-sources li { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 13.5px; line-height: 1.7; color: #6B7280; padding: 3px 0; }
.mig-sources a { color: #4F5FE6; text-decoration: none; font-weight: 600; }
.mig-sources a:hover { text-decoration: underline; }

.mig-author { margin-top: 28px; padding-top: 20px; border-top: 1px solid #ECEEF3; max-width: 980px; }
.mig-author p { font-family: var(--pk-font, 'Inter', sans-serif); font-size: 13.5px; line-height: 1.7; color: #6B7280; margin: 0; }
.mig-author b { color: #374151; }

/* ---------- Ochrona siatek przed rozpychaniem (długie URL-e, obrazy) ---------- */
.mig-fit > *, .mig-steps > li, .mig-safe > *, .mig-why > *, .mig-grid4 > *, .mig-related__grid > *, .mig-cost > *, .mig-glossary dl > div { min-width: 0; }
.mig-url__row code, .mig-steps code { overflow-wrap: anywhere; }

/* ---------- Reveal ---------- */
.mig-reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(0.16,1,0.3,1), transform 700ms cubic-bezier(0.16,1,0.3,1); }
.mig-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .mig-why, .mig-grid4, .mig-related__grid { grid-template-columns: repeat(2, 1fr); }
  .mig-grid3 { grid-template-columns: repeat(2, 1fr); }
  .mig-glossary dl { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .mig-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .mig-safe { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
  .mig-section { padding: 72px 0; }
  .mig-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .mig-hero__media { max-width: 640px; }
  .mig-fit, .mig-steps, .mig-cost, .mig-checks--cols, .mig-limits ul { grid-template-columns: 1fr; }
  .mig-glossary dl { grid-template-columns: repeat(2, 1fr); }

  /* Tabele mapowania i alternatyw -> karty */
  .mig-table--map, .mig-table--alt { min-width: 0; border: none; background: transparent; }
  .mig-table--map thead, .mig-table--alt thead { display: none; }
  .mig-table--map tbody, .mig-table--alt tbody { display: grid; gap: 12px; }
  .mig-table--map tr, .mig-table--alt tr { display: block; background: #FFFFFF; border: 1px solid #ECEEF3; border-radius: 14px; padding: 6px 0; }
  .mig-table--map td, .mig-table--alt td {
    display: block;
    width: auto !important; white-space: normal !important; background: transparent !important;
    padding: 10px 16px; border-bottom: 1px solid #F3F4F6;
  }
  .mig-table--map tr td:last-child, .mig-table--alt tr td:last-child { border-bottom: none; }
  .mig-table--map td::before, .mig-table--alt td::before {
    content: attr(data-label); display: block; margin-bottom: 3px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #6B7280;
  }
  .mig-table--map td:first-child, .mig-table--alt td:first-child { font-size: 15.5px; }
  .mig-table--map td:first-child::before, .mig-table--alt td:first-child::before { display: none; }
  .mig-table--map td:first-child, .mig-table--alt td:first-child { padding-top: 14px; }
}
@media (max-width: 600px) {
  .mig-section { padding: 56px 0; }
  .mig-hero { padding: 40px 0 64px; }
  .mig-hero__ctas .mig-btn { width: 100%; }
  .mig-why, .mig-grid4, .mig-grid3, .mig-related__grid, .mig-safe { grid-template-columns: 1fr; }
  .mig-logo-card--lg img { height: 34px; }
  .mig-glossary dl { grid-template-columns: 1fr 1fr; }
  .mig-step { grid-template-columns: 1fr; gap: 8px; }
  .mig-steps li { padding: 64px 22px 24px; }
  .mig-steps li::before { left: 22px; top: 24px; }
  .mig-tldr, .mig-report, .mig-fit__yes, .mig-fit__no, .mig-limits, .mig-glossary, .mig-prep, .mig-cost__col, .mig-card, .mig-form, .mig-url { padding: 22px; }
  .mig-form__grid { grid-template-columns: 1fr; }
  .mig-form__actions .mig-form__btn { width: 100%; }
  .mig-logo-card { padding: 12px 16px; }
  .mig-logo-card img { height: 26px; }
  .mig-badge { padding: 10px 14px; }
  .mig-badge img { height: 34px; }
  .mig-partner img { height: 24px; }
  .mig-url__row em { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mig-reveal { opacity: 1 !important; transform: none !important; }
  .mig-faq__a-wrap { transition: none; }
}
