.album {
	height: 250px;
	margin-bottom: 30px;
	background-position: center;
	background-size: cover;
}
.album-title {
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	padding: 10px;
	min-height: 55px;
	text-align: center;
	background-color: rgba(0, 93, 159, .8);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	transition: all .25s;
}
.album:hover .album-title {
	min-height: 100%;
	background-color: rgba(0, 149, 255, .8);
}

@media screen and (max-width: 765px) {
	main {
		padding: 0 10px 15px;
	}
	.album {
		width: calc(50% - 10px);
		height: 200px;
		margin: 0 5px 10px;
	}
	.album-title {
		font-size: 16px;
		min-height: 45px;
	}
}
@media screen and (max-width: 400px) {
	.album {
		height: 150px;
	}
	.album-title {
		font-size: 12px;
		min-height: 25px;
		padding: 5px 10px;
	}
}
	
/* Стили самой страницы */
.book-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Стили блока навигации */
.book-navigation {
    max-width: 800px;
    margin: 30px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-prev, .nav-next {
    flex: 1;
    display: block;
    padding: 12px 20px;
    background: #f5f5f5;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-prev:hover, .nav-next:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.nav-prev.disabled, .nav-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.book-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}


header.buklets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    width: 100%;
    top: 0;
}

header.buklets-header nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
header.buklets-header nav a, header.buklets-header nav .dropdown>span {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}
header.buklets-header nav a:hover,
header.buklets-header nav a.active {
    color: var(--acsent-color-2, #005ea0);
}
header.buklets-header nav .dropdown {
    position: relative;
}
header.buklets-header nav .dropdown-content {
    display: none;
    position: absolute;
    top: 26px;
    left: 0;
    background: #fff;
    min-width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;
}
header.buklets-header nav .dropdown-content a {
    display: block;
    padding: 8px 16px;
    color: #333;
    font-weight: 400;
}
header.buklets-header nav .dropdown-content a:hover, header.buklets-header nav .dropdown-content a.active {
    background: #f0f0f0;
    color: var(--acsent-color-2, #005ea0);
}
header.buklets-header nav .dropdown:hover .dropdown-content {
    display: block;
}

/* ====== Главный слайд ====== */
main.buklets-main {
    width: 100%;
}
.buklets-slide-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    min-height: 676px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0fc no-repeat right bottom;
    background-size: contain;
    border-radius: 8px;

}
.buklets-slide-container:has(.company-page-content) {
    align-items: flex-start;
    min-height: auto;
}
.buklets-slide-container#slide {
    /*background-image: url('/assets/web/img/buklet-book/slide1-bg.png');
    padding: 50px 0;*/

    min-height: auto !important;
    padding: 0 !important;
    background: none !important;
    background-color: #e8f0fc;
    /*overflow: hidden;*/
}
.slide-bg-image {
    display: block;
    width: 100%;
    height: auto;                       /* высота подстраивается под ширину */
    max-height: 100vh;                  /* на всякий случай, чтобы не уходить за экран */
    object-fit: contain;                /* сохраняет пропорции, ничего не обрезает */
    object-position: center;            /* центрируем */
}
.buklets-slide-container:not(#slide) {
    padding: 0 0 50px;
}
.buklets-slide-container h1 {
    font-size: 36px;
    font-weight: 700;
    
    max-width: 80%;
    line-height: 1.3;
}
.buklets-slide-container#slide h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 36px;
    line-height: 1.3;
    padding: 20px;
    margin: 0;
    pointer-events: none;
    z-index: 10;
}
.buklets-slide-container h1 span {
    color: var(--acsent-color-2, #005ea0);
    font-weight: 700;
}

/* стрелки */
.buklets-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    width: 60px;
    height: 60px;
    background: #e8f0fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}
.buklets-arrow.left {
    left: -75px;
}
.buklets-arrow.right {
    right: -75px;
}

/* номера слайдов */
.buklets-slide-counter {
    position: absolute;
    bottom: 20px;
    font-weight: 500;
    color: var(--acsent-color-2, #005ea0);
    font-size: 16px;
}

/* плавный переход для фоновых картинок */
.buklets-slide-container.fade {
    transition: background 0.5s ease;
}

/* ================= О компании ================= */
.company-page-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

.company-text {
    flex: 1 1 50%;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.company-image {
}

/* Стили h1 для страницы о компании */
.buklets-main h1 {
    font-size: 42px;
    text-align: left;
    margin-bottom: 30px;
}

.company-page-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Контент страницы о компании справа от H1 */
.buklets-slide-content {
    flex: 1 1 55%; /* контент занимает правую колонку */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Абзацы и список */
.buklets-slide-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.buklets-slide-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.buklets-slide-content li {
    margin-bottom: 8px;
}

/* Ссылки в списке оборудования */
.buklets-slide-content ul li a {
    color: var(--acsent-color-2, #005ea0);
    text-decoration: none;
}

/*.buklets-slide-content ul li a:hover,
.buklets-slide-content ul li a.active {
    text-decoration: underline;
}*/

/* Динамическое меню оборудования (pdoMenu ul) */
.buklets-slide-content ul li ul {
    padding-left: 15px;
}

/* Адаптив */
@media screen and (max-width: 768px) {
    .company-page-content {
        flex-direction: column;
    }
	
    .buklets-slide-container {
        flex-direction: column; /* H1 сверху, content под ним */
    }
    .buklets-slide-content {
        flex: 1 1 100%;
    }

    .buklets-arrow {
        display: none !important;
    }
}



/* ===== НОВОЕ ОФОРМЛЕНИЕ БЛОКА "О КОМПАНИИ" ===== */

.company-page-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
}

.company-text {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-text h1 {
    font-size: 34px;
    color: #1a2b3c;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.company-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

/*.company-image {
    flex: 0 0 45%;
    align-self: flex-start;
    width: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}*/
/* ===== ПРАВАЯ КОЛОНКА (wrapper) ===== */
.company-image-wrapper {
    flex: 0 0 45%;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 250px;
}

/* Сама картинка, если есть */
.company-image {
    width: 100%;
    height: auto;
    max-height: 524px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,93,159,0.12);
}

/* Кнопка "Перейти в каталог" */
.btn-catalog {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--acsent-color-2, #005ea0);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,93,159,0.25);
}
.btn-catalog:hover {
    background-color: #004a80;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,93,159,0.35);
}

/* ===== ГАЛЕРЕЯ ===== */
.company-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 30px;
    padding: 0 20px;
}

.company-gallery .gallery-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 1 / 1; /* квадратные миниатюры */
}

.company-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #fff;
}

.company-gallery .gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,93,159,0.20);
}

/* ===== АДАПТИВ ===== */
@media screen and (max-width: 768px) {
    .company-image-wrapper {
        flex: 1 1 100%;
        order: 2; /* на мобильных кнопка и картинка будут под текстом */
        align-items: center; /* центрируем */
    }
    .company-image {
        max-height: 300px;
    }
    .btn-catalog {
        width: 100%;
        max-width: 300px;
    }
    .company-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 0;
    }
}
/* ===== ГАЛЕРЕЯ ВНИЗУ (когда есть основное изображение) ===== */
.buklets-slide-content > .company-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

/* ===== ГАЛЕРЕЯ В ПРАВОЙ КОЛОНКЕ (когда нет основного изображения) ===== */
.company-image-wrapper .company-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
}

/* ===== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ===== */
@media screen and (max-width: 768px) {
    /* Все галереи на мобильных переходят в гибкую сетку с маленькими картинками */
    .buklets-slide-content > .company-gallery,
    .company-image-wrapper .company-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 0;
    }
}


/* ===== СТИЛИЗАЦИЯ СПИСКА ОБОРУДОВАНИЯ ===== */
.company-text ul:has(li>a) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    padding: 0;
    margin-top: 10px;
    list-style: none;
}

.company-text ul li:has(>a) {
    background: #f8fafc;
    border-radius: 10px;
    border-left: 5px solid var(--acsent-color-2, #005ea0);
    transition: all 0.25s ease;
    overflow: hidden;
}

.company-text ul li:has(>a):hover {
    background: #eef6fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,93,159,0.12);
}

.company-text ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    min-height: 48px;
}

.company-text ul li a:hover {
    color: var(--acsent-color-2, #005ea0);
}

/* ====== 2. СТИЛИ ДЛЯ ОБЫЧНЫХ ТЕКСТОВЫХ СПИСКОВ (БЕЗ ссылок) ====== */
.company-text ul:not(:has(li a)) {
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 15px;
    list-style: none; /* убираем стандартные точки */
}

.company-text ul:not(:has(li a)) li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
    background: transparent;
    border: none;
    transform: none !important;
    box-shadow: none;
}

/* Цветной маркер (синий кружок) вместо стандартной точки */
.company-text ul:not(:has(li a)) li::before {
    content: "●";
    color: var(--acsent-color-2, #005ea0);
    font-size: 14px;
    position: absolute;
    left: 4px;
    top: 2px;
    line-height: 1.6;
}

/* Дополнительная тонкая линия слева для структуры (опционально) */
.company-text ul:not(:has(li a)) {
    border-left: 2px solid var(--acsent-color-2, #005ea0);
    padding-left: 16px;
}

/* ====== СТИЛИ ДЛЯ НУМЕРОВАННЫХ СПИСКОВ (ol) ====== */
.company-text ol {
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 15px;
    list-style: none;      /* убираем стандартные цифры */
    counter-reset: item;   /* счётчик для своей нумерации */
    border-left: 2px solid var(--acsent-color-2, #005ea0); /* синяя линия слева */
    padding-left: 16px;
}

.company-text ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
    background: transparent;
    border: none;
    transform: none !important;
    box-shadow: none;
}

/* Цветной номер (синий, жирный) */
.company-text ol li::before {
    content: counter(item) ".";
    counter-increment: item;
    color: var(--acsent-color-2, #005ea0);
    font-weight: 600;
    position: absolute;
    left: 4px;
    top: 2px;
}

/* ====== СТИЛИ ДЛЯ ТАБЛИЦ (параметры) ====== */
.company-text table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden; /* чтобы скругление углов работало */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.company-text table th,
.company-text table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

/* Заголовок таблицы — фирменный синий */
.company-text table th {
    background-color: var(--acsent-color-2, #005ea0);
    color: #ffffff;
    font-weight: 600;
    border-bottom: none;
}

/* Чересстрочная окраска строк (зебра) */
.company-text table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Убираем нижнюю границу у последней строки */
.company-text table tr:last-child td {
    border-bottom: none;
}

/* Подсветка строки при наведении */
.company-text table tr:hover {
    background-color: #eef6fc;
    transition: background-color 0.2s ease;
}

/* Адаптив для таблиц на мобильных */
@media screen and (max-width: 600px) {
    .company-text table {
        font-size: 14px;
    }
    .company-text table th,
    .company-text table td {
        padding: 8px 10px;
    }

    header.buklets-header nav {
        gap: 15px;
    }
    .buklets-slide-container#slide h1 {
        font-size: 20px;
        padding: 0;
    }
    .buklets-slide-counter {
        bottom: 10px;
        font-size: 14px;
    }
}

/* ===== АДАПТИВ ===== */
@media screen and (max-width: 768px) {
    .company-page-content {
        flex-direction: column;
        padding: 20px 15px;
        gap: 25px;
    }
    .company-image {
        aspect-ratio: 16 / 9;
        min-height: 200px;
        width: 100%;
    }
    .company-text ul {
        grid-template-columns: 1fr; /* одна колонка на мобильных */
    }
    .company-text h1 {
        font-size: 28px;
    }

    .buklets-slide-container .buklets-slide-counter {
        left: 50%;
        transform: translateX(-50%);
    }
    header.buklets-header nav .dropdown-content {
        left: auto;
        right: 0;
    }
}