/* ==========================================================================
   Next Level – kontakt.css (strona „Kontakt”, wersja 1:1)
   Wartości z docs/original/webflow.css – komentarz „← .klasa” wskazuje źródło.
   Kolejność media queries jak w webflow.css: baza → min 1280 → min 1440 →
   max 991 → max 767 → max 479.
   ========================================================================== */

/* ← .body-6: w Webflow tło body to --color--black (#101011), a #11161f
     (--color--bg-color) dopiero ≤479 px. Sekcje mają własne tło, więc różnica
     jest widoczna tylko poza nimi. */
@media (min-width: 480px) {
  body { background-color: var(--color-black); }
}

/* ← .container (wewnątrz .padding-global) – UWAGA: wygrywa z .w-container /
     .w-layout-blockcontainer (max-width 100rem, padding-top 7px w 768–1439 px) */
.contact-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 7px;
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Hero (← .section-6)
   -------------------------------------------------------------------------- */
/* ← .hero-wrapper */
.contact-hero__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 20vh;
  margin-bottom: 5vh;
  padding-bottom: 0;
}
/* ← .header */
.contact-hero__header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  max-width: 63ch;
  text-align: center;
}
/* ← .opacity-60 > .max-width-40ch > div */
.contact-hero__lead {
  max-width: 60ch;
  margin: 0;
  opacity: .6;
}

/* --------------------------------------------------------------------------
   Formularz + karta kontaktowa (← .section-7)
   -------------------------------------------------------------------------- */
/* ← .kontakt-content */
.contact-main__content {
  padding-left: 24px;
  padding-right: 24px;
}
/* ← .w-layout-grid.grid-2-columns.contact-v9 (flex, nie grid) */
.contact-main__grid {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

/* ← .form-wrapper.w-form */
.contact-form {
  width: 50%;
  margin: 0 0 15px;
}
/* ← .form */
.contact-form__form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}
/* ← .form-content */
.contact-form__fields { width: 100%; }
/* ← .name-wrapper-contact */
.contact-form__field { width: 100%; }
/* ← label.text-size-medium-vw (label: block, margin-bottom 5px – base.css) */
.contact-form__label {
  font-size: 16px;
  font-weight: 400;
}
/* ← .text-field-contact.w-input (wysokość 38px z .w-input jest mniejsza niż
     padding – pole ma 2 × 1.6rem + 2px; textarea: height auto, 2 wiersze) */
.contact-form__input {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: .5rem;
  margin-bottom: 1.5rem;
  padding: 1.6rem 12px 1.6rem 1rem;
  border: 1px solid;
  border-color: transparent transparent var(--color-border);
  border-radius: 0;
  background-color: transparent;
  color: #fbfbfb;
  font-size: 1rem;
  line-height: 1.42857;
  vertical-align: middle;
  transition: all .4s;
}
.contact-form__textarea {
  height: auto;           /* ← textarea.w-input */
  overflow: auto;
}
.contact-form__input::placeholder { color: #999; opacity: 1; }   /* ← .w-input::placeholder */
.contact-form__input:hover {      /* ← .text-field-contact:hover */
  color: #fbfbfb;
  border-width: 1px;
  border-color: rgb(201 212 216 / .1);
  padding-left: 1.2rem;
}
.contact-form__input:active { color: #212121; }                   /* ← .text-field-contact:active */
.contact-form__input:focus {      /* ← .text-field-contact:focus (outline: 0 z .w-input:focus pominięte – fokus z base.css) */
  color: #fbfbfb;
  border-color: #212121;
}

/* Pole-pułapka (honeypot) – poza ekranem, niedostępne z klawiatury */
.contact-form__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ← .contact-button.align-center */
.contact-form__actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  border-radius: .3rem;
  background-color: transparent;
  transition: all .25s;
}
.contact-form__submit[aria-disabled="true"] { cursor: progress; }

/* Komunikaty (← .w-form-done / .w-form-fail: ukryte do czasu wysyłki) */
/* ← .success-message.w-form-done */
.contact-form__done {
  padding: 2rem 20px;
  border-radius: .6rem;
  background-color: #32643e;
  color: var(--color-white);
  text-align: center;
}
/* ← .text-size-contact */
.contact-form__done-text {
  margin: 0;
  font-size: 1.375rem;
}
/* ← .error-message.w-form-fail – tło przyciemnione z #e54e4e do #cf3f3f,
     żeby biały tekst 18 px miał kontrast AA (3,7:1 → 4,6:1) */
.contact-form__fail {
  margin-top: 10px;
  padding: 10px;
  border-radius: .5rem;
  background-color: #cf3f3f;
  text-align: center;
}
/* ← .text-size-medium-contact */
.contact-form__fail-text {
  margin: 0;
  font-size: 1.125rem;
}
/* Komunikat trybu bez backendu (mailto) – nowy element, w stylu komunikatów Webflow */
.contact-form__notice {
  margin-top: 10px;
  padding: 1.25rem 20px;
  border: 1px solid var(--color-border);
  border-radius: .6rem;
  background-color: var(--color-surface);
  text-align: center;
}
.contact-form__notice-text {
  margin: 0;
  font-size: 1.125rem;
}
.contact-form__notice a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-form__notice a:hover { color: var(--color-white); }

/* ← .card-3.pd-64px---56px */
.contact-card {
  width: 40%;
  height: auto;
  padding: 64px 56px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background-color: var(--color-surface);
  box-shadow: 0 2px 7px rgb(20 20 43 / .06);
}
/* ← h3.heading-14 (h3 witryny: 24px/30px, 700) – tu h2 dla poprawnej hierarchii */
.contact-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}
/* ← p.mg-bottom-48px */
.contact-card__lead {
  margin-top: 0;
  margin-bottom: 16px;
}
/* ← .w-layout-grid.grid-1-column-2.gap-row-24px (odstęp 16px z .w-layout-grid) */
.contact-card__links {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-style: normal;
}
/* ← h3.heading-12 */
.contact-card__subtitle {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

/* ← .icon-link-2-texts-wrapper */
.contact-link {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  color: inherit;
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform .3s, color .3s;
}
.contact-link:hover { transform: translate3d(8px, 0, .01px); }
/* ← .icon-link-2-texts-wrapper.social-media */
.contact-link.contact-link--social { gap: 16px; }

/* ← .icon-bg-main (E-mail, Telefon) */
.contact-link__icon--main {
  width: 45px;
  padding: 8px;
  border-radius: 12px;
  background-color: var(--color-primary);
}
/* ← .icon-bg (social media) */
.contact-link__icon--social {
  width: 20%;
  padding: 8px;
  border-radius: 12px;
  background-color: var(--color-bg);
}

/* ← .text-200.medium.color-neutral-800 (16px; line-height 20px z .text-200) */
.contact-link__label {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}
/* ← .text-social-media.medium.color-neutral-800 */
.contact-link__label.contact-link__label--social { font-size: 14px; }
/* ← .text-200.bold.mg-top-8px (rozmiar dziedziczony: 1rem) */
.contact-link__value {
  color: var(--color-text-muted);
  font-weight: 700;
  line-height: 20px;
}

/* ← .social-media-content */
.contact-social {
  display: flex;
  flex-flow: column;
  gap: 16px;
}
/* ← .social-media-wrapper */
.contact-social__row { display: flex; }

/* --------------------------------------------------------------------------
   ≥ 1280 px
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .contact-container { margin-left: 0; margin-right: 0; }
  .contact-hero__wrapper { margin-top: 30vh; margin-bottom: 5vh; }
  .contact-hero__header { width: 50%; max-width: none; }

  .contact-main__content {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    gap: 50px;
    width: 100%;
  }
  .contact-main__grid { width: 100%; }
  .contact-form__form { justify-content: flex-start; width: 100%; }
  .contact-form__actions { align-items: flex-start; }

  .contact-link.contact-link--social { width: 50%; }
  .contact-link__icon--main { width: 50px; height: 50px; border-radius: 16px; }
  .contact-link__icon--social { display: flex; justify-content: center; align-items: center; }
}

/* --------------------------------------------------------------------------
   ≥ 1440 px
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .contact-container { padding-top: 0; }
  .contact-hero__wrapper { margin-top: 30vh; margin-bottom: 30vh; }

  .contact-form__form { justify-content: space-between; }

  .contact-card { display: flex; flex-direction: column; height: 100%; }
  .contact-card__subtitle { margin-top: 48px; }
  .contact-link { gap: 16px; }
  .contact-link__icon--main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    padding: 12px;
    overflow: clip;
  }
  .contact-link__icon--social {
    width: 50px;
    height: 50px;
    padding: 12px;
    border-radius: 16px;
    overflow: clip;
  }
  .contact-social { gap: 24px; }
  .contact-social__row { flex-flow: row; justify-content: space-between; align-items: flex-start; gap: 24px; }
}

/* --------------------------------------------------------------------------
   ≤ 991 px
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .contact-hero__wrapper { margin-top: 15vh; }
  .contact-hero__header { max-width: 70vw; }

  .contact-main__content { padding-left: 2.5rem; padding-right: 2.5rem; }
  .contact-main__grid { flex-flow: column; row-gap: 70px; }
  .contact-form { width: 100%; }
  .contact-form__form { justify-content: flex-start; align-items: center; }
  .contact-form__label { font-size: 1.125rem; }

  .contact-card { width: 100%; }
  .contact-card__lead { margin-bottom: 40px; }
  .contact-card__links { flex-flow: row; }
  .contact-link__icon--social {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    padding: 10px;
  }
}

/* --------------------------------------------------------------------------
   ≤ 767 px
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .contact-container { padding-top: 0; }
  .contact-hero__header { max-width: none; }

  .contact-main__content { padding-left: 0; padding-right: 0; }

  .contact-card { padding: 58px 32px; }
  .contact-card__lead { margin-bottom: 32px; }
  .contact-card__links { flex-flow: column; }
  .contact-link__label,
  .contact-link__value { font-size: 16px; line-height: 18px; }
  .contact-link__label.contact-link__label--social { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   ≤ 479 px
   -------------------------------------------------------------------------- */
@media (max-width: 479px) {
  /* ← .section-6, .section-7 */
  .contact-hero,
  .contact-main { padding-left: 1.25rem; padding-right: 1.25rem; }
  .contact-hero__wrapper { margin-bottom: 3vh; }
  .contact-hero__header { width: 100%; }
  .contact-hero__lead { opacity: 1; }

  .contact-form__form { width: 100%; }
  .contact-form__actions { justify-content: center; align-items: center; }

  .contact-card { padding: 30px 16px; }
  .contact-card__title { margin-bottom: 8px; font-size: 20px; }
  .contact-card__lead { margin-bottom: 16px; }
  .contact-card__subtitle { margin-top: 32px; font-size: 20px; }

  .contact-link { flex-flow: row; justify-content: flex-start; align-items: center; gap: 16px; }
  .contact-link.contact-link--social { gap: 24px; }
  .contact-link__icon--main { width: 40px; padding: 6px; border-radius: 12px; }
  .contact-link__icon--social { width: 40px; padding: 8px; border-radius: 12px; }
  /* ← .div-block-14/15 (E-mail, Telefon) i .div-block-10…13 (social media) */
  .contact-link__text--main { display: flex; flex-flow: column; gap: 4px; }
  .contact-link__text--social { display: flex; flex-flow: column; gap: 2px; }

  .contact-social { gap: 16px; }
  .contact-social__row { flex-flow: column; gap: 16px; }
}

/* --------------------------------------------------------------------------
   Ograniczenie ruchu
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .contact-form__input,
  .contact-form__actions,
  .contact-link { transition: none; }
}
