.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

/* Отображение модального окна и его контента */
.modal-content {
    background-color: #fefefe;
    margin: 25vh auto;
    /*padding: 20px;*/
    border: 1px solid #888;
    max-width: 40em;
    height: auto;

}
.modal-content-testimonias {
    background-color: #fefefe;
    margin: 25vh auto;
    /*padding: 20px;*/
    border: 1px solid #888;
    width: 60%;
    height: auto;
    border-radius: 5px;
}
.tariffs-info {

    margin: 5% auto ;
    width: 70%!important;
    height: 100vh!important;
}

/* Кнопка закрытия (крестик) */
.close-container {
    display: flex;
    width: 100%;
    justify-content: flex-end;
}
.close-container h3 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 10%;
    height: 100%;
    color: rgba(0, 0, 0, 0.54);
}
.close {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 10%;
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/*LOGIN CONTAINER*/
.login-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
}
/*.modal-restimonias-container {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 0.5rem;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*}*/
.login-img-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: auto;
}
.login-img-container span {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.51);
}
.register-link {
    display: flex;
    width: 70%;
    height: auto;
    justify-content: space-between;
}
.register-link a{
    color: whitesmoke;
    padding-left: 1%;
}
.login-button {
    display: flex;
    width: 100%;
    min-height: 30px;
    justify-content: center;
    border-radius: 15px;
    align-items: center;
}
.login-button input {
    min-height: 30px;
    min-width: 25%;
    background-color: whitesmoke;
    border: 1px solid #007bff;
    border-radius: 10px;
    padding: 0 20px;
}

.img-login {
    display: flex;
    justify-content: center;
    width:80%;
    height: 100%;
}
.login-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    height: 100%;
    border-radius: 10px 0px 0px 0px;
    background-color: #5e87eb;
    box-shadow: inset 1px 5px 100px #007bff;
}
.form-group-login {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 80%;
    height: 100%;
}
.form-headler {
    color: whitesmoke;
    font-size: 1.75rem;
}
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height:100%;
    border-radius: 10px;
    padding: 5% 0;
}
.comment-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height:100%;
    border-radius: 10px;
}
.form-group-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 90%;
    height: 50%;
}
.form-group-login input {
    width: 70%;
    height: 4vh;
    border-radius: 10px;
    padding-left: 1%;
    border: 2px solid #5e87eb;
    outline: 1px solid #007bff;
}
.form-group-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 90%;
    height: 50%;
}
.form-group-login-container {
    position: relative;
    width: inherit;
    display: flex;
    justify-content: center;
}
.form-group-login .form-group-login-container input {
    width: 70%;
    height: auto;
    border-radius: 10px;
    padding-left: 3%;
    padding-right: 13%;
    border: 2px solid #5e87eb;
    outline: 1px solid #007bff;
}



/*COMMENT - MODAL WINDOW*/
.modal-restimonias-container {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    border-radius: 10px!important;
}
.user-person-container{
  display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 3%;
}

.comment-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 50vh;
    border-radius:5px 0px 0px 0px;
    background-color: #5e87eb;
    box-shadow: inset 1px 5px 100px #007bff;
}
.form-group-comment {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    gap: 1rem;
    width: 90%;
    height: 70%;
}
.user-comment-textarea {
    display: flex;
    width: 100%;
    height: 80%;
    padding-left: 1%;
    border-radius: 5px;
    border: 2px solid white;
}
.user-comment-textarea:focus {
    border: 2px solid #611bdd;
    outline-color: #611bdd;
}
.user-person-image-container {
    width: 100%;
}
.user-person-name {
    display: flex;
    justify-content: center;
    width: 100%;
}
.user-person-name span {
   font-size: 1.3rem;
    border-radius: 15px;
    padding-left: 5%;
    padding-right: 5%;
    width: auto;
}
.testimonias-close {
    margin-right: 1%;
}
.validate-container {
    /*display: flex;*/
    display: none;
    width: 100%;
    margin-top: 1rem;
    justify-content: center;

    background-color: red;
}

.no-scroll {
    overflow-y: scroll; /* Разрешает видимость полосы прокрутки */
    position: fixed; /* Запрещает прокрутку страницы */
    width: 100%; /* Фиксирует ширину страницы */
    top: calc(-1 * var(--scroll-position)); /* Запоминает место прокрутки */
}
/* Tariffs modal */
#modaltar {
    overflow-y: auto;
    padding: 24px 12px;
}

#modaltar .tariffs-info {
    margin: 0 auto !important;
    width: min(980px, 100%) !important;
    max-width: min(980px, 100%) !important;
    max-height: calc(100dvh - 48px) !important;
    height: auto !important;
    border: 1px solid #d4d8e1;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    overflow-y: auto;
}

#modaltar .close-container {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 14px 0;
    background: #fefefe;
}

#modaltar .close {
    width: auto;
    float: none;
    margin-left: auto;
    padding: 0 6px;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    color: #7c879d;
    cursor: pointer;
}

#modaltar .row,
#modaltar .col-lg-10,
#modaltar .offset-lg-1,
#modaltar .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

#modaltar .container {
    padding: 0 22px 22px;
}

#modaltar .tarifs-headler {
    margin: 0;
    padding: 0 22px 10px;
}

#modaltar .tarifs-headler h1 {
    margin: 0;
    text-align: center;
    line-height: 1.4;
    font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem) !important;
}

#modaltar .row-1 {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

#modaltar .row-1-item {
    background-color: transparent;
}

#modaltar .row-1-item h6 {
    font-size: clamp(1rem, 0.92rem + 0.3vw, 1.2rem);
    text-align: center;
}

#modaltar .row-2-item {
    margin-top: 8px;
    text-align: center;
}

#modaltar .row-2-item p {
    margin: 0;
}

#modaltar .table-title-1 {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    background-color: #5f8fea;
    line-height: 1.35;
    text-align: left;
}

#modaltar .row-3-item {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(84px, 0.55fr) minmax(110px, 0.65fr);
    gap: 8px 14px;
    align-items: start;
    margin-top: 8px;
}

#modaltar .row-3-item-1 {
    width: auto;
}

#modaltar .row-3-item p {
    margin: 0;
    line-height: 1.45;
}

#modaltar .row-3-item > div:nth-child(2) {
    text-align: center;
    white-space: nowrap;
}

#modaltar .row-3-item > div:nth-child(3) {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 767px) {
    #modaltar {
        padding: 8px 4px;
    }

    #modaltar .tariffs-info {
        max-height: calc(100dvh - 16px) !important;
        border-radius: 10px;
    }

    #modaltar .close-container {
        padding: 4px 10px 0;
    }

    #modaltar .container {
        padding: 0 12px 16px;
    }

    #modaltar .tarifs-headler {
        padding: 0 12px 8px;
    }

    #modaltar .table-title-1 {
        font-size: 0.9rem;
    }

    #modaltar .row-3-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 10px;
    }

    #modaltar .row-3-item > div:first-child {
        grid-column: 1 / -1;
    }

    #modaltar .row-3-item > div:nth-child(2) {
        grid-column: 1 / 2;
        text-align: left;
    }

    #modaltar .row-3-item > div:nth-child(3) {
        grid-column: 2 / 3;
        justify-self: end;
    }
}
