@charset "UTF-8";
/* CSS Document */

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

body {
    font-family: sans-serif;
    color: #212529;
    background-color: #ffffff;
    line-height: 1.4;
}

/* Верхний баннер-заглушка */
.top-banner-placeholder {
    width: 100%;
    height: 250px;
    background-color: #e9ecef;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    font-size: 14px;
    color: #6c757d;
}

/* Основная колонка контента */
.main-content-wrapper {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 24px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ==========================================
   Блок заголовков и логотипа
   ========================================== */
.site-header-block {
    margin-bottom: 40px;
    width: 100%;
}

.site-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.logo-placeholder-box {
    width: 150px;
    height: 150px;
    background-color: #e9ecef;
    border: 2px dashed #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.3;
}

.header-text-group {
    border-left: 3px solid #22406d;
    padding-left: 18px;
    margin-bottom: 25px;
}

.site-header-block h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.site-tagline {
    font-size: 14px;
    color: #666666;
    margin-bottom: 6px;
    font-style: italic;
}

/* ==========================================
   Главное меню (Переходы)
   ========================================== */
.main-navigation {
    display: grid;
    /* На смартфонах кнопки идут в 2 колонки. Если кнопок нечетное число, последняя растянется */
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
    margin-top: 25px;
    width: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем текст внутри кнопки по вертикали и горизонтали */
    text-align: center;
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #22406d;
    text-decoration: none;
    background-color: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 4px; /* Легкое скругление углов как на референсе */
    min-height: 44px; /* Задаем минимальную высоту, чтобы кнопки с длинным текстом не ломали ряд */
    transition: all 0.2s ease;
}

/* Если кнопок 7 штук (нечетное количество), заставляем последнюю кнопку красиво растянуться на всю ширину */
.nav-item:last-child:nth-child(odd) {
    grid-column: span 2;
}

.nav-item:hover {
    background-color: #e9ecef;
    color: #11223b;
}

/* Стиль активной синей кнопки */
.nav-item.active {
    background-color: #22406d; /* Светло-синий цвет кнопки как на вашем скриншоте */
    color: #ffffff;
    border-color: #22406d;
}

/* На больших экранах ПК перестраиваем меню в аккуратную сетку из 3 колонок */
@media (min-width: 992px) {
    .main-navigation {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Сбрасываем мобильное растяжение для последней кнопки на ПК */
    .nav-item:last-child:nth-child(odd) {
        grid-column: auto;
    }
    
    /* Если на ПК кнопок 7 штук, заставляем последнюю кнопку занять всю третью строчку для симметрии */
    .nav-item:last-child {
        grid-column: span 3;
    }
}

/* ==========================================
   Выпадающие блоки лабораторий
   ========================================== */
.labs-dropdown-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.dropdown-wrapper {
    width: 100%;
    position: relative;
}

.dropdown-wrapper summary::-webkit-details-marker {
    display: none;
}
.dropdown-wrapper summary {
    list-style: none;
    outline: none;
}

.lab-trigger-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 35px 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.lab-trigger-btn::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: #666666;
    transition: transform 0.2s ease;
}

.dropdown-wrapper .dropdown-content {
    display: none;
}

.dropdown-wrapper[open] .dropdown-content {
    display: block !important;
    position: relative;
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #cccccc;
    border-top: none;
    z-index: 10;
}

.dropdown-content a {
    display: block;
    padding: 12px 15px;
    font-size: 13px;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #dee2e6;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover, .dropdown-content a:active {
    background-color: #e9ecef;
    color: #22406d;
    font-weight: 600;
}

.dropdown-wrapper[open] .lab-trigger-btn {
    background-color: #f1f3f5;
    border-color: #999999;
}

.dropdown-wrapper[open] .lab-trigger-btn::after {
    transform: translateY(-50%) rotate(180deg);
}

/* ==========================================
   Информационные блоки
   ========================================== */
.info-alert-banner {
    width: 100%;
    background-color: #22406d;
    color: #ffffff;
    padding: 30px 25px;
    text-align: center;
    margin-bottom: 45px;
}

.banner-subtitle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 20px;
}

.banner-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.center-photo-placeholder {
    width: 100%;
    height: 260px;
    background-color: #e9ecef;
    border: 2px dashed #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 35px;
}

/* ОБНОВЛЕНО: Стили для аккуратного абзацного текста */
.about-content-text {
    width: 100%;
    margin-bottom: 40px;
}

.about-content-text h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.about-content-text p {
    font-size: 14px;
    color: #333333;
    margin-bottom: 14px;
    text-align: justify; /* Текст выравнивается красиво по ширине */
}

.about-content-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   СИНИЙ ФУТЕР
   ========================================== */
.site-footer {
    width: 100%;
    background-color: #22406d;
    color: #ffffff;
    padding: 40px 0;
}

.footer-container-inner {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contacts h3, .footer-social h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-contacts p {
    font-size: 14px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.social-placeholder {
    font-size: 14px;
    opacity: 0.9;
}

.footer-bottom {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    opacity: 0.8;
}

.social{
	/*border: 1px solid black;*/
	display: inline-table;
	/*float: left;*/
}
.social a {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
    width: 50px;
    height: 50px;
    float: left;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 0 50px rgba(0,0,0,0.1);
    border-radius: 24px;
    margin-right: 5px;
	margin-left: 8px;
    padding: 12px;
    color: #000;
	font:20px sans-serif;
	text-decoration: none;
}
.vk a:hover {background: #42608D; color: #fff;}

/* ==========================================
   Адаптивность для больших экранов (ПК)
   ========================================== */
@media (min-width: 992px) {
    body {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        min-height: 100vh;
    }

    .top-banner-placeholder {
        width: 30%;
        height: auto;
        border-bottom: none;
        border-right: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
    }
	/* Фиксируем правую картинку на ПК */
    .right-banner-placeholder {
        width: 30%;
        height: auto;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: #e9ecef;
    }

    .main-content-wrapper {
        margin-left: 34%;
        margin-right: 0;
        padding-top: 60px;
        max-width: 680px;
        width: 66%;
    }

    .site-footer {
        margin-left: 34%;
        max-width: 680px;
        width: 66%;
        background-color: #22406d;
    }

    .footer-container-inner {
        max-width: 680px;
        margin: 0;
        padding: 0 24px;
    }

    .dropdown-wrapper[open] .dropdown-content {
        position: absolute;
        left: 0;
        top: 100%;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
    }
}


/* ==========================================
   Таблица прайс-лист
   ========================================== */
.table-wrap {
    width: 100%;
    overflow-x: auto; /* Горизонтальный скролл на мобильных */
    margin: 25px 0 40px 0;
    border: 1px solid #dee2e6;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    min-width: 480px;
}

/* Настройка шапки таблицы */
.table-wrap th {
    background-color: #f8fafc;
    color: #22406d; /* Наш синий цвет */
    font-weight: 700;
    padding: 12px 15px;
    border-bottom: 2px solid #cbd5e1;
    text-align: left;
}

.table-wrap th small {
    font-weight: 400;
    color: #64748b;
}

/* Общие стили для всех ячеек */
.table-wrap td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    line-height: 1.5;
}

/* Первая колонка (Номер №): выравнивание по центру, узкая */
.table-wrap th:first-child, 
.table-wrap td:first-child {
    width: 40px;
    text-align: center;
    color: #64748b;
}

/* Последняя колонка (Стоимость): выравнивание по правому краю, жирный шрифт */
.table-wrap th:last-child, 
.table-wrap td:last-child {
    width: 130px;
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Эффект зебры для четных строк */
.table-wrap tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Подсветка строки при наведении мыши */
.table-wrap tbody tr:hover {
    background-color: #f1f5f9;
}