﻿/* --- 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;
}


/* --- Consumer Cards --- */
.consumer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #222;
    transition: all 0.3s ease;
    height: 100%;
}

    .consumer-card i {
        font-size: 2.2rem;
        margin-bottom: 15px;
        color: var(--accent, #0f6b9a);
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .consumer-card h5 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
    }

    .consumer-card:hover {
        background: linear-gradient(135deg, #1e3c72, #2a5298);
        color: #fff;
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

        .consumer-card:hover i {
            color: #fff;
            transform: scale(1.2);
        }

.div-emoji-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

.btn-lang {
    background: linear-gradient(135deg, var(--brand), var(--accent));
}
#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 */
}
/* =========================
   ИЕРАРХИЯ РУКОВОДСТВА
========================= */

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

/* Директор */
.org-director {
    display: flex;
    justify-content: center;
}

.org-card {
    background: var(--card);
    border-radius: 14px;
    padding: 22px 26px;
    width: 260px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .org-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 32px rgba(15,23,42,0.18);
        color: var(--brand);
    }

    .org-card h5,
    .org-card h6 {
        margin-bottom: 6px;
        font-weight: 700;
        font-family: "Montserrat", sans-serif;
    }

    .org-card span {
        font-size: 0.9rem;
        color: var(--accent);
        font-weight: 500;
    }

    /* Фото директора */
    .org-card.director {
        width: 320px;
    }

        .org-card.director img {
            width: 100%;
            height: 260px;
            object-fit: cover;
            border-radius: 12px;
            margin-bottom: 14px;
            border: 1px solid var(--border);
        }

/* Соединители */
.org-connector-vertical {
    width: 2px;
    height: 40px;
    background: linear-gradient(var(--accent), var(--brand));
}

.org-connector-horizontal {
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, var(--accent), var(--brand));
    margin-bottom: 28px;
}

/* Нижний ряд */
.org-row {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Адаптив */
@media (max-width: 992px) {
    .org-connector-horizontal {
        width: 2px;
        height: 30px;
        margin: 0 0 24px;
    }

    .org-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

.director-bio {
    background: var(--card);
    border-radius: 12px;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .director-bio:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    }

    .director-bio img {
        max-height: 260px;
        object-fit: cover;
        border-radius: 12px;
        border: 1px solid var(--border);
    }

    .director-bio h3,
    .director-bio h5 {
        font-family: "Montserrat", sans-serif;
    }

    .director-bio p {
        color: var(--text);
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .director-bio ul li a {
        color: var(--brand);
        text-decoration: none;
    }

        .director-bio ul li a:hover {
            color: var(--accent);
        }


/* История предприятия */
.history-text {
    line-height: 1.7;
    font-size: 0.98rem;
}

    .history-text ul {
        padding-left: 1.2rem;
    }

    .history-text li {
        margin-bottom: 6px;
    }

/* Красивый блок фото истории — ПОЛНОСТЬЮ без обрезки */
.history-photo-wrap {
    position: sticky;
    top: 110px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.history-photo-frame {
    background: #000; /* чтобы по бокам не было белых полос */
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-photo-img {
    width: 100%;
    height: auto; /* КЛЮЧЕВОЕ */
    max-height: 520px; /* ограничение по высоте, чтобы не ломало верстку */
    object-fit: contain; /* КЛЮЧЕВОЕ: не обрезает */
    display: block;
    transition: transform 0.6s ease;
    background: #000;
}

.history-photo-wrap:hover .history-photo-img {
    transform: scale(1.03); /* лёгкий зум без обрезки */
}

/* Подпись */
.history-photo-caption {
    padding: 14px 16px;
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    background: linear-gradient( 135deg, rgba(30, 60, 114, 0.95), rgba(42, 82, 152, 0.95) );
    letter-spacing: 0.3px;
}

/* Адаптив */
@media (max-width: 991px) {
    .history-photo-wrap {
        position: relative;
        top: 0;
        margin-top: 12px;
    }

    .history-photo-img {
        max-height: 360px;
    }
}

