body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #030039;
}

body a {
    color: #5a9bd5;
}

header .logo img {
    max-width: 60px; /* Устанавливаем максимальную ширину */
    height: auto; /* Автоматическая высота для сохранения пропорций */
}

header .contact-info a {
    color: #030039;
    text-decoration: none;
}

header .contact-info a:hover {
    text-decoration: underline;
}

header .contact-info i {
    margin-right: 5px;
}

nav .nav-link {
    color: #030039;
    padding: 10px;
    text-decoration: none;
}

nav .nav-link:hover {
    color: #5a9bd5;
    background-color: #f8f9fa;
}

.navbar-toggler {
    border: none;
    background-color: transparent;
    outline: none;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%235a9bd5' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler-icon.cross {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%235a9bd5' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 4l22 22M4 26l22-22'/%3E%3C/svg%3E");
}

.menu-mobile {
    position: absolute !important;
    top: 50px !important;
    right: 0px !important;
    z-index: 10000 !important;
    padding: 5px;
}

.banner {
    position: relative;
    text-align: center;
    color: white;
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    animation: fade-in 3s forwards; /* Анимация затемнения */
}

.banner .slogan {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.0em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #eee;
    z-index: 2; /* Текст поверх затемненного слоя */
}

.banner .slogan > .font-size-medium {
    font-size: medium;
}

@keyframes fade-in {
    from {
        background-color: rgba(0, 0, 0, 0); /* Начальная прозрачность */
    }
    to {
        background-color: rgba(0, 0, 0, 0.5); /* Конечная прозрачность */
    }
}

@media (max-width: 768px) {
    .banner .slogan {
        font-size: 1.2em; /* Уменьшаем размер шрифта */
    }

    .banner .slogan > .font-size-medium {
        font-size: small; /* Уменьшаем размер шрифта для medium текста */
    }
}

@media (max-width: 576px) {
    .banner .slogan {
        font-size: 1.0em; /* Еще уменьшаем размер шрифта */
        top: 50%; /* Слегка опускаем текст, чтобы он был лучше виден */
    }

    .banner .slogan > .font-size-medium {
        font-size: smaller; /* Еще уменьшаем размер шрифта для medium текста */
    }
}

.content {
    padding: 20px;
    text-align: center;
}

footer {
    background-color: #f8f9fa;
    color: #030039;
    padding: 10px 20px;
}

.footer-menu {
    margin: 0;
}

.footer-link {
    margin: 0 10px;
    color: #030039;
    text-decoration: none;
}

.footer-link:hover {
    color: #5a9bd5;
    text-decoration: none;
}

.service-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 100%;
}

.service-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.service-icon i {
    color: #030039; /* Цвет иконок */
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    z-index: 99;
}

.scroll-to-top:hover {
    background-color: #0056b3;
}
