﻿/* ============================================
   ОБЩИЕ СТИЛИ САЙТА И СБРОС
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   ОСНОВНАЯ СТРУКТУРА САЙТА
============================================ */

.site-header {
    background-color: #00c2e4;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    width: 100%;
    flex-shrink: 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



.header-container_img {
    width: 100%;
    
    max-height: 100px;  
    object-fit: cover;  
    display: block;
}

 /* задайте нужную высоту 
 .header-container_img {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    grid-column: 1 / -1;
}
 */
.header-container_kontakt {
    display: flex;
    flex-direction: column;
}

.header-container_kontakt a {
    text-decoration: none;
    color: #ffffff;
}

.header-container_kontakt_adress,
.header-container_kontakt_telefone,
.header-container_kontakt_telefonesot,
.header-container_kontakt_email {
    display: flex;
    flex-direction: row;
}

/* Логотип */
.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: #0465a8;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-logo span {
    color: #ff6600;
}

/* ============================================
   ОСНОВНОЙ КОНТЕЙНЕР
============================================ */

.main-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    gap: 30px;
    flex: 1;
}

/* ============================================
   УЛУЧШЕННОЕ ЛЕВОЕ МЕНЮ - ОСНОВНЫЕ ИЗМЕНЕНИЯ!
============================================ */

.left-sidebar {
    width: 300px;
    min-width: 300px;
    border-radius: 5px;
    padding: 2px 0;
    height: fit-content;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px); /* Ограничиваем высоту */
    overflow-y: auto; /* Добавляем прокрутку если меню слишком длинное */
    scrollbar-width: thin;
    scrollbar-color: #0465a8 #f0f0f0;
}

/* Стилизация скроллбара для Webkit браузеров */
.left-sidebar::-webkit-scrollbar {
    width: 6px;
}

.left-sidebar::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb {
    background: #0465a8;
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover {
    background: #03487a;
}

/* Заголовок меню с фиксированной позицией */
.menu-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e6f2ff;
}

.menu-title {
    font-size: 18px;
    color: #0465a8;
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
    background: linear-gradient(to right, #0465a8, #00c2e4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Быстрая навигация по меню (только для длинных меню) */
.menu-quick-nav {
    display: none; /* По умолчанию скрыто */
    padding: 10px;
    background: #f8faff;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 3px solid #0465a8;
}

.menu-quick-nav.show {
    display: block;
}

.menu-quick-nav select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.menu-quick-nav select:focus {
    outline: none;
    border-color: #0465a8;
    box-shadow: 0 0 0 2px rgba(4, 101, 168, 0.2);
}

/* Улучшенное вертикальное меню */
.vertical-menu {
    width: 100%;
}

.vertical-menu ul {
    list-style: none;
    position: relative;
}

.vertical-menu li {
    margin-bottom: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.vertical-menu li:hover {
    transform: translateX(5px);
}

.vertical-menu a {
    display: flex;
    align-items: center;
    padding: 2px 2px;
    background-color: white;
    color: #0b5883;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Индикатор текущей позиции в меню */
.vertical-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(4, 101, 168, 0.1), transparent);
    transition: width 0.3s ease;
}

.vertical-menu a:hover::before {
    width: 100%;
}

.vertical-menu a:hover {
    background-color: #f0f8ff;
    color: #0465a8;
    border-left-color: #ff6600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vertical-menu a.active {
    background: linear-gradient(to right, #0465a8, #00c2e4);
    color: white;
    border-left-color: #ff6600;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(4, 101, 168, 0.3);
}

/* Иконки для пунктов меню (опционально) */
.vertical-menu a::after {
    content: '›';
    margin-left: auto;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #0465a8;
}

.vertical-menu a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.vertical-menu a.active::after {
    content: '✓';
    opacity: 1;
    transform: translateX(0);
    color: white;
}

/* Подменю (если есть вложенные пункты) */
.vertical-menu ul ul {
    margin-left: 20px;
    margin-top: 5px;
    border-left: 2px dashed #e0e0e0;
    padding-left: 15px;
}

.vertical-menu ul ul a {
    padding: 10px 15px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.vertical-menu ul ul a:hover {
    background-color: #e6f2ff;
}

/* Кнопка "Вверх" в меню */
.back-to-top {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px 0;
    margin-top: 15px;
    border-top: 1px solid #e6f2ff;
    text-align: center;
}

.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #0465a8;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #0465a8;
    gap: 8px;
}

.back-to-top-btn:hover {
    background: white;
    color: #0465a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 101, 168, 0.2);
}

.back-to-top-btn::before {
    content: '↑';
    font-weight: bold;
}

/* ============================================
   ОСНОВНОЙ КОНТЕНТ
============================================ */

.main-content {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    min-height: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.content-title {
    font-size: 28px;
    color: #0465a8;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e6f2ff;
    position: sticky;
    top: 0;
    background: white;
    z-index: 5;
    padding-top: 10px;
    margin-top: -10px;
}

.content-text {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 15px;
}

/* ============================================
   МОЙ СТАРЫЙ КОНТЕНТ
============================================ */

.container_content {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.container_content_product {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.container_content_abzac {
    padding: 10px;
}

.boxText {
    font-size: 14px;
    font-style: normal;
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
    text-align: center;
    border-spacing: 2px;
    border: none;
    border-collapse: separate;
    margin-bottom: 20px;
}

.boxText th {
    background: #9cb6d6;
    padding: 1px;
   /* position: sticky;*/
    top: 60px; /* Отступ от шапки */
    z-index: 10;
}

.boxText tr {
    background: #bdcbd6;
}

.boxText td {
    padding: 1px;
}

.boxText td:first-child {
    text-align: left;
}

.boxText a {
    color: #000000;
    font-weight: bold;
    padding-left: 5px;
}

.table_product {
    width: 100%;
    border: none;
    padding: 3px;
    margin: 3px;
    white-space: normal;
}

.speciallinks {
    max-width: 1200px;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
    padding-left: 10px;
    padding-bottom: 2px;
    padding-top: 2px;
    background-image: url(../images/blue_solid.png);
    background-repeat: no-repeat;
    height: 25px;
    border: 2px;
   
}

.speciallinks a,
.speciallinks a:visited,
.speciallinks a:link {
    text-decoration: none;
    color: #FFFFFF;
    background-color: inherit;
}

.speciallinks a:hover,
.speciallinks a:visited:hover {
    color: #CA8868;
    background-color: inherit;
}

.menu_hor {
    width: 100%;
    padding: 0px;
    margin: 0px;
    background: #02507d;
}

.footer1 {
    background-color: #ffffff;
    color: black;
    padding: 25px 0;
    text-align: center;
}

.footer2 {
    background-color: #00c2e4;
    color: #ffffff;
    padding: 3px 0;
    text-align: center;
}
.footer2 hr{
    margin-left:5px;
    margin-right:5px;
}
.footer2 a{
    color: #ffffff;
}

.footer2_ssilki {
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.footer2_ssilki a {
    text-decoration: none;
    color: #ffffff;
}

.header2 {
    display: flex;
    margin-right: 10px;
    margin-left: 10px;
    justify-content: flex-end;
}

.content_vnutr {
    margin: 0px;
    align: center;
}

.content_vnutr ul {
    list-style-position: inside;
}

.content_vnutr h1,
.content_vnutr h2 {
    color: #0465a8;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ============================================
    Стили для наллереи
============================================ */


.image-figure {
    margin: 0 0 15px 0;
    text-align: center;
}

.image-caption {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.tank-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}
.tank-item p{    
    margin-left: 10px;
   
}
.tank-image {
    flex: 0 0 auto;
}

.tank-description {
    flex: 1 1 auto;
    padding-top: 15px;
}

@media (min-width: 768px) {
    .tank-item {
        flex-direction: row;
    }
    
    .tank-image {
        margin-right: 20px;
    }
    
    .tank-description {
        padding-top: 0;
    }
}
/* ============================================
    Стили для наллереи
============================================ */




/* ============================================
    Стили для изображений с подписями 
============================================ */

.image-figure {
    margin: 20px 0;
    text-align: left;
    display: inline-block;
    max-width: 100%;
}

.image-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    
    display: block;
}

.image-caption {
    margin-top: 10px;
    font-style: italic;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Для центрированных изображений */
.image-figure.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Для изображений справа */
.image-figure.right {
    text-align: right;
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

/* Для изображений слева */
.image-figure.left {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

/* Очистка float */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Адаптивность */
@media (max-width: 768px) {
    .image-figure.right,
    .image-figure.left {
        float: none;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .image-caption {
        font-size: 13px;
    }
}

/* ============================================
    Стили для изображений с подписями 
============================================ */


/* ============================================
   ГАМБУРГЕР-МЕНЮ
============================================ */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    display: block;
}

.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0465a8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ============================================
   ПОДВАЛ САЙТА
============================================ */

.site-footer {
    
    /*background: linear-gradient(to right, #00c2e4, #03487a);*/
    background: #00c2e4;
    color: white;
    padding: 25px 0;
    text-align: center;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-container a{
     text-decoration: none;
    color: #ffffff;
}

.copyright {
    font-size: 14px;
    opacity: 0.9;
}



/* ============================================
   АДАПТИВНЫЕ СТИЛИ
============================================ */

@media (max-width: 1024px) {
    .main-container {
        gap: 20px;
        padding: 15px;
    }
    
    .left-sidebar {
        width: 250px;
        min-width: 250px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .content-title {
        font-size: 24px;
    }
}


@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-container {
        flex-direction: column;
        padding: 10px;
        gap: 0;
    }
    
    .left-sidebar {
        width: 100%;
        position: fixed;
        top: 80px;
        left: -100%;
        height: calc(100vh - 80px);
        z-index: 999;
        transition: left 0.4s ease;
        border-radius: 0;
        overflow-y: auto;
        padding: 20px;
        background-color: white;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        max-height: none;
    }
    
    .left-sidebar.active {
        left: 0;
    }
    
    /* Улучшенное мобильное меню */
    .menu-header {
        position: static;
        background: white;
    }
    
    .back-to-top {
        display: none; /* Скрываем кнопку "Вверх" на мобильных */
    }
    
    .main-content {
        margin-top: 20px;
        width: 100%;
        padding: 20px 15px;
    }
    
    .header-container {
        padding: 10px 15px;
    }
    
    .site-logo {
        font-size: 22px;
    }
    
    .content-title {
        font-size: 22px;
        position: static;
        background: transparent;
    }
    
    .header2,
    .header-container_img,
    .header-container_text {
        display: none;
    }
    
    /* Быстрая навигация всегда показываем на мобильных для длинных меню */
    .menu-quick-nav {
        display: block;
        margin-top: 15px;
    }
    .boxText, .table_product {
        display: block;
        white-space: normal;
        /*overflow-x: auto;  прокрутка для маленьких экранов
        white-space: nowrap;*/
    }
    
    
    
    
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .main-content {
        padding: 15px 10px;
        min-height: 300px;
    }
    
    .vertical-menu a {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .menu-title {
        font-size: 16px;
    }
    
    .content-title {
        font-size: 20px;
    }
    
    .site-footer {
        background-color: #00c2e4;
        padding: 20px 0;
        font-size: 13px;
    }
    
    .vertical-menu a::after {
        display: none; /* Скрываем стрелки на маленьких экранах */
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ И АНИМАЦИИ
============================================ */

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6f2ff;
}

.card-title {
    color: #0465a8;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6f2ff;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0465a8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #03487a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-orange {
    background-color: #ff6600;
}

.btn-orange:hover {
    background-color: #e55a00;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЙ JS ДЛЯ УЛУЧШЕНИЯ МЕНЮ
============================================ */

/* Классы для JavaScript взаимодействия */
.menu-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8faff;
    border-radius: 8px;
    border-left: 4px solid #0465a8;
}

.menu-section-title {
    color: #0465a8;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-section-title::before {
    content: '▸';
    font-size: 14px;
    transition: transform 0.3s ease;
}

.menu-section.active .menu-section-title::before {
    transform: rotate(90deg);
}

/* Индикатор текущего раздела в меню */
.current-section-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff6600;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vertical-menu a.active .current-section-indicator {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 102, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
    }
}
