@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: local('Roboto'), url('../fonts/Roboto/Roboto-Light.ttf') format('opentype');
}
p {
    font-family: 'Roboto', sans-serif;
}
.card {
    border-radius: 5px;
    border: none;
    transition: 0.3s transform cubic-bezier(0.155, 1.105, 0.295, 1.12), 0.3s box-shadow,
        0.3s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
}

.card:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}
.carousel-control-prev,
.carousel-control-next {
    width: 1em;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .carousel-item {
        margin-right: 0;
        flex: 0 0 50%;
        display: block;
    }

    .carousel-inner {
        display: flex;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 3em;
        height: 3em;
        background-color: #fff;
        border-radius: 50%;
        box-shadow: 2px 6px 8px 0 rgba(22, 22, 26, 0.18);
        position: relative;
        opacity: 1;
    }
}

.call-o-button {
    color: #212529;
}
.call-o-button:hover {
    background-color: #406e74;
    color: #ffffff;
    transition: 0.3s;
}

.contact_form {
    background-color: #f8f9fa;
}

.contact_form .form-control:focus {
    border-color: #87a9b4;
    box-shadow: 0 0 0 0.25rem rgba(135, 169, 180, 0.25);
}

.contact_form .btn-primary {
    border-color: #406e74;
    background-color: #406e74 !important;
}

.contact_form .btn-primary:hover {
    background-color: #355b61 !important;
}

.reviews {
    background-color: #f8f9fa;
}


.reviews .leave-review-btn {
    background-color: #406e74;
    color: #ffffff;
    transition: 0.3s;
    margin-top: 20px;
}

.reviews .leave-review-btn:hover {
    background-color: #355b61;
}

.review-form-container {
    display: none;
    margin-top: 30px;
}

.review-form-container__wrap {
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    width: 100%;
    position: relative;
}

.review-form-container.show {
    display: block;
}

.review-form .form-control:focus {
    border-color: #87a9b4;
    box-shadow: 0 0 0 0.25rem rgba(135, 169, 180, 0.25);
}

.review-form-title {
    margin-bottom: 20px;
    font-weight: bold;
}

.review-avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #e9ecef;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.review-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Кнопка закрытия формы отзыва */
.review-form-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #888;
    border-radius: 50%;
    transition: all 0.3s;
}

.review-form-close:hover {
    background-color: #f0f0f0;
    color: #406e74;
}
