.third_page_container {
  width: 775px;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 70px;
}

.third_page_offer_description {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.offer_description_text {
  font-weight: 600;
  font-size: 18px;
  line-height: 32px;
  color: #374957;
}

.offer_description_text svg {
  color: #44b05e;
}

.black_text {
  color: #374957;
}

.phone_block_title {
  font-weight: 800;
  font-size: 22px;
  line-height: 32px;
  text-align: center;
  color: #374957;
}

.third_page_phone_block {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  background-color: rgba(94, 94, 94, 0.6);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: auto;
  box-sizing: border-box;
  padding-top: var(--banner-app-height, 0);
}

.third_page_phone_block::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(10px);
}

.third_page_phone_block > * {
  position: relative;
  z-index: 1;
}

.third_page_phone_block + #cards_block {
  filter: blur(6px);
}

.third_page_phone_block .phone_wrapper {
  width: 770px;
  max-width: calc(100% - 30px);
  background-color: #fff;
  box-sizing: border-box;
  padding: 40px 40px 0 40px;
  margin-top: 166px;
  border-radius: 5px;
}

.third_page_phone_block .phone_back {
  border: 0;
  background-color: #e1e1e1;
  border-radius: 5px;
  padding: 13px 16px;
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  color: rgba(55, 73, 87, 0.8);
  margin: 15px 0;
}

.third_page_phone_block .phone_back svg {
  margin-right: 10px;
}

.third_page_phone_block .phone_info_container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.third_page_phone_block .phone_info_container_item {
  box-sizing: border-box;
}

.third_page_phone_block .phone_info_container_item:first-child {
  width: calc(50% - 30px);
}

.third_page_phone_block .phone_info_container_item:last-child {
  width: calc(50% - 20px);
}

.phone_info_offers_wrapper {
  display: flex;
  text-align: center;
  border-radius: 5px;
  border: 1px solid #dadada;
}

.phone_info_offers_item {
  width: calc(100% / 3);
  padding: 15px;
  box-sizing: border-box;
}

.phone_info_offers_item:not(:last-child) {
  border-right: 1px solid #dadada;
}

.phone_info_offers_item img {
  margin-bottom: 5px;
}

.phone_info_offers_item p {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  color: rgba(55, 73, 87, 0.8);
}

.app_info {
  width: fit-content;
  background-color: #E8EFF8;
  font-size: 13px;
  line-height: 18px;
  color: #4f4f4f;
  padding: 12px 14px;
  border-radius: 6px;
  margin: 20px auto;
}

.app_info a {
   color: #3b6de0;
   text-decoration: none;
}

.app_info a:hover {
   text-decoration: underline;
}

.phone_block_description {
  margin-top: 5px;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  color: rgba(55, 73, 87, 0.7);
}

.phone_header_block {
  display: flex;
  flex-direction: column;
}

.phone_input_component {
  width: 100%;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
}

.phone_input_component .input_error {
  width: 100%;
  text-align: left;
  color: tomato;
  font-size: 14px;
}

.phone_input_component input {
  width: 100%;
  height: 50px;
  padding: 0 15px 0 45px;
  background: #ffffff;
  border: 1px solid #dedede;
  box-sizing: border-box;
  border-radius: 5px;
  color: #374957;
}

.phone_input_component .phone_placeholder {
  display: flex;
  align-items: center;
  height: 50px;
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  pointer-events: none;
  padding-left: 110px;
  font-size: 15px;
  color: rgba(34, 34, 34, 0.6);
}

.phone_input_component svg {
  position: absolute;
  top: 15px;
  left: 15px;
  pointer-events: none;
}

.phone_inputs_block {
  display: flex;
}

.send_button {
  width: 100%;
  background-color: #29cf51;
  border-radius: 5px;
  padding: 15px 47px;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff;
  border: none;
  margin-top: 15px;
}

.send_button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.third_page_category_container {
  background: #ffffff;
  border: 1px solid #dedede;
  box-sizing: border-box;
  border-radius: 50px;
  padding: 3px;
  margin: 0 auto;
  width: fit-content;
}

.category_block {
  padding: 11px 35px;
  display: inline-flex;
  cursor: pointer;
  text-transform: uppercase;
  color: #374957;
  font-size: 14px;
}

.category_active {
  background: #644cfa;
  border-radius: 50px;
  color: white;
  pointer-events: none;
}

.third_page_sort_block {
  display: flex;
  align-items: center;
  justify-content: end;
  margin-top: 20px;
}

.third_page_sort_block .sort_title {
  margin-right: 11px;
  color: rgba(55, 73, 87, 0.5);
}

.third_page_sort_dropdown .drop_down_block {
  background: transparent;
  border: 1px solid #dedede;
  border-radius: 5px;
  padding: 0px 10px;
  min-height: 36px;
  margin-top: 0px;
  height: auto;
}

.third_page_sort_dropdown .drop_down_content {
  width: auto;
  right: 0;
  left: auto;
}

.third_page_sort_dropdown .drop_down_block_title {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}

.third_page_sort_dropdown .drop_down_select_icon {
  margin-left: 10px;
}

.third_page_sort_dropdown .drop_down_select_icon svg {
  width: 11px;
  height: 6px;
}

.third_page_sort_dropdown {
  position: relative;
}

.category_cards {
  margin-top: 10px;
  display: none;
  min-height: 500px;
}

.category_cards.active {
  display: block;
}

.category_card {
  display: flex;
  border: 1px solid #dedede;
  background-color: #ffffff;
  border-radius: 5px;
  position: relative;
}

.category_card.mobile {
  display: none;
}

.category_card_show {
  width: 12px;
  position: absolute;
  left: 170px;
  right: 0;
  bottom: 12px;
  border: 0;
  background-color: transparent;
  height: auto;
  padding: 0;
  transform: rotateX(-180deg);
}

.category_card_show::before {
  content: url(./icons/arrow.svg);
}

.category_card_show.show {
  transform: rotateX(0);
}

.category_card:not(:first-child) {
  margin-top: 15px;
}

.category_card .category_card_image {
  width: 160px;
  display: flex;
  align-items: center;
  padding: 0 5px;
  flex-shrink: 0;
}

.category_card .category_card_image img {
  max-width: calc(100% - 50px);
  margin: auto;
}

.category_card ul {
  width: 100%;
  height: 97px;
  overflow: hidden;
  padding-top: 33px;
  padding-right: 20px;
  margin-bottom: 33px;
  transition: height 0.3s ease-in-out;
}

.category_card ul.open {
  height: auto;
}

.category_card ul li {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 20px;
  color: rgba(55, 73, 87, 0.8);
}

.category_card ul li .icon {
  margin-left: 0;
  margin-right: 7px;
  flex-shrink: 0;
}
.category_card ul li .icon::before {
  content: url(./icons/check-success.svg);
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(68, 176, 94, 0.2);
  transform: scale(0.75);
  text-align: center;
  line-height: 25px;
  margin-left: -3px;
}

.category_card_price {
  width: 18%;
  border-left: 1px solid #dedede;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  flex-shrink: 0;
}

.category_card_price_status {
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  color: rgba(55, 73, 87, 0.7);
  margin-bottom: 4px;
}

.category_card_price h4 {
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 20px;
  color: #374957;
}

.category_card_price h4 span {
  font-size: 20px;
}

.category_card_price button,
.category_card ul button {
  width: 100%;
  min-height: 40px;
  background-color: rgba(68, 176, 94, 0.15);
  border-radius: 5px;
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
  color: #44b05e;
  border: 0;
}

@media screen and (max-width: 599px) {
  .calculator_wrapper {
    width: calc(100% - 40px);
    padding: 0 20px;
  }

  .select_car_container,
  .drivers .calculator_wrapper {
    flex-direction: column;
  }

  .drivers .calculator_wrapper > * {
    width: 100%;
  }

  .drivers .calculator_wrapper > .drop_down_container {
    margin-top: 18px;
  }

  .drivers .calculator_wrapper > .drop_down_container {
    margin-right: 0;
  }

  .payment .calculator_wrapper {
    flex-direction: column;
  }

  .payment .calculator_wrapper > label {
    width: 100%;
  }

  .payment .calculator_wrapper > label:not(:last-child),
  .payment .calculator_wrapper > label:nth-child(odd) {
    margin-bottom: 5px;
    margin-right: 0;
    margin-left: 0;
  }

  .phone_block_title {
    font-size: 20px;
  }

  .phone_block_description {
    font-size: 14px;
    line-height: 20px;
  }

  .phone_inputs_block {
    flex-direction: column;
  }

  .phone_input_component {
    width: 100%;
  }

  .phone_input_component:not(:last-child) {
    margin-bottom: 15px;
  }

  .phone_input_component:last-child {
    margin-bottom: 10px;
  }

  .third_page_container .send_button {
    width: 100%;
    margin-top: 0;
  }

  .third_page_category_container {
    width: 100%;
    display: flex;
  }

  .category_block {
    width: 100%;
    padding: 11px 10px;
    text-align: center;
    justify-content: center;
  }

  .category_card:not(.mobile) {
    display: none;
  }

  .category_card.mobile {
    display: flex;
    flex-wrap: wrap;
    min-height: 110px;
    align-items: center;
    box-sizing: border-box;
  }

  .category_card.mobile .category_card_cardcontent {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    height: 0;
    padding: 20px;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    transition: height 0.3s ease-in-out;
  }

  .category_card.mobile .category_card_cardcontent.open {
    position: static;
    pointer-events: auto;
    opacity: 1;
    height: auto;
  }

  .category_card.mobile .category_card_cardcontent.open + .open_content {
    top: auto;
    bottom: 20px;
  }

  .category_card.mobile .category_card_cardcontent.open + .open_content img {
    transform: rotate(180deg);
  }

  .category_card.mobile .category_card_price {
    display: flex;
    align-items: center;
    border-left: 0;
  }

  .category_card.mobile .category_card_price h4 {
    margin-bottom: 0;
  }

  .category_card.mobile .category_card_image,
  .category_card.mobile .category_card_price {
    width: 33.3%;
    padding: 0;
    min-height: 110px;
  }

  .category_block:first-child:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .category_block:nth-child(2) {
    border-radius: 0;
  }

  .category_block:last-child:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .category_card.mobile .open_content {
    min-width: 85px;
    height: 30px;
    box-sizing: border-box;
    border: 1px solid #dedede;
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 5px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 20px;
    margin: auto;
  }

  .category_card.mobile .open_content::before {
    content: attr(data-text-open);
  }

  .category_card_cardcontent.open + .open_content::before {
    content: attr(data-text-close);
  }

  .category_card.mobile .open_content img {
    width: 9px;
    margin-left: 5px;
  }

  .category_card.mobile ul button {
    width: 150px;
  }

  .third_page_phone_block .casco_info {
    flex-direction: column;
  }

  .third_page_phone_block .casco_info .casco_info_phone_inputs_icon {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .third_page_phone_block .casco_info h4 {
    text-align: center;
  }

  .third_page_phone_block .phone_wrapper {
    width: 400px;
    margin-top: 86px;
    padding: 20px 20px 0 20px;
    border: 1px dashed #dadada;
  }

  .third_page_phone_block .phone_info_container {
    flex-wrap: wrap;
    margin-bottom: 0;
  }

  .third_page_phone_block .phone_info_container_item:first-child,
  .third_page_phone_block .phone_info_container_item:last-child {
    width: 100%;
  }

  .third_page_offer_description {
    margin-bottom: 20px;
  }

  .offer_description_text {
    font-size: 16px;
    line-height: 23px;
    font-weight: 500;
  }

  .phone_info_offers_wrapper {
    flex-wrap: wrap;
    display: none;
  }

  .phone_info_offers_item {
    width: 100%;
  }

  .phone_info_offers_item:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid #dadada;
  }
}

.margin-top {
  margin-top: 5px;
}
