/* Content Section Block Styles */

.content-section-block {
    background-color: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8.19px 0 #E4E4E4;
    margin-bottom: 30px;
}

.content-section-inner {
    width: 100%;
}

/* Title - копируем из h2.title */
.content-section-title {
    padding: 8px 20px;
    border-left: 5px solid #E7370A;
    margin: 0;
    margin-bottom: 33px;
    color: #000000;
    font-size: 32px;
    line-height: 150%;
    font-weight: 600;
}

/* Description - копируем из .information-block-item p */
.content-section-description {
    margin-top: 33px;
    margin-bottom: 33px;
    color: #000000;
    font-size: 20px;
    line-height: 150%;
    font-weight: 400;
}

.content-section-description:first-child {
    margin-top: 0;
}

/* Content Items */
.content-section-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Text Blocks */
.content-section-text-block {
    margin-top: 33px;
}

.content-section-text-block:first-child {
    margin-top: 0;
}

.content-section-heading {
    margin: 0;
    margin-bottom: 20px;
    color: #000000;
    font-weight: 600;
    line-height: 150%;
}

h3.content-section-heading {
    font-size: 24px;
	line-height: 150%;
	font-weight: 600;
	color: #E7370A;
}
h4.content-section-heading {
    font-size: 20px;
	line-height: 150%;
	font-weight: 600;
	color: #E7370A;
}

.content-section-text:first-child {
    margin-top: 0;
}

/* Tables - используются глобальные стили из style.css темы:
 * .custom-pay-tab
 * .custom-pay-tab thead, .custom-pay-tab tbody
 * .custom-pay-tab-mob (для мобильных)
 */
.content-section-table-wrapper {
    margin-top: 33px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.content-section-table-wrapper:first-child {
    margin-top: 0;
}

.content-section-table.custom-pay-tab {
    margin-top: 50px;
    margin-bottom: 0;
}

.content-section-table.custom-pay-tab:first-child {
    margin-top: 0;
}

/* Добавляем рамку для таблицы */
.content-section-table.custom-pay-tab table {
    border: 1px solid rgb(0, 0, 0, 10%);
    border-collapse: collapse;
}

/* Добавляем вертикальные и горизонтальные границы для ячеек */
.content-section-table.custom-pay-tab table th,
.content-section-table.custom-pay-tab table td {
    border: 1px solid rgb(0, 0, 0, 10%) !important;
}

/* Переопределение padding для ячеек таблицы */
.content-section-table-wrapper table {
    table-layout: fixed !important;
    width: 100% !important;
}

.content-section-table-wrapper table tbody tr td,
.content-section-table-wrapper td {
    padding: 10px 15px !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    vertical-align: top !important;
}

.content-section-table-wrapper table tbody tr td span,
.content-section-table-wrapper td span {
    display: inline-block !important;
    max-width: none !important;
    width: auto !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

/* Для таблиц с 2 колонками */
.content-section-table-wrapper .table-two-columns td {
    width: 50% !important;
}

/* Фон заголовков таблицы */
.content-section-table.custom-pay-tab thead tr {
    background-color: #f9f9f9;
}

/* Чередование цветов строк */
.content-section-table.custom-pay-tab tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}


/* Lists */
.content-section-list-block {
    margin-top: 33px;
}

.content-section-list-block:first-child {
    margin-top: 0;
}

.content-section-list {
    margin: 0;
    padding-left: 25px;
}

.content-section-list li {
    color: #000000;
    font-size: 20px;
    line-height: 150%;
    font-weight: 400;
    margin-bottom: 10px;
}

.content-section-list li:last-child {
    margin-bottom: 0;
}

.content-section-list-ordered {
    list-style-type: decimal;
}

.content-section-list-unordered {
    list-style-type: disc;
}

/* Images - копируем из .information-block-item */
.content-section-image-block {
    margin-top: 33px;
}

.content-section-image-block:first-child {
    margin-top: 0;
}

/* Image alignment */
.content-section-image-block.align-left {
    text-align: left;
}

.content-section-image-block.align-left .content-section-image {
    margin-left: 0;
    margin-right: auto;
}

.content-section-image-block.align-center {
    text-align: center;
}

.content-section-image-block.align-center .content-section-image {
    margin-left: auto;
    margin-right: auto;
}

.content-section-image-block.align-right {
    text-align: right;
}

.content-section-image-block.align-right .content-section-image {
    margin-left: auto;
    margin-right: 0;
}

.content-section-image {
    margin: 0;
    text-align: center;
    max-width: 100%;
}

.content-section-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

.content-section-image figcaption {
    margin-top: 10px;
    color: #666;
    font-size: 16px;
    line-height: 150%;
    font-style: italic;
}

.content-section-image-bold-text {
	display: block;
	margin-bottom: 15px;
	color: #000000;
	font-size: 20px;
	line-height: 150%;
	font-weight: bolder;
}

.content-section-text {
	margin-top: 33px;
	color: #000000;
	font-size: 20px;
	line-height: 150%;
	font-weight: 400;
}

/* Quotes (Blockquote) */
.content-section-quote-block {
    margin-top: 33px;
}

.content-section-quote-block:first-child {
    margin-top: 0;
}

.content-section-quote {
    font-style: italic;
    padding: 20px 20px 20px 30px;
    margin: 20px 0;
    border: 1px solid #000;
    position: relative;
}

.content-section-quote:before {
    content: "\201C";
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 40px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #333;
    padding-left: 4px;
    padding-bottom: 4px;
    line-height: 1.3;
}

.content-section-quote:after {
    content: "\201D";
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 40px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #333;
    padding-left: 4px;
    padding-top: 4px;
    line-height: 1.3;
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
	.content-section-block {
		padding: 20px;
	}

	.content-section-title {
		font-size: 24px;
		padding: 6px 15px;
	}

    .content-section-description {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .content-section-text-block {
        margin-top: 20px;
    }

    /* Таблицы с 2 столбцами - нормальная ширина столбцов */
    .content-section-table.custom-pay-tab.table-two-columns tbody tr td {
        width: 50%;
    }

    h3.content-section-heading {
        font-size: 20px;
    }

    h4.content-section-heading {
        font-size: 18px;
    }

    .content-section-text {
        font-size: 16px;
        margin-top: 20px;
    }

    .content-section-table-wrapper {
        margin-top: 20px;
    }

    .content-section-table.custom-pay-tab {
        margin-top: 30px;
    }

    .content-section-list-block {
        margin-top: 20px;
    }

    .content-section-list {
        padding-left: 20px;
    }

    .content-section-list li {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .content-section-image-block {
        margin-top: 20px;
    }

    .content-section-image img {
        max-width: 100%;
        height: auto;
    }

    .content-section-image figcaption {
        font-size: 14px;
    }
	
	.content-section-image-bold-text {
		font-size: 16px;
	}

    .content-section-quote-block {
        margin-top: 20px;
    }

    .content-section-quote {
        padding: 15px 15px 15px 25px;
        margin: 15px 0;
        font-size: 16px;
    }

    .content-section-quote:before {
        font-size: 32px;
        width: 30px;
        height: 30px;
        top: -15px;
        left: 15px;
    }

    .content-section-quote:after {
        font-size: 32px;
        width: 30px;
        height: 30px;
        bottom: -15px;
        right: 15px;
    }
}

/* Slider Styles */
.content-section-slider-block {
    margin-top: 33px;
    margin-bottom: 33px;
}

.content-section-slider-block .slider-content-images {
    background-color: #F0F0F0;
    border-radius: 15px;
    padding: 50px 60px;
    position: relative;
    width: 100%;
}

.content-section-slider-block .slider-content-images img {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.content-section-slider-block .slick-dots {
    padding-top: 30px;
    left: 0;
    position: relative;
    bottom: auto;
}

.content-section-slider-block .slick-dots li button {
    background-color: rgba(231, 55, 10, 0.15);
    width: 10px;
    height: 10px;
    border-radius: 50px;
}

.content-section-slider-block .slick-dots li {
    width: 10px;
    height: 10px;
    margin: 0 2.5px;
}

.content-section-slider-block .slick-dots li.slick-active button {
    background-color: #E7370A;
}

.content-section-slider-block .slick-dots li button:before {
    display: none;
}

.content-section-slider-block .prew-slider-image,
.content-section-slider-block .next-slider-image {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #E7370A;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
    font-size: 0;
    transition: background-color 0.3s;
    z-index: 2;
}

.content-section-slider-block .prew-slider-image svg,
.content-section-slider-block .next-slider-image svg {
    width: 10px;
    height: 16px;
}

.content-section-slider-block .prew-slider-image:hover,
.content-section-slider-block .next-slider-image:hover {
    background-color: #c52f08;
}

.content-section-slider-block .slick-track {
    display: flex;
    align-items: center;
}

@media screen and (max-width: 1024px) {
    .content-section-slider-block .slider-content-images {
        padding: 20px 10px;
    }
    
    .content-section-slider-block .prew-slider-image,
    .content-section-slider-block .next-slider-image {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}