* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;

  overflow: hidden;

  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;

  background: #111111;
}


/* =========================
   TŁO
========================= */

.background {
  position: fixed;
  inset: 0;
  z-index: -2;

  background-image: url("img/tlo_wizytowka.jpg");
  background-repeat: no-repeat;
  background-size: cover;

  /* mocniej pokazujemy prawą stronę zdjęcia */
  background-position: 76% center;
}


/* Delikatne przyciemnienie prawej strony */
.overlay {
  position: fixed;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.00) 0%,
    rgba(0, 0, 0, 0.04) 35%,
    rgba(0, 0, 0, 0.18) 60%,
    rgba(0, 0, 0, 0.52) 100%
  );
}


/* =========================
   CAŁY BLOK WIZYTÓWKI
========================= */

.card {
  position: fixed;

  top: 50%;
  right: 1%;

  transform: translateY(-50%);

  width: 58%;
  max-width: 240px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  gap: 12px;

  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}


/* =========================
   LOGO
========================= */

.logo {
  width: 88px;
  height: 88px;

  object-fit: contain;

  margin-bottom: 3px;
}


/* =========================
   KONTAKT
========================= */

.contact {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.75),
    0 1px 3px rgba(0, 0, 0, 0.95);
}


.contact h1 {
  font-size: 18px;
  line-height: 1.15;

  font-weight: 600;

  margin-bottom: 9px;

  white-space: nowrap;
}


/* =========================
   TELEFON
========================= */

.phone {
  display: block;

  color: #ffffff;

  text-decoration: none;

  font-size: 28px;
  line-height: 1;

  font-weight: 800;

  letter-spacing: -1px;

  white-space: nowrap;
}


/* =========================
   EMAIL
========================= */

.email {
  display: block;

  margin-top: 9px;

  color: #ffffff;

  text-decoration: none;

  font-size: 13px;
  line-height: 1.2;

  font-weight: 500;

  white-space: nowrap;
}


/* =========================
   LINKI / PRZYCISKI
========================= */

.links {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 9px;

  margin-top: 5px;
}


.links a {
  width: 100%;

  min-height: 50px;

  padding: 11px 7px;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(255, 255, 255, 0.94);

  color: #111111;

  border: 1px solid rgba(255, 255, 255, 0.8);

  border-radius: 13px;

  text-decoration: none;

  text-align: center;

  font-size: 15px;
  line-height: 1.1;

  font-weight: 700;

  letter-spacing: -0.2px;

  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.22);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    transform 0.15s ease,
    background 0.15s ease;
}


.links a:active {
  transform: scale(0.97);

  background: #ffffff;
}


/* =========================
   BARDZO MAŁE TELEFONY
========================= */

@media (max-width: 370px) {

  .card {
    width: 60%;
    right: 2%;
  }

  .logo {
    width: 68px;
    height: 68px;
  }

  .contact h1 {
    font-size: 16px;
  }

  .phone {
    font-size: 24px;
  }

  .email {
    font-size: 10px;
  }

  .links a {
    min-height: 46px;
    font-size: 13px;
  }
}


/* =========================
   WIĘKSZE TELEFONY
========================= */

@media (min-width: 430px) and (max-width: 699px) {

  .card {
    width: 56%;
    max-width: 250px;
    right: 4%;
  }

  .logo {
    width: 84px;
    height: 84px;
  }

  .contact h1 {
    font-size: 19px;
  }

  .phone {
    font-size: 30px;
  }

  .email {
    font-size: 12px;
  }

  .links a {
    font-size: 16px;
  }
}


/* =========================
   KOMPUTER / LAPTOP
   Telefon nadal jest priorytetem
========================= */

@media (min-width: 700px) {

  .background {
    background-position: center center;
  }

  .card {
    width: 360px;
    max-width: 360px;

    right: 7%;

    gap: 17px;
  }

  .logo {
    width: 110px;
    height: 110px;
  }

  .contact h1 {
    font-size: 24px;
  }

  .phone {
    font-size: 38px;
  }

  .email {
    font-size: 16px;
  }

  .links a {
    min-height: 58px;

    font-size: 20px;
  }
}