/* Proposals */
.proposals-section {
}

.proposals {
  --gutter-y: 20px;
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-0.5 * var(--gutter-x));
  margin-right: calc(-0.5 * var(--gutter-x));
  margin-top: calc(-1 * var(--gutter-y));
}

.proposals.slick-initialized {
  display: block;
  margin: 0;
}

.proposals .slick-list {
  margin-left: calc(-0.5 * var(--gutter-x));
  margin-right: calc(-0.5 * var(--gutter-x));
}

.proposals .slick-list .proposals__item {
  margin-top: 0;
}

.proposals_type_box {
  --height: 354px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, var(--height));
  margin: 0;
}

.proposals__item {
  flex: 0 0 auto;
  width: 25%;
  padding-left: calc(0.5 * var(--gutter-x));
  padding-right: calc(0.5 * var(--gutter-x));
  margin-top: var(--gutter-y);
}

.proposals_type_box .proposals__item {
  flex: unset;
  width: auto;
  padding: 0;
  margin: 0;
}

.proposals_type_box .proposals__item:nth-child(1) {
  grid-area: 1 / 1 / 3 / 2;
}

.proposals_type_box .proposals__item:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
}

.proposals_type_box .proposals__item:nth-child(3) {
  grid-area: 1 / 3 / 2 / 5;
}

.proposals_type_box .proposals__item:nth-child(4) {
  grid-area: 2 / 2 / 3 / 4;
}

.proposals_type_box .proposals__item:nth-child(5) {
  grid-area: 2 / 4 / 3 / 5;
}

@media (max-width: 1499.98px) {
  .proposals_type_box {
    --height: 315px;
  }
}

@media (max-width: 1349.98px) {
  .proposals_type_box {
    --height: 275px;
  }
}

@media (max-width: 1199.98px) {
  .proposals_type_box {
    --height: 225px;
  }
}

@media (max-width: 991.98px) {
  .proposals__item {
    width: 33.33%;
  }

  .proposals_type_box {
    grid-template-columns: repeat(3, 1fr);
  }

  .proposals_type_box .proposals__item:nth-child(1) {
    grid-area: 1 / 1 / 3 / 2;
  }

  .proposals_type_box .proposals__item:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
  }

  .proposals_type_box .proposals__item:nth-child(3) {
    grid-area: 1 / 3 / 2 / 4;
  }

  .proposals_type_box .proposals__item:nth-child(4) {
    grid-area: 2 / 2 / 3 / 3;
  }

  .proposals_type_box .proposals__item:nth-child(5) {
    grid-area: 2 / 3 / 3 / 4;
  }
}

@media (max-width: 767.98px) {
  .proposals__item {
    width: 50%;
  }

  .proposals_type_box {
    gap: 0;
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-0.5 * var(--gutter-x));
    margin-right: calc(-0.5 * var(--gutter-x));
    margin-top: calc(-1 * var(--gutter-y));
  }

  .proposals_type_box .proposals__item {
    flex: 0 0 auto;
    width: 50%;
    padding-left: calc(0.5 * var(--gutter-x));
    padding-right: calc(0.5 * var(--gutter-x));
    margin-top: var(--gutter-y);
  }

  .proposals_type_box .proposals__item:first-child {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .proposals__item {
    width: 100%;
  }

  .proposals_type_box .proposals__item {
    width: 100%;
  }
}
/* ! Proposals */

/* Proposals Item */
.proposal-item {
  display: block;
  color: var(--white-color);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) {
  .proposal-item:hover {
    color: var(--white-color);
  }
}

.proposal-item:active {
  color: var(--white-color);
}

.proposal-item__image-wrapper {
  position: relative;
}

.proposal-item__image-wrapper:before {
  content: "";
  display: block;
  padding-top: calc(373 * 100% / 345);
}

.proposal-item__image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.proposal-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.25s ease-in-out;
}

@media (hover: hover) {
  .proposal-item:not(:hover) .proposal-item__image img {
    filter: grayscale(1);
  }
}

.proposal-item__image:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 60px;
  height: 60px;
  background-color: var(--accent-color);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M42 30.5 37 34v-2.825H18v-1h19V27l5 3.5Z' fill='%231F1F1F'/%3E%3C/svg%3E");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.proposal-item__image:after {
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease-in-out;
}

@media (hover: hover) {
  .proposal-item:hover .proposal-item__image:after {
    opacity: 1;
    visibility: visible;
  }
}

.proposal-item:active .proposal-item__image:after {
  opacity: 1;
  visibility: visible;
}

.proposal-item__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 26px;
  line-height: 1.38em;
  letter-spacing: 0.035em;
  font-weight: 400;
  padding: 0.92em 1.15em;
}

.proposal-item__title {
  font: inherit;
  margin: 0;
}

.proposal-item__title > small {
  display: block;
  font-size: 0.615em;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: bold;
  color: inherit;
}

@media (max-width: 1349.98px) {
  .proposal-item__content {
    font-size: 22px;
  }
}

@media (max-width: 1199.98px) {
  .proposal-item__content {
    font-size: 20px;
  }

  .proposal-item__image:after {
    width: 50px;
    height: 50px;
  }
}

.proposals__item:nth-child(1) .proposal-item_type_box {
  --bg-color: var(--accent-color);
  background-color: var(--bg-color);
  color: var(--main-color);
  overflow: visible;
}

@media (hover: hover) {
  .proposals__item:nth-child(1) .proposal-item_type_box:hover {
    --bg-color: #5543c3;
    color: var(--white-color);
  }
}

.proposals__item:nth-child(1) .proposal-item_type_box:active {
  --bg-color: #5543c3;
  color: var(--white-color);
}

@media (min-width: 768px) {
  .proposal-item_type_box {
    height: 100%;
  }

  .proposal-item_type_box .proposal-item__image-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .proposal-item_type_box .proposal-item__image-wrapper:before {
    display: none;
  }

  .proposals__item:nth-child(1) .proposal-item_type_box:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 50vw;
    background-color: var(--bg-color);
    transition: background-color 0.15s ease-in-out;
  }

  .proposals__item:nth-child(1) .proposal-item_type_box .proposal-item__image img {
    width: auto;
    max-width: none;
    float: right;
  }
}
/* ! Proposals Item */
