.thumb-slider {
  width: 100%;
  margin-top: 16px;
  overflow: hidden;
}
.thumb-slider .swiper-slide {
  aspect-ratio: 344 / 472;
  width: 67px;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
}
.thumb-slider .swiper-slide-thumb-active {
  border: 3px solid #ff4277;
}
.thumb-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-slider .swiper-wrapper {
  padding-left: 16px;
}

#modal-quick-order {
  z-index: 100000;
  transition: transform 0.3s linear;
}
#modal-quick-order .modal-dialog {
  margin: 70px auto 80px;
}
@media screen and (max-width: 767px) {
  #modal-quick-order .modal-dialog {
    margin: 0;
  }
  #modal-quick-order {
    top: 100px;
    border-radius: 24px 24px 0 0;
  }
}
#modal-quick-order .modal-content {
  background-color: #eceff3;
  padding: 14px;
}
#modal-quick-order .modal-content {
  max-width: 866px;
}

#modal-quick-order .modal-body {
  padding: 0;
  /* max-height: calc(100dvh - 300px);
  overflow-y: auto;
  overflow-x: hidden; */
}
.main-swiper-pagination {
  display: none;
}
@media screen and (max-width: 767px) {
  #modal-quick-order .modal-content {
    padding-top: 28px;
    border-radius: 24px 24px 0 0;
    background-color: #fff;
  }
  .thumb-slider:not(#modal-quick-order .thumb-slider) {
    margin-top: -24px;
    border-radius: 24px 24px 0 0;
    background-color: #fff;
    padding-top: 24px;
  }
  .main-slider:not(#modal-quick-order .main-slider) .swiper-button-prev,
  .main-slider:not(#modal-quick-order .main-slider) .swiper-button-next {
    display: none;
  }
  .main-swiper-pagination.swiper-pagination-fraction {
    display: block;
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 8px;
    font-size: 16px;
    color: #1f222e;
    background-color: #ffffffcc;
    z-index: 10;
    width: auto;
    height: auto;
    min-height: max-content;
    border-radius: 12px;
    line-height: 1;
  }
  /* #modal-quick-order .modal-body {
    max-height: calc(100dvh - 150px);
  } */
}

.product-gallery-wrapper {
  max-width: 344px;
}
@media screen and (max-width: 992px) {
  .product-gallery-wrapper {
    max-width: 420px;
  }
}
@media screen and (max-width: 767px) {
  .product-gallery-wrapper {
    max-width: 100vw;
  }
}
.product-gallery {
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 16px;
  background-color: #fff;
}

#quick_order .custom-options {
  padding: 32px;
  border-radius: 16px;
  background-color: #fff;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.product-gallery:not(#modal-quick-order .product-gallery) {
  position: sticky;
  top: 100px;
}
.main-slider {
  width: 100%;
  position: relative;
  max-height: 700px;
}
.main-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-slider .swiper-button-prev,
.main-slider .swiper-button-next {
  color: #fff;
  background: #0000001a;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.2s linear;
}
.main-slider .swiper-button-prev:hover,
.main-slider .swiper-button-next:hover {
  background: #00000036;
}
.main-slider .swiper-button-prev > svg,
.main-slider .swiper-button-next > svg {
  fill: none;
  width: 6px;
  height: auto;
}
.main-slider .swiper-slide {
  aspect-ratio: 344 / 472;
}

@media screen and (max-width: 767px) {
  #quick_order .thumb-slider {
    display: none !important;
  }
  .product-gallery {
    padding-bottom: 0;
  }
  #quick_order .custom-options {
    background-color: transparent;
    padding: 0;
  }
  .main-slider {
    max-height: 463px;
  }
  .main-slider .swiper-button-prev,
  .main-slider .swiper-button-next {
    transform: none;
  }
}
.swiper-button-prev {
  left: 10px;
}
.swiper-button-next {
  right: 10px;
}

.thumb-slider {
  width: 100%;
  margin-top: 16px;
  overflow: hidden;
}
.thumb-slider .swiper-slide {
  aspect-ratio: 344 / 472;
  width: 67px;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
}
.thumb-slider .swiper-slide-thumb-active {
  border: 3px solid #ff4277;
}
.thumb-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-slider .swiper-wrapper {
  padding-left: 16px;
}

@media screen and (max-width: 767px) {
  .thumb-slider:not(#modal-quick-order .thumb-slider) {
    margin-top: -24px;
    border-radius: 24px 24px 0 0;
    background-color: #fff;
    padding-top: 24px;
  }
  .main-slider:not(#modal-quick-order .main-slider) .swiper-button-prev,
  .main-slider:not(#modal-quick-order .main-slider) .swiper-button-next {
    display: none;
  }
}

#modal-quick-order .show_attr {
  display: inline-block;
  margin-bottom: 10px;
  line-height: 1;
  text-decoration: none !important;
  color: #7b87a6;
  display: flex;
  gap: 4px;
  align-items: center;
  transition: all 0.2s linear;
  border: none;
  padding-top: 0;
  font-size: 16px;
}
#modal-quick-order .show_attr:after {
  content: "";
  width: 16px;
  height: 16px;
  transition: all 0.2s linear;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L10 8L6 12' stroke='%23BCC6D4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}
#modal-quick-order .show_attr:hover {
  color: #f24d68;
}
#modal-quick-order .show_attr:hover:after {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4L10 8L6 12' stroke='%23F24D68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#modal-quick-order .radio {
  display: inline-block;
  margin: 0;
}
#modal-quick-order .radio label {
  margin: 0;
  padding: 0;
}
#modal-quick-order .option label > span {
  height: auto;
  margin: 0;
  padding: 2px 10px;
  border-radius: 16px;
  line-height: 1;
  height: 56px;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: none;
  transition: all 0.2s linear;
  font-size: 16px;
  background-color: #eceff3;
}

#modal-quick-order .rd-form-agreements {
  padding-top: 24px;
  gap: 16px;
}
@media screen and (max-width: 768px) {
  #modal-quick-order.modal.fade {
    transform: translateY(100%);
  }
  #modal-quick-order.modal.fade.in {
    transform: translateY(0);
  }
  #modal-quick-order .rd-form-agreements {
    padding-top: 32px;
  }
}

.row_input {
  padding: 32px;
  border-radius: 16px;
  background-color: #fff;
  margin-top: 16px;
}
.quick-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-form-title {
  display: none;
}
@media screen and (max-width: 767px) {
  .quick-form {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
    margin-top: 16px;
  }
  .quick-form-title {
    display: block;
    color: #1f222d;
    margin-bottom: 4px;
    font-size: 24px;
    font-family: "GTEestiPro", sans-serif;
    font-weight: 400;
  }
  .row_input {
    background-color: transparent;
    padding: 0;
  }
}

.quick-btns {
  position: absolute;
  bottom: -67px;
  right: 0;
  display: flex;
  gap: 8px;
}

.quick-more {
  display: none;
}
@media screen and (max-width: 767px) {
  .quick-btns {
    position: static;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    max-width: 500px;
    margin-inline: auto;
  }
  .quick-btns > .add_to_cart_btn {
    flex-grow: 1;
  }
  .quick-btns > .custom-close.button {
    flex-grow: 1;
  }
  .quick-more {
    display: block;
  }
}

.custom-close {
  background-color: #f3f5f7;
  border-radius: 16px;
  padding: 14px 24px;
  color: #1f222d;
  font-size: 20px;
  border: none;
  outline: none;
  transition: all 0.2s linear;
}
.custom-close:hover {
  background-color: #eff3f7;
}
.custom-close:active {
  transform: scale(0.98);
}
@media screen and (max-width: 767px) {
  .custom-close {
    min-width: auto;
  }
}
#modal-quick-order .custom-red-btn {
  padding: 14px 24px;
  font-size: 20px;
  color: #fff;
}
#modal-quick-order .custom-red-btn:disabled {
      color: #5a688e;
    background-color: #f3f5f7;
    cursor: not-allowed;
}
@media screen and (max-width: 767px) {
  #modal-quick-order .custom-red-btn {
    min-width: auto;
  }
}
.custom-icon-close {
  position: absolute;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s linear;
  top: -40px;
  right: -40px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 4px 24px #00000040;
  z-index: 10;
}
.custom-icon-close:hover {
  transform: translateY(-4px);
}

.quick-form-label {
  font-size: 24px;
  font-family: "GTEestiPro", sans-serif;
  font-weight: 400;
  color: #1f222d;
}
.file-group {
  margin-top: 32px;
}
@media screen and (max-width: 1024px) {
  #modal-quick-order .custom-icon-close {
    top: 10px;
    right: 10px;
  }
}
@media screen and (max-width: 768px) {
  #modal-quick-order .custom-icon-close {
    display: none;
  }
}

.custom-file {
  margin-top: 22px;
}
.rd-button-upload {
  position: relative;
  border: 1px dashed #cad3ec;
  border-radius: 16px;
  padding: 16px 21px;
  transition: 0.3s;
  background: #eceff3;
  transition: all 0.2s linear;
  display: flex;
  gap: 10px;
  width: 100%;
}
.rd-button-upload:hover {
  border-color: #cad3ec;
}

.button-upload-text {
  font-size: 16px;
  color: #000000;
  text-align: left;
  line-height: 1;
}
.button-upload-text > span {
  font-size: 14px;
  color: #5a688e;
  display: block;
  margin-top: 4px;
}

/* Лоадер */
.upload-status {
  position: relative;
  border: 2px dashed #cad3ec;
  border-radius: 16px;
  padding: 16px 21px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #000000;
  font-size: 16px;
  gap: 10px;
  background: #eceff3;
}
.loader {
  width: 24px;
  height: 24px;
  border: 3px solid transparent;
  border-top-color: #ff4277;
  border-right-color: #ff4277;
  border-bottom-color: #ff4277;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Превью */
.upload-preview {
  text-align: left;
  display: flex;
  gap: 8px;
  position: relative;
  background-color: #eceff3;
  border-radius: 16px;
  padding: 16px 21px;
  flex-wrap: wrap;
}
.upload-preview:last-child {
  margin-bottom: 16px;
}
.preview-img {
  position: relative;
  display: inline-block;
}
.preview-img img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}
.remove-upload {
  border-radius: 16px;
  height: 48px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: #fff;
  border: none;
  outline: none;
  transition: all 0.2s linear;
}
.remove-upload:hover {
  transform: translateY(-4px);
}
.file-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  width: 100%;
}
.file-info .file-name {
  font-size: 16px;
  color: #5a688e;
  margin-top: 8px;
}

.print-size-select {
  position: relative;
  display: inline-block;
  flex: 1;
  height: 48px;
}

.custom-select-wrap {
  position: relative;
  width: 100%;
}

.custom-select-button {
  padding: 14px 16px;
  background-color: #fff;
  color: #000;
  border-radius: 16px;
  font-size: 16px;
  appearance: none;
  cursor: pointer;
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s linear;
  border: none;
  outline: none;
}
.custom-select-button.open .custom-select-arrow {
  transform: rotate(180deg);
}

/* При наведении */
.custom-select-white:hover {
  border-color: #999;
}
.custom-select-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 50;
  padding: 0;
}

.custom-select-button.open + .custom-select-list, .custom-select-list[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-list li {
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  background: none !important;
}

.custom-select-list li:hover {
  background: #f3f3f3;
}

.custom-select-list li.selected {
  background: #eee;
  font-weight: 600;
}

.custom-select-list small {
  color: #7b87a6;
  font-size: 14px;
  margin-left: 10px;
}

.option-value small {
  color: #7b87a6;
  font-size: 14px;
  margin-top: 4px;
  display: block;
}

.option label:hover input + span > small,
.option input:checked + span > small {
  color: #fff !important;
}

.quick-title {
  font-size: 28px;
  color: #000000;
  margin-bottom: 24px;
  padding: 0;
  text-align: left;
  font-family: "GTEestiPro", sans-serif;
  line-height: 1;
}

@media screen and (max-width: 500px) {
  .quick-title {
    margin-top: 0;
    margin-bottom: 32px;
  }
}
.custon-header {
  display: contents;
}
.custon-header-info {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
}
@media screen and (max-width: 767px) {
  #modal-quick-order .custon-header-info .model-prod:not(.art) {
    display: none;
  }
}

.model-prod.art > a {
  color: #7b87a6;
  font-size: 16px;
  text-decoration: none !important;
}

#modal-quick-order .input-option {
  position: static;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#modal-quick-order.tovar-right .form-group .input-option.has-error {
  border: 1px solid #f24d68;
  border-radius: 16px;
  padding: 10px 10px 14px 10px;
  margin-inline: -10px;
}

.custom-red-btn {
  background-color: #f24d68;
  line-height: 20px;
  padding: 16px 24px;
  border: none;
  outline: none;
  border-radius: 16px;
  transition: all 0.2s linear;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;

}

.custom-red-btn:hover {
  background-color: #db3953;
}
.custom-red-btn:active {
  transform: scale(0.98);
}
.custom-red-btn:disabled {
  color: #5a688e;
  background-color: #f3f5f7;
  cursor: not-allowed;
}

.custom-grey-btn {
  background-color: #EFF3F7;
  font-size: 16px;
  line-height: 20px;
  padding: 16px;
  border: none;
  outline: none;
  border-radius: 16px;
  transition: all 0.2s linear;
  font-weight: 400;
  color: #22313C;
}
.custom-grey-btn:hover {
    background-color: #F3F5F7;
}
.custom-grey-btn:active {
  transform: scale(0.98);
}
.add_to_cart_btn.custom-red-btn {
  height: 52px;
}
.add_to_cart.custom-red-btn {
  background-color: #f24d68 !important;
}
.add_to_cart.custom-red-btn:hover {
  background-color: #f24d68 !important;
}

.custom-product-card-bottom {
  position: absolute;
  left: -4px;
  width: calc(100% + 8px);
  background: #fff;
  z-index: 10;
  padding: 20px 30px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0px 24px 39px 0px #1c2a3d0f;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.1s linear;
}

.quick_order-content {
  display: grid;
  grid-template-columns: 344fr 478fr;
  gap: 16px;
}
@media screen and (max-width: 767px) {
  .quick_order-content {
    grid-template-columns: 1fr;
  }
}

.quick_order-content .textarea-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.quick_order-content .form-group {
  margin-bottom: 0;
}

.quick_order-content .textarea-group .custom-input {
  margin-top: 15px;
  max-height: 100%;
  flex-grow: 1;
}

/* Общие стили форм */

.rd-form-container {
  padding: 24px;
  background-image: url("/image/form-bg.webp");
  background-size: cover;
  background-position: center;
  border-radius: 40px;
  display: grid;
  gap: 16px;
  grid-template-columns: 390fr 745fr;
  margin: 40px 0;
  background-color: #F3F5F7;
}

@media screen and (max-width: 991px) {
  .rd-form-container {
    grid-template-columns: 1fr;
    gap: 32px;
    background-color: #fff;
    background-image: none;
    border-radius: 24px;
  }
  .rd-form-container .custom-red-btn {
    width: 100%;
  }
}

.custom-input-wrapper {
  position: relative;
}

.custom-input-wrapper .custom-placeholder {
  position: absolute;
  top: 16px;
  left: 20px;
  color: #5a688e;
  pointer-events: none;
  transition: all 0.2s ease;
  font-size: 16px;
}
.custom-input-wrapper .custom-placeholder span {
  color: #f24d68;
}
.custom-input-wrapper .custom-placeholder.hidden {
  display: none;
}
.form-control.custom-input {
  background-color: #eceff3;
  color: #5a688e;
  font-size: 16px;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 0;
  border: none;
  box-shadow: none;
  margin: 0;
  min-height: 52px;
}
.custom-input::placeholder {
  color: #5a688e;
  font-size: 16px;
}

/* блок с информацией о форме */

.rd-form-header {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}
.rd-form-title {
  padding: 0;
  margin: 0;
  color: #000000;
  font-size: 48px;
  font-weight: 400;
  font-family: GTEestiPro, sans-serif;
  line-height: 1;
}

.rd-form-description {
  color: #5a688e;
  font-size: 16px;
  line-height: 24px;
  flex-grow: 1;
}

@media screen and (max-width: 1199px) {
  .rd-form-header {
    padding: 32px 0;
  }
}

@media screen and (max-width: 991px) {
  .rd-form-header {
    padding: 0;
  }
}

@media screen and (max-width: 600px) {
  .rd-form-header {
    gap: 8;
  }
  .rd-form-title {
    font-size: 28px;
  }
  .rd-form-description {
    line-height: 20px;
    margin-bottom: 16x;
  }
}

/* контент формы */

.rd-form-subtitle {
  padding: 0;
  margin: 0;
  margin-bottom: 16px;
  color: #000000;
  font-size: 20px;
  font-weight: 400;
  font-family: GTEestiPro, sans-serif;
  line-height: 1;
}

.rd-form-content {
  background-color: #fff;
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rd-form-info-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rd-form-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  display: grid;
}

.rd-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rd-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

textarea.custom-input {
  width: 100%;
  height: 120px;
}
@media (max-width: 1199px) and (min-width: 992px) {
.rd-form-grid-3 {
    grid-template-columns: 1fr 1fr; 
  }

  .rd-form-grid-3 > :nth-child(3) {
    grid-column: span 2;
  }
}

@media screen and (max-width: 991px) {
  .rd-form-content:not(#callback .rd-form-content) {
    padding: 0;
    border-radius: 0;
  }
}
@media screen and (max-width: 600px) {
  .rd-form-subtitle {
    display: none;
  }
  .rd-form-grid-3,
  .rd-form-grid-2 {
    grid-template-columns: 1fr;
  }
  textarea.custom-input {
    height: 160px;
  }
}
/* Чекбоксы */

.rd-form-agreements {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-input-wrapper.checkbox {
  display: flex;
  margin: 0;
}

.custom-input-wrapper.checkbox .checkbox-label {
  padding-left: 16px;
  color: #5a688e;
  font-size: 16px;
  line-height: 20px;
  margin-top: 2px;
}

.custom-input-wrapper.checkbox .checkbox-label a {
  color: #5a688e;
  text-decoration: underline;
  transition: color 0.2s linear;
}
.custom-input-wrapper.checkbox .checkbox-label a:hover {
  text-decoration: underline;
  color: #f24d68;
}

@media screen and (max-width: 768px) {
  .custom-input-wrapper.checkbox .checkbox-label {
    font-size: 14px;
    margin-top: 0;
  }
}

.custom-input-wrapper.checkbox input[type="checkbox"].custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 8px;
  background-color: #eceff3;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  outline: none;
  transition: all 0.2s linear;
}

.custom-input-wrapper.checkbox input[type="checkbox"].custom-checkbox:checked {
  background-color: #ff4277;
  position: relative;
}

.custom-input-wrapper.checkbox input[type="checkbox"].custom-checkbox::after {
  content: "";
  width: 10px;
  height: 10px;
  display: none;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("/catalog/view/theme/unishop/image/icon/check-icon.svg");
  outline: none;
  transition: all 0.2s linear;
}
.custom-input-wrapper.checkbox
  input[type="checkbox"].custom-checkbox:checked::after {
  display: block;
}

.custom-input-wrapper.checkbox:hover input[type="checkbox"].custom-checkbox {
  background-color: #ff4277;
}

.custom-input-wrapper.checkbox:hover
  input[type="checkbox"].custom-checkbox::after {
  display: block;
}

/* ссылки на мессенджеры */

.rb-form-messanger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media screen and (max-width: 380px) {
  .rb-form-messanger {
    grid-template-columns: 1fr;
  }
}
.rb-messanger-link {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #fff;
  border-radius: 24px;
  transition: all 0.2s linear;
  outline: none;
  cursor: pointer;
}

a.rb-messanger-link {
  outline: none;
}

.rb-messanger-link-text {
  margin: 0;
  color: #1f222d;
  font-size: 18px;
  font-weight: 400;
  font-family: GTEestiPro, sans-serif;
  line-height: 1;
  z-index: 1;
}

.rb-messanger-link-icon {
  z-index: 1;
  min-width: 24px;
  width: 24px;
  aspect-ratio: 1/1;
}
@media screen and (max-width: 991px) {
  .rb-messanger-link {
    flex-direction: row;
    align-items: center;
    background-color: #f3f5f7;
    border-radius: 16px;
  }
}
@media screen and (max-width: 600px) {
  .rb-messanger-link {
    padding: 12px 16px;
  }
}
/* ссылка макс */
.rb-max-text {
  background: linear-gradient(32deg, #4bc3fd, #8d4ae5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}
.rb-messanger-link.max {
  position: relative;
  overflow: hidden;
}
.rb-messanger-link.max::before {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 100%;
  height: 100%;
  background: linear-gradient(32deg, #4bc3fd, #8d4ae5);
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.2s linear;
}

.rb-messanger-link.max:hover::before {
  opacity: 1;
}

.rb-messanger-link.max:hover .rb-messanger-link-text,
.rb-messanger-link.max:hover .rb-max-text {
  color: #fff;
}

.rb-messanger-link.max:hover .rb-messanger-link-icon path {
  fill: #fff;
}

/* ссылка телеграм */
.rb-tg-text {
  color: #4da5f2;
}

.rb-messanger-link.tg:hover {
  background-color: #4da5f2;
}
.rb-messanger-link.tg:hover .rb-messanger-link-text,
.rb-messanger-link.tg:hover .rb-tg-text {
  color: #fff;
}

.rb-messanger-link.tg:hover .rb-messanger-link-icon path {
  fill: #fff;
}

/* блок или */

.rd-form-or {
  display: none;
}

@media screen and (max-width: 991px) {
  .rd-form-or {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .rd-form-or::before,
  .rd-form-or::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background-color: #eceff3;
    display: block;
  }
  .rd-form-or-text {
    color: #5a688e;
    font-size: 16px;
    line-height: 20px;
  }
}

/* ошибки форм */

.form-error {
  color: #ff4848;
  font-size: 14px;
  margin-bottom: 14px;
  display: none;
  margin-top: 4px;
}

.input-error {
  color: #ff4848;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}
form.error .form-error {
  display: block;
}
.custom-input-wrapper.error .custom-input {
  border: 1px solid #fc5208;
}
.custom-input-wrapper.error .custom-checkbox {
  border: 1px solid #fc5208;
}
.custom-input-wrapper.error .input-error, .input-option.error .input-error {
  display: block;
}

/* модальное окно */

.rd-modal-wrapper {
  height: 100dvh;
  width: 100dvw;
  background-color: #22313c99;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 50px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s linear;
}
.rd-modal-wrapper.active {
  opacity: 1;
  pointer-events: all;
}

.rd-modal {
  background-color: #eceff3;
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.3s linear;
}
.rd-modal-content {
  max-height: calc(100dvh - 300px);
  overflow-y: auto;
}
@media screen and (max-width: 768px) {
  .drug-n-drop-modal.rd-modal-wrapper .rd-modal {
    transform: translateY(100%);
  }
  .drug-n-drop-modal.rd-modal-wrapper.active .rd-modal {
    transform: translateY(0);
  }

  .rd-modal-content {
    max-height: calc(100dvh - 150px);
  }
}
.rd-modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s linear;
  border: none;
  outline: none;
}
.rd-modal-close:hover {
  background-color: #eff3f7;
}
.rd-modal-close:active {
  transform: scale(0.98);
}
/* модальное окно подтверждения отправки формы */

.success-image {
  max-width: 102px;
  align-self: center;
}

.success-content {
  padding: 16px;
}
.success-title {
  color: #000000;
  font-size: 28px;
  line-height: 1;
  text-align: center;
  margin-bottom: 12px;
}

.success-text {
  color: #5a688e;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  margin-bottom: 0;
}
@media screen and (max-width: 600px) {
  .success-title {
    font-size: 20px;
    margin-bottom: 8px;
  }
}

/* форма Заказ звонка в модалке */

.rd-modal-wrapper.drug-n-drop-modal .rd-modal {
  padding: 0;
  width: 897px;
  max-width: 90%;
}

.rd-modal-header {
  padding: 32px 32px 0 32px;
}
.rd-modal-header .rd-form-title {
  text-align: center;
}
.rd-modal-buttons {
  position: absolute;
  right: 0;
  bottom: -64px;
  display: flex;
  gap: 8px;
}

#callback .rd-form-info,
#callback .rd-form-agreements, 
#callback .form-error {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

#callback .rd-form-agreements {
  gap: 24px;
}

.drug-btn {
  display: none;
}

@media screen and (max-width: 600px) {
  .rd-modal-wrapper.drug-n-drop-modal {
    padding: 0;
    display: block;
  }
  .rd-modal-wrapper.drug-n-drop-modal .rd-modal {
    width: 100%;
    max-width: 100%;
    background-color: #ffffff;
    padding: 28px 24px;
    position: absolute;
    bottom: 0;
    border-radius: 24px 24px 0 0;
  }
  .rd-modal-buttons {
    position: static;
  }
  .rd-modal-buttons .custom-close,
  #callback .rd-modal-close {
    display: none;
  }
  .rd-modal-buttons .custom-red-btn {
    width: 100%;
  }

  #callback .rd-form-content {
    padding: 0;
  }
  #callback .rd-modal-header {
    padding: 0;
  }
  .drug-btn {
    display: block;
    height: 28px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
  }
  .drug-btn-line {
    height: 4px;
    width: 45px;
    border-radius: 20px;
    margin-inline: auto;
    margin-top: 16px;
    display: block;
    background-color: #cdd6e1;
  }
  #callback .rd-form-agreements {
    margin-top: 16px;
  }
}

.close-menu {
  padding: 18px;
  width: 100%;
}
.previews-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}