/* =========================
   CONTACT PAGE
========================= */

.contact-page {
  background: #fffdf9;
}

/* =========================
   HERO
========================= */

.contact-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 76px 0 88px;
  background: #fffdf9;
}

.contact-hero-container {
  position: relative;
  z-index: 3;
  min-height: 570px;
  display: flex;
  align-items: center;
}

.contact-hero-content {
  max-width: 570px;
}

/* Breadcrumbs */

.contact-hero .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

.contact-hero .breadcrumbs a {
  color: var(--color-primary-dark);
  transition: color 0.2s ease;
}

.contact-hero .breadcrumbs a:hover {
  color: var(--color-primary);
}

/* Title */

.contact-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.contact-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--color-primary);
}

/* Text */

.contact-hero-lead {
  max-width: 520px;
  margin-bottom: 24px;
  color: var(--color-primary-dark);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.contact-hero-text {
  max-width: 520px;
  margin: 0;
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.75;
}

/* Image */

.contact-hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58vw;
  min-width: 720px;
  overflow: hidden;
}

.contact-hero-image::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 50%;
  background: linear-gradient(
    90deg,
    #fffdf9 0%,
    rgba(255, 253, 249, 0.94) 28%,
    rgba(255, 253, 249, 0.56) 62%,
    rgba(255, 253, 249, 0) 100%
  );
  pointer-events: none;
}

/*
 * Półokrąg odpowiadający kształtowi ze wzoru.
 * Nie dodajemy żadnych dekoracyjnych liści.
 */
.contact-hero-image::after {
  content: "";
  position: absolute;
  left: -11%;
  top: -18%;
  z-index: 2;
  width: 230px;
  height: 720px;
  background: #fffdf9;
  border-radius: 50%;
  pointer-events: none;
}

.contact-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/* =========================
   HERO RESPONSIVE
========================= */

@media (max-width: 1180px) {
  .contact-hero {
    padding: 60px 0 76px;
  }

  .contact-hero-container {
    min-height: auto;
  }

  .contact-hero-image {
    position: relative;
    width: min(100% - 48px, var(--container));
    min-width: 0;
    height: 420px;
    margin: 44px auto 0;
    border-radius: 32px;
  }

  .contact-hero-image::before {
    width: 100%;
    background: linear-gradient(
      180deg,
      rgba(255, 253, 249, 0.28),
      rgba(255, 253, 249, 0)
    );
  }

  .contact-hero-image::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .contact-hero {
    padding: 44px 0 60px;
  }

  .contact-hero .breadcrumbs {
    margin-bottom: 32px;
  }

  .contact-hero h1 {
    font-size: 58px;
  }

  .contact-hero-lead {
    font-size: 24px;
  }

  .contact-hero-text {
    font-size: 16px;
  }

  .contact-hero-text br {
    display: none;
  }

  .contact-hero-image {
    width: calc(100% - 32px);
    height: 300px;
    margin-top: 34px;
    border-radius: 24px;
  }
}

/* =========================
   CONTACT DETAILS
========================= */

.contact-details-section {
  position: relative;
  padding: 72px 0 96px;
  background: #fffdf9;
}

.contact-section-heading {
  margin-bottom: 38px;
  text-align: center;
}

.contact-section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.contact-section-heading h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--color-primary);
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.contact-details-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 30px 34px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(32, 42, 37, 0.045);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.contact-details-card:hover {
  transform: translateY(-5px);
  border-color: rgba(111, 155, 114, 0.28);
  box-shadow: 0 24px 56px rgba(32, 42, 37, 0.075);
}

.contact-details-icon {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #f3f7f0;
  color: var(--color-primary-dark);
  font-size: 34px;
  font-weight: 700;
}

.contact-details-card h3 {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.contact-details-main {
  margin-bottom: 22px;
  color: var(--color-primary-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.contact-details-main:hover,
.contact-map-link:hover {
  color: var(--color-primary);
}

.contact-details-email {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.contact-details-card p {
  margin: auto 0 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.contact-details-card address {
  margin: 0 0 22px;
  color: var(--color-text);
  font-size: 17px;
  font-style: normal;
  line-height: 1.7;
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    gap 0.2s ease;
}

.contact-map-link:hover {
  gap: 16px;
}

/* =========================
   CONTACT DETAILS RESPONSIVE
========================= */

@media (max-width: 980px) {
  .contact-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-details-card-address {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .contact-details-section {
    padding: 56px 0 72px;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .contact-details-card-address {
    grid-column: auto;
  }

  .contact-details-card {
    min-height: auto;
    padding: 34px 24px;
  }

  .contact-details-icon {
    width: 76px;
    height: 76px;
    font-size: 30px;
  }

  .contact-details-main,
  .contact-details-email {
    font-size: 17px;
  }
}

/* =========================
   CONTACT FORM + MAP
========================= */

.contact-form-section {
  padding: 0 0 110px;
}

.contact-form-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 650px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(32, 42, 37, 0.06);
}

.contact-form-content {
  padding: 54px 52px;
}

.contact-form-heading {
  max-width: 540px;
  margin-bottom: 34px;
}

.contact-form-heading h2 {
  margin: 0 0 24px;
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.contact-form-heading h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--color-primary);
}

.contact-form-heading p {
  max-width: 500px;
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.75;
}

/* =========================
   FORM
========================= */

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-field {
  position: relative;
}

.contact-form-field label {
  position: absolute;
  top: 11px;
  left: 18px;
  z-index: 2;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  outline: 0;
  background: #fffdfa;
  color: var(--color-text);
  font-family: inherit;
  font-size: 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-form-field input {
  min-height: 64px;
  padding: 27px 18px 8px;
}

.contact-form-field textarea {
  min-height: 170px;
  padding: 32px 18px 16px;
  resize: vertical;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(111, 155, 114, 0.1);
}

.contact-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--color-primary);
}

.contact-consent a {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-submit {
  width: fit-content;
  min-width: 220px;
  margin-top: 8px;
}

/* =========================
   MAP
========================= */

.contact-map-column {
  position: relative;
  min-width: 0;
  min-height: 650px;
  background: #f3f7f0;
}

.contact-google-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 650px;
  border: 0;
  filter: saturate(0.78) contrast(0.95);
}

.contact-map-info {
  position: absolute;
  left: 34px;
  bottom: 34px;
  z-index: 2;
  width: min(340px, calc(100% - 68px));
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(232, 238, 232, 0.95);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.95);
  box-shadow: 0 18px 46px rgba(32, 42, 37, 0.14);
  backdrop-filter: blur(12px);
}

.contact-map-info-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 28px;
}

.contact-map-label {
  display: block;
  margin-bottom: 7px;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-map-info h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.contact-map-info p {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.contact-map-info a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 800;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.contact-map-info a:hover {
  gap: 14px;
  color: var(--color-primary);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .contact-form-card {
    grid-template-columns: 1fr;
  }

  .contact-map-column,
  .contact-google-map {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .contact-form-section {
    padding-bottom: 76px;
  }

  .contact-form-card {
    border-radius: 22px;
  }

  .contact-form-content {
    padding: 36px 24px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-map-column,
  .contact-google-map {
    min-height: 430px;
  }

  .contact-map-info {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    grid-template-columns: 50px 1fr;
    padding: 20px;
  }

  .contact-map-info-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* =========================
   CONTACT FORM MESSAGES
========================= */

.contact-form-message {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
  padding: 17px 20px;
  border: 1px solid;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.contact-form-message strong {
  font-size: 15px;
  font-weight: 750;
}

.contact-form-message-success {
  color: #365f3d;
  background: #f1f8f1;
  border-color: rgba(74, 128, 82, 0.25);
}

.contact-form-message-error {
  color: #8a3939;
  background: #fff4f3;
  border-color: rgba(168, 71, 71, 0.22);
}

/*
 * Pole antyspamowe pozostaje poza ekranem,
 * ale nadal istnieje w kodzie formularza.
 */
.contact-form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#formularz-kontaktowy {
  scroll-margin-top: 120px;
}