/* LINOSZCZEL
   Makieta bazowa: 1920 × 1001 px
   Układ skaluje się proporcjonalnie razem z tłem.
*/

:root {
  --red: #e31b23;
  --black: #111111;
  --gray: #6b6b6b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  overflow-x: hidden;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 1920px;
  aspect-ratio: 1920 / 1001;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  pointer-events: none;
  user-select: none;
}

/* GŁÓWNY TEKST */

.hero__copy {
  position: absolute;
  left: 4.05%;
  top: 26.7%;
  width: 37.0%;
}

.hero__title {
  margin: 0;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 0.91;
  letter-spacing: -0.055em;
}

.hero__title span,
.hero__title strong {
  display: block;
  white-space: nowrap;
  font-size: clamp(44px, 5.2vw, 100px);
}

.hero__title span {
  color: var(--black);
}

.hero__title strong {
  color: var(--red);
}

.hero__rule {
  width: 96px;
  height: 5px;
  margin-top: 28px;
  background: var(--red);
}

.hero__subtitle {
  margin: 27px 0 0;
  color: #222;
  font-size: clamp(17px, 1.55vw, 30px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

/* =========================================================
   3 KARTY KONTAKTOWE
   ========================================================= */

.contact-row {
  position: absolute;
  z-index: 3;

  left: 42.6%;
  top: 76.0%;
  width: 51.0%;
  height: 12.2%;

  display: grid;
  grid-template-columns: 0.88fr 1.18fr 1.50fr;
  gap: 1.0%;
}

.contact-card {
  min-width: 0;
  height: 100%;

  display: flex;
  align-items: center;

  padding: 0 4.4% 0 4.1%;

  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: clamp(14px, 1.55vw, 30px);

  color: var(--black);
  text-decoration: none;

  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035);
}

.contact-card--address {
  padding-right: 5.8%;
}

.contact-card__icon {
  flex: 0 0 auto;

  width: clamp(34px, 3.15vw, 61px);
  height: clamp(34px, 3.15vw, 61px);

  display: grid;
  place-items: center;

  margin-right: clamp(8px, 0.78vw, 15px);

  border-radius: 50%;
  background: var(--red);
}

.contact-card__icon svg {
  width: 47%;
  height: 47%;
  fill: #fff;
}

.contact-card__divider {
  flex: 0 0 1px;

  width: 1px;
  height: 48%;

  margin-right: clamp(9px, 0.9vw, 17px);

  background: rgba(17, 17, 17, 0.26);
}

.contact-card__content {
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card__label {
  display: block;
  margin-bottom: 3px;

  color: var(--gray);
  font-size: clamp(9px, 0.63vw, 12px);
  font-weight: 400;
  line-height: 1.05;
}

.contact-card__value {
  display: block;

  color: var(--black);
  font-size: clamp(11px, 0.88vw, 17px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;

  white-space: nowrap;
}

.contact-card--email .contact-card__value {
  font-size: clamp(10px, 0.74vw, 14px);
}

.contact-card--address .contact-card__value {
  font-size: clamp(10px, 0.79vw, 15px);
}

.contact-card:hover .contact-card__value {
  color: var(--red);
}

/* RESPONSYWNOŚĆ */

@media (max-width: 1200px) {
  .hero__rule {
    width: 5vw;
    height: 3px;
    margin-top: 1.45vw;
  }

  .hero__subtitle {
    margin-top: 1.4vw;
  }
}


@media (max-width: 720px) {
  body {
    background: #fff;
  }

  .hero {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    min-height: 100vh;
    overflow: visible;
    background: #fff;
  }

  .hero__background {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }

  /* Tekst główny na mobile przenosimy pod zdjęcie */
  .hero__copy {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 28px);
    margin: 18px 14px 0;
  }

  .hero__title span,
  .hero__title strong {
    font-size: clamp(34px, 10vw, 52px);
    line-height: 0.95;
  }

  .hero__rule {
    width: 58px;
    height: 3px;
    margin-top: 14px;
  }

  .hero__subtitle {
    margin-top: 14px;
    font-size: clamp(14px, 4vw, 19px);
    line-height: 1.3;
    white-space: normal;
    max-width: 100%;
  }

  /*
    Kontakt na telefonie przenosimy pod tekst.
    Dzięki temu pozostaje czytelny i nie robi się mikroskopijny.
  */
  .contact-row {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 28px);
    height: auto;
    margin: 16px 14px 24px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-card {
    min-height: 74px;
    height: auto;

    padding: 10px 14px;

    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  }

  .contact-card--address {
    padding-right: 14px;
  }

  .contact-card__icon {
    width: 46px;
    height: 46px;
    margin-right: 12px;
  }

  .contact-card__divider {
    height: 34px;
    margin-right: 12px;
  }

  .contact-card__label {
    margin-bottom: 3px;
    font-size: 11px;
  }

  .contact-card__value,
  .contact-card--email .contact-card__value,
  .contact-card--address .contact-card__value {
    font-size: 15px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .hero__copy {
    width: calc(100% - 20px);
    margin: 14px 10px 0;
  }

  .hero__title span,
  .hero__title strong {
    font-size: clamp(30px, 10.2vw, 44px);
  }

  .hero__subtitle {
    font-size: 13px;
  }

  .contact-row {
    width: calc(100% - 20px);
    margin: 14px 10px 20px;
  }

  .contact-card {
    min-height: 68px;
    padding: 9px 12px;
    border-radius: 16px;
  }

  .contact-card__icon {
    width: 42px;
    height: 42px;
    margin-right: 10px;
  }

  .contact-card__divider {
    margin-right: 10px;
  }

  .contact-card__value,
  .contact-card--email .contact-card__value,
  .contact-card--address .contact-card__value {
    font-size: 14px;
  }
}
