.modal-header{
    border-bottom: none;
}
#callModal {

}
#callModal .btn-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #464444a1;
    font-size: 8px;
    font-weight: bold;
    margin-top: 2px;
    margin-right: 2px;
}
.modal-body {
    padding: 0 40px 20px;
    display: flex;
    flex-direction: column;

}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


.custom-input {
    width: 100%;
    height: 50px;
    border-radius: 30px;
    border: 1px solid #919191a1;

    font-size: 16px;
    font-weight: 500;
    color: black;

    padding: 20px;
}

.custom-input:focus {
    border: 1px solid #2d2d2d;
    color: black;
}
.form-btn {
    width: 100%;
    height: 50px;
    border-radius: 30px;
    border: none;
    background-color: #2d2d2d;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
}
.form-btn:hover {
    opacity: 0.8;

}
.modal-content {
    border-radius: 30px;
    border: 1px solid #919191a1;
    box-shadow: 0 0 10px 0 #000000a1;
}
.modal-header h5{
    font-size: 30px;
    font-weight: 600;
    color: #58575771;
    text-align: center;
    padding-left: 24px;
    opacity: 0.2;
    text-transform: uppercase;
}
.form-error{
    font-size: 12px;
    font-weight: 400;
    color: rgb(208, 17, 17);
    line-height: 1;
}
.error-name{
    display: none;
}
.error-phone {
    display: none;
}
.modal-content p {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    color: rgb(89, 88, 88);
    text-align: center;
}
.modal-content p a{
    color: #2d2d2d;
    font-weight: 500;
    text-decoration: underline;
}
.modal-form{
    display: flex;
    flex-direction: column;

    margin-top: 20px;
}
.input-error {
    border: 1px solid #cf0505;
    color: #cf0505;
}







/*** Main Block ***/
.main-block-wrap {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
}
.main-block-content {
    display: flex;
    flex-direction: column;
}
.main-block-top {
    position: relative;
}
.main-block-top-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;

}

.main-block-top::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #151415;
    opacity: 0.1;
}
.main-block-top-list-item {
    list-style: none;
    padding: 3px 20px;
    border-radius: 10px;
    background-color: transparent;
    font-size: 14px;
    font-weight: 400;
    color: #151415;
    transition: all 0.4s ease-in-out;
}
.main-block-top-list-item a {
    text-decoration: none;
    color: #151415;
    font-size: 14px;

}
.main-block-top-list-item a:hover {
    color: #2d2d2d;
    opacity: 0.8;
}
.main-block-top-list-item:first-child {
    background-color: #FB5B32;
}
.main-block-top-list-item:first-child a {
    color: white
}
.main-block-top-list-item:first-child:hover {
    background-color: #0058C6;
}
.main-block-top-list-item:first-child a {
    color: white
}

.main-block-bottom {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 80px 2% 2%;
    max-height: 550px;
    height: 100%;
}
.main-block-bottom-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    padding-right: 5%;
    position: relative;
}
.main-block-bottom-content a {
    width: fit-content;
}
.main-block-bottom-content h1 {
    font-size: 37px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: none;
    padding-right: 20%;
}
.main-block-bottom-content h3 {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 400;
    text-transform: none;
    padding-right: 10%;
}
.main-block-bottom-content p {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 400;
}
.main-block-bottom-image {
    width: 50%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    height: 100%;
    max-height: 450px;
}

.main-block-bottom-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.main-block-drawing-background{
    position: absolute;
    top: -60px;
    right: 30px;
    width: 100px;
    opacity: 0;
    animation: fadeDown 0.9s ease-out forwards,
               float 4s ease-in-out infinite 1s;
}

@keyframes fadeDown {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.main-block-top-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;

    overflow-x: auto;      /* включает скролл */
    white-space: nowrap;   /* элементы в одну линию */
    -webkit-overflow-scrolling: touch; /* мягкий скролл на iPhone */
    scrollbar-width: none;  /* скрыть скроллбар для Firefox */
}

.main-block-top-list::-webkit-scrollbar {
    display: none;          /* скрыть скроллбар для Chrome/Safari */
}

.main-block-top-list-item {
    flex-shrink: 0;         /* не дает элементам сжиматься */
}





/*** RESPONSIVE  START  ***/
  @media (max-width: 1199px) {
    .main-block-bottom-content {
        padding-right: 0;
    }
    .main-block-bottom-content h1{
        font-size: 24px;
    }
    .main-block-bottom-content h3 {
        font-size: 16px;
    }

    .main-block-bottom-content p {

    }


  }

  @media (max-width: 767px) {
    .complex-desc-row{
        flex-wrap: wrap;
    }
    .main-block-bottom{
        flex-direction: column;

    }

    .main-block-bottom-content  {
        width: 100%;
        z-index: 2;
    }

    .main-block-bottom {
        max-height: 100%;
    }
    .main-block-bottom-image {
        width: 100%;
    }
    .main-block-drawing-background{
        top: -20px;
        right: -10px;
        width: 80px;
    }
    @keyframes fadeDown {
        0% {
            transform: translateY(-20px);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
            z-index: 1;
        }
    }



  }
  @media (max-width: 575px) {

    .main-block-bottom-content h1{
        font-size: 22px;
    }
    .main-block-bottom-content h3 {
        font-size: 14px;
    }

    .main-block-bottom-content p {
        font-size: 12px;
        line-height: 1.5;
    }


  }
/*** RESPONSIVE  END  ***/
