/* ==========================================================================
   DelayFix — Program partnerski „Odzyskaj & Zyskaj”
   Kolory i krój pisma dopasowane do delayfix.com (nowayregular / nowaymedium).
   Jeśli strona żyje jako podstrona delayfix.com, fonty „noway*” będą już
   wczytane globalnie — tutaj podajemy tylko bezpieczne fallbacki.
   ========================================================================== */

:root {
  --df-blue: #2b47e6;
  --df-blue-dark: #1c34b8;
  --df-blue-tint: #eef1fd;
  --df-text: #292929;
  --df-text-muted: #6b7280;
  --df-bg: #f7f8fc;
  --df-white: #ffffff;
  --df-border: #e5e7eb;
  --df-warning-bg: #fff7ed;
  --df-warning-border: #fdba74;
  --df-warning-text: #9a3412;
  --df-danger: #dc2626;
  --df-danger-bg: #fef2f2;
  --df-success: #15803d;
  --df-success-bg: #f0fdf4;
  --df-radius-lg: 20px;
  --df-radius-md: 14px;
  --df-radius-sm: 8px;
  --df-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --df-font: nowaymedium, nowayregular, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Nasze reguły "display" na wybranych klasach (np. .df-dropzone__file)
   mają wyższy priorytet niż domyślny styl atrybutu [hidden] — bez tej
   reguły element z hidden potrafiłby się mimo wszystko wyrenderować. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--df-font);
  font-weight: 400;
  color: var(--df-text);
  background: var(--df-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.df-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }

/* Header */
.df-header {
  background: var(--df-white);
  border-bottom: 1px solid var(--df-border);
}
.df-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.df-logo svg { height: 28px; width: auto; display: block; }
.df-logo__wordmark { fill: #000; }
.df-logo__plane { fill: var(--df-blue); }
.df-header__back {
  font-size: 14px;
  color: var(--df-text-muted);
  text-decoration: none;
}
.df-header__back:hover { color: var(--df-blue); }

/* Hero */
.df-page { padding-top: 48px; padding-bottom: 80px; }

.df-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.df-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
  color: var(--df-blue);
  margin: 0 0 10px;
}
.df-hero__text h1 {
  font-size: clamp(32px, 4vw, 44px);
}
.df-accent { color: var(--df-blue); }
.df-hero__lead {
  color: var(--df-text-muted);
  font-size: 17px;
  max-width: 46ch;
}
.df-hero__media { position: relative; }
.df-hero__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--df-radius-lg);
  box-shadow: var(--df-shadow);
}

/* Steps nav (visual only) — kroki połączone przerywaną linią, po której
   "leci" mały samolot (ten sam znak co w logo DelayFix). */
.df-steps-track {
  display: flex;
  align-items: center;
  margin: 0 0 32px;
}
.df-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--df-text-muted);
  white-space: nowrap;
  flex: none;
}
.df-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--df-blue-tint);
  color: var(--df-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: none;
}
.df-step-connector {
  flex: 1 1 auto;
  min-width: 28px;
  height: 0;
  border-top: 2px dashed #c7d0f5;
  margin: 0 12px;
  position: relative;
}
.df-step-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: var(--df-bg);
  border-radius: 50%;
}
.df-step-plane path { fill: var(--df-blue); }

@media (max-width: 560px) {
  .df-step-label { display: none; } /* zostają same numerki na bardzo wąskich ekranach */
  .df-step-connector { margin: 0 6px; }
}

/* Cards */
.df-card {
  background: var(--df-white);
  border-radius: var(--df-radius-lg);
  box-shadow: var(--df-shadow);
  padding: 32px;
  margin-bottom: 28px;
}
.df-card__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.df-step-badge {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--df-blue);
  color: var(--df-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.df-card__head h2 { font-size: 20px; margin: 4px 0 0; }
.df-card__intro { font-size: 15px; color: var(--df-text-muted); margin: 0 0 20px; }

/* Video — najpierw pokazujemy miniaturę (szybciej się ładuje, nie zależy
   od tego, czy YouTube zaakceptuje embed na danej domenie), a dopiero po
   kliknięciu wstawiamy właściwy odtwarzacz z autoplay. */
.df-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--df-radius-md);
  overflow: hidden;
  background: #0b0f19;
  margin-bottom: 20px;
  cursor: pointer;
}
.df-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.df-video__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.df-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s, transform .15s;
}
.df-video__play svg { width: 28px; height: 28px; margin-left: 3px; }
.df-video:hover .df-video__play,
.df-video:focus-visible .df-video__play {
  background: var(--df-blue);
  transform: translate(-50%, -50%) scale(1.06);
}
.df-video:focus-visible {
  outline: 3px solid var(--df-blue);
  outline-offset: 2px;
}

/* Callout */
.df-callout {
  border-radius: var(--df-radius-md);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
}
.df-callout--warning {
  background: var(--df-warning-bg);
  border: 1px solid var(--df-warning-border);
  color: var(--df-warning-text);
}
.df-callout--info {
  background: var(--df-blue-tint);
  border: 1px solid #c7d0f5;
  color: #1e2a78;
}

/* Filters example — stylizowane na wygląd pola wyboru daty z MerlinX
   (strzałka w dół), wyśrodkowane jako spójna grupa. */
.df-filters-example {
  background: var(--df-bg);
  border-radius: var(--df-radius-md);
  padding: 22px 20px;
  text-align: center;
}
.df-filters-example__title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 16px;
}
.df-filters-example__row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.df-filters-example__field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.df-filters-example__label {
  font-size: 12px;
  color: var(--df-text-muted);
  padding-left: 2px;
}
.df-filters-example__select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 190px;
  padding: 10px 14px;
  background: #eef0f4;
  border: 1.5px dashed #cfd4e0;
  border-radius: var(--df-radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--df-text-muted);
  cursor: not-allowed;
}
.df-filters-example__value {
  display: flex;
  align-items: center;
  gap: 8px;
}
.df-filters-example__select svg {
  width: 16px;
  height: 16px;
  color: var(--df-text-muted);
  flex: none;
}
.df-filters-example__icon-chevron {
  opacity: 0.55;
}

/* Form fields */
.df-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}
.df-required { color: var(--df-danger); }
.df-field { margin-bottom: 20px; }
.df-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--df-border);
  border-radius: var(--df-radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--df-text);
  background: var(--df-white);
  transition: border-color .15s, box-shadow .15s;
}
.df-input:focus {
  outline: none;
  border-color: var(--df-blue);
  box-shadow: 0 0 0 3px var(--df-blue-tint);
}
.df-input[aria-invalid="true"] { border-color: var(--df-danger); }

.df-field-error {
  color: var(--df-danger);
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 0;
}
.df-field-error:empty { display: none; }

/* Dropzone */
.df-dropzone {
  border: 2px dashed var(--df-border);
  border-radius: var(--df-radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
  color: var(--df-text-muted);
}
.df-dropzone:hover,
.df-dropzone:focus-visible {
  border-color: var(--df-blue);
  background: var(--df-blue-tint);
}
.df-dropzone.is-dragover {
  border-color: var(--df-blue);
  background: var(--df-blue-tint);
}
.df-dropzone.has-error { border-color: var(--df-danger); }
.df-dropzone__icon {
  width: 32px;
  height: 32px;
  color: var(--df-blue);
  margin-bottom: 10px;
}
.df-dropzone__idle p { margin: 4px 0; }
.df-dropzone__hint { font-size: 13px; }

.df-dropzone__file {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.df-dropzone__file svg { width: 28px; height: 28px; color: var(--df-blue); flex: none; }
.df-dropzone__file-info { flex: 1; min-width: 0; }
.df-dropzone__file-name {
  display: block;
  font-weight: 600;
  color: var(--df-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.df-dropzone__file-size { font-size: 13px; }
.df-dropzone__remove {
  flex: none;
  border: none;
  background: var(--df-white);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--df-text-muted);
  font-size: 14px;
}
.df-dropzone__remove:hover { color: var(--df-danger); }

/* Honeypot (ukryte przed ludźmi) */
.df-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Alert */
.df-alert {
  border-radius: var(--df-radius-md);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
}
.df-alert[data-type="error"] { background: var(--df-danger-bg); color: var(--df-danger); }
.df-alert[data-type="success"] { background: var(--df-success-bg); color: var(--df-success); }

/* Button */
.df-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--df-blue);
  color: var(--df-white);
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .15s, transform .1s;
}
.df-button:hover { background: var(--df-blue-dark); }
.df-button:active { transform: translateY(1px); }
.df-button:disabled { opacity: .7; cursor: not-allowed; }
.df-button__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: df-spin .7s linear infinite;
}
@keyframes df-spin { to { transform: rotate(360deg); } }

/* Footer (replika stopki delayfix.com — te same kolory, treści i linkowanie) */
.df-footer {
  margin-top: 56px;
  background: #131f66;
  color: #ecdec9;
  font-size: 14px;
}
.df-footer .df-container { max-width: 1100px; }
.df-footer a { color: inherit; }
.df-footer__inner { padding: 48px 0 8px; }
.df-footer__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 24px;
}
.df-footer__col-title {
  margin: 0 0 14px;
  font-weight: 600;
  color: #ecdec9;
}

/* Kolumna: kontakt */
.df-footer__logo { display: inline-block; margin-bottom: 16px; }
.df-footer__logo svg { height: 24px; width: auto; display: block; }
.df-footer__logo svg path, .df-footer__logo svg g { fill: #ecdec9; }
.df-footer__tagline {
  margin: 0 0 12px;
  line-height: 1.5;
  color: #ecdec9;
}
.df-footer__hours {
  margin: 0 0 14px;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
}
.df-footer__contact-link {
  display: block;
  text-decoration: underline;
  margin-bottom: 6px;
}
.df-footer__contact-link:hover { opacity: 0.8; }

/* Kolumna: social media */
.df-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
  width: fit-content;
}
.df-footer__social svg { width: 22px; height: 22px; flex: none; }
.df-footer__social span { text-decoration: underline; }
.df-footer__social:hover { opacity: 0.8; }

/* Kolumna: linki do podstron */
.df-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.df-footer__list li { margin-bottom: 10px; }
.df-footer__list a { text-decoration: none; }
.df-footer__list a:hover { text-decoration: underline; }

/* Kolumna: dane spółki */
.df-footer__legal {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  opacity: 0.85;
}

.df-footer__copyrights {
  padding: 16px 0 24px;
  border-top: 1px solid rgba(236, 222, 201, 0.2);
  font-size: 13px;
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 760px) {
  .df-hero { grid-template-columns: 1fr; }
  .df-hero__media { order: -1; }
  .df-card { padding: 24px; }
  .df-footer__row { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 520px) {
  .df-footer__row { grid-template-columns: 1fr; }
}
