:root {
    --primary: #1a4f7a;
    --primary-dark: #0d3b5e;
    --primary-light: #3a7ca5;
    --primary-gradient: linear-gradient(135deg, #1a4f7a 0%, #0d3b5e 100%);
    --accent: #2c6b9e;
    --secondary: #2d3748;
    --dark: #1a202c;
    --gray: #718096;
    --gray-light: #e2e8f0;
    --light: #f7fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light);
    color: var(--dark);
    padding-top: 76px;
}

/* ===== НАВБАР ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0.6rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.02);
}

.navbar.scrolled {
    padding: 0.3rem 0;
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand img {
    height: 44px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.navbar-brand .title {
    font-size: 1rem;
    line-height: 1.2;
    color: var(--dark);
}

.navbar-brand .title .accent {
    color: var(--primary);
}

.navbar-brand .subtitle {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--gray);
}

.nav-link {
    color: rgba(26, 32, 44, 0.6) !important;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    padding: 0.5rem 1.2rem !important;
    border-radius: 8px;
    letter-spacing: 0.2px;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(26, 79, 122, 0.06);
}

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(26, 79, 122, 0.08);
}

.navbar-toggler {
    border: 1px solid rgba(26, 79, 122, 0.15);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26,79,122,0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar {
        background: rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(20px) saturate(200%) !important;
    }
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px) saturate(200%);
        border-radius: 12px;
        padding: 0.5rem;
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    }
    .nav-link {
        text-align: center;
        padding: 0.5rem !important;
    }
}

/* ===== ГЕРОЙ-СЕКЦИЯ (СВЕТЛАЯ) ===== */
.hero-section {
    background: linear-gradient(160deg, #e8edf3 0%, #d5dfea 50%, #e0e8f0 100%);
    color: var(--dark);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(26, 79, 122, 0.08);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 79, 122, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 79, 122, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    display: inline-block;
    margin-bottom: 20px;
    opacity: 0.9;
}
.hero-icon svg path {
    fill: var(--primary);
}

.accent-badge {
    display: inline-block;
    background: rgba(26, 79, 122, 0.08);
    color: var(--primary);
    padding: 6px 24px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(26, 79, 122, 0.06);
    text-transform: uppercase;
}

.accent {
    color: var(--primary);
}

.hero-section h1 {
    color: var(--dark);
}

.hero-section .lead {
    color: var(--dark);
    opacity: 0.7;
}

.hero-section .btn-outline-light {
    border: 1px solid rgba(26, 79, 122, 0.15);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.02);
}

.hero-section .btn-outline-light:hover {
    background: rgba(26, 79, 122, 0.06);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f7fafc" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ===== ИНФО-КАРТОЧКА (стекло на светлом фоне) ===== */
.info-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    opacity: 0.7;
    font-size: 0.85rem;
    padding: 4px 0;
}

.info-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.badge-tag {
    background: rgba(26, 79, 122, 0.06);
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 0.6rem;
    color: var(--primary);
    border: 1px solid rgba(26, 79, 122, 0.04);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== ЭФФЕКТ СТЕКЛА ДЛЯ КАРТОЧЕК ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* ===== КНОПКИ ===== */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 79, 122, 0.25);
    color: white;
}

/* ===== КАРТОЧКИ ===== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    background: var(--white);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(26, 79, 122, 0.08);
    border-color: var(--primary);
}

.feature-card .feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(26, 79, 122, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-card .feature-icon i {
    font-size: 1.6rem;
    color: var(--primary);
}

.feature-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

.badge-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.7rem;
}

/* ===== ФУТЕР (ТЕМНЫЙ) ===== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer h5 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer a:hover {
    color: var(--primary-light);
}

.footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.25s ease;
    font-size: 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.footer .social-icons a:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.footer .social-icons .vk-link {
    font-size: 0.6rem;
    font-weight: 700;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.03);
}

.footer .map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.footer .map-container:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

/* ===== ФУТЕР (СВЕТЛО-СЕРЫЙ) ===== */
.footer-light {
    background: #eef2f6;
    color: var(--gray);
    margin-top: 40px;
    border-top: 2px solid var(--border);
}

.footer-light h5 {
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-light a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-light a:hover {
    color: var(--primary);
}

.footer-light .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.25s ease;
    font-size: 1rem;
    text-decoration: none;
    color: var(--gray);
    border: 1px solid var(--border);
}

.footer-light .social-icons a:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.footer-light hr {
    border-color: var(--border);
}

.footer-light .map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.footer-light .map-container:hover {
    border-color: var(--primary);
}

/* ===== ТОСТЫ ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.toast {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.toast.bg-success {
    background: var(--primary-gradient) !important;
}

.toast.bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

/* ===== ЧАТ-БОТ ===== */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26, 79, 122, 0.25);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(26, 79, 122, 0.35);
}

.chatbot-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chatbot-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 380px;
    max-width: 92vw;
    max-height: 520px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.chatbot-window.open {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: var(--primary-gradient);
    padding: 14px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chatbot-header-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.chatbot-header-subtitle {
    font-size: 0.65rem;
    opacity: 0.7;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.6;
    line-height: 1;
}

.chatbot-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-body {
    padding: 16px 20px;
    max-height: 380px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
}

.chatbot-body::-webkit-scrollbar {
    width: 3px;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.chatbot-greeting {
    text-align: center;
    padding: 6px 0 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 12px;
}

.chatbot-greeting .greeting-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 4px;
}

.chatbot-greeting h6 {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.chatbot-greeting p {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0;
}

.chatbot-question {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-question:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(26, 79, 122, 0.06);
}

.chatbot-question .q-icon {
    color: var(--primary);
    margin-right: 10px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.chatbot-question .q-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark);
    flex: 1;
}

.chatbot-question .q-arrow {
    color: var(--gray);
    font-size: 0.65rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chatbot-question .q-content {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 10px 14px;
}

.chatbot-question .q-content.show {
    display: block;
}

.chatbot-question .q-content .step {
    display: block;
    padding: 3px 0 3px 18px;
    position: relative;
}

.chatbot-question .q-content .step::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.7rem;
}

.chatbot-question .q-content .highlight {
    color: var(--primary);
    font-weight: 600;
}

.chatbot-footer {
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.chatbot-footer .chatbot-email {
    font-size: 0.7rem;
    color: var(--gray);
}

.chatbot-footer .chatbot-email a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.chatbot-footer .chatbot-email a:hover {
    color: var(--primary-dark);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 480px) {
    .chatbot-window {
        width: 100vw;
        max-width: 100vw;
        max-height: 75vh;
        bottom: 72px;
        right: -8px;
        border-radius: 12px;
    }
    .chatbot-toggle {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .chatbot-container {
        bottom: 16px;
        right: 16px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 68px;
    }
    .hero-section {
        padding: 60px 0 40px;
        min-height: 400px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .navbar-brand .title {
        font-size: 0.85rem;
    }
    .navbar-brand .subtitle {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0 30px;
        min-height: 350px;
    }
    .hero-section h1 {
        font-size: 1.6rem;
    }
    .accent-badge {
        font-size: 0.65rem;
        padding: 4px 16px;
    }
    .btn-lg {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    .feature-card .feature-icon {
        width: 44px;
        height: 44px;
    }
    .feature-card .feature-icon i {
        font-size: 1.3rem;
    }
}