:root {
    --primary-color: #37474f;
    --accent-color: #6c757d;
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* Скрываем чекбокс для мобильного меню */
#menu-toggle {
    display: none;
}

/* Боковое меню */
.sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #f1f3f5;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-list {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    margin: 5px 15px;
}

.nav-link {
    display: block;
    padding: 12px 15px;
    color: #5a6268;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    background-color: #e9ecef;
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Основная область */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.header {
    margin-bottom: 40px;
}

.header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    color: #6c757d;
    max-width: 600px;
}

/* Секции */
.section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ff9800;
    border-radius: 2px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
}

.card p {
    color: #6c757d;
}

/* Кнопка управления */
#sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: none;
    color: rgb(190, 12, 12);
    border: color(srgb red rgb(11, 146, 11) blue);
    border-radius: 6px;
    cursor: pointer;
    z-index: 999;
    display: none;
}

.icon {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 12px 0;
    transition: all 0.3s;
}

.icon::before,
.icon::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin-top: 6px;
}

.colorig_fill-brand2-dark-back {
    fill: #69b3e7;
}

/* Для логотипов */
.mega-menu__logo {
    display: block;
    height: 65px;
    width: auto;
    margin: 10px;
}

@supports (scrollbar-width:thin) {
    * {
        scrollbar-color: #a0a4a8 transparent;
        scrollbar-width: thin;
    }
}

.coloring_fill-brand3-dark-back {
    fill: #e64920;
}

.coloring_fill-brand-dark-back {
    fill: #0e65b7;
}

/* блок для div с картинкам */
.image-text-block {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

.block-image img {
    width: 100%;
    height: auto;
    max-width: 400px;       /* заданный размер по ширине */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.block-text {
    flex: 1;               /* текст занимает оставшееся место */
    min-width: 0;          /* предотвращает переполнение на узких экранах */
}

/* Кнопка гамбургера (по умолчанию скрыта на ПК) */
.menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 110;
    background: var(--primary-color);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 90;
}

/* для ГИСП */
.gisp-logo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
}

/* Для изображений */
.my-image {
    max-width: 100%;      /* адаптивность */
    height: auto;         /* сохраняет пропорции */
    border-radius: 8px;   /* скругление углов (как ты раньше спрашивал про скруглённые кнопки) */
    display: block;       /* убирает лишние отступы */
    margin: 0 auto;       /* центрирование, если нужно */
}

/* Адаптивность */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease; /* добавьте анимацию */
        z-index: 1000;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    #sidebar-toggle {
        display: block;
    }
    
    .body.sidebar-open {
        overflow: hidden;
    }
    .main-content {
        padding: 20px;
    }
    .header h1 {
        font-size: 2rem;
    }

    .menu-btn {
        display: block; /* Показываем кнопку меню */
    }
    /* Если чекбокс нажат — выдвигаем меню и показываем оверлей */
    #menu-toggle:checked ~ .sidebar {
        transform: translateX(0);
    }
    #menu-toggle:checked ~ .sidebar-overlay {
        display: block;
    }
    /* Адаптив: на телефонах фото над текстом */
    .image-text-block {
        flex-direction: column;
        align-items: stretch;
    }
    .block-image img {
        max-width: 100%;     /* фото на всю ширину контейнера */
    }
}
.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

th, td {
  padding: 8px 12px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}