/* Подключаем шрифт Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: #f8f9fa;
    color: #333;
    line-height: 1.5;
}

header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.main-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007BFF;
}

.main-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin-left: 2rem;
}

.main-menu a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.main-menu a:hover,
.main-menu a.active {
    color: #007BFF;
}

/* Боковое меню для мобильных (гамбургер) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero-баннеры */
.hero-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-top: 1rem;
    background: linear-gradient(135deg, #1a2a3a 0%, #0f1a24 100%);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: white;
    padding: 1rem 2rem;
    text-align: center;
}

.hero-overlay h1 {
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 0.5rem 1rem;
    background: #f1f3f5;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.breadcrumbs a {
    color: #007BFF;
    text-decoration: none;
}

.breadcrumbs span {
    color: #666;
}

/* Основной контейнер */
.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 1rem;
}

.sidebar {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar h3 {
    margin-top: 0;
    color: #007BFF;
}

.tree-menu {
    list-style: none;
    padding: 0;
}

.tree-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.tree-toggle i {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.tree-sub {
    list-style: none;
    padding-left: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tree-sub.open {
    max-height: 300px;
}

.tree-sub li a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 0.35rem 0;
    transition: color 0.2s;
}

.tree-sub li a:hover {
    color: #007BFF;
    padding-left: 0.25rem;
}

/* Основной контент */
.content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content h1 {
    color: #007BFF;
    margin-top: 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.content section {
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 4px solid #007BFF;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.content h2 {
    color: #007BFF;
    margin-top: 0;
}

/* Список партнеров */
.partners-list {
    list-style: none;
    padding: 0;
}

.partners-list li {
    padding: 0.75rem;
    background: #e9ecef;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    transition: transform 0.2s;
}

.partners-list li:hover {
    transform: translateX(5px);
}

/* Контакты */
.contacts {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 2rem auto;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    margin: 0.75rem 0;
    font-size: 1.1rem;
}

.contact-info i {
    color: #007BFF;
    margin-right: 0.75rem;
    width: 1.5rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
}

.contact-form label {
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007BFF;
}

.contact-form button {
    background: #007BFF;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.contact-form button:hover {
    background: #0056b3;
}

/* Кнопка наверх */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #007BFF;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    z-index: 100;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

/* Футер */
footer {
    background: #1a2a3a;
    color: #ddd;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

footer a {
    color: #007BFF;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .main-menu {
        flex-wrap: wrap;
    }

    .main-menu ul {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .main-menu ul.open {
        display: flex;
    }

    .main-menu li {
        margin-left: 0;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-banner {
        height: 200px;
    }

    .hero-overlay h1 {
        font-size: 1.2rem;
    }

    .content {
        padding: 1rem;
    }
}