﻿/* --- Root variables --- */
:root {
    /* Брендовые */
    --brand: #0b3b5c;
    --accent: #0f6b9a;
    --danger: #dc3545;
    /* Цвета интерфейса */
    --bg: #f6f8fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #6b7280;
    --inverse: #ffffff;
    /* Спец */
    --highlight: #fff176;
    --footer-bg: #0b1220;
    --footer-text: #dfeeff;
    /* Эффекты */
    --shadow: 0 6px 18px rgba(16,24,40,0.06);
    --border: rgba(15,23,42,0.06);
    --focus: rgba(15,107,154,0.12);
}

/* --- Base resets --- */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    transition: background .3s ease, color .3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Элегантный шрифт для заголовков === */
h1, h2, h3, .navbar-brand, .nav-link {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

a {
    color: var(--brand);
    text-decoration: none;
}

/* --- Topbar --- */
.topbar {
    background: linear-gradient(90deg, var(--brand), var(--accent));
    color: var(--inverse);
    padding: .35rem 0;
    font-size: .9rem;
}

    .topbar .contact-quick a {
        color: inherit;
    }

/* --- Skip link --- */
.skip-link {
    position: absolute;
    left: -9999px;
}

.visually-hidden-focusable:focus {
    position: static;
    left: auto;
}

/* --- Navbar --- */
header {
    background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.navbar {
    background: transparent !important;
    border: none !important;
    padding: .6rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}

.logo-img {
    height: 100px;
    max-height: 140px;
    width: auto;
    margin-bottom: .5rem;
}

header h1 {
    font-size: 1.25rem;
}

header p.small {
    font-size: 0.9rem;
}

@media (min-width: 1200px) {
    .logo-img {
        height: 120px;
    }

    header h1 {
        font-size: 1.5rem;
    }
}

.brand-title {
    font-weight: 700;
    color: var(--brand);
}

.brand-sub {
    color: var(--muted);
}

.navbar-collapse {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    gap: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

    .navbar-nav .nav-link {
        color: var(--inverse) !important;
        padding: .6rem 1rem;
        border-radius: 6px;
        transition: all .25s ease;
    }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            background: rgba(255,255,255,0.15);
            color: #fff !important;
        }

/* --- Кнопка-бургер --- */
.navbar-toggler {
    border: none;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: .35rem .6rem;
}

/* --- Search & Lang --- */
.search-lang {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: 1rem;
}

    .search-lang form {
        flex-grow: 1;
        max-width: 400px;
    }

    .search-lang input[type="search"] {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.4rem 0.6rem;
    }

    .search-lang .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.85rem;
    }


/* --- Dropdown Language Switch --- */
.dropdown .btn-lang {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.25s ease;
}

    .dropdown .btn-lang:hover,
    .dropdown .btn-lang:focus {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.dropdown-item:hover {
    background: var(--accent);
    color: #fff;
}




/* --- Lists --- */
ul li {
    margin: .35rem 0;
}

.list-unstyled li a {
    color: var(--brand);
}

.card .list-unstyled li {
    padding: .2rem 0;
    border-bottom: 1px dashed var(--border);
}

/* --- Footer --- */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

    .footer a {
        color: var(--footer-text);
    }

        .footer a:hover {
            color: #fff;
            text-decoration: underline;
        }

/* --- Effects, hovers & animations --- */
a:hover {
    color: var(--accent);
}

.btn {
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

    .btn:hover {
        transform: scale(1.05);
    }

    .btn:active {
        transform: scale(0.97);
    }

a:focus, button:focus, input:focus {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 6px;
}

/* --- Анимации --- */
@keyframes bounce-fade {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce-scale {
    0%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }

    70% {
        transform: translateY(3px);
    }
}

.marker-animate {
    animation: bounce-fade 0.6s ease;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .topbar .contact-quick {
        display: none;
    }

    .hero {
        padding: 2rem 0;
    }

    #map {
        height: 300px;
    }

    .navbar-toggler {
        margin: 0 auto 1rem;
    }

    .navbar-collapse {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: .75rem;
        text-align: center;
    }

    .search-lang {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: .5rem;
        margin-left: 0;
    }

        .search-lang form {
            width: 100%;
            max-width: 400px;
        }

        .search-lang input[type="search"] {
            text-align: center;
        }
}

/* --- Вращающийся логотип --- */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin-logo {
    display: inline-block;
    animation: spin 20s linear infinite;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.legal-section h2 {
    font-size: 2.5rem;
}

.legal-section .card {
    background-color: #f9fbfd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .legal-section .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

#siteSearch {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: .35rem .6rem;
    margin-bottom: .4rem;
    background: #fff; /* белый фон */
    color: #000; /* черный текст */
    font-size: 0.9rem; /* чтобы текст был читаемым */
}

.search-dropdown {
    display: block; /* всегда в потоке, но скрываем через прозрачность */
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.1);
    padding: .5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 220px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all .25s ease;
}

    .search-dropdown.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .search-dropdown input[type="search"] {
        width: 100%;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: .35rem .6rem;
        margin-bottom: .4rem;
    }

#searchBtn i {
    color: #fff !important;
    font-size: 1rem; /* можешь увеличить, например 1.2rem */
}
