html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    padding-top: 70px;
    background-color: #161616 !important;
    font-family: sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.navbar {
    background-color: #1E1F24 !important;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #2A2C33;
}

/* Открытие dropdown при наведении */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Чтобы стрелка выглядела активной */
.navbar-nav .dropdown:hover > .nav-link {
    color: #0d6efd; /* цвет Bootstrap primary */
}

.navbar-nav .nav-link {
    position: relative;
    color: #333 !important;
}

    /* Линия снизу */
    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 6px;
        height: 2px;
        background: #0d6efd;
        transform: scaleX(0);
        transition: transform 0.25s ease;
    }

    /* Показываем линию при hover */
    .navbar-nav .nav-link:hover::after {
        transform: scaleX(1);
    }

.navbar .nav-link {
    color: #B0B3B8 !important;
    transition: color 0.2s ease;
}

    .navbar .nav-link:hover {
        color: #FFFFFF !important;
    }

.navbar .navbar-brand {
    color: #FFFFFF !important;
}

.navbar .dropdown-menu {
    background-color: #2A2C33;
    border: none;
}

.navbar .dropdown-item {
    color: #B0B3B8;
}

    .navbar .dropdown-item:hover {
        background-color: #1E1F24;
        color: #FFFFFF;
    }

.navbar-logo {
    height: 40px; /* регулируешь под себя */
    width: auto;
}

.navbar-brand {
    display: flex;
    align-items: center; /* выравнивание по вертикали */
    padding: 0;
}

#callBackBtn {
    color: #E63946 !important;
    font-weight: 500;
}

    #callBackBtn:hover {
        color: #FFFFFF !important;
    }

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f1f3f5;
    color: #000;
}

.background {
    width: 100%;
    height: 100vh;
    background: linear-gradient( rgba(0,0,0,0.5), rgba(0,0,0,0.5) ), url('/images/background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

    .background h1 {
        font-size: 4rem;
        font-weight: bold;
    }

    .background p {
        font-size: 1.5rem;
    }

.why-icon {
    font-size: 2.5rem;
}

.why-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .why-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

.gradient-box {
    background: linear-gradient(135deg, #111, #333);
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

.messenger-btn {
    color: white;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 12px;
    min-width: 180px;
    transition: all 0.25s ease;
}

    /* Hover эффект */

    .messenger-btn:hover {
        transform: translateY(-3px);
        filter: brightness(1.1);
        color: white;
    }

/* Модалка */
.custom-modal {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 10px;
}

/* Инпуты */
.custom-input {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

    .custom-input:focus {
        border-color: #4c6ef5;
        box-shadow: 0 0 0 3px rgba(76,110,245,0.15);
    }

/* Кнопка */
.custom-btn {
    border-radius: 10px;
    padding: 12px;
    font-weight: 500;
    background: linear-gradient(135deg, #4c6ef5, #15aabf);
    border: none;
}

    .custom-btn:hover {
        opacity: 0.9;
    }

/* Разделитель */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

    .divider span {
        background: #fff;
        padding: 0 10px;
        color: #999;
        font-size: 14px;
    }

    .divider::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 1px;
        background: #eee;
        z-index: -1;
    }

/* Соц кнопки */
.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    transition: all 0.25s ease;
    text-decoration: none;
}

    /* Цвета */
    .social-btn.whatsapp {
        background: #25D366;
        color: #fff;
    }

    .social-btn.telegram {
        background: #0088cc;
        color: #fff;
    }

    .social-btn.viber {
        background: #665CAC;
        color: #fff;
    }

    /* Hover эффект */
    .social-btn:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

.contact-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: 0.3s;
}

    .contact-circle:hover {
        background-color: #0b5ed7;
        transform: translateY(-5px);
    }

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: 0.2s;
}

    .footer-link:hover {
        color: #ffffff;
        padding-left: 5px;
    }

.carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.gallery-card {
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    background: #1E1F24;
    transition: transform 0.3s ease;
}

    .gallery-card:hover {
        transform: scale(1.03);
    }

    .gallery-card img,
    .video-preview video {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

.video-preview {
    position: relative;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    opacity: 0.8;
}


/* Административная панель */
.login-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px #ddd;
}

.admin {
    color: white;
    max-width: 1200px;
    margin: auto;
    padding: 40px;
}

    .admin input,
    .admin textarea,
    .admin select {
        background: #1f2937 !important;
        color: white !important;
        border: 1px solid #444;
    }

    .admin label {
        color: white;
        margin-top: 20px;
        display: block;
    }

.service-row {
    display: grid;
    grid-template-columns: 3fr 1fr 150px;
    gap: 10px;
    margin-bottom: 12px;
}

button.logout, button.login {
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
}

.admin button:not(.logout) {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
}

    .admin button:hover {
        opacity: .9;
    }
