﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

/* Landing Page Carousel styles
-------------------------------------------------- */
.logos {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    white-space: nowrap;
    padding: 3rem 0;
}

    /*.logos::before,
    .logos::after {
        content: '';
        width: 300px;
        height: 100%;
        position: absolute;
        top: 0;
        z-index: 2;
    }*/

    .logos::before,
    .logos::after {
        content: '';
        width: 15vw; /* Адаптивная ширина */
        max-width: 200px; /* Ограничение на больших экранах */
        height: 100%;
        position: absolute;
        top: 0;
        z-index: 2;
        pointer-events: none; /* Чтобы не перекрывали клики */
    }

    .logos::before {
        left: 0;
        background: linear-gradient(to left, rgba(255, 255, 255, 0), #fff);
    }

    .logos::after {
        right: 0;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
    }

.logos-slide {
    display: inline-block;
    animation: slide 20s linear infinite;
}

.logos:hover .logos-slide {
    animation-play-state: paused;
}

.logos-slide img {
    height: 60px;
    margin: 0 50px;
    vertical-align: middle;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Custom font-face Size
-------------------------------------------------- */
.fs-1 {
    font-size: calc(1.375rem + 1.5vw) !important;
}

.fs-2 {
    font-size: calc(1.325rem + 0.9vw) !important;
}

.fs-3 {
    font-size: calc(1.3rem + 0.6vw) !important;
}

.fs-4 {
    font-size: calc(1.275rem + 0.3vw) !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.fs-6 {
    font-size: 1rem !important;
}

/* Custom Scrollbar
-------------------------------------------------- */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa; /* Светлый фон дорожки */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ffc107; /* Золотистый ползунок */
    border-radius: 10px;
    border: 3px solid #f8f9fa; /* Белая рамка вокруг */
}

    ::-webkit-scrollbar-thumb:hover {
        background: #ffca2c; /* Более светлый оттенок при наведении */
    }

/* 
-------------------------------------------------- */
.service-box {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    background-color: #000;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .service-box:hover {
        transform: scale(1.03);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    }

.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-shadow: 1px 1px 3px black;
    transition: background-color 0.4s ease;
}

.service-box:hover .overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

.service-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.service-text {
    font-size: 1rem;
}

/* 📱 Адаптив для экранов меньше 768px */
@media (max-width: 767.98px) {
    .service-box {
        height: 180px;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-text {
        font-size: 0.9rem;
    }
}

/* 📱 Ещё более узкие экраны, например iPhone SE */
@media (max-width: 480px) {
    .service-box {
        height: 150px;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-text {
        font-size: 0.8rem;
    }
}

/* 
-------------------------------------------------- */
.service-image-container {
    background-size: cover; /* Растягивает изображение с сохранением пропорций */
    background-position: center; /* Центрирует изображение */
    background-repeat: no-repeat; /* Отключает повторение */
    width: 100%; /* Занимает всю ширину родителя */
    height: 500px; /* Установите нужную высоту */
    display: flex; /* Для центрирования текста */
    align-items: center; /* Вертикальное центрирование */
    justify-content: center; /* Горизонтальное центрирование */
    border-radius: 12px;
}

.service-title0 {
    color: white; /* Белый текст для лучшей читаемости */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Тень для текста */
    padding: 20px; /* Отступы вокруг текста */
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    border-radius: 5px; /* Скругленные углы */
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .service-image-container {
        height: 300px; /* Уменьшаем высоту на мобильных */
    }

    .service-title {
        font-size: 1.5rem !important; /* Уменьшаем размер шрифта */
        padding: 15px; /* Уменьшаем отступы */
    }
}

@media (max-width: 576px) {
    .service-image-container {
        height: 250px; /* Еще меньше высота для очень маленьких экранов */
    }

    .service-title {
        font-size: 1.2rem !important; /* Еще меньше размер шрифта */
        padding: 10px; /* Еще меньше отступы */
    }
}

/* 
-------------------------------------------------- */
.bg-durtyyellow {
    background-color: #f5d584 !important;
}

/* 
-------------------------------------------------- */
.bg-telegramcolor {
    background-color: #27a7e7 !important;
}

/* 
-------------------------------------------------- */
.bg-whatsappcolor {
    background-color: #2cb742 !important;
}

/* 
-------------------------------------------------- */
.nav-link.activeyellow {
    color: #ffc107 !important; /* жёлтый */
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}

/* 
-------------------------------------------------- */
h1.fw-bold {
    font-size: clamp(2rem, 6vw, 6rem);
    text-shadow: 3px 3px 3px black;
}

/* 
-------------------------------------------------- */
.btn-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* для безопасности */
}

/* 
-------------------------------------------------- */
.hero-section {
    height: 90vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Ноутбуки (992px) */
@media (max-width: 992px) {
    .hero-section {
        height: 45vh !important; /* 992 / 1.68 ≈ 590px → 45vh */
    }
}

/* Планшеты (768px) */
@media (max-width: 768px) {
    .hero-section {
        height: 35vh !important; /* 768 / 1.68 ≈ 457px → 35vh */
        background-attachment: scroll !important;
    }
}

/* Мобильные (576px) */
@media (max-width: 576px) {
    .hero-section {
        height: 26vh !important; /* 576 / 1.68 ≈ 343px → 26vh */
        min-height: 300px !important; /* Фикс для узких экранов */
    }

        .hero-section h1 {
            font-size: 2rem !important;
        }
}

@media (max-width: 767.98px) {
    #logoContainer {
        margin-bottom: 10px; /* Отступ между логотипом и кнопкой на мобильных */
    }
}
