/* =========================================================
   Sekcja produktu (Nasze produkty)
   Układ: logo + linki do sklepów | opis | telefon,
   przycisk pod opisem.
   ========================================================= */

.product-section {
  --product-height: 655px;

  --product-inner-width: 1600px;
  --product-padding-x: 64px;
  --product-padding-y: 64px;

  --product-gap: 40px;

  --product-logo-size: 256px;
  --product-store-width: 180px;
  --product-store-height: 60px;

  --product-copy-width: 905px;
  --product-copy-gap: 40px;

  --product-title-size: 48px;
  --product-title-line: 66px;

  --product-text-size: 20px;
  --product-text-line: 27px;

  --product-button-width: 348px;
  --product-button-height: 84px;
  --product-button-font-size: 32px;
  --product-button-line: 44px;

  --product-phone-width: 231px;
  --product-phone-height: 500px;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--product-height);
  background: var(--c-dark);
  color: var(--c-white);
  font-family: var(--font-main);
  overflow: hidden;
}

.product-section--light {
  background: var(--c-white);
  color: var(--c-black);
}

.product-section__inner {
  display: grid;
  grid-template-columns:
    var(--product-logo-size)
    minmax(0, var(--product-copy-width))
    var(--product-phone-width);
  grid-template-rows: auto auto;
  grid-template-areas:
    "left copy phone"
    "left button phone";
  align-items: start;
  justify-content: start;
  column-gap: var(--product-gap);
  row-gap: 40px;
  width: 100%;
  max-width: var(--product-inner-width);
  min-height: var(--product-height);
  padding: var(--product-padding-y) var(--product-padding-x);
}

/* --- Lewa kolumna --- */

.product-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 40px;
  width: var(--product-logo-size);
  max-width: var(--product-logo-size);
}

.product-logo {
  width: var(--product-logo-size);
  height: var(--product-logo-size);
  line-height: 0;
}

.product-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-store {
  width: var(--product-store-width);
  height: var(--product-store-height);
  line-height: 0;
}

.product-store img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Opis --- */

.product-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--product-copy-gap);
  width: 100%;
  min-width: 0;
  max-width: var(--product-copy-width);
}

.product-title {
  width: 100%;
  color: inherit;
  font-family: var(--font-main);
  font-size: var(--product-title-size);
  font-weight: 700;
  line-height: var(--product-title-line);
  text-align: left;
}

.product-description,
.product-description p,
.product-description li {
  margin: 0;
  color: inherit;
  font-family: var(--font-main);
  font-size: var(--product-text-size);
  font-weight: 500;
  line-height: var(--product-text-line);
  text-align: justify;
}

.product-description ul,
.product-description ol {
  margin: 0;
  padding-left: 24px;
}

/* --- Przycisk --- */

.product-button {
  grid-area: button;
  width: var(--product-button-width);
  height: var(--product-button-height);
  padding: 20px 40px;
  border-width: 8px;
  border-radius: 8px;
  font-size: var(--product-button-font-size);
  line-height: var(--product-button-line);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .product-button:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  }
}

/* --- Telefon --- */

.product-phone {
  grid-area: phone;
  align-self: flex-start;
  justify-self: start;
  width: var(--product-phone-width);
  height: var(--product-phone-height);
  line-height: 0;
}

.product-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   Mniejszy desktop / laptop
   ========================================================= */

@media (max-width: 1400px) {
  .product-section {
    --product-height: 560px;
    --product-inner-width: 1180px;
    --product-padding-x: 72px;
    --product-padding-y: 48px;
    --product-gap: 32px;
    --product-logo-size: 200px;
    --product-store-width: 150px;
    --product-store-height: 50px;
    --product-copy-width: 660px;
    --product-copy-gap: 28px;
    --product-title-size: 36px;
    --product-title-line: 48px;
    --product-text-size: 15px;
    --product-text-line: 21px;
    --product-button-width: 260px;
    --product-button-height: 64px;
    --product-button-font-size: 24px;
    --product-button-line: 32px;
    --product-phone-width: 170px;
    --product-phone-height: 368px;
  }

  .product-button {
    padding: 12px 24px;
    border-width: 6px;
    border-radius: 6px;
  }
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1024px) {
  .product-section {
    --product-height: auto;
    --product-padding-x: 40px;
    --product-padding-y: 44px;
    --product-gap: 24px;
    --product-logo-size: 150px;
    --product-store-width: 120px;
    --product-store-height: 40px;
    --product-copy-width: none;
    --product-copy-gap: 20px;
    --product-title-size: 28px;
    --product-title-line: 36px;
    --product-text-size: 12.5px;
    --product-text-line: 18px;
    --product-button-width: 220px;
    --product-button-height: 56px;
    --product-button-font-size: 19px;
    --product-button-line: 25px;
    --product-phone-width: 120px;
    --product-phone-height: 260px;
  }

  .product-section__inner {
    grid-template-columns:
      var(--product-logo-size)
      minmax(0, 1fr)
      var(--product-phone-width);
    min-height: 0;
    row-gap: 24px;
  }

  .product-left {
    gap: 24px;
  }

  .product-button {
    padding: 10px 20px;
    border-width: 5px;
  }
}

/* =========================================================
   Telefon
   ========================================================= */

@media (max-width: 767px) {
  .product-section {
    --product-padding-x: 24px;
    --product-padding-y: 18px;
    --product-logo-size: 64px;
    --product-store-width: 64px;
    --product-store-height: auto;
    --product-phone-width: 64px;
    --product-phone-height: 136px;
    --product-title-size: 30px;
    --product-title-line: 28px;
    --product-text-size: 14px;
    --product-text-line: 16px;
    --product-copy-gap: 8px;
    --product-button-width: 153px;
    --product-button-height: 36px;
    --product-button-font-size: 14px;
    --product-button-line: 19px;
  }

  .product-section__inner {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "left copy"
      "phone copy"
      "button button";
    column-gap: 16px;
    row-gap: 12px;
    max-width: none;
  }

  .product-left {
    align-items: flex-start;
    gap: 8px;
    width: 72px;
    max-width: 72px;
  }

  .product-store {
    height: auto;
  }

  .product-store img {
    height: auto;
  }

  .product-copy {
    max-width: none;
  }

  .product-description ul,
  .product-description ol {
    padding-left: 12px;
  }

  .product-button {
    justify-self: center;
    margin-top: 6px;
    padding: 6px 12px;
    border-width: 3px;
    border-radius: 3px;
  }
}

/* =========================================================
   Mały telefon
   ========================================================= */

@media (max-width: 480px) {
  .product-section {
    --product-padding-x: 20px;
    --product-logo-size: 62px;
    --product-phone-width: 62px;
    --product-phone-height: 132px;
    --product-title-size: 18px;
    --product-title-line: 22px;
    --product-text-size: 9px;
    --product-text-line: 10px;
    --product-button-width: 148px;
    --product-button-height: 34px;
  }

  .product-section__inner {
    grid-template-columns: 70px minmax(0, 1fr);
    column-gap: 14px;
  }
}
