company-main-content {
    background: #F4F6F8;
    border-radius: 14px;
    padding: 28px 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px #6366f11a;
    border: 1.5px solid #E5E7EB;

    /* Новые строки для увеличения ширины и центрирования */
    max-width: 1100px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}




.company-advantages-block {
    background: linear-gradient(90deg, #f4fdf7 80%, #22c55e22 100%);
    border-left: 5px solid #22C55E;
    border-radius: 14px;
    padding: 20px 24px 14px 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px #22c55e11;
    transition: box-shadow 0.2s;
}
.company-advantages-block:hover {
    box-shadow: 0 6px 24px #22c55e33;
}
.company-advantages-block .company-block-title {
    color: #22C55E;
    font-weight: 700;
    font-size: 1.12em;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}
.company-advantages-block ul {
    margin: 0 0 0 18px;
    padding: 0;
    color: #23272F;
    font-size: 1em;
}
.company-advantages-block li {
    margin-bottom: 6px;
    line-height: 1.6;
    list-style: disc;
}

.company-disadvantages-block {
    background: linear-gradient(90deg, #fff6f6 80%, #e11d4815 100%);
    border-left: 5px solid #E11D48;
    border-radius: 14px;
    padding: 20px 24px 14px 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px #e11d4811;
    transition: box-shadow 0.2s;
}
.company-disadvantages-block:hover {
    box-shadow: 0 6px 24px #e11d4833;
}
.company-disadvantages-block .company-block-title {
    color: #E11D48;
    font-weight: 700;
    font-size: 1.12em;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}
.company-disadvantages-block ul {
    margin: 0 0 0 18px;
    padding: 0;
    color: #23272F;
    font-size: 1em;
}
.company-disadvantages-block li {
    margin-bottom: 6px;
    line-height: 1.6;
    list-style: disc;
}
.company-title {
    font-size: 2.4em;
    font-weight: 800;
    color: #6366F1; /* твой акцентный индиго */
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin-bottom: 18px;
    text-align: left;
    text-shadow: 0 2px 12px #6366f133;
    position: relative;
}
.company-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #6366F1 60%, #F59E42 100%);
    border-radius: 2px;
    margin-top: 12px;
}
@media (max-width: 600px) {
    .company-title {
        font-size: 1.5em;
    }
    .company-title::after {
        width: 32px;
        height: 3px;
        margin-top: 8px;
    }
}

.company-reviews-wrapper {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto 32px auto;
    padding: 20px 24px;
    background: none;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-sizing: border-box;
}

.company-reviews-wrapper .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-reviews-wrapper .comment-list > li {
    border-bottom: 1px solid #eee;
    padding: 14px 0 10px 0;
    margin-bottom: 0;
    background: none;
    display: block;
}

.company-reviews-wrapper .comment-list > li:last-child {
    border-bottom: none;
}

.company-reviews-wrapper .comment-author {
    font-weight: 600;
    color: #23272f;
    margin-bottom: 2px;
    display: block;
}

.company-reviews-wrapper .comment-content {
    margin-top: 6px;
    color: #444;
    font-size: 1rem;
    line-height: 1.5;
}

.company-reviews-wrapper .comment-meta,
.company-reviews-wrapper .reply {
    font-size: 0.92em;
    color: #888;
    margin-top: 4px;
}

.company-reviews-wrapper .comment-respond {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

@media (max-width: 1100px) {
    .company-reviews-wrapper {
        width: 100% !important;
        padding: 12px 6px;
    }
}

/* Карточки компаний */
.company-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.company-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.3em;
    color: #23272f;
}

.company-card p {
    margin: 7px 0;
    color: #444;
    font-size: 1em;
}

.company-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #6366f1;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.92em;
    margin-right: 7px;
    margin-bottom: 5px;
}

@media (max-width: 700px) {
    .company-card, .company-reviews-wrapper {
        width: 100% !important;
        padding: 10px 2vw;
    }
}

.company-reviews-wrapper {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto 32px auto;
    padding: 20px 24px;
    background: none;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.wp-block-comments {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto 32px auto !important;
    padding: 20px 24px;
    background: none;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Стили для формы внутри блока комментариев */
.wp-block-post-comments-form form#commentform {
    margin-bottom: 0;
}

.wp-block-post-comments-form .comment-form-author,
.wp-block-post-comments-form .comment-form-email,
.wp-block-post-comments-form .comment-form-comment {
    margin-bottom: 14px;
}

.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fafbfc;
    font-size: 1rem;
    font-family: inherit;
    color: #222;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-sizing: border-box;
    outline: none;
}

.wp-block-post-comments-form input[type="text"]:focus,
.wp-block-post-comments-form input[type="email"]:focus,
.wp-block-post-comments-form textarea:focus {
    border-color: #22C55E;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.08);
    background: #fff;
}

.wp-block-post-comments-form input::placeholder,
.wp-block-post-comments-form textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
    opacity: 1;
}

.wp-block-post-comments-form #submit {
    background: #22C55E;
    color: #fff;
    font-weight: 700;
    padding: 13px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.08em;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(34,197,94,0.07);
    margin-top: 8px;
}

.wp-block-post-comments-form #submit:hover,
.wp-block-post-comments-form #submit:focus {
    background: #16a34a;
}

/* Убираем подсказки под формой */
.wp-block-post-comments-form .comment-notes,
.wp-block-post-comments-form .form-allowed-tags {
    display: none !important;
}

.wp-block-comment {
    background: #fafbfc;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: 0 3px 16px rgba(34,197,94,0.07);
}

.wp-block-comment-author-name {
    color: #6366f1; /* ваш фирменный цвет */
    font-weight: 700;
    font-size: 1.07em;
    margin-bottom: 3px;
    display: block;
    letter-spacing: 0.01em;
}


.wp-block-comment-author-name:before {
    content: "👤";
    margin-right: 4px;
    font-size: 1.04em;
    vertical-align: middle;
}



/* Responsive */
@media (max-width: 1100px) {
    .company-reviews-wrapper {
        width: 100% !important;
        padding: 16px 8px;
    }
}

.company-listing-wrapper {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.company-card-visual {
    display: flex;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(99,102,241,0.06);
    border: 1.5px solid #e5e7eb;
    min-height: 220px;
}

.company-card-image {
    flex: 0 0 50%;
    min-width: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 220px;
    max-height: 320px;
}

.company-card-image--empty {
    background: #f3f4f6 url('data:image/svg+xml;utf8,<svg width="80" height="80" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="80" fill="%23f3f4f6"/><text x="40" y="45" font-size="16" fill="%23b0b5be" text-anchor="middle" font-family="Arial">Нет фото</text></svg>') center/40% no-repeat;
}

.company-card-info {
    flex: 1 1 50%;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.company-card-info h3 {
    margin: 0 0 12px 0;
    font-size: 1.3em;
    color: #23272f;
    font-weight: 700;
    color: #6366F1;
}

.company-card-name {
    font-size: 1.1em;
    color: #6366f1;
    margin-bottom: 10px;
}

.company-card-address,
.company-card-phone,
.company-card-website,
.company-card-rating,
.company-card-worktime,
.company-card-yandex-reviews {
    margin-bottom: 15px;
    color: #444;
    font-size: 1em;
}

.company-card-website a {
    color: #2563eb;
    text-decoration: underline;
    word-break: break-all;
    margin-bottom: 15px;
}

.company-card-advantages {
    margin-top: 10px;
    font-size: 0.98em;
    color: #25633e;
}

.company-card-advantages ul {
    padding-left: 18px;
    margin: 0;
}

.company-card-advantages li {
    margin-bottom: 3px;
}

@media (max-width: 900px) {
    .company-listing-wrapper {
        max-width: 100vw;
        padding: 0 2vw;
    }
    .company-card-visual {
        flex-direction: column;
        min-height: 0;
    }
    .company-card-image,
    .company-card-image--empty {
        flex: none;
        width: 100%;
        min-height: 180px;
        max-height: 220px;
    }
    .company-card-info {
        padding: 18px 12px;
    }
}

.company-socials {
    margin-top: 18px;
    display: flex;
    gap: 18px;
    align-items: center;
}
.company-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f5f6fa;
    box-shadow: 0 2px 8px rgba(99,102,241,0.03);
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    border: 1.5px solid #e5e7eb;
    overflow: hidden;
    text-decoration: none;
}
.company-social-link svg {
    width: 50px;
    height: 50px;
    display: block;
    filter: none;
    opacity: 1;
    transition: transform 0.18s;
}
.company-social-link:hover,
.company-social-link:focus {
    background: #e0e7ff;
    box-shadow: 0 4px 16px rgba(99,102,241,0.08);
    transform: translateY(-2px) scale(1.07);
}
.company-social-link:hover svg,
.company-social-link:focus svg {
    transform: scale(1.13);
}
.company-social-link--inactive {
    pointer-events: none;
    filter: grayscale(1) brightness(1.7) opacity(0.45);
    cursor: default;
    background: #f5f6fa !important;
    border-color: #e5e7eb !important;
}

.company-crosslink-list {
    display: flex;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.company-crosslink-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 320px;
    background: #fff;
    border-radius: 11px;
    box-shadow: 0 4px 18px rgba(99,102,241,0.06);
    border: 1.5px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 14px 0;
    text-align: center;
    overflow: hidden;
}

.company-crosslink-img {
    width: 100%;
    aspect-ratio: 3/2;
    background: #f4f6fb;
    overflow: hidden;
    margin-bottom: 8px; /* Меньше пространства под фото */
    border-radius: 9px;
}
.company-crosslink-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.company-crosslink-img--empty {
    background: #e7eaf5 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="80"><rect width="120" height="80" fill="%23e7eaf5"/><text x="60" y="48" font-size="16" fill="%23b0b5be" text-anchor="middle" font-family="Arial">Нет фото</text></svg>') center/60% no-repeat;
}

/* Резерв под две строки названия, сокращаем зазор перед рейтингом */
.company-crosslink-info {
    width: 100%;
    padding: 0 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.company-crosslink-name {
    font-size: 1.07em;
    color: #27306d;
    font-weight: 600;
    margin-bottom: 3px;
    min-height: 2.7em;           /* всегда место под 2 строки */
    max-height: 2.7em;
    line-height: 1.35;
    display: flex;
    align-items: center;         /* ВЕРТИКАЛЬНО центрируем текст! */
    justify-content: center;     /* по центру по горизонтали */
    text-decoration: none;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}


.company-crosslink-rating {
    font-size: 1.02em;
    font-weight: 600;
    color: #6366f1;      /* фирменный цвет */
    margin: 0 0 0 0;     /* убираем все отступы, только тот зазор что был выше */
}

@media (max-width: 1000px) {
    .company-crosslink-card {
        max-width: 31vw;
    }
}
@media (max-width: 800px) {
    .company-crosslink-list {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    .company-crosslink-card {
        max-width: 46vw;
        flex-basis: 47%;
    }
    .company-crosslink-img {
        aspect-ratio: 3/2;
    }
}
@media (max-width: 600px) {
    .company-crosslink-list {
        flex-direction: column;
        gap: 12px;
    }
    .company-crosslink-card {
        max-width: 99vw;
        flex-basis: 99vw;
    }
    .company-crosslink-img {
        width: 100%;
        min-width: 0;
        aspect-ratio: 3/2;
    }
}

.company-crosslink-title {
    font-size: 1.19em;
    color: #23272f;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.01em;
    text-transform: none;
    text-align: left;
    line-height: 1.2;
    /* Если на сайте используется accent-color: */
    /* color: #6366f1; (или ваш фирменный цвет для акцентов) */
    /* Можно добавить бордер, если нужен дополнительный акцент: */
    /* border-left: 4px solid #6366f1; padding-left: 10px; */
}

.company-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 0 0;
}
.company-tag-pill {
    display: inline-block;
    padding: 5px 16px;
    background: linear-gradient(90deg, #6366f1 55%, #4fd1c5 100%);
    color: #fff;
    font-size: 0.99em;
    font-weight: 500;
    border-radius: 36px;
    box-shadow: 0 1px 4px rgba(99,102,241,0.07);
    letter-spacing: 0.03em;
    white-space: nowrap;
    user-select: none;
    margin-bottom: 1px;
    text-decoration: none;
    transition: background .16s, filter .16s;
    cursor: default;
}
.company-tag-pill--link,
.company-tag-pill--link:visited {
    cursor: pointer;
    text-decoration: none;
    filter: brightness(1.03);
}
.company-tag-pill--link:hover {
    filter: brightness(1.14);
    box-shadow: 0 2px 8px rgba(99,102,241,0.14);
    background: linear-gradient(90deg, #4fd1c5 20%, #6366f1 90%);
}
