﻿html {
    font-size: 14px;
    overflow-y: scroll;
}

@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: 0;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}




.site-footer {
    background-color: #0d6efd;
    color: white !important;
    padding: 20px 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    margin: 0;
}

    .site-footer a {
        color: white !important;
    }

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1 1 200px;
}

    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-column ul li {
            margin-bottom: 6px;
        }

    .footer-column a {
        color: white;
        text-decoration: none;
        transition: opacity 0.2s;
    }

        .footer-column a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

/* Форма и соцсети */
.form-column {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.question-form textarea,
.question-form input {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius:10px;
    font-size: 13px;
    resize: none;
}

.question-form button {
    background-color: white;
    color: #0d6efd;
    border: none;
    border-radius: 10px;
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: fit-content;
    margin-top: 20px;
}

    .question-form button:hover {
        background-color: #006ca8;
        color: white;
    }

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 5px;
   
}

    .social-icons a {
        color: white;
        font-size: 18px;
        transition: transform 0.2s;
    }

        .social-icons a:hover {
            transform: translateY(-2px);
        }

.footer-bottom {
    text-align: center;
    font-size: 15px;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.currency-flag {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    vertical-align: middle;
}

.language-switcher {
    margin-left: auto;
}

.navbar-second .nav-link {
    color: white !important;
}

    .navbar-second .nav-link:hover {
        text-decoration: underline;
    }





/* === 🔹 МОБИЛЬНЫЙ АДАПТИВ ШАПКИ (логотип слева, бургер справа) === */
@media (max-width: 991px) {
    header .navbar {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #e0e0e0;
        position: relative;
    }

    /* Контейнер выстраивается в одну линию: логотип слева, бургер справа */
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    /* Логотип слева */
    .navbar-brand {
        margin: 0;
        padding: 0;
        order: 1;
    }

        .navbar-brand img {
            height: 45px;
            width: auto;
        }

    /* Бургер справа */
    .navbar-toggler {
        order: 2;
        margin-left: auto;
        border: none;
        outline: none;
        padding: 0.25rem 0.5rem;
    }

    /* Меню занимает всю ширину и идёт ниже */
    #mainNavbar {
        width: 100%;
        background: #fff;
        border-radius: 10px;
        padding: 10px 0;
        margin-top: 10px;
    }

    /* Блок с кнопками, валютой и языком */
    .navbar .d-flex.align-items-center.ms-auto {
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    /* Валюта */
    .navbar .d-flex.align-items-center.me-5 {
        justify-content: center;
        gap: 2px;
        margin: 0 !important;
    }

        .navbar .d-flex.align-items-center.me-5 a {
            font-size: 13px;
            color: #0d6efd !important;

        }

    /* Язык */
    .dropdown button.btn {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        font-weight: 600;
        background-color: #f8f9fa;
    }

    .dropdown-menu {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }

    /* Кнопки входа и корзины */
    .btn.btn-outline-primary {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        font-size: 14px;
    }

        .btn.btn-outline-primary i {
            font-size: 18px;
        }

        /* Корзина */
        .btn.btn-outline-primary.position-relative .badge {
            top: 0;
            font-size: 11px;
        }

    /* Второе меню */
    .navbar-second {
        background-color: #0d6efd;
        text-align: center;
    }

        .navbar-second .nav {
            display: flex;
            flex-direction: column;
            padding: 10px 0;
            gap: 5px;
        }

        .navbar-second .nav-link {
            color: white !important;
            padding: 8px 0;
            border-radius: 8px;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.1);
            margin: 0 10px;
            transition: background 0.2s;
        }

            .navbar-second .nav-link:hover {
                background: rgba(255, 255, 255, 0.25);
            }

        .navbar-second .dropdown-menu {
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            margin-top: 5px;
        }

        .navbar-second .dropdown-item {
            font-size: 14px;
        }
}

/* === 🔹 МАЛЕНЬКИЕ ЭКРАНЫ (до 576px) === */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px;
    }

    .btn {
        font-size: 13px;
        padding: 6px 8px;
    }

    .navbar-second .nav-link {
        font-size: 13px;
        margin: 0 8px;
    }
}






/* === 🔹 МОБИЛЬНЫЙ АДАПТИВ ФУТЕРА === */
@media (max-width: 991px) {
    .site-footer {
        padding: 25px 10px;
        text-align: center;
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .footer-column {
        flex: 1 1 100%;
        text-align: center;
    }

        .footer-column h4 {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .footer-column ul li {
            font-size: 13px;
            line-height: 1.6;
        }

        .footer-column a {
            color: white;
            text-decoration: none;
        }

            .footer-column a:hover {
                text-decoration: underline;
            }

    /* Форма обратной связи */
    .form-column {
        width: 100%;
    }

    .question-form textarea,
    .question-form input {
        font-size: 13px;
        padding: 8px;
    }

    .question-form button {
        width: 100%;
        padding: 10px;
        font-weight: 600;
        border-radius: 10px;
        background-color: white;
        color: #0d6efd;
    }

        .question-form button:hover {
            background-color: #0b5ed7;
            color: white;
        }

    /* Логотип внизу */
    .footer-column .navbar-brand {
        justify-content: center;
        margin-top: 15px;
    }

    /* Низ футера */
    .footer-bottom {
        margin-top: 25px;
        font-size: 14px;
        border-top: 1px solid rgba(255,255,255,0.3);
        padding-top: 12px;
    }
}

@media (max-width: 576px) {
    .footer-column h4 {
        font-size: 14px;
    }

    .footer-column ul li {
        font-size: 12.5px;
    }

    .question-form textarea,
    .question-form input {
        font-size: 12px;
        padding: 7px;
    }

    .question-form button {
        font-size: 13px;
        padding: 8px;
    }

    .footer-bottom {
        font-size: 13px;
    }
}
