/* =========================================================
   8. HERO / MAIN SCREEN
========================================================= */

.main_screen_big_img.et_pb_image {
  position: relative;
  min-height: 615px;
}

.main_screen_big_img .et_pb_image_wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.main_screen_big_img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main_screen_big_img .et_pb_image_wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
}

.main_screen_big {
  position: absolute;
  left: 50px;
  bottom: 40px;
  z-index: 2;
  width: calc(100% - 70px);
  padding-right: 40px;
  margin-left: -5px;
}

.main_screen_big .et_pb_text_inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 30px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.15);
}

.main_screen_big h1 {
  position: relative;
  display: inline-flex;
  padding: 10px 50px 10px 0;
  margin-bottom: 15px;
  color: #ffffff;
  background-color: #d83b40;
  transform: skewX(-10deg);
}

.main_screen_big h1 strong {
  position: relative;
  z-index: 1;
}

.main_screen_big h1::before {
  content: "";
  position: absolute;
  left: -75px;
  top: 0;
  width: 70%;
  height: 100%;
  background: #d83b40;
  transform: skewX(10deg);
}

.main_screen_big p {
  margin: 0 !important;
  padding-bottom: 5px;
}

.main_screen_big .btn_main {
  color: #212121;
  background: #ead222;
  border: 1px solid #ead222;
}

.main_screen_big .btn_main::after {
  background-color: #212121;
  mask: url(/wp-content/uploads/2024/10/arrow_right.svg) no-repeat center;
  -webkit-mask: url(/wp-content/uploads/2024/10/arrow_right.svg) no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.main_screen_big .btn_main:hover,
.main_screen_big .btn_main:active,
.main_screen_big .btn_main:focus {
  color: #ead222;
  background: transparent;
  border: 1px solid #ead222;
}

.main_screen_big .btn_main:hover::after,
.main_screen_big .btn_main:focus::after,
.main_screen_big .btn_main:active::after {
  background-color: #ead222;
}

.main_screen_small_img.et_pb_image {
  position: relative;
  min-height: 305px;
}

.main_screen_small_img .et_pb_image_wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100%;
}

.main_screen_small_img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main_screen_small_img .et_pb_image_wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
}

.main_screen_small {
  position: absolute;
  left: 25px;
  bottom: 25px;
  z-index: 2;
  width: calc(100% - 25px);
}

.main_screen_small.main_screen_small__calc {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.main_screen_small .et_pb_text_inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 30px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.25);
}

.main_screen_small.main_screen_small__calc .et_pb_text_inner {
  position: absolute;
  top: 0;
  left: 0;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 50px;
  overflow: hidden;
  color: #212121;
  background: #ead222;
}

.main_screen_small.main_screen_small__calc .et_pb_text_inner a,
.main_screen_small.main_screen_small__calc .et_pb_text_inner p,
.main_screen_small.main_screen_small__calc .et_pb_text_inner h2,
.main_screen_small.main_screen_small__calc .et_pb_text_inner h3,
.main_screen_small.main_screen_small__calc .et_pb_text_inner h4,
.main_screen_small.main_screen_small__calc .et_pb_text_inner h5,
.main_screen_small.main_screen_small__calc .et_pb_text_inner h6,
.main_screen_small.main_screen_small__calc .et_pb_text_inner strong,
.main_screen_small.main_screen_small__calc .et_pb_text_inner span {
  z-index: 1;
}

.main_screen_small.main_screen_small__calc .et_pb_text_inner::before {
  content: "";
  position: absolute;
  left: -15px;
  top: -15px;
  width: 150px;
  height: 150px;
  opacity: 0.12;
  background-color: #212121;
  transform: rotate(-25deg);
  mask: url('/wp-content/uploads/2024/10/kalkulator.svg') no-repeat center;
  -webkit-mask: url('/wp-content/uploads/2024/10/kalkulator.svg') no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.main_screen_small.main_screen_small__calc .et_pb_text_inner::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 25px;
  width: calc(100% - 50px);
  height: calc(100% - 50px);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.main_screen_small h2,
.main_screen_small h3,
.main_screen_small h4,
.main_screen_small h5,
.main_screen_small h6,
.main_screen_small span {
  position: relative;
  display: inline-flex;
  padding: 10px 35px 10px 0;
  margin-bottom: 15px;
  color: #ffffff;
  background-color: #d83b40;
  transform: skewX(-10deg);
}

.main_screen_small h2 strong,
.main_screen_small h3 strong,
.main_screen_small h4 strong,
.main_screen_small h5 strong,
.main_screen_small h6 strong,
.main_screen_small span strong {
  position: relative;
  z-index: 1;
}

.main_screen_small h2::before,
.main_screen_small h3::before,
.main_screen_small h4::before,
.main_screen_small h5::before,
.main_screen_small h6::before,
.main_screen_small span::before {
  content: "";
  position: absolute;
  left: -55px;
  top: 0;
  width: 70%;
  height: 100%;
  background: #d83b40;
  transform: skewX(10deg);
}

.main_screen_small p {
  margin: 0 !important;
  padding-bottom: 5px;
}

.main_screen_small.main_screen_small_transparent h2,
.main_screen_small.main_screen_small_transparent h3,
.main_screen_small.main_screen_small_transparent h4,
.main_screen_small.main_screen_small_transparent h5,
.main_screen_small.main_screen_small_transparent h6,
.main_screen_small.main_screen_small_transparent span {
  margin-bottom: 0;
  color: #ffffff;
  background-color: transparent;
  transform: skew(0deg);
}

.main_screen_small.main_screen_small_transparent h2::before,
.main_screen_small.main_screen_small_transparent h3::before,
.main_screen_small.main_screen_small_transparent h4::before,
.main_screen_small.main_screen_small_transparent h5::before,
.main_screen_small.main_screen_small_transparent h6::before,
.main_screen_small.main_screen_small_transparent span::before {
  background: transparent;
}

.main_screen_icons .et-pb-icon {
  margin-right: 10px;
  padding: 10px 15px;
  color: #212121 !important;
  background: #dadada;
}

.main_screen_icons .et_pb_text {
  padding-right: 10px;
}

.main_screen_icons .et_pb_column {
  justify-content: flex-start;
}


/* MOBILE - HERO / MAIN SCREEN */
@media screen and (min-width: 320px) and (max-width: 1023px) {
  .main_screen_small .et_pb_text_inner {
    padding: 20px 15px;
  }

  .main_screen_small h2,
  .main_screen_small h3,
  .main_screen_small h4,
  .main_screen_small h5,
  .main_screen_small h6,
  .main_screen_small span {
    padding-right: 20px;
  }

  .main_screen_small h2::before,
  .main_screen_small h3::before,
  .main_screen_small h4::before,
  .main_screen_small h5::before,
  .main_screen_small h6::before,
  .main_screen_small span::before {
    left: -40px;
  }

  .main_screen_mobile .et_pb_row {
    display: flex;
    width: calc(100% + 30px) !important;
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .main_screen_mobile .et_pb_row::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .main_screen_big {
    left: 30px;
    bottom: 30px;
    width: calc(100% - 50px);
    padding-right: 0;
  }

  .main_screen_big_img .et_pb_image_wrap {
    height: calc(100% - 5px);
  }

  .main_screen_big h1 {
    padding: 10px 30px 10px 0;
  }

  .main_screen_big .et_pb_text_inner {
    padding: 15px 20px;
  }

  .main_screen_mobile_col_1 {
    display: flex;
    min-width: 300px;
    overflow: hidden;
  }

  .main_screen_mobile_col_1 .main_screen_big_img.et_pb_image {
    min-width: 300px;
    min-height: 435px;
  }

  .main_screen_mobile_col_2 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .main_screen_mobile_col_2 .main_screen_small_img.et_pb_image {
    min-height: 440px;
  }

  .main_screen_mobile_col_2 .et_pb_row_inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: auto;
  }

  .main_screen_mobile_col_2 .et_pb_row_inner .et_pb_column {
    min-width: 300px;
    margin-left: 10px !important;
  }

  .main_screen_icons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main_screen_icons .et-pb-icon {
    margin-top: 3px;
    margin-right: 0;
    margin-bottom: 4px;
  }

  .main_screen_icons .et_pb_column.et_pb_column_1_6 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 49% !important;
    margin-right: 0 !important;
    margin-bottom: 15px !important;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .main_screen_icons .et_pb_column.et_pb_column_1_6.et-last-child {
    position: relative;
    right: -3px;
  }

  .main_screen_icons .et_pb_column .et_pb_text {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .main_screen_big i,
  .main_screen_small i {
    font-style: normal !important;
    font-size: 12px !important;
    letter-spacing: 0.5px;
  }
}
