/* Helpdesk Bilingers.Systems — style strony zgłoszeniowej.
   Kolory marki: granat #2B4A9B (tekst), fiolet #742A85 (akcja), błękit #2FA8E1 (akcent). */

:root {
  --granat: #2B4A9B;
  --granat-ciemny: #2E3A8C;
  --granat-jasny: #3A5096;
  --fiolet: #742A85;
  --fiolet-ciemny: #5B1F6A;
  --fiolet-tlo: #F6EEF8;
  --blekit: #2FA8E1;
  --blekit-tlo: #E6F4FC;
  --szary-tekst: #6B7BB0;
  --pole-tlo: #F1F1F2;
  --pole-obramowanie: #DADCE8;
  --kreska: #C9CDE3;
  --promien: 16px;
  --promien-duzy: 24px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--granat);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fiolet); text-decoration: none; }
a:hover { color: var(--granat); }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* Widoczny focus dla klawiatury — bez niego formularz jest nie do przejścia tabem. */
:focus-visible { outline: 3px solid var(--blekit); outline-offset: 2px; }

/* ——— Układ: zdjęcie po lewej, formularz po prawej ——— */
.v3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;

}

.v3-photo {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  border-radius: 0 56px 56px 0;
  overflow: hidden;
}

.v3-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Przyciemnienie u góry i u dołu, żeby logo i karta kontaktowa były czytelne na każdym zdjęciu. */
.v3-photo__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,58,140,.55) 0%, rgba(46,58,140,0) 30%, rgba(46,58,140,0) 60%, rgba(46,58,140,.6) 100%);
}

.v3-logo {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 4vw, 56px);
  top: 40px;
}
.v3-logo img { height: 48px; width: auto; display: block; }

.v3-card {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 4vw, 56px);
  right: clamp(24px, 4vw, 56px);
  bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Kontakty jako „pigułki” na zdjęciu: mleczne szkło zamiast białej płyty. */
.v3-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
  transition: background .2s;
}
a.v3-pill:hover { background: rgba(255, 255, 255, .3); color: #fff; }

.v3-pill__icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v3-pill__text { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.v3-pill__label { font-size: 12px; color: var(--blekit-tlo); }
.v3-pill__value { font-weight: 600; font-size: 15.5px; color: #fff; }

.v3-main { padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px); }
.v3-main__inner { width: 100%; max-width: 600px;  z-index: 2; }

/* ——— Nagłówek strony ——— */
.hd-intro { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.hd-eyebrow { font-weight: 600; font-size: 17px; color: var(--blekit); }
.hd-title { margin: 0; font-weight: 600; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.04; color: var(--fiolet); }
.hd-lead { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--granat-jasny); text-wrap: pretty; }

/* ——— Podziękowanie po wysłaniu ——— */
.hd-thanks { display: flex; flex-direction: column; align-items: flex-start; animation: v3in .45s; }

/* Znak potwierdzenia: ciemne kółko w jasnej obwódce — ten sam gest, co „gotowe” w aplikacji. */
.hd-thanks__mark {
  width: 104px; height: 104px;
  border-radius: 50%;
  background: var(--blekit-tlo);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
}
.hd-thanks__mark-inner {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(160deg, #2FA8E6, var(--granat-ciemny));
  display: flex; align-items: center; justify-content: center;
}

.hd-thanks__title {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.04;
  color: var(--granat);
}
.hd-thanks__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--granat-jasny); max-width: 460px; }

.hd-thanks__numer {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--fiolet);
  background: var(--fiolet-tlo);
  border-radius: 999px;
  padding: 8px 18px;
  margin-top: 10px;
}

/* ——— Co dalej: trzy kroki ——— */
.hd-kroki { width: 100%; margin: 34px 0 32px; border-top: 1px solid #E8EBF2; padding-top: 26px; }
.hd-kroki__tytul {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blekit);
  margin-bottom: 8px;
}
.hd-kroki__lista { list-style: none; margin: 0; padding: 0; }
.hd-krok {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #E8EBF2;
  font-size: 17px;
  line-height: 1.4;
  color: var(--granat);
}
.hd-krok:last-child { border-bottom: 0; }
.hd-krok__nr {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 600;
  background: var(--blekit-tlo);
  color: var(--blekit);
}
/* Krok, w którym sprawa jest teraz — reszta dopiero przed nami. */
.hd-krok--teraz .hd-krok__nr { background: var(--granat-ciemny); color: #fff; }

.hd-thanks__akcje { display: flex; flex-wrap: wrap; gap: 12px; }
.hd-thanks__akcje .hd-btn { grid-column: auto; justify-self: auto; text-decoration: none; display: inline-block; }

/* ——— Formularz ——— */
.hd-thanks__numer {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--fiolet);
  background: var(--fiolet-tlo);
  border-radius: 999px;
  padding: 8px 18px;
}

.hd-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px 16px;
}

.hd-step {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 600;
  color: var(--fiolet);
  margin: 36px 0 0;   /* nagłówek h2 ma własne marginesy — kasujemy je, odstępy daje siatka */
}
.hd-step__no {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blekit-tlo);
  color: var(--blekit);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}

.hd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
.hd-field--wide { grid-column: 1 / -1; }

.hd-field input,
.hd-field textarea,
.hd-field select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: var(--promien);
  border: 1.5px solid transparent;
  background: var(--pole-tlo);
  color: var(--granat);
  outline: none;
  transition: border-color .2s, background-color .2s;
}
.hd-field textarea { resize: vertical; }
.hd-field input:hover,
.hd-field textarea:hover,
.hd-field select:hover { border-color: var(--pole-obramowanie); }
.hd-field input:focus,
.hd-field textarea:focus,
.hd-field select:focus { border-color: var(--fiolet); background-color: #fff; }
.hd-field select:disabled { cursor: not-allowed; opacity: .6; }
/* Pole odrzucone przez przeglądarkę pokazuje to dopiero po próbie wysłania. */
.hd-field input:user-invalid,
.hd-field textarea:user-invalid,
.hd-field select:user-invalid { border-color: #C0392B; }

.hd-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23742A85' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

/* Pole odrzucone przez przeglądarkę — ślad zostaje po zniknięciu dymka. */
.hd-niepoprawne,
.hd-field .hd-niepoprawne { border-color: #C0392B !important; background: #FEF2F2 !important; }

.hd-hint { font-size: 12.5px; font-weight: 400; color: var(--szary-tekst); min-height: 1.2em; }
/* Komunikat o załącznikach nie rezerwuje miejsca, dopóki nie ma czego powiedzieć. */
#hd-files-hint { margin: 0; }
#hd-files-hint:empty { display: none; }
.hd-hint--warn { color: #B45309; }

.hd-link-btn {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fiolet);
  text-decoration: underline;
  cursor: pointer;
}
.hd-link-btn:hover { color: var(--granat); }

/* ——— Załączniki ——— */
.hd-drop {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 20px;
  border: 2px dashed var(--kreska);
  border-radius: 20px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.hd-drop:hover,
.hd-drop.is-over { border-color: var(--fiolet); background: var(--fiolet-tlo); }
/* Pole wyboru plików zostaje w drzewie dostępności — samo 'hidden' wycina je klawiaturze. */
.hd-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hd-sr-only:focus-visible + .hd-drop__title { text-decoration: underline; }

.hd-drop__title { font-size: 15px; font-weight: 600; color: var(--fiolet); }
.hd-drop__opcjonalnie { font-weight: 400; color: var(--szary-tekst); }
.hd-drop__note { font-size: 13px; color: var(--szary-tekst); }

.hd-thumbs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
}
.hd-thumbs:empty { display: none; }
.hd-thumb { position: relative; aspect-ratio: 1; border-radius: var(--promien); overflow: hidden; background: #EEE; }
.hd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-thumb button {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 30, 80, .7);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.hd-thumb button:hover { background: var(--fiolet); }

/* ——— Zgoda i przyciski ——— */
.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--granat-jasny);
  cursor: pointer;
  margin-top: 12px;
}
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--fiolet); cursor: pointer; }
.consent a { color: var(--fiolet); font-weight: 600; text-decoration: underline; }
.consent a:hover { color: var(--granat); }

.hd-btn,
.hd-btn-outline {
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
}
.hd-btn {
  border: none;
  background: var(--fiolet);
  color: #fff;
  padding: 15px 32px;
  transition: background .2s;
  grid-column: 1 / -1;
  justify-self: start;
}
.hd-btn:hover { background: var(--fiolet-ciemny); color: #fff; }
.hd-btn-outline {
  background: transparent;
  border: 2px solid var(--fiolet);
  color: var(--fiolet);
  padding: 13px 26px;
  transition: background .2s, color .2s;
}
.hd-btn-outline:hover { background: var(--fiolet); color: #fff; }

.hd-credit {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--szary-tekst);
}
.hd-credit a { color: var(--szary-tekst); text-decoration: underline; }
.hd-credit a:hover { color: var(--fiolet); }

/* Pułapka na roboty. Nie 'display:none' — część automatów to rozpoznaje i pomija. */
.hd-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hd-noscript {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border-radius: var(--promien);
  background: var(--blekit-tlo);
  font-size: 14px;
  line-height: 1.6;
}

@keyframes v3in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

/* ——— Telefon i tablet ——— */
@media (max-width: 1400px) {
  .v3-pill { padding: 6px 16px 6px 6px; gap: 10px; }
  .v3-pill__icon { width: 36px; height: 36px; }
  .v3-pill__icon svg { width: 17px; height: 17px; }
  .v3-pill__value { font-size: 14px; }
}

@media (max-width: 900px) {
  .v3 { grid-template-columns: 1fr; }
  /* Na telefonie zdjęcie rośnie pod treść kontaktów zamiast je ucinać. */
  .v3-photo {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: auto;
    min-height: 360px;
    padding: 120px 20px 28px;
    border-radius: 0 0 48px 48px;
  }
  .v3-card { position: relative; left: auto; right: auto; bottom: auto; }
  .v3-main { padding-top: 40px; }
}

/* Osoby z ustawieniem „ogranicz animacje” nie dostają wjazdu podziękowania. */
@media (prefers-reduced-motion: reduce) {
  .hd-thanks { animation: none; }
  * { transition-duration: .01ms !important; }
}
