/* =========================================================
   IntegraDomy.pl — Kompleksowa realizacja PREMIUM UX
   Desktop: 3 x 2 duże karty
   Mobile: kompaktowe premium cards z miniaturą, ikoną i strzałką
   ========================================================= */

.id-complex {
  padding: 38px 0 36px;
  background:
    radial-gradient(circle at 50% 0%, rgba(237, 28, 36, .04), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

.id-complex__container {
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
}

.id-complex__head {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.id-complex__kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ed1c24;
}

.id-complex__head h2 {
  margin: 0;
  font-family: 'Sora', Arial, sans-serif;
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.06em;
  color: #07111f;
}

.id-complex__head p {
  max-width: 760px;
  margin: 20px auto 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #566174;
}

/* GRID */

.id-complex__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.id-step {
  min-width: 0;
}

.id-step__link {
  height: 100%;
  display: block;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, .10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 52px rgba(15, 23, 42, .075);
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s ease,
    border-color .28s ease;
}

.id-step__link:hover {
  transform: translateY(-7px);
  border-color: rgba(237, 28, 36, .28);
  box-shadow: 0 32px 84px rgba(15, 23, 42, .14);
}

.id-step__photo {
  position: relative;
  height: 220px;
  margin: 0;
  overflow: hidden;
  background: #eef1f4;
}

.id-step__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.34) 100%);
  opacity: .72;
  transition: opacity .28s ease;
}

.id-step__link:hover .id-step__photo::after {
  opacity: .9;
}

.id-step__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition:
    transform .62s cubic-bezier(.2,.8,.2,1),
    filter .28s ease;
}

.id-step__link:hover .id-step__photo img {
  transform: scale(1.065);
  filter: saturate(1.06) contrast(1.03);
}

.id-step__number {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;

  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: 'Sora', Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #ed1c24;

  border-radius: 999px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.id-step__content {
  position: relative;
  padding: 28px 28px 30px;
}

.id-step__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  color: #ed1c24;
  transition: transform .28s ease;
}

.id-step__link:hover .id-step__icon {
  transform: translateY(-3px);
}

.id-step__icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.id-step__icon .accent {
  stroke: #ed1c24;
}

.id-step h3 {
  margin: 0;
  font-family: 'Sora', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.045em;
  color: #07111f;
}

.id-step h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin: 16px 0 0;
  background: #ed1c24;
  transition: width .28s ease;
}

.id-step__link:hover h3::after {
  width: 56px;
}

.id-step p {
  margin: 16px 0 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.72;
  color: #536072;
}

.id-step__arrow {
  display: none;
}

/* TRUST STATEMENT */

.id-complex__trust {
  margin-top: 42px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 22px;
  align-items: center;

  background:
    linear-gradient(135deg, rgba(237,28,36,.055), rgba(255,255,255,0) 46%),
    #ffffff;
  border: 1px solid rgba(237, 28, 36, .20);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .075);
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease;
}

.id-complex__trust:hover {
  transform: translateY(-3px);
  border-color: rgba(237, 28, 36, .36);
  box-shadow: 0 30px 76px rgba(15, 23, 42, .115);
}

.id-complex__trust-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ed1c24;
}

.id-complex__trust-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.id-complex__trust p {
  margin: 0;
  font-family: 'Sora', Arial, sans-serif;
  font-size: clamp(18px, 1.4vw, 23px);
  font-weight: 600;
  line-height: 1.46;
  letter-spacing: -0.04em;
  color: #07111f;
}

.id-complex__trust-arrow {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-left: 1px solid rgba(237, 28, 36, .22);
  color: #ed1c24;
  font-size: 36px;
  line-height: 1;
  text-decoration: none;
  transition:
    transform .22s ease,
    color .22s ease;
}

.id-complex__trust:hover .id-complex__trust-arrow {
  transform: translateX(4px);
  color: #c80e16;
}

/* CTA */

.id-complex__actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.id-complex__button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 34px;
  border-radius: 8px;

  background: #ed1c24;
  border: 1px solid #ed1c24;
  color: #ffffff;

  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;

  box-shadow: 0 18px 40px rgba(237, 28, 36, .25);
  transition:
    transform .22s ease,
    background-color .22s ease,
    box-shadow .22s ease;
}

.id-complex__button span {
  font-size: 20px;
  line-height: 1;
  transition: transform .22s ease;
}

.id-complex__button:hover {
  transform: translateY(-2px);
  background: #c80e16;
  box-shadow: 0 24px 54px rgba(237, 28, 36, .30);
}

.id-complex__button:hover span {
  transform: translateX(4px);
}

/* TABLET */

@media (max-width: 1080px) {
  .id-complex__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBILE */

@media (max-width: 720px) {
  .id-complex {
    padding: 58px 0 26px;
  }

  .id-complex__container {
    width: min(calc(100% - 28px), 1240px);
  }

  .id-complex__head {
    margin-bottom: 28px;
    text-align: center;
  }

  .id-complex__kicker {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .id-complex__head h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .id-complex__head p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.68;
  }

  .id-complex__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .id-step__link {
    display: grid;
    grid-template-columns: 116px 1fr;
    min-height: 126px;
    border-radius: 13px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .075);
  }

  .id-step__link:hover {
    transform: none;
  }

  .id-step__photo {
    height: 100%;
    min-height: 126px;
    border-radius: 13px 0 0 13px;
  }

  .id-step__photo::after {
    opacity: .58;
  }

  .id-step__number {
    left: 9px;
    top: 9px;
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .id-step__content {
    display: grid;
    grid-template-columns: 34px 1fr 18px;
    gap: 12px;
    align-items: center;
    padding: 16px 14px;
  }

  .id-step__icon {
    width: 34px;
    height: 34px;
    margin: 0;
  }

  .id-step__icon svg {
    width: 29px;
    height: 29px;
    stroke-width: 1.7;
  }

  .id-step h3 {
    font-size: 15.5px;
    line-height: 1.17;
  }

  .id-step h3::after {
    display: none;
  }

  .id-step p {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #5b6677;
  }

  .id-step__arrow {
    display: grid;
    place-items: center;
    width: 18px;
    color: #07111f;
    font-size: 26px;
    line-height: 1;
    opacity: .75;
  }

  .id-complex__trust {
    margin-top: 22px;
    padding: 18px 16px;
    grid-template-columns: 38px 1fr 18px;
    gap: 12px;
    border-radius: 13px;
  }

  .id-complex__trust-icon {
    width: 38px;
    height: 38px;
  }

  .id-complex__trust-icon svg {
    width: 31px;
    height: 31px;
  }

  .id-complex__trust p {
    font-size: 13px;
    line-height: 1.5;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: -0.015em;
  }

  .id-complex__trust-arrow {
    width: 18px;
    height: auto;
    border-left: 0;
    font-size: 26px;
  }

  .id-complex__actions {
    margin-top: 18px;
  }

  .id-complex__button {
    width: 100%;
    min-height: 54px;
    padding-inline: 18px;
    border-radius: 8px;
  }
}

@media (max-width: 390px) {
  .id-step__link {
    grid-template-columns: 104px 1fr;
  }

  .id-step__content {
    grid-template-columns: 30px 1fr 16px;
    gap: 10px;
    padding: 14px 12px;
  }

  .id-step__icon {
    width: 30px;
    height: 30px;
  }

  .id-step__icon svg {
    width: 27px;
    height: 27px;
  }

  .id-step h3 {
    font-size: 15px;
  }

  .id-step p {
    font-size: 12px;
  }
}
