/* =========================================================
   Ginger Agency – style
   Kolory i podstawowe wartości zmieniasz w :root
   ========================================================= */

:root {
  --accent: #F25C05;
  --on-accent: #ffffff;
  --tint: #FDEEE6;        /* jasny pomarańczowy (12% akcentu na bieli) */
  --bg: #ffffff;
  --surface: #FBF9FA;
  --fg: #1A1220;
  --muted: #4A3F47;
  --faint: #6B5A66;
  --border: #EFE7EC;

  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 28px;
  --container: 1240px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; transition: opacity .15s ease; }
a:hover { opacity: .8; }

h1, h2, h3 { font-family: var(--font-head); margin: 0; font-weight: 700; }
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }
.section--surface { background: var(--surface); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--fg); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

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

/* ---------- Przyciski ---------- */

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  padding: 18px 28px;
  line-height: 1.2;
  text-align: center;
}
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--outline { border: 2px solid var(--fg); color: var(--fg); font-weight: 600; font-size: 18px; padding: 16px 26px; }
.btn--white { background: #fff; color: var(--fg); padding: 18px 30px; }
.btn--small { font-size: 17px; padding: 13px 22px; }

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(26,18,32,.08); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 18px; padding-bottom: 18px;
}

.logo img { height: 46px; width: auto; }

.nav { display: flex; gap: 32px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--fg);
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 96px; }
.hero__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__content { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__aside { flex: 1 1 420px; min-width: 0; }

.badge {
  align-self: flex-start;
  background: var(--tint); color: var(--fg);
  font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}

.hero h1.badge { font-family: inherit; margin: 0; }
.hero__title { font-family: var(--font-head); font-weight: 700; margin: 0; font-size: 64px; line-height: 1.05; letter-spacing: -0.02em; }
.hero__title span { color: var(--accent); }
.hero__lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 580px; }
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.pain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 18px 48px rgba(26,18,32,.14);
}
.pain-card__title { font-family: var(--font-head); font-size: 24px; font-weight: 700; display: block; margin-bottom: 12px; }
.pain-card ul { list-style: none; margin: 0; padding: 0; }
.pain-card li {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--border);
  font-size: 17px; font-weight: 600;
}
.pain-card__note {
  margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--tint); font-size: 16px; font-weight: 600;
}
.pain-card__note span { color: var(--accent); }

.icon-box {
  width: 48px; height: 48px; flex: none;
  border-radius: 14px; background: var(--tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.icon-box--lg { width: 56px; height: 56px; border-radius: 16px; }

/* ---------- Nagłówki sekcji ---------- */

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }

.eyebrow { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; }
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none;
}

.h2 { font-size: 46px; line-height: 1.1; letter-spacing: -0.01em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); }

/* ---------- Dla kogo ---------- */

.for-whom { display: flex; flex-wrap: wrap; gap: 56px; }
.for-whom__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.chips li {
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 12px 18px; font-size: 16px; font-weight: 600;
}
.chips li.chips__more { border-style: dashed; }

.check-card {
  flex: 1 1 440px; min-width: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; display: flex; flex-direction: column; gap: 20px;
}
.check-card__title { font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.check-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.check-card li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; line-height: 1.5; }
.check {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Siatki kart ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-4 .card--service { padding: 28px; }
.grid-4 .card--service h3 { font-size: 22px; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack { display: flex; flex-direction: column; gap: 48px; }

.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; background: var(--bg);
}
.card h3 { font-size: 22px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.card__num { font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1; color: var(--accent); }

.card--service { padding: 32px; gap: 16px; }
.card--service h3 { font-size: 24px; }
.card__link {
  margin-top: auto; font-weight: 600; font-size: 16px; text-decoration: none;
  display: flex; gap: 8px; align-items: center;
}
.card__link span { color: var(--accent); }

/* ---------- Zdjęcia ---------- */

.photos { padding: 0 0 96px; }
.photo { border-radius: var(--radius-lg); overflow: hidden; height: 600px; margin: 0; display: flex; flex-direction: column; }
.photo img { width: 100%; height: 100%; min-height: 0; flex: 1 1 auto; object-fit: cover; }
.photo:has(.photo__caption) { background: var(--bg); border: 1px solid var(--border); }
.photo__caption { flex: none; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.photo__caption strong { font-family: var(--font-head); font-size: 20px; line-height: 1.2; }
.photo__role { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.photo__caption p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.photo--1 img { object-position: 38% 30%; }
.photo--2 img { object-position: 50% 35%; }
.photo--3 img { object-position: 50% 45%; }

/* ---------- Jak pracujemy ---------- */

.how-head { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.how-head .section-head { flex: 1 1 520px; min-width: 0; }
.how-head__photo { flex: 0 1 380px; min-width: 260px; height: 240px; border-radius: var(--radius-lg); overflow: hidden; }
.how-head__photo img { width: 100%; height: 100%; object-fit: cover; }

.steps { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.step {
  flex: 1 1 320px; min-width: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 24px; font-weight: 700;
}
.step__tag { background: var(--tint); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.step h3 { font-size: 24px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--muted); }


/* ---------- CTA ---------- */

.cta { padding: 96px 0 64px; }
.cta__box {
  background: var(--accent); color: var(--on-accent);
  border-radius: 32px; padding: 64px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.cta__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta__text h2 { font-size: 44px; line-height: 1.1; }
.cta__text p { font-size: 19px; font-weight: 600; line-height: 1.5; }
.cta__contact { font-size: 16px; font-weight: 500; }
.cta__contact a { font-weight: 700; }

/* ---------- Kroki w sekcji kontaktu ---------- */

.contact__steps { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; font-weight: 500; line-height: 1.45; }

/* ---------- Modal z formularzem ---------- */

body:has(.modal[open]) { overflow: hidden; }

.modal {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 28px;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 30px 80px rgba(26,18,32,.3);
  overflow: hidden;
}
.modal::backdrop { background: rgba(26,18,32,.55); backdrop-filter: blur(3px); }
.modal[open] { display: flex; animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.modal__inner { display: flex; flex-direction: column; width: 100%; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 28px 36px 0; }

.modal__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.modal__counter { font-size: 14px; font-weight: 600; color: var(--faint); }
.modal__close {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--fg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: var(--tint); }

.modal__progress { height: 6px; border-radius: 999px; background: var(--border); margin: 14px 0 28px; overflow: hidden; }
.modal__progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .3s ease; }

.lead-form { display: flex; flex-direction: column; flex: 1 0 auto; }
.lead-form[hidden] { display: none; }
.fstep[hidden] { display: none; }
.fstep { animation: step-in .25s ease; }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.q { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.q legend, .fstep__title {
  font-family: var(--font-head); font-size: 26px; font-weight: 700; line-height: 1.2;
  margin: 0 0 16px; padding: 0;
}
.q label {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--border); border-radius: 14px;
  padding: 15px 16px; cursor: pointer; font-size: 16px; line-height: 1.4;
  transition: border-color .15s ease, background .15s ease;
}
@media (hover: hover) { .q label:hover { border-color: var(--accent); } }
.q label:has(input:focus-visible) { border-color: var(--accent); }
.q input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.q label:has(input:checked) { border-color: var(--accent); background: var(--tint); font-weight: 600; }

.fstep--contact { display: flex; flex-direction: column; gap: 18px; }
.fstep--contact[hidden] { display: none; }
.fstep--contact .fstep__title { margin: 0; }
.fstep__lead { font-size: 16px; line-height: 1.55; color: var(--muted); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .field:last-child:nth-child(odd) { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: 15px; font-weight: 600; }
.field input {
  font: inherit; font-weight: 400; font-size: 16px;
  border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 14px;
  background: #fff; color: var(--fg); width: 100%;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.field input.is-invalid { border-color: #C62828; }

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

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { accent-color: var(--accent); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.consent.is-invalid { color: #C62828; }

.form-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: #B71C1C; font-size: 15px; font-weight: 600; }

/* Pasek z przyciskami zawsze przyklejony do dołu okna */
.modal__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; bottom: 0; z-index: 2;
  margin-top: auto; padding: 20px 0 28px;
  background: var(--bg);
  box-shadow: 0 -12px 16px -12px rgba(26,18,32,.12);
}
.fstep { margin-bottom: 4px; }
.modal__nav .btn { margin-left: auto; border: 0; cursor: pointer; font-family: inherit; }
.modal__nav .btn[hidden], .btn-back[hidden] { display: none; }
.modal__nav .btn:disabled { opacity: .4; cursor: not-allowed; }
.form-submit:disabled { cursor: wait; }

.btn-back {
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--muted);
}
.btn-back:hover { color: var(--fg); }

.form-result { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 32px; }
.form-result[hidden] { display: none; }
.form-result:focus { outline: none; }
.form-result h3 { font-size: 30px; line-height: 1.15; }
.form-result p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.form-result[data-result="ok"] h3 { color: var(--accent); }
.form-result .btn { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; margin-top: 8px; }
.form-result__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-result__actions .btn { margin-top: 8px; }
.form-result__change { align-self: flex-start; font-size: 14px; padding: 0; }

button.btn { font-family: inherit; border: 0; cursor: pointer; }

/* ---------- Stopka ---------- */

.site-footer {
  padding-top: 24px; padding-bottom: 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 14px; color: var(--faint);
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }

/* ---------- Polityka prywatności ---------- */

.legal { max-width: 780px; padding-top: 32px; padding-bottom: 64px; line-height: 1.65; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { margin-top: 40px; margin-bottom: 12px; font-size: 24px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); }
.legal__back { flex: none; font-size: 15px; padding: 10px 16px; }
.legal__updated { color: var(--faint); font-size: 15px; }

/* ---------- Animacja wejścia ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsywność ---------- */

@media (max-width: 1024px) {
  .photo { height: 640px; }
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }

  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(26,18,32,.08);
    padding: 8px 20px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 18px; }
  .nav .btn { margin-top: 16px; border: 0; color: var(--on-accent); }
  .nav .nav__cta { display: block; }

  .hero { padding: 32px 0 72px; }
  .hero__title { font-size: 42px; }
  .h2, .cta__text h2 { font-size: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .photo { height: auto; }
  .photo img { flex: none; height: 340px; }
  .photo--2 { display: none; }
  .cta__box { padding: 36px; }
  .check-card { padding: 28px; }
  .fields { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .nav .nav__cta { display: none; }
}

@media (max-width: 600px) {
  /* Hasło nad nagłówkiem jako zwykły napis z kropką, nie „dymek” */
  .badge { background: none; padding: 0; border-radius: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); }
  .badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }

  /* Formularz na pełny ekran telefonu */
  .modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border-radius: 0; }
  .modal__inner { height: 100%; max-height: none; padding: 14px 18px 0; }
  .modal__close { width: 36px; height: 36px; }
  .modal__progress { margin: 10px 0 18px; height: 5px; }
  .q { gap: 8px; }
  .q legend, .fstep__title { font-size: 20px; margin-bottom: 12px; }
  .q label { padding: 11px 14px; font-size: 15px; border-radius: 12px; }
  .fstep--contact { gap: 12px; }
  .fstep__lead { display: none; }
  .fields { gap: 10px; }
  .field { font-size: 14px; gap: 4px; }
  .field input { padding: 11px 12px; }
  .consent { font-size: 13px; }
  .modal__nav { padding: 14px 0 calc(16px + env(safe-area-inset-bottom)); }
  .modal__nav .btn { width: auto; }
  .form-result h3 { font-size: 24px; }
  .form-result p { font-size: 16px; }
}

@media (max-width: 480px) {
  .logo img { height: 38px; }
  .hero__title { font-size: 36px; }
  .btn { width: 100%; }
  .cta__box { padding: 28px; }
}
