
.manufacturers-content {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.manufacturers-intro {
    text-align: left;
    max-width: 900px;
    margin-left: 0;
    margin-right: 0;
}

.manufacturers-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-dark);
}

.manufacturers-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.manufacturers-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manufacturers-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.manufacturers-image {
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px;
    align-self: center;
}

.manufacturers-page-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.manufacturers-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.manufacturers-name {
    font-size: 26px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.manufacturers-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-dark);
    margin: 0;
}

.manufacturers-btn {
    align-self: flex-start;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.manufacturers-btn:hover {
    background-color: var(--primary-red-light);
}

/* Стили для страницы производителя */
.manufacturer-main {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.manufacturer-logo-section {
    flex-shrink: 0;
    width: 240px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding-right: 10px;
    align-self: center;
}

.manufacturer-main-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.manufacturer-main-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 15px;
}

.manufacturer-main-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--black);
}

.manufacturer-main-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manufacturer-main-description p {
    display: flex;
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-dark);
}

.manufacturer-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    border-bottom: 2px solid var(--primary-color);
}

.manufacturer-legal {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.legal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.legal-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.legal-info-item i {
    font-size: 26px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.legal-info-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legal-info-text strong {
    color: var(--black);
    font-size: 16px;
    font-weight: 500;
}

.legal-info-text span {
    color: var(--gray-dark);
    font-size: 14px;
}

/* Стили для ссылок внутри legal-info-text */
.legal-info-text a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
    font-size: 14px;
}

.legal-info-text a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.legal-info-text span a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-info-text span a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

.certificate-download {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--black);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.certificate-download:hover {
    color: var(--primary-blue);
}

.manufacturer-details {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    gap: 20px;
}


.manufacturer-catalog-section {
    text-align: center;
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-red);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.catalog-btn:hover {
    background-color: var(--primary-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.catalog-btn i {
    font-size: 20px;
}

/* Медиа-запросы */

@media (max-width: 768px) {
    .manufacturers-item {
        flex-direction: column;
        gap: 20px;
    }

    .manufacturers-name {
        text-align: center;
    }

    .manufacturers-item p {
        font-size: 14px;
    }
    
    .manufacturers-image {
        width: auto;
        max-width: 200px;
        height: 120px;
        margin: 0 auto;
        padding: 5px;
    }
    
    .manufacturers-btn {
        align-self: center;
    }
    
    .manufacturer-main {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 20px;
    }
    
    .manufacturer-logo-section {
        width: auto;
        max-width: 200px;
        height: 120px;
        margin: 0 auto;
        padding: 5px;
    }

    .manufacturer-main-info {
        gap: 15px;
    }

    .manufacturer-main-title {
        font-size: 28px;
        font-weight: 600;
        color: var(--black);
        text-align: center;
    }

    .manufacturer-main-description {
        display: flex;
        font-size: 14px;
        text-align: left;
        line-height: 1.5;
        color: var(--gray-dark);
    }

    .manufacturer-section-title {
        font-size: 20px;
        padding-bottom: 0px;
    }

    .manufacturer-legal {
        padding: 25px;
    }

    .legal-info-item {
        padding: 15px;
    }

    .legal-info-grid {
        grid-template-columns: 1fr;
    }

    .manufacturer-details {
        padding: 25px;
    }
}


/* Стили для контента из редактора WordPress внутри manufacturer-details */
.manufacturer-details .entry-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* Заголовок h2 (История и деятельность компании) */
.manufacturer-details .entry-content h2.wp-block-heading {
    font-size: 32px;
    font-weight: 600;
    color: var(--black);
    border-bottom: 2px solid var(--primary-color);
}

/* Заголовок h3 (История и деятельность компании) */
.manufacturer-details .entry-content h3.wp-block-heading {
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    border-bottom: 2px solid var(--primary-color);
}

/* Заголовки h4 (Основание и развитие, Технологии и инновации и т.д.) */
.manufacturer-details .entry-content h4.wp-block-heading {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
}

.manufacturer-details .entry-content h4.wp-block-heading:first-child {
    margin-top: 0;
}

/* Стили для заголовков с выравниванием по центру */
.manufacturer-details .entry-content .wp-block-heading.has-text-align-center {
    text-align: center;
}

.manufacturer-details .entry-content h2.wp-block-heading.has-text-align-center {
    text-align: center;
}

.manufacturer-details .entry-content h3.wp-block-heading.has-text-align-center {
    text-align: center;
}

.manufacturer-details .entry-content h4.wp-block-heading.has-text-align-center {
    text-align: center;
}

.manufacturer-details .entry-content h5.wp-block-heading.has-text-align-center {
    text-align: center;
}

.manufacturer-details .entry-content h6.wp-block-heading.has-text-align-center {
    text-align: center;
}

/* Общие стили для элементов с выравниванием по центру */
.manufacturer-details .entry-content .has-text-align-center {
    text-align: center;
}

/* Параграфы */
.manufacturer-details .entry-content p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-dark);
}

/* Ссылки */
.manufacturer-details .entry-content a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.manufacturer-details .entry-content a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Маркированные списки (ul) */
.manufacturer-details .entry-content ul.wp-block-list {
    padding-left: 25px;
    list-style-type: disc;
}

.manufacturer-details .entry-content ul.wp-block-list li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-dark);
}

/* Нумерованные списки (ol) */
.manufacturer-details .entry-content ol.wp-block-list {
    padding-left: 30px;
    list-style-type: decimal;
}

.manufacturer-details .entry-content ol.wp-block-list li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-dark);
}

/* Галерея изображений WordPress */
.manufacturer-details .entry-content .wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.manufacturer-details .entry-content .wp-block-gallery .wp-block-image {
    flex: 0 1 auto;
    margin: 0;
}

.manufacturer-details .entry-content .wp-block-gallery img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

/* Отдельные изображения WordPress */
.manufacturer-details .entry-content .wp-block-image {
    display: flex;
    justify-content: center;
}

.manufacturer-details .entry-content .wp-block-image figure {
    margin: 0;
    display: flex;
    justify-content: center;
}

.manufacturer-details .entry-content .wp-block-image img {
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

/* Стили для таблиц */
.manufacturer-details .entry-content .wp-block-table {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: block;
    scrollbar-width: auto;
    scrollbar-color: var(--primary-blue) rgba(0, 0, 0, 0.1);
}

/* Кастомный скроллбар для таблиц в WebKit браузерах */
.manufacturer-details .entry-content .wp-block-table::-webkit-scrollbar {
    height: 12px;
}

.manufacturer-details .entry-content .wp-block-table::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.manufacturer-details .entry-content .wp-block-table::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.manufacturer-details .entry-content .wp-block-table::-webkit-scrollbar-thumb:hover {
    background: #2a2d6f;
}

.manufacturer-details .entry-content .wp-block-table table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: auto;
    display: table;
}

/* Если таблица меньше родителя - растягивается до 100% через min-width: 100% */
/* Если таблица больше родителя - она может быть шире и появится прокрутка через overflow-x: auto на .wp-block-table */

.manufacturer-details .entry-content .wp-block-table table td,
.manufacturer-details .entry-content .wp-block-table table th {
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.manufacturer-details .entry-content .wp-block-table table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--black);
}

.manufacturer-details .entry-content .wp-block-table table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Видео WordPress */
.manufacturer-details .entry-content .wp-block-video {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.manufacturer-details .entry-content .wp-block-video video {
    width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    display: block;
}

/* Убираем стандартные стили WordPress для article */
.manufacturer-details article {
    margin: 0;
    padding: 0;
}

/* Адаптивность для контента редактора */
@media (max-width: 768px) {
    .manufacturer-details .entry-content h3.wp-block-heading {
        font-size: 20px;
    }

    .manufacturer-details .entry-content h4.wp-block-heading {
        font-size: 18px;
    }

    .manufacturer-details .entry-content .wp-block-gallery {
        gap: 15px;
    }

    .manufacturer-details .entry-content .wp-block-video video {
        max-height: 250px;
    }
}

@media (max-width: 400px) {
    .manufacturer-details .entry-content .wp-block-gallery {
        gap: 12px;
    }
}