/* ==========================================================================
   БЕТА ЛОГИСТИКА ООД / BETA LOGISTICS LTD.
   Глобална дизайн система & Мобилна отзивчивост (2026)
   ========================================================================== */

:root {
    --primary-color: #0a192f;
    --primary-light: #1e293b;
    --accent-color: #0077ff;
    --accent-hover: #0056b3;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --border-dark: #334155;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-soft: 0 10px 25px rgba(10, 25, 47, 0.05);
    --shadow-hover: 0 16px 32px rgba(0, 119, 255, 0.12);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* 1. Базови настройки и нулиране */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Фикс за застъпване под фиксиран хедър */
main {
    padding-top: 85px;
    min-height: calc(100vh - 300px);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Хедър & Навигация */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-typography {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text { color: var(--primary-color); }
.logo-text-accent { color: var(--accent-color); }

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-contact:hover {
    background-color: var(--accent-color);
}

/* Езиков превключвател */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
}

.lang-btn {
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-btn.active, .lang-btn:hover {
    color: var(--white);
    background-color: var(--accent-color);
}

/* Мобилен бутон (Hamburger) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 3. Hero & Секции */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2b48 100%);
    color: var(--white);
    padding: 90px 0 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Секционни заглавия */
.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 800;
}

.title-divider {
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 12px auto 16px auto;
    border-radius: 2px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 4. R&D & Партньорски карти */
.innovations, .about-partners, .services {
    padding: 70px 0;
}

.about-partners { background-color: var(--white); }
.services { background-color: var(--bg-light); }
.innovations { background-color: var(--white); }

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.partner-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.partner-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.partner-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.rd-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rd-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.rd-badge {
    display: inline-block;
    background: rgba(0, 119, 255, 0.08);
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.rd-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.rd-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rd-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.tag-dual { color: var(--accent-color); }

/* 5. Подвал (Footer) & ИКОНКИ С КРИТИЧЕН ФИКС */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer-brand h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-brand h2 span { color: var(--accent-color); }

.footer-brand p {
    color: #94a3b8;
    font-size: 0.92rem;
    max-width: 480px;
    line-height: 1.6;
}

.footer-contacts h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--white);
}

.contact-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--accent-color);
}

/* ФИКС ЗА ИКОНКИТЕ ВЪВ ФУТЪРА (LinkedIn, Facebook и др.) */
.footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ЖЕЛЕЗОБЕТОНЕН ОГРАНИЧИТЕЛ ЗА РАЗМЕРА НА SVG ИКОНКИТЕ */
.social-icon svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    fill: currentColor;
    stroke: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding: 22px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* 6. Мобилна отзивчивост (Responsive Design) */
@media (max-width: 992px) {
    .nav-toggle { display: flex; }
    
    .nav-wrapper {
        position: fixed;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-soft);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        gap: 20px;
    }

    .nav-wrapper.active {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 18px;
    }

    .lang-switcher {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .hero-title { font-size: 1.85rem; }
    .hero-subtitle { font-size: 0.98rem; }
    .section-title { font-size: 1.55rem; }
    .rd-grid, .partners-grid { grid-template-columns: 1fr; }
}