/* Общие настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif;
    background-color: #f0f4f8;
    color: #ffffff;
}
        ul {
            list-style-position: outside;
            padding-left: 20px;
        }
        li {
            margin-bottom: 10px;
        }
h2, h3, h4 {
            color: #26619c;
        }
.illustration-caption {
      font-size: 0.9em;
      text-align: center;
      color: #7f8c8d;
    }
.warning {
            background-color: #fff3cd;
               /* border: 1px solid #ffeaa7; */
            padding: 5px;
            margin: 15px 0;
            border-radius: 4px;
            border-left: 5px solid #ff0000;
        }
.highlight {
            background-color: #f0f8ff;
            padding: 5px;
            border-left: 5px solid #3498db;
            margin: 2px 0;
        }
.tip {background: #e8f4fc; border-left: 4px solid #3498db; padding: 10px 15px; margin: 15px 0; border-radius: 4px;}
.ad-sectionm {
  width: 100%; /* на всю ширину родительского контейнера */
  height: 50px;
  margin: 0; /* внешние отступы 0 */
  padding: 0; /* внутренние отступы 0 */
  background-color: #000000; /* светло-серый фон */
  border-radius: 4px; /* скругление углов 8px */
  display: flex;
text-align: center;
  justify-content: center; /* выравнивание содержимого по центру (по горизонтали) */
  align-items: center; /* выравнивание содержимого по центру (по вертикали) */
  box-sizing: border-box; /* чтобы padding и border не влияли на общую ширину/высоту */
}
 .ad-sectionm {
      display: none;
    }
.ad-section {
  width: 100%; /* на всю ширину родительского контейнера */
  height: 50px;
  margin: 0; /* внешние отступы 0 */
  padding: 0; /* внутренние отступы 0 */
  background-color: #f5f5f5; /* светло-серый фон */
  border-radius: 4px; /* скругление углов 8px */
  display: flex;
  justify-content: center; /* выравнивание содержимого по центру (по горизонтали) */
  align-items: center; /* выравнивание содержимого по центру (по вертикали) */
  box-sizing: border-box; /* чтобы padding и border не влияли на общую ширину/высоту */
}
.ad-section {
      display: block;
        
    }
.outer-container {
  display: flex;
  flex-direction: column;

    width: 80%; /* Новый внешний контейнер захватывает ровно 80% экрана */
    margin: 0 auto; /* Центрирует относительно экрана */
    background-color: #002366;

    border: 1px solid #cccccc; /* Рамка для наглядности */
}

.container {
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}

img {
    max-width: 100%; 
    height: auto;
    border-radius: 10px;
}
 .tile-outer {
            height: 80px;
            background-color: #d0dae6;
            border-radius: 8px; /* скругление углов */
            padding: 0;
            margin: 0; /* верх – право – низ – лево */
            width: 100%;
            box-sizing: border-box;
            display: flex; /* для размещения внутренней плитки слева */

        }
            .tile-outer img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* масштабируем изображение, заполняя плитку */
            display: block;
        }
a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {

    width: 99%; /* Занимает всю ширину внутреннего контейнера */
    height: 80px;
    background-color: #000000;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {

    width: 28%; /* Первая плитка 30% */
    text-align: center;
    border-radius: 10px;
margin: 0 5px 0 0; /* верх – право – низ – лево */
}

.site-title {

    width: 71%; /* Вторая плитка 68% */
    text-align: center;
    height: 100%;
  /*  background-color: #00A0DE; */
    font-size: 1em; 
    /*  font-weight: bold; */
color: #000000;
background: linear-gradient(45deg, #80d8ff 0%, #00A0DE 100%);
    line-height: 1.0;
    /* letter-spacing: 2px; */
    border-radius: 10px;
}

/* Content */
.content {
    width: 100%; /* Главная секция контента заполняет всю ширину контейнера */
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    padding-top: 2px; /* Минимальный верхний отступ */
    justify-content: space-between;
flex: 1 1 auto; /* Растёт, заполняя свободное место */
/* Важно: не ограничиваем высоту */
min-height: 0;        /* Предотвращает переполнение в flex */
box-sizing: border-box; /* Учитываем padding/border в общей высоте */
}
/* Горизонтальное меню над колонками */
.horizontal-menu-top {
    width: 100%;
    padding: 10px 0;
    background-color: #0a4b85;
    border-radius: 10px;
    margin-bottom: 10px;
}

.horizontal-menu-top .horizontal-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    margin: 0;
    overflow: visible;
    white-space: normal;
}

.horizontal-menu-top .tile {
    flex: 1 1 calc(25% - 10px); /* до 4 плиток на десктопе */
    min-width: 80px;
    max-width: 155px;
    margin: 0;
    padding: 5px 5px;
    text-align: center;
    background-color: #26619c;
    border-radius: 10px;
    border: 1px solid #74b3ce;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.horizontal-menu-top .tile a {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    text-align: center;
}

.horizontal-menu-top .tile:hover {
    transform: scale(1.03) translateY(-2px);
    background-color: #1a8cf0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.left-panel {
   flex-basis: 29%; /* Фиксированная ширина 29% */
    background-color: #0a4b85; /* blue фон */
    padding: 5px;
    border-radius: 10px;
}
/* Боковая панель (как в nav.php) */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1002;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
}

.sidenav a {
    padding: 10px 10px 10px 15px;
    text-decoration: none;
    font-size: 16px;
    color: #ccc;
    text-align: center;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #fff;
    background-color: #333;
}

.sidenav .closebtn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    color: white;
    text-decoration: none;
}

/* Затемнение фона при открытии (опционально) */
.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1001;
}

.right-panel {
 flex: 1 1 70%; /* Растёт, занимает 68% ширины */
 min-height: 0; /* Важно для корректного сжатия в flex */
  /*   flex-basis: 68%;*/
 
    background-color: #ffffff; /* Белый фон */
    color: #000000; /* Черный текст */
    padding: 5px;
    margin: 1px;
    border-radius: 10px;
    box-sizing: border-box;
    word-wrap: break-word; /* Предотвращает выход текста за пределы */
    overflow-wrap: break-word; /* Аналогично word-wrap */
/* Полоса прокрутки, если контента больше, чем экран */
  overflow-y: auto;
}
/* Стили для ссылок внутри .right-panel при наведении */
.right-panel a {
  text-decoration: underline;
  color: LinkText;
}
.greet {
/*        background: linear-gradient(90deg, #c5eff7 0%, #6bb9f0 100%); */
background: linear-gradient(45deg, #80d8ff 0%, #00A0DE 100%);
        color: black;
        padding: 0.5rem 0;
        text-align: center;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 0.9rem;
}
.istandards-container {
  display: flex;
  justify-content: center; /* центрируем по горизонтали */
  flex-wrap: wrap; /* переносим на новую строку при нехватке места */
  gap: 10px; /* расстояние между карточками */
  margin: 10px 0 20px 0; /* сверху 10px, справа 15px, снизу 20px, слева 15px */

        }
.standard-card {
 flex: 1 1 75px; /* карточки будут расти/сжиматься, но не меньше 75px */
            background: white;
            border-radius: 8px;
  max-width: 160px;   /* Максимальная ширина — 160 пикселей */
  min-width: 75px;  /* минимальная ширина карточки */
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .card-header {
            background: linear-gradient(90deg, #c5eff7 0%, #6bb9f0 100%);
            color: white;
            text-align: center;
	    padding: 0.8rem 0 0.8rem 0;
        }

        .standard-name {
            font-size: 1rem;
            font-weight: bold;
        }
.card-body {
            padding: 0.5rem;
        }
       .standard-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }
/* Вертикальное меню в виде плиток */
.menu-list {
    list-style-type: none;
    padding-left: 0;
    display: block; /* Включаем вертикальное меню */
}

.menu-tile {
    background-color: #26619c;
    margin-bottom: 5px;
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    border: 1px solid #74b3ce; /* Рамка для наглядности */
}

.menu-tile a {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    text-align: center;
}

.menu-tile:hover {
    transform: scale(1.05);
    background-color: #1a8cf0;
}
.mobile-nav {
  width: 100%;
  padding: 0 16px;
}

/* Панель заголовка */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 4px;
}
/* Заголовок */
.nav-title {
  font-family: Arial, sans-serif;
  font-size: 18px;
padding-top: 10px;
color: #00A0DE;   
  font-weight: 600;
/*  color: #ffffff; */
  text-align: center;
  flex-grow: 1;
  margin: 0 8px; /* Отступы от стрелок */
}

/* Горизонтальные плитки меню для мобильных */
.mobile-nav {
    display: none; /* Изначально скрыто */
}

.horizontal-tiles {
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow-x: auto; /* Возможность горизонтального прокручивания */
    white-space: nowrap; /* Заблокирует перенос плиток на новую строчку */
    display: flex;
    justify-content: flex-start;
}

.tile {
    display: inline-block;
    vertical-align: top;
    margin-right: 10px;
    background-color: #26619c;
    /* padding: 10px 5px 10px 5px; */
padding: 14px 1px 14px 1px;
    border-radius: 10px;
min-width: 150px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
/* Дополнительные эффекты */
position: relative;
border: 1px solid #0000cc; /* Рамка для наглядности */
}

.tile a {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    text-align: center;
}

.tile:hover {
    transform: scale(1.05);
transform: translateY(-2px); /* Лёгкое поднятие */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тень */
    background-color: #1a8cf0;
}

/* Footer */
.footer {
flex: 0 0 auto; /* Фиксированный размер */
    background-color: #0a4b85; /* Фон */
    color: #ffffff; /* Белые буквы */
    text-align: center; /* Центральное выравнивание текста */
    padding: 10px 0; /* Небольшой отступ сверху и снизу */
margin-top: 5px;
}

.footer p {
    margin: 5px 0; /* Интервал между параграфами */
  flex: 0 0 auto; /* Фиксированный размер */
    font-size: 14px; /* Обычный размер шрифта */
}
/* Planshet Styles */
@media screen and (max-width: 1100px) {
.outer-container {
  /*      padding-bottom: 80px; /* высота .mobile-nav + запас */
    }
    
   .horizontal-menu-top .tile {
        flex: 1 1 calc(33.333% - 10px); /* 3 плитки */
    }
/* Прячем вертикальное меню на planshet */

    .left-panel {
        display: block;
    }
    .ad-sectionm {
        display: none;
    }
    .ad-section {
 height: 60px;
        display: block;
        display: flex;
        justify-content: center; /* выравнивание содержимого по центру (по горизонтали) */
        align-items: center; /* выравнивание содержимого по центру (по вертикали) */
        box-sizing: border-box; /* чтобы padding и border не влияли на общую ширину/высоту */
    }
    /* Переход на стопроцентную ширину */
    .header, .content, .outer-container {
        width: 100%;
    }
}
/* Mobile Styles */
@media screen and (max-width: 768px) {
    .horizontal-menu-top .tile {
        flex: 1 1 calc(50% - 8px); /* 2 плитки */
    }

    /* Прячем вертикальное меню на мобильных устройствах */
    .left-panel {
        display: none;
    }
    .ad-sectionm {
        display: none;
    }
    .ad-section {
 height: 60px;
        display: block;
        display: flex;
        justify-content: center; /* выравнивание содержимого по центру (по горизонтали) */
        align-items: center; /* выравнивание содержимого по центру (по вертикали) */
        box-sizing: border-box; /* чтобы padding и border не влияли на общую ширину/высоту */
    }
    /* Переход на стопроцентную ширину */
    .header, .content, .outer-container {
        width: 100%;
    }
.standard-card {
 
  max-width: 100px;   /* Максимальная ширина — 100 пикселей */
  min-width: 85px;  /* минимальная ширина карточки */
   }
    /* Центрирование и уменьшение текста */
    .site-title {
 width: 65%; /* Вторая плитка 68% */
        text-align: center;
        font-size: 9px;
 margin: 0 13px 0 0; /* верх – право – низ – лево */ 
    }
    .content {
font-size: 14px;
    }
.header {
    height: 50px;
}
.tile-outer {
    height: 50px;
        }
    /* Изображение центраруем и масштабируем */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Контент становится одной колонкой */
    .content {
        flex-direction: column;
    }

    /* Главное содержание занимает всю ширину */
    .right-panel {
        flex-basis: 100%;
        max-width: 100vw; /* Ограничиваем максимальную ширину */
        padding: 5px;
    }
    .outer-container {
    /*     padding-bottom: 80px; /* высота .mobile-nav + запас */
    }
    /* Закрепляем горизонтальное меню внизу экрана */
    .mobile-nav {
        display: block;
        position: fixed; /* Фиксированное положение */
        bottom: 0; /* Прикрепляем к низу экрана */
        left: 0; /* Выравниваем по левому краю */
        width: 100%; /* Занимаем всю ширину экрана */
        background-color: rgba(0, 0, 0, 0.7); /* Прозрачность фона */
        z-index: 1000; /* Повышаем приоритет отображения */
    }
}
/* Мобильный фиксированный слайдер (только на мобильных) */
.mobile-top-slider {
    display: none; /* Скрыт на десктопе */
}

@media screen and (max-width: 768px) {
    .mobile-top-slider {
        display: flex;
        position: fixed;
        top: 0px;
        left: 0;
        width: 100%;
        height: 56px;
        background-color: #0a4b85;
        z-index: 1001; /* Выше основного контента и футера */
        align-items: center;
        padding: 0 8px;
        gap: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #1A8cf0;
        border-radius: 8px;
        color: white;
        font-size: 18px;
        cursor: pointer;
        flex-shrink: 0; /* Не сжимается */
    }

    .menu-scroll {
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .menu-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .menu-scroll::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 4px;
    }

    /* Скрываем обычное меню и нижний навбар */
    .horizontal-menu-top,
    .mobile-nav {
        display: none !important;
    }

    /* Сдвигаем контент вниз, чтобы не перекрывался слайдером */
    .content {
        margin-top: 4px; /* высота слайдера + отступ */
    }

    /* Коррекция padding-bottom для футера */
    .outer-container {
 /*margin-top: 64px; /* высота слайдера + отступ */
  /*        padding-bottom: 10px; /* нижнее меню скрыто — убираем отступ */
    }
}