@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:100,100italic,300,300italic,regular,italic,500,500italic,700,700italic,900,900italic');

*{
    font-family: Rubik, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.carousel-item {
    height: 70vh;
    overflow: hidden;
}

.service-img{
    height: 20vh;
    overflow: hidden;
    width: 100%;
}

.service-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transform: scale(1.1);
    filter: brightness(50%) blur(3px);
}

.dropdown:hover>.dropdown-menu {
    display: block;
}

.dropdown>.dropdown-toggle:active {
    pointer-events: none;
}

.list-group-item:hover {
    background-color: #496AB0;
}

.carousel-item img {
    width: 100%;
    height: 70vh;
    max-height: 100%;
    object-fit: cover;
    filter: brightness(70%) blur(8px);
    transform: scale(1.1);
}

.short-info {
    min-height: 25vh;
}

.btn-primary {
    background-color: #496AB0;
    border:none;
}

.btn-primary:hover {
    background-color: #637cb2;
    border:none;
}

.btn-outline-primary {
    border-color: #496AB0;
    color: #496AB0;
}

.btn-outline-primary:hover {
    background-color: #496AB0;
    border-color: #496AB0;
}

.nav-link {
    color: #496AB0;
}

/*Анимация*/
.css-selector {
    background: linear-gradient(182deg,  #000000, #24314d, #000000);
    background-size: 600% 600%;

    -webkit-animation: AnimationName 14s ease infinite;
    -moz-animation: AnimationName 14s ease infinite;
    animation: AnimationName 14s ease infinite;
}

@-webkit-keyframes AnimationName {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
}
@-moz-keyframes AnimationName {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
}
@keyframes AnimationName {
    0%{background-position:50% 0%}
    50%{background-position:51% 100%}
    100%{background-position:50% 0%}
}

.nav-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid transparent;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    color: #4f60a5;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    background-color: rgba(79, 96, 165, 0.1);
    border-color: #4f60a5;
    color: #4f60a5;
}

.nav-tabs .nav-link.active {
    color: #fff;
    background-color: #4f60a5;
    border-color: #4f60a5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tab-content {
    border-top: 1px solid transparent;
}

.tab-content .tab-pane {
    padding-top: 20px;
}

@media (max-width: 768px) {
    .nav-tabs {
        display: block;
        text-align: center;
    }
    .nav-tabs .nav-link {
        display: block;
        margin-bottom: 10px;
    }
    .tab-pane {
        display: none;
    }
    .tab-pane.show {
        display: block;
    }
    .tab-content {
        padding-top: 20px;
    }
}

.list-group-item {
    transition: background-color 0.3s ease;
}

.list-group-item:hover {
    background-color: #4f60a5;
    color: #fff;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #4f60a5;
    color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    justify-content: center;
    text-align: center;
}

.modal-title {
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.modal-body a {
    color: #4f60a5;
    font-weight: bold;
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

.form-floating label {
    color: #6c757d;
}

.form-control:focus {
    border-color: #4f60a5;
    box-shadow: 0 0 0 0.2rem rgba(79, 96, 165, 0.25);
}

/*Bottom sheet*/
:root {
    --bottom-sheet-bg-light: rgba(255, 255, 255, 0.95);
    --bottom-sheet-bg-dark: #212529;
    --bottom-sheet-text-light: #000;
    --bottom-sheet-text-dark: #fff;
}

.bottom-sheet {
    position: fixed;
    left: 50%;
    bottom: -100%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: var(--bottom-sheet-bg-light);
    color: var(--bottom-sheet-text-light);
    transition: bottom 0.6s ease, background-color 0.3s ease, color 0.3s ease;
    border-radius: 16px 16px 0 0;
    max-height: 80%;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1050;
}

[data-bs-theme="dark"] .bottom-sheet {
    background-color: var(--bottom-sheet-bg-dark);
    color: var(--bottom-sheet-text-dark);
}

.bottom-sheet.show {
    bottom: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

.bottom-sheet h2 {
    font-weight: 500;
    font-size: 32px;
    margin-bottom: 20px;
}

.bottom-sheet p {
    font-size: 20px;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bottom-sheet img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.6s ease;
    visibility: hidden;
    z-index: 1040;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
    padding-right: 17px; /* Компенсация ширины полосы прокрутки */
}

/* Растягивает содержимое, чтобы компенсировать ширину полосы прокрутки */
body.body-fixed {
    padding-right: 17px;
}

