/*
Theme Name: Reboot Child
Description: Дочерняя тема для каталога логистических компаний на базе Reboot.
Author: Ваше Имя
Template: reboot
Version: 1.0.0
Text Domain: reboot-child
*/

/* =========================================================================
   ВИДЖЕТ-ФИЛЬТР КОМПАНИЙ
   ========================================================================= */

.widget-company-filter {
    position: relative;
}

.company-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ----- Группы ----- */
.company-filter__group {
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s;
}
.company-filter__group[open] { border-color: #d8dde5; }
.company-filter__group summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fafafa;
    list-style: none;
    user-select: none;
    transition: background 0.15s;
}
.company-filter__group summary:hover { background: #f2f4f8; }
.company-filter__group summary::-webkit-details-marker { display: none; }
.company-filter__group-title { flex: 1; }
.company-filter__group summary::after {
    content: '';
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center / contain;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.company-filter__group[open] summary::after { transform: rotate(180deg); }
.company-filter__group[open] summary { border-bottom: 1px solid #ececec; }

.company-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #1d4ed8;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    flex-shrink: 0;
}

.company-filter__body { padding: 8px; }

.company-filter__group-search { padding: 4px 4px 8px; }
.company-filter__group-search input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.company-filter__group-search input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.1);
}

.company-filter__list {
    max-height: 280px;
    overflow-y: auto;
    padding: 2px;
}
.company-filter__list::-webkit-scrollbar { width: 6px; }
.company-filter__list::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 3px;
}
.company-filter__list::-webkit-scrollbar-thumb:hover { background: #b8b8b8; }

.company-filter__item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.1s;
}
.company-filter__item:hover { background: #f5f7fb; }
.company-filter__item input[type="checkbox"] {
    margin: 0 9px 0 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #1d4ed8;
    width: 15px;
    height: 15px;
}
.company-filter__label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.company-filter__num {
    color: #9ca3af;
    font-size: 11px;
    margin-left: 6px;
    flex-shrink: 0;
}

.company-filter__actions {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 8px;
    margin-top: 4px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 30%, #fff 100%);
}

.company-filter__submit {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
    transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}
.company-filter__submit:hover {
    background: linear-gradient(180deg, #1d4ed8 0%, #1740b0 100%);
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35);
}
.company-filter__submit:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(29, 78, 216, 0.3);
}
.company-filter__submit-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
}

.company-filter__reset {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.company-filter__reset:hover {
    color: #dc2626;
    background: #fef2f2;
}

@media (max-width: 768px) {
    .company-filter__list { max-height: 200px; }
    .company-filter__submit { min-height: 42px; font-size: 13px; }
}

/* =========================================================================
   ЗВЁЗДЫ (ОБЩИЕ)
   ========================================================================= */

.rating-stars {
    display: inline-flex;
    gap: 1px;
    font-size: 14px;
    line-height: 1;
}
.rating-star { color: #d5d5d5; }
.rating-star--full { color: #f5b301; }
.rating-star--half {
    background: linear-gradient(90deg, #f5b301 50%, #d5d5d5 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* =========================================================================
   РЕЙТИНГ НА СТРАНИЦЕ КОМПАНИИ
   ========================================================================= */

.company-rating-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    margin: 0 0 24px;
    background: #f9fafb;
    border: 1px solid #ececec;
    border-radius: 12px;
}
.company-rating-box__total {
    text-align: center;
    min-width: 70px;
    padding-right: 20px;
    border-right: 1px solid #e5e5e5;
}
.company-rating-box__value {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}
.company-rating-box__count {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.company-rating-box__input-wrap { flex: 1; }
.company-rating-box__label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.company-rating-input {
    display: inline-flex;
    gap: 3px;
    font-size: 30px;
    line-height: 1;
    user-select: none;
}
.company-rating-input.is-active { cursor: pointer; }
.company-rating-input.is-locked { cursor: not-allowed; opacity: 0.85; }
.company-rating-star {
    color: #d5d5d5;
    transition: color 0.12s, transform 0.08s;
}
.company-rating-input.is-active .company-rating-star:hover,
.company-rating-input.is-active .company-rating-star.is-hover,
.company-rating-star.is-active { color: #f5b301; }
.company-rating-input.is-active .company-rating-star:active { transform: scale(0.92); }
.company-rating-box__hint {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}
.company-rating-box__hint a {
    color: #1d4ed8;
    text-decoration: none;
}
.company-rating-box__hint a:hover { text-decoration: underline; }
.company-rating-box__message {
    font-size: 12px;
    color: #16a34a;
    margin-top: 6px;
    min-height: 16px;
    transition: color 0.15s;
}
.company-rating-box__message.is-error { color: #dc2626; }

@media (max-width: 600px) {
    .company-rating-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .company-rating-box__total {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding-right: 0;
        padding-bottom: 12px;
        width: 100%;
        text-align: left;
    }
    .company-rating-input { font-size: 26px; }
}

/* =========================================================================
   РЕЙТИНГ В КАРТОЧКЕ КАТАЛОГА
   ========================================================================= */

.post-card__company-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    margin-top: 8px;
    background: #fff8e1;
    border-radius: 6px;
    font-size: 12px;
    align-self: flex-start;
}
.post-card__company-rating-value {
    font-weight: 700;
    color: #b45309;
}
.post-card__company-rating .rating-stars { font-size: 12px; }
.post-card__company-rating-count {
    color: #92400e;
    font-size: 11px;
}

/* =========================================================================
   ТУЛБАР НАД КАТАЛОГОМ
   ========================================================================= */

.company-toolbar {
    margin: 20px 0 24px;
    padding: 14px 18px;
    background: #f9fafb;
    border: 1px solid #ececec;
    border-radius: 10px;
}
.company-toolbar__row--top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.company-toolbar__found {
    font-size: 14px;
    color: #555;
}
.company-toolbar__found strong {
    color: #1a1a1a;
    font-weight: 600;
}

.company-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.company-toolbar__sort-label {
    color: #888;
    white-space: nowrap;
}
.company-toolbar__sort-select {
    padding: 6px 28px 6px 10px;
    border: 1px solid #d5d9e0;
    border-radius: 6px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    font-size: 13px;
    font-family: inherit;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s;
}
.company-toolbar__sort-select:focus {
    outline: none;
    border-color: #1d4ed8;
}

.company-toolbar__row--chips {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e5e5;
}
.company-toolbar__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.company-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #eef3fb;
    color: #1d4ed8;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.company-chip:hover {
    background: #dbe7f9;
    color: #1740b0;
}
.company-chip__type {
    color: #6b7280;
    font-size: 11px;
}
.company-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 2px;
    background: rgba(29, 78, 216, 0.15);
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
    color: #1d4ed8;
    transition: background 0.15s;
}
.company-chip:hover .company-chip__remove {
    background: #1d4ed8;
    color: #fff;
}

.company-toolbar__reset {
    font-size: 12px;
    color: #dc2626;
    text-decoration: none;
    padding: 4px 8px;
    margin-left: 4px;
    border-radius: 4px;
    transition: background 0.15s;
}
.company-toolbar__reset:hover {
    background: #fef2f2;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .company-toolbar__row--top {
        flex-direction: column;
        align-items: stretch;
    }
    .company-toolbar__sort { justify-content: space-between; }
    .company-toolbar__sort-select { flex: 1; }
}

/* =========================================================================
   МЕТА КОМПАНИИ (РЕГИОН/ГОРОД)
   ========================================================================= */

.company-meta {
    margin: 10px 0 16px;
    font-size: 14px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.company-meta__region,
.company-meta__city {
    display: inline-flex;
    align-items: center;
    background: #eef3fb;
    color: #1d4ed8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 6px;
}
.company-meta__city {
    background: #f3f4f6;
    color: #4b5563;
}

/* =========================================================================
   СТАТУСЫ
   ========================================================================= */

.company-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}
.company-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    margin-right: 6px;
}
.company-status__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* =========================================================================
   СЕКЦИИ
   ========================================================================= */

.company-section { margin: 28px 0; }
.company-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a;
}

/* =========================================================================
   УСЛУГИ И НАПРАВЛЕНИЯ (ИЕРАРХИЧЕСКИЕ)
   ========================================================================= */

.company-services {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.company-services__group {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}
.company-services__parent {
    flex-shrink: 0;
    padding: 4px 10px;
    background: #1d4ed8;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.company-services__children {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* =========================================================================
   ТЕГИ
   ========================================================================= */

.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.company-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    transition: background 0.15s;
}
.company-tag:hover { background: #e5e7eb; }
.company-tag--fleet {
    background: #fff7ed;
    color: #c2410c;
}
.company-tag--fleet:hover { background: #ffedd5; }
.company-tag--spec {
    background: #f5f3ff;
    color: #6d28d9;
}
.company-tag--spec:hover { background: #ede9fe; }
.company-tag--career {
    background: #ecfdf5;
    color: #047857;
}
.company-tag--career:hover { background: #d1fae5; }

/* =========================================================================
   КОНТАКТЫ И РЕКВИЗИТЫ
   ========================================================================= */

.company-contacts ul,
.company-requisites ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.company-contacts li,
.company-requisites li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    line-height: 1.5;
}
.company-contacts li:last-child,
.company-requisites li:last-child { border-bottom: none; }
.company-contacts__label,
.company-requisites__label {
    flex-shrink: 0;
    min-width: 130px;
    color: #6b7280;
    font-weight: 500;
}
.company-contacts a {
    color: #1d4ed8;
    text-decoration: none;
}
.company-contacts a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .company-services__group {
        flex-direction: column;
        align-items: flex-start;
    }
    .company-contacts__label,
    .company-requisites__label { min-width: 100%; }
}

/* =========================================================================
   ПОХОЖИЕ КОМПАНИИ
   ========================================================================= */

.related-posts--company {
    margin: 40px 0 20px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}
.related-posts--company .related-posts__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* =========================================================================
   ВИДЖЕТЫ-КАЛЬКУЛЯТОРЫ
   ========================================================================= */

.calc {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.calc__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.calc__label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}
.calc__input,
.calc__select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e4ea;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.calc__input:focus,
.calc__select:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.calc__select {
    padding-right: 28px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.calc__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.calc__rates { display: flex; gap: 6px; }
.calc__rate { flex: 1; cursor: pointer; }
.calc__rate input { position: absolute; opacity: 0; pointer-events: none; }
.calc__rate span {
    display: block;
    text-align: center;
    padding: 6px 4px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.15s;
}
.calc__rate:hover span {
    background: #eef3fb;
    border-color: #c7d7f0;
}
.calc__rate input:checked + span {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.calc__modes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.calc__mode {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.calc__mode:hover { background: #f3f4f6; }
.calc__mode input { margin: 0; accent-color: #1d4ed8; }

.calc__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}
.calc__checkbox input {
    accent-color: #1d4ed8;
    cursor: pointer;
}

.calc__results {
    margin-top: 4px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.calc__result {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
}
.calc__result-label { color: #6b7280; }
.calc__result-value {
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}
.calc__result-value--accent { color: #1d4ed8; }
.calc__result--total {
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-size: 15px;
}
.calc__result--total .calc__result-label {
    font-weight: 600;
    color: #333;
}
.calc__result--total .calc__result-value {
    font-size: 17px;
    color: #1d4ed8;
}

.calc__note {
    font-size: 11px;
    line-height: 1.4;
    color: #9ca3af;
    padding-top: 4px;
    border-top: 1px dashed #e5e7eb;
}

@media (max-width: 480px) {
    .calc__row { grid-template-columns: 1fr 1fr 1fr; }
}

/* =========================================================================
   ФИКС: ЕДИНАЯ BOX-МОДЕЛЬ ДЛЯ КАРТОЧЕК
   ========================================================================= */

.post-cards--grid .post-card--grid { box-sizing: border-box; }

.post-cards--grid .post-card--grid:nth-child(6n),
.post-cards--grid .post-card--grid:nth-child(6n+1) {
    padding: 20px;
    border: 1px solid #4d3bfe;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .post-cards--grid .post-card--grid:nth-child(6n),
    .post-cards--grid .post-card--grid:nth-child(6n+1) {
        max-width: calc(33.33% - 40px);
    }
}
@media (min-width: 576px) and (max-width: 767px) {
    .post-cards--grid .post-card--grid:nth-child(6n),
    .post-cards--grid .post-card--grid:nth-child(6n+1) {
        max-width: calc(50% - 20px);
    }
}

/* =========================================================================
   КАРТОЧКИ МЕТА / ТЕКСТОВЫЕ БЛОКИ
   ========================================================================= */

.edu-card__label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}
.edu-card__value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.edu-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}
.edu-institution-desc .edu-text p { margin: 0 0 12px; }
.edu-institution-desc .edu-text p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .edu-cards,
    .edu-highlight { grid-template-columns: 1fr; }
    .edu-highlight__value--accent { font-size: 20px; }
}

/* =========================================================================
   ТАБЛИЦА СВОЙСТВ НАПРАВЛЕНИЯ
   ========================================================================= */

.edu-info { margin: 24px 0 32px; }
.edu-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    font-size: 15px;
}
.edu-info-table tbody tr + tr th,
.edu-info-table tbody tr + tr td { border-top: 1px solid #f0f0f0; }
.edu-info-table th,
.edu-info-table td {
    padding: 14px 18px;
    vertical-align: middle;
    text-align: left;
    line-height: 1.5;
}
.edu-info-table th {
    width: 40%;
    max-width: 260px;
    font-weight: 500;
    color: #6b7280;
    background: #fafbfc;
    border-right: 1px solid #f0f0f0;
}
.edu-info-table td {
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
}
.edu-info-table .edu-info-table__price {
    color: #1d4ed8;
    font-size: 18px;
}

@media (min-width: 600px) {
    .edu-info-table tbody tr:nth-child(even) th,
    .edu-info-table tbody tr:nth-child(even) td {
        background: #fdfdff;
    }
}

@media (max-width: 600px) {
    .edu-info-table th,
    .edu-info-table td {
        display: block;
        width: 100%;
        max-width: none;
        padding: 10px 16px;
    }
    .edu-info-table th {
        border-right: none;
        padding-bottom: 4px;
    }
    .edu-info-table td { padding-top: 4px; }
    .edu-info-table tbody tr + tr th { border-top: 1px solid #f0f0f0; }
    .edu-info-table tbody tr + tr td { border-top: none; }
}

/* =========================================================================
   СЕТКА УЧЕБНЫХ ЗАВЕДЕНИЙ
   ========================================================================= */

.edu-institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.edu-institution-card {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.edu-institution-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #d8dde5;
    transform: translateY(-2px);
}
.edu-institution-card__link {
    text-decoration: none;
    color: inherit;
}
.edu-institution-card__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: #1a1a1a;
}
.edu-institution-card:hover .edu-institution-card__title { color: #1d4ed8; }
.edu-institution-card__city {
    font-size: 13px;
    color: #6b7280;
}
.edu-institution-card__stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}
.edu-institution-card__programs { color: #6b7280; }
.edu-institution-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #b45309;
}
.edu-institution-card__rating .rating-stars { font-size: 12px; }

/* =========================================================================
   НОВОСТИ — КАРТОЧКИ И РУБРИКИ
   ========================================================================= */

.post-card__news-date {
    display: inline-block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

.news-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.news-category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    position: relative;
}
.news-category-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    border-color: #d8dde5;
    transform: translateY(-4px);
}

.news-category-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}
.news-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.news-category-card:hover .news-category-card__image img { transform: scale(1.05); }

.news-category-card--no-image { border-left: 4px solid #1d4ed8; }
.news-category-card--no-image:hover { border-left-color: #1740b0; }
.news-category-card--no-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.08) 0%, rgba(29, 78, 216, 0) 70%);
    border-radius: 0 14px 0 100%;
    pointer-events: none;
}
.news-category-card--no-image .news-category-card__body {
    padding: 24px 24px 22px;
    min-height: 200px;
    justify-content: space-between;
}
.news-category-card--no-image .news-category-card__title {
    font-size: 20px;
    padding-right: 60px;
}

.news-category-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.news-category-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    transition: color 0.2s;
}
.news-category-card:hover .news-category-card__title { color: #1d4ed8; }
.news-category-card__desc {
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}
.news-category-card--no-image .news-category-card__desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #4b5563;
}
.news-category-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
}
.news-category-card__meta::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/><path d='M18 14h-8'/><path d='M15 18h-5'/><path d='M10 6h8v4h-8V6Z'/></svg>") no-repeat center / contain;
}

/* =========================================================================
   ШАПКА РУБРИКИ НОВОСТЕЙ
   ========================================================================= */

.news-category-header { margin: 0 0 32px; }
.news-category-header__image {
    width: 100%;
    aspect-ratio: 21 / 7;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #eef3fb 0%, #dbe7f9 100%);
}
.news-category-header__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-category-header__description {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.65;
    color: #4b5563;
    max-width: 800px;
}
.news-category-header__description p { margin: 0 0 12px; }
.news-category-header__description p:last-child { margin-bottom: 0; }

/* =========================================================================
   ВИДЖЕТ: РУБРИКИ НОВОСТЕЙ
   ========================================================================= */

.news-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-categories-list li { border-bottom: 1px solid #f3f4f6; }
.news-categories-list li:last-child { border-bottom: none; }
.news-categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}
.news-categories-list a:hover { color: #1d4ed8; }
.news-categories-list li.is-active a {
    color: #1d4ed8;
    font-weight: 600;
}
.news-categories-list__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
}

/* =========================================================================
   ВИДЖЕТ: СВЕЖИЕ НОВОСТИ
   ========================================================================= */

.news-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-recent-list li + li {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}
.news-recent-list__link {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.news-recent-list__thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}
.news-recent-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-recent-list__body {
    flex: 1;
    min-width: 0;
}
.news-recent-list__title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #1a1a1a;
    margin-bottom: 4px;
    transition: color 0.15s;
}
.news-recent-list__link:hover .news-recent-list__title { color: #1d4ed8; }
.news-recent-list__date {
    display: block;
    font-size: 11px;
    color: #9ca3af;
}

/* Слитый блок адаптива для новостей */
@media (max-width: 640px) {
    .news-categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .news-category-card--no-image .news-category-card__body { min-height: auto; }
    .news-category-card--no-image .news-category-card__title { padding-right: 0; }
    .news-category-header__image { aspect-ratio: 16 / 9; }
}

/* =========================================================================
   ГЛАВНАЯ СТРАНИЦА
   ========================================================================= */

.home-page {
    padding: 0;
    --home-radius-sm: 10px;
    --home-radius-md: 16px;
    --home-radius-lg: 24px;
    --home-accent: #1d4ed8;
    --home-accent-hover: #1740b0;
    --home-accent-soft: #eef3fb;
    --home-text: #0f172a;
    --home-text-secondary: #4b5563;
    --home-text-muted: #6b7280;
    --home-border: #e8ecf1;
    --home-bg-soft: #f8fafc;
    --home-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04),
                      0 1px 3px rgba(15, 23, 42, 0.06);
    --home-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06),
                      0 2px 4px rgba(15, 23, 42, 0.04);
    --home-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08),
                      0 4px 12px rgba(15, 23, 42, 0.05);
    --home-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* HERO */
.home-hero {
    position: relative;
    padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
    margin: 0 0 40px;
    background:
        radial-gradient(circle at 100% 0%, rgba(29, 78, 216, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, #f6f8fc 0%, #eef3fb 100%);
    border-radius: var(--home-radius-lg);
    overflow: hidden;
    isolation: isolate;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.14) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
}
.home-hero__content { max-width: 760px; position: relative; z-index: 1; }
.home-hero__title {
    font-size: clamp(28px, 4.2vw, 48px);
    line-height: 1.1;
    font-weight: 800;
    color: var(--home-text);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.home-hero__subtitle {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.65;
    color: var(--home-text-secondary);
    margin: 0 0 32px;
    max-width: 640px;
    text-wrap: pretty;
}
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* КНОПКИ */
a.home-btn,
a.home-btn:link,
a.home-btn:visited,
button.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    transition:
        transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.18s,
        color 0.18s,
        border-color 0.18s;
}

a.home-btn--primary,
a.home-btn--primary:link,
a.home-btn--primary:visited,
button.home-btn--primary {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
}
a.home-btn--primary:hover,
a.home-btn--primary:focus,
a.home-btn--primary:active,
button.home-btn--primary:hover,
button.home-btn--primary:focus {
    background: linear-gradient(180deg, #1d4ed8 0%, #1740b0 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 22px rgba(29, 78, 216, 0.38) !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}
a.home-btn--primary:active,
button.home-btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.30) !important;
}

a.home-btn--secondary,
a.home-btn--secondary:link,
a.home-btn--secondary:visited {
    background: #fff !important;
    color: #1d4ed8 !important;
    border-color: #cfdcf3 !important;
}
a.home-btn--secondary:hover,
a.home-btn--secondary:focus,
a.home-btn--secondary:active {
    background: #f5f8fe !important;
    color: #1740b0 !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    text-decoration: none !important;
}

.home-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.22), 0 4px 14px rgba(29, 78, 216, 0.28) !important;
}
.home-btn__arrow {
    font-size: 17px;
    line-height: 1;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
}
.home-btn:hover .home-btn__arrow { transform: translateX(4px); }

/* ЛЕНДИНГ-КАРТОЧКА */
.home-landing-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px 32px;
    margin: 0 0 48px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,0.18) 0%, transparent 55%),
        linear-gradient(120deg, #1e3a8a 0%, #1d4ed8 55%, #3b62e8 100%);
    border-radius: var(--home-radius-md);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s var(--home-ease), box-shadow 0.25s var(--home-ease);
}
.home-landing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.5;
}
.home-landing-card::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
    pointer-events: none;
}
.home-landing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(29, 78, 216, 0.28);
}

.home-landing-card__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 14px;
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: relative;
    z-index: 1;
}
.home-landing-card__body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.home-landing-card__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 6px;
}
.home-landing-card__link {
    display: inline-block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    text-decoration: none;
    text-wrap: pretty;
    transition: color 0.18s;
}
.home-landing-card__link:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.home-landing-card__arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.22s var(--home-ease);
}
.home-landing-card__link:hover .home-landing-card__arrow { transform: translateX(5px); }

/* 3 КАРТОЧКИ-РАЗДЕЛА */
.home-sections { margin: 0 0 64px; }
.home-sections__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.home-section-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-md);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition:
        transform 0.25s var(--home-ease),
        box-shadow 0.28s var(--home-ease),
        border-color 0.22s var(--home-ease);
}
.home-section-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--home-accent), #6d28d9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--home-ease);
}
.home-section-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-lg);
    border-color: #d8dde5;
}
.home-section-card:hover::after { transform: scaleX(1); }

.home-section-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 20px;
    transition: transform 0.25s var(--home-ease);
}
.home-section-card:hover .home-section-card__icon { transform: scale(1.06) rotate(-3deg); }
.home-section-card--company .home-section-card__icon {
    background: linear-gradient(135deg, #eef3fb 0%, #dbe7f9 100%);
    color: var(--home-accent);
}
.home-section-card--edu .home-section-card__icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #15803d;
}
.home-section-card--news .home-section-card__icon {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c;
}

.home-section-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--home-text);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.home-section-card__desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--home-text-muted);
    margin: 0 0 20px;
    flex: 1;
    text-wrap: pretty;
}
.home-section-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--home-accent);
    transition: gap 0.22s var(--home-ease), color 0.18s;
}
.home-section-card:hover .home-section-card__link {
    color: var(--home-accent-hover);
    gap: 10px;
}

/* ОБЩИЙ БЛОК */
.home-block { margin: 0 0 64px; }
.home-block__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f2f5;
}
.home-block__title {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--home-text);
    margin: 0;
    letter-spacing: -0.015em;
}
.home-block__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--home-accent);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s, gap 0.22s var(--home-ease);
}
.home-block__all:hover {
    color: var(--home-accent-hover);
    gap: 10px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.home-block__cta { margin-top: 28px; text-align: center; }

/* УСЛУГИ */
.home-services { display: flex; flex-wrap: wrap; gap: 10px; }
.home-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 999px;
    text-decoration: none;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition:
        background 0.2s var(--home-ease),
        border-color 0.2s var(--home-ease),
        color 0.2s var(--home-ease),
        transform 0.2s var(--home-ease),
        box-shadow 0.2s var(--home-ease);
}
.home-service-tag:hover {
    background: var(--home-accent-soft);
    border-color: #c7d7f0;
    color: var(--home-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.10);
}
.home-service-tag__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 20px;
    padding: 0 8px;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--home-text-muted);
    transition: background 0.2s, color 0.2s;
}
.home-service-tag:hover .home-service-tag__count {
    background: #fff;
    color: var(--home-accent);
}

/* SEO-ТЕКСТ */
.home-seo {
    position: relative;
    margin: 72px 0 24px;
    padding: clamp(28px, 4vw, 48px);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #eef1f5;
    border-radius: var(--home-radius-md);
}
.home-seo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--home-accent), #6d28d9);
    border-radius: 0 0 4px 0;
}
.home-seo h2 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--home-text);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
    max-width: 720px;
}
.home-seo p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--home-text-secondary);
    margin: 0 0 16px;
    max-width: 900px;
    text-wrap: pretty;
}
.home-seo p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
    .home-section-card,
    .home-landing-card { will-change: transform; }
}

@media (max-width: 900px) {
    .home-sections__grid { grid-template-columns: 1fr; gap: 16px; }
    .home-hero { margin-bottom: 32px; }
    .home-landing-card { margin-bottom: 36px; }
    .home-sections,
    .home-block { margin-bottom: 48px; }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 32px 22px 28px;
        border-radius: var(--home-radius-md);
    }
    .home-hero__title { margin-bottom: 14px; }
    .home-hero__subtitle { margin-bottom: 24px; }
    .home-hero__actions { flex-direction: column; }
    .home-btn { justify-content: center; width: 100%; }
    .home-landing-card {
        flex-direction: column;
        text-align: left;
        gap: 14px;
        padding: 22px 22px 24px;
    }
    .home-landing-card__icon { width: 50px; height: 50px; }
    .home-landing-card__link { font-size: 15.5px; }
    .home-section-card { padding: 24px 22px 22px; }
    .home-section-card__icon { width: 48px; height: 48px; margin-bottom: 16px; }
    .home-section-card__title { font-size: 18px; }
    .home-block__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .home-block__cta .home-btn { width: 100%; }
    .home-seo { padding: 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-section-card,
    .home-section-card__icon,
    .home-landing-card,
    .home-landing-card__arrow,
    .home-btn,
    .home-btn__arrow,
    .home-service-tag,
    .home-block__all { transition: none !important; }
    .home-section-card:hover,
    .home-landing-card:hover,
    .home-btn:hover,
    .home-service-tag:hover { transform: none !important; }
}

/* =========================================================================
   РАСТЯГИВАЕМ КОНТЕНТ НА ВСЮ ШИРИНУ
   ========================================================================= */

body.home .site-content-inner { display: block !important; }
body.home #primary.content-area,
body.home .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

body.sidebar-none .site-content-inner { display: block !important; }
body.sidebar-none #primary.content-area,
body.sidebar-none .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

body.home #secondary.widget-area,
body.sidebar-none #secondary.widget-area { display: none !important; }

/* =========================================================================
   РЕЙТИНГИ (СТРАНИЦЫ)
   ========================================================================= */

.rating-single {
    --rating-radius: 14px;
    --rating-accent: #1d4ed8;
    --rating-accent-hover: #1740b0;
    --rating-border: #e8ecf1;
    --rating-text: #0f172a;
    --rating-text-secondary: #4b5563;
    --rating-muted: #6b7280;
    --rating-bg-soft: #f8fafc;
}

.rating-single__header { margin: 0 0 20px; }
.rating-single__title {
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--rating-text);
    margin: 0 0 14px;
    text-wrap: balance;
}
.rating-single__excerpt {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.6;
    color: var(--rating-text-secondary);
    max-width: 800px;
    text-wrap: pretty;
}
.rating-single__description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--rating-text-secondary);
    max-width: 900px;
    margin: 0 0 32px;
}
.rating-single__description p { margin: 0 0 14px; }
.rating-single__description p:last-child { margin-bottom: 0; }

.rating-table-wrap {
    margin: 0 0 32px;
    overflow-x: auto;
    border: 1px solid var(--rating-border);
    border-radius: var(--rating-radius);
    background: #fff;
}
.rating-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    min-width: 720px;
}
.rating-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--rating-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--rating-bg-soft);
    border-bottom: 1px solid var(--rating-border);
    white-space: nowrap;
}
.rating-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f3f7;
    vertical-align: middle;
    color: #1a1a1a;
    line-height: 1.4;
}
.rating-table tbody tr:last-child td { border-bottom: none; }
.rating-table tbody tr { transition: background 0.15s; }
.rating-table tbody tr:hover { background: #fafbfd; }

.rating-table__col-pos    { width: 60px;  text-align: center; }
.rating-table__col-name   { min-width: 220px; }
.rating-table__col-region { width: 150px; }
.rating-table__col-rating { width: 140px; }
.rating-table__col-reviews { width: 90px; text-align: center; }
.rating-table__col-services { width: 240px; }

.rating-table__pos { text-align: center; }
.rating-table__pos-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: var(--rating-bg-soft);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--rating-muted);
}
.rating-table tbody tr[data-position="1"] .rating-table__pos-num {
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}
.rating-table tbody tr[data-position="2"] .rating-table__pos-num {
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #4b5563;
    box-shadow: 0 2px 6px rgba(107, 114, 128, 0.20);
}
.rating-table tbody tr[data-position="3"] .rating-table__pos-num {
    background: linear-gradient(180deg, #fff2e6 0%, #ffe1c2 100%);
    color: #9a3412;
    box-shadow: 0 2px 6px rgba(154, 52, 18, 0.20);
}

.rating-table__name a {
    font-weight: 600;
    color: var(--rating-text);
    text-decoration: none;
    transition: color 0.15s;
}
.rating-table__name a:hover { color: var(--rating-accent); }

.rating-table__rating { white-space: nowrap; }
.rating-table__rating-value {
    font-weight: 700;
    color: #b45309;
    margin-right: 6px;
}
.rating-table__no-rating { color: #9ca3af; }
.rating-table__rating .rating-stars {
    font-size: 13px;
    vertical-align: middle;
}
.rating-table__region,
.rating-table__services {
    color: var(--rating-text-secondary);
    font-size: 13.5px;
}
.rating-table__reviews {
    text-align: center;
    font-weight: 500;
}

.rating-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--rating-muted);
    background: var(--rating-bg-soft);
    border-radius: var(--rating-radius);
    border: 1px dashed var(--rating-border);
}

.rating-pagination {
    display: flex;
    justify-content: center;
    margin: 8px 0 40px;
}
.rating-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid var(--rating-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rating-text);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.rating-pagination .page-numbers:hover {
    background: var(--rating-accent);
    border-color: var(--rating-accent);
    color: #fff;
    transform: translateY(-1px);
}
.rating-pagination .page-numbers.current {
    background: var(--rating-accent);
    border-color: var(--rating-accent);
    color: #fff;
    cursor: default;
}
.rating-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}
.rating-pagination .page-numbers.dots:hover {
    transform: none;
    color: var(--rating-text);
    background: transparent;
}

.ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 28px 0 40px;
}
.rating-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid var(--rating-border, #e8ecf1);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.22s ease;
}
.rating-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #6d28d9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.rating-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-color: #d8dde5;
}
.rating-card:hover::after { transform: scaleX(1); }

.rating-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #eef3fb 0%, #dbe7f9 100%);
    color: #1d4ed8;
    border-radius: 12px;
}
.rating-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}
.rating-card__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
    flex: 1;
}
.rating-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #f1f3f7;
    font-size: 13px;
}
.rating-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #eef3fb;
    color: #1d4ed8;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.rating-card__link {
    color: #1d4ed8;
    font-weight: 600;
    transition: color 0.15s;
}
.rating-card:hover .rating-card__link { color: #1740b0; }

@media (max-width: 720px) {
    .rating-table-wrap {
        border: none;
        border-radius: 0;
        background: transparent;
        overflow: visible;
    }
    .rating-table,
    .rating-table thead,
    .rating-table tbody,
    .rating-table tr,
    .rating-table th,
    .rating-table td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
    }
    .rating-table thead { display: none; }
    .rating-table tbody tr {
        position: relative;
        display: grid;
        grid-template-columns: 56px 1fr;
        grid-template-areas:
            "pos   name"
            "pos   rating"
            "pos   reviews"
            "region region"
            "services services";
        gap: 6px 12px;
        margin-bottom: 12px;
        padding: 16px;
        background: #fff;
        border: 1px solid var(--rating-border);
        border-radius: 12px;
    }
    .rating-table tbody td { border: none; padding: 0; }
    .rating-table__pos { grid-area: pos; align-self: start; }
    .rating-table__name { grid-area: name; font-size: 15px; }
    .rating-table__rating { grid-area: rating; }
    .rating-table__reviews {
        grid-area: reviews;
        text-align: left;
        color: var(--rating-muted);
        font-size: 12px;
    }
    .rating-table__reviews::before { content: 'Отзывов: '; }
    .rating-table__region {
        grid-area: region;
        padding-top: 6px;
        font-size: 13px;
        border-top: 1px solid #f1f3f7;
    }
    .rating-table__region::before {
        content: 'Регион: ';
        color: var(--rating-muted);
    }
    .rating-table__services { grid-area: services; font-size: 13px; }
    .rating-table__services::before {
        content: 'Услуги: ';
        color: var(--rating-muted);
    }
    .rating-table__reviews::after,
    .rating-table__region::after,
    .rating-table__services::after { display: none; }
}

@media (max-width: 640px) {
    .ratings-grid { grid-template-columns: 1fr; gap: 14px; }
    .rating-card { padding: 22px 20px; }
    .rating-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        margin: 0 2px;
    }
}

/* =========================================================================
   Q&A
   ========================================================================= */

.qa-archive,
.qa-single {
    --qa-accent: #1d4ed8;
    --qa-accent-hover: #1740b0;
    --qa-border: #e8ecf1;
    --qa-text: #0f172a;
    --qa-text-secondary: #4b5563;
    --qa-muted: #6b7280;
    --qa-bg-soft: #f8fafc;
    --qa-success: #15803d;
}

.qa-archive__header { margin: 0 0 28px; }
.qa-archive__header .page-title {
    font-size: clamp(24px, 3.4vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--qa-text);
    margin: 0 0 12px;
}
.qa-archive__header .archive-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--qa-text-secondary);
    max-width: 720px;
    margin: 0 0 20px;
}

.qa-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--qa-border);
}
.qa-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--qa-border);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.qa-cat:hover {
    background: var(--qa-bg-soft);
    border-color: #c7d7f0;
    color: var(--qa-accent);
    transform: translateY(-1px);
}
.qa-cat.is-active {
    background: var(--qa-accent);
    border-color: var(--qa-accent);
    color: #fff;
}
.qa-cat__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 6px;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--qa-muted);
}
.qa-cat.is-active .qa-cat__count {
    background: rgba(255,255,255,0.20);
    color: #fff;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 32px;
}
.qa-item {
    display: flex;
    gap: 22px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--qa-border);
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.qa-item:hover {
    border-color: #d8dde5;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.qa-item--solved { border-left: 4px solid var(--qa-success); }

.qa-item__stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    min-width: 82px;
    text-align: center;
}
.qa-item__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 6px;
    border-radius: 8px;
    background: var(--qa-bg-soft);
}
.qa-item__stat.is-best {
    background: #ecfdf5;
    color: var(--qa-success);
}
.qa-item__stat-num {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--qa-text);
}
.qa-item__stat.is-best .qa-item__stat-num { color: var(--qa-success); }
.qa-item__stat-label {
    font-size: 11px;
    color: var(--qa-muted);
    line-height: 1.2;
}
.qa-item__stat.is-best .qa-item__stat-label { color: var(--qa-success); }

.qa-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qa-item__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--qa-text);
    margin: 0;
}
.qa-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.qa-item__title a:hover { color: var(--qa-accent); }
.qa-item__excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--qa-text-secondary);
}
.qa-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: var(--qa-muted);
    margin-top: auto;
}
.qa-item__cat {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--qa-bg-soft);
    border-radius: 6px;
    font-weight: 500;
    color: var(--qa-text-secondary);
}
.qa-item__solved {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #ecfdf5;
    color: var(--qa-success);
    border-radius: 6px;
    font-weight: 600;
}

.qa-question {
    margin: 0 0 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--qa-border);
}
.qa-question__title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--qa-text);
    margin: 0 0 14px;
    text-wrap: balance;
}
.qa-question__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--qa-muted);
    margin: 0 0 20px;
}
.qa-question__cat {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--qa-bg-soft);
    color: var(--qa-text-secondary);
    border-radius: 6px;
    font-weight: 500;
}
.qa-question__content {
    font-size: 15.5px;
    line-height: 1.7;
    color: #1f2937;
    margin: 0 0 24px;
}
.qa-question__content p { margin: 0 0 14px; }
.qa-question__content p:last-child { margin-bottom: 0; }

.qa-question__vote { margin: 0; }
.qa-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--qa-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.qa-vote-btn:hover:not(:disabled) {
    background: var(--qa-bg-soft);
    border-color: #c7d7f0;
    color: var(--qa-accent);
    transform: translateY(-1px);
}
.qa-vote-btn:disabled,
.qa-vote-btn.is-voted {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: var(--qa-success);
    cursor: default;
}
.qa-vote-btn__arrow { font-size: 12px; line-height: 1; }
.qa-vote-btn__count { font-weight: 700; font-size: 15px; }
.qa-vote-btn__label {
    font-size: 13px;
    color: var(--qa-muted);
    margin-left: 4px;
}
.qa-vote-btn.is-voted .qa-vote-btn__label { color: var(--qa-success); }
.qa-vote-btn--small { padding: 6px 12px; font-size: 13px; }
.qa-vote-btn--small .qa-vote-btn__count { font-size: 13px; }

.qa-answers { margin: 0 0 40px; }
.qa-answers__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--qa-text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--qa-border);
}
.qa-answers__title--form { margin-top: 40px; }
.qa-answers__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.qa-answer {
    position: relative;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--qa-border);
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.qa-answer:hover {
    border-color: #d8dde5;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.qa-answer--best {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 40%);
}
.qa-answer__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #10b981;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 14px;
}
.qa-answer__body {
    font-size: 15px;
    line-height: 1.7;
    color: #1f2937;
    margin: 0 0 18px;
}
.qa-answer__body p { margin: 0 0 12px; }
.qa-answer__body p:last-child { margin-bottom: 0; }
.qa-answer__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f3f7;
    flex-wrap: wrap;
}
.qa-answer__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: var(--qa-muted);
}
.qa-answer__author strong {
    color: var(--qa-text);
    font-weight: 600;
}
.qa-answer__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.qa-mark-best {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--qa-border);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--qa-text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.qa-mark-best:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: var(--qa-success);
}
.qa-mark-best.is-marked {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: var(--qa-success);
}

.qa-answers__empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--qa-muted);
    background: var(--qa-bg-soft);
    border-radius: 14px;
    border: 1px dashed var(--qa-border);
}

.qa-ask,
.comment-respond { margin: 40px 0; }
.qa-ask__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--qa-text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--qa-border);
}

.qa-form,
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.qa-form__field,
.comment-form > p {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}
.qa-form__field label,
.comment-form label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--qa-text);
}
.qa-form__field input[type="text"],
.qa-form__field input[type="email"],
.qa-form__field select,
.qa-form__field textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--qa-border);
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--qa-text);
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
    background-color: ghostwhite;
}
.qa-form__field input:focus,
.qa-form__field select:focus,
.qa-form__field textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--qa-accent);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.qa-form__field textarea,
.comment-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}
.qa-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.qa-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.qa-form__submit,
.comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
    transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
    align-self: flex-start;
}
.qa-form__submit:hover,
.comment-form .submit:hover {
    background: linear-gradient(180deg, #1d4ed8 0%, #1740b0 100%);
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
}
.qa-form__note {
    font-size: 12.5px;
    color: var(--qa-muted);
    margin: 0;
}

.qa-message {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
}
.qa-message--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.qa-message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 640px) {
    .qa-item {
        flex-direction: column;
        gap: 14px;
        padding: 18px 18px;
    }
    .qa-item__stats {
        flex-direction: row;
        min-width: 0;
        gap: 8px;
        text-align: left;
    }
    .qa-item__stat {
        flex-direction: row;
        gap: 6px;
        padding: 6px 10px;
    }
    .qa-item__stat-num { font-size: 14px; }
    .qa-item__title { font-size: 16px; }
    .qa-form__row { grid-template-columns: 1fr; }
    .qa-answer { padding: 18px 18px; }
    .qa-answer__footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .qa-vote-btn__label { display: none; }
}

/* =========================================================================
   МЕДИА И КОМЬЮНИТИ
   ========================================================================= */

.media-hub__header { margin: 0 0 36px; max-width: 820px; }
.media-hub__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 16px;
}
.media-hub__subtitle {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.media-hub__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 64px;
}
.media-hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.28s ease, border-color 0.22s ease;
}
.media-hub-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #6d28d9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.media-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-color: #d8dde5;
}
.media-hub-card:hover::after { transform: scaleX(1); }
.media-hub-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    margin-bottom: 22px;
    transition: transform 0.25s ease;
}
.media-hub-card:hover .media-hub-card__icon { transform: scale(1.06) rotate(-3deg); }
.media-hub-card--news .media-hub-card__icon {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c;
}
.media-hub-card--rating .media-hub-card__icon {
    background: linear-gradient(135deg, #eef3fb 0%, #dbe7f9 100%);
    color: #1d4ed8;
}
.media-hub-card--qa .media-hub-card__icon {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    color: #15803d;
}
.media-hub-card__title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.media-hub-card__desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 20px;
    flex: 1;
}
.media-hub-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1d4ed8;
    transition: gap 0.22s ease, color 0.18s;
}
.media-hub-card:hover .media-hub-card__link {
    color: #1740b0;
    gap: 10px;
}

.media-hub-seo {
    margin: 72px 0 24px;
    padding: clamp(28px, 4vw, 48px);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #eef1f5;
    border-radius: 16px;
    position: relative;
}
.media-hub-seo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1d4ed8, #6d28d9);
    border-radius: 0 0 4px 0;
}
.media-hub-seo h2 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 20px;
    max-width: 720px;
}
.media-hub-seo p {
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
    margin: 0 0 16px;
    max-width: 900px;
}
.media-hub-seo p:last-child { margin-bottom: 0; }

/* Полная ширина + без сайдбара (все контексты) */
body.media-context .site-content-inner,
body.qa-context .site-content-inner,
body.rating-context .site-content-inner { display: block !important; }

body.media-context #primary.content-area,
body.qa-context #primary.content-area,
body.rating-context #primary.content-area,
body.media-context .content-area,
body.qa-context .content-area,
body.rating-context .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}
body.media-context #secondary.widget-area,
body.qa-context #secondary.widget-area,
body.rating-context #secondary.widget-area { display: none !important; }

@media (max-width: 900px) {
    .media-hub__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .media-hub-card { padding: 24px 22px; }
    .media-hub-seo { padding: 24px 22px; margin-top: 40px; }
}

/* =========================================================================
   ФОРМА ЗАЯВКИ (submission-form)
   ========================================================================= */

.submission-form {
    max-width: 760px;
    margin: 0 auto;
}
.submission-form__step { display: none; }
.submission-form__step.is-active { display: block; }
.submission-form__title {
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.submission-form__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 24px;
}
.submission-form__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.submission-form__captcha { max-width: 320px; }
.submission-form__captcha input[type="number"] { font-weight: 600; }

.submission-form__checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
}
.submission-form__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #1f2937;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}
.submission-form__checkbox:hover { background: #eef3fb; }
.submission-form__checkbox input {
    margin: 0;
    accent-color: #1d4ed8;
    flex-shrink: 0;
}

.submission-form__error {
    margin: 20px 0 0;
    padding: 14px 18px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 14px;
}

.submission-form__success {
    text-align: center;
    padding: 40px 20px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 16px;
}
.submission-form__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
}
.submission-form__success .submission-form__title { color: #065f46; }
.submission-form__success .submission-form__desc {
    color: #047857;
    max-width: 480px;
    margin: 0 auto;
}

.submit-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #eef3fb 0%, #dbe7f9 100%);
    border: 1px solid #c7d7f0;
    border-radius: 16px;
}
.submit-cta__body { flex: 1; min-width: 240px; }
.submit-cta__title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}
.submit-cta__desc {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

body.submission-context .site-content-inner { display: block !important; }
body.submission-context #primary.content-area,
body.submission-context .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}
body.submission-context #secondary.widget-area { display: none !important; }

@media (max-width: 640px) {
    .submit-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 20px 22px;
    }
    .submit-cta .home-btn {
        justify-content: center;
        width: 100%;
    }
}

/* =========================================================================
   CTA-КНОПКА НА ДЕТАЛЬНЫХ
   ========================================================================= */

.submit-inline-cta { margin: 20px 0 24px; }
.submit-inline-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #eef3fb 0%, #dbe7f9 100%);
    border: 1px dashed #a3b8e0;
    border-radius: 12px;
    color: #1d4ed8;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.2s;
}
.submit-inline-cta__btn:hover {
    background: linear-gradient(135deg, #dbe7f9 0%, #c7d7f0 100%);
    border-color: #1d4ed8;
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.15);
}
.submit-inline-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #1d4ed8;
    color: #fff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

/* =========================================================================
   МОДАЛЬНОЕ ОКНО (общая обёртка для submit-modal и edit-request-modal)
   ========================================================================= */

.submit-modal,
.edit-request-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.submit-modal[hidden],
.edit-request-modal[hidden] { display: none !important; }

.submit-modal__overlay,
.edit-request-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: submit-fade-in 0.2s ease;
}
.submit-modal__dialog,
.edit-request-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
    animation: submit-pop-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes submit-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes submit-pop-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.submit-modal__close,
.edit-request-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #4b5563;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}
.submit-modal__close:hover,
.edit-request-modal__close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.submit-modal__body,
.edit-request-modal__body { padding: 36px 32px 32px; }

/* Прогресс-бар (только submit-modal, но классы используются и в edit-request) */
.submit-modal__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 32px;
}
.submit-modal__progress-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}
.submit-modal__progress-step.is-active { color: #1d4ed8; }
.submit-modal__progress-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #f3f4f6;
    color: #9ca3af;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.submit-modal__progress-step.is-active .submit-modal__progress-num {
    background: #1d4ed8;
    color: #fff;
}
.submit-modal__progress-line {
    flex: 0 0 60px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 12px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

/* Шаги */
.submit-modal__step { display: none; }
.submit-modal__step.is-active {
    display: block;
    animation: submit-fade-up 0.25s ease;
}
@keyframes submit-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.submit-modal__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    border: none;
    color: #6b7280;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
    transition: color 0.15s;
}
.submit-modal__back:hover { color: #1d4ed8; }

.submit-modal__title,
.edit-request-modal__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.submit-modal__desc,
.edit-request-modal__desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 24px;
}

.submit-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.submit-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.submit-modal__field label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
}
.submit-modal__field input[type="text"],
.submit-modal__field input[type="email"],
.submit-modal__field input[type="url"],
.submit-modal__field input[type="number"],
.submit-modal__field select,
.submit-modal__field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.submit-modal__field input:focus,
.submit-modal__field select:focus,
.submit-modal__field textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.submit-modal__field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.submit-modal__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.submit-modal__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.submit-modal__field--captcha input[type="number"] {
    max-width: 140px;
    font-weight: 600;
}

.submit-modal__checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
}
.submit-modal__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #1f2937;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}
.submit-modal__checkbox:hover { background: #eef3fb; }
.submit-modal__checkbox input {
    margin: 0;
    accent-color: #1d4ed8;
    flex-shrink: 0;
}
.submit-modal__field--checkboxes { gap: 8px; }

.submit-modal__submit,
.edit-request-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    margin-top: 8px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
    transition: background 0.18s, box-shadow 0.22s, transform 0.15s;
}
.submit-modal__submit:hover:not(:disabled),
.edit-request-modal__submit:hover {
    background: linear-gradient(180deg, #1d4ed8 0%, #1740b0 100%);
    box-shadow: 0 8px 22px rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
}
.submit-modal__submit:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}
.submit-modal__submit-arrow { transition: transform 0.2s; }
.submit-modal__submit:hover:not(:disabled) .submit-modal__submit-arrow {
    transform: translateX(4px);
}

/* Шаг «Готово» (общий для обоих модалок) */
.submit-modal__step--done,
.edit-request-modal__success {
    text-align: center;
    padding: 20px 0;
}
.submit-modal__done-icon,
.edit-request-modal__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.30);
}

.submit-modal__error {
    margin: 20px 0 0;
    padding: 12px 16px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 13.5px;
}

@media (max-width: 640px) {
    .submit-modal__dialog,
    .edit-request-modal__dialog {
        border-radius: 16px;
        max-height: 100vh;
    }
    .submit-modal__body,
    .edit-request-modal__body { padding: 28px 20px 24px; }
    .submit-modal__row { grid-template-columns: 1fr; }
    .submit-modal__title,
    .edit-request-modal__title { font-size: 20px; }
    .submit-modal__progress-line {
        flex-basis: 32px;
        margin: 0 8px;
    }
    .submit-modal__progress-label { display: none; }
}

/* =========================================================================
   КАТАЛОГ ЗАВЕДЕНИЙ (/institution/) — ТУЛБАР
   ========================================================================= */

.inst-toolbar {
    margin: 20px 0 24px;
    padding: 14px 18px;
    background: #f9fafb;
    border: 1px solid #ececec;
    border-radius: 10px;
}
.inst-toolbar__found {
    font-size: 14px;
    color: #555;
}
.inst-toolbar__found strong {
    color: #1a1a1a;
    font-weight: 600;
}

.edu-institutions-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 14px;
    border: 1px dashed #e5e7eb;
}
.edu-institutions-empty a {
    color: #1d4ed8;
    text-decoration: none;
}
.edu-institutions-empty a:hover { text-decoration: underline; }

/* =========================================================================
   НОВОСТИ — БЕЗ САЙДБАРА
   ========================================================================= */

body.news-context .site-content-inner { display: block !important; }
body.news-context #primary.content-area,
body.news-context .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}
body.news-context #secondary.widget-area { display: none !important; }

.entry-content { max-width: none !important; }

.news-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin: 0 0 20px;
    background: #f3f4f6;
    border-left: 3px solid #1d4ed8;
    border-radius: 6px;
    font-size: 13px;
    color: #4b5563;
}
.news-source a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
}
.news-source a:hover { text-decoration: underline; }

.tks-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin-top: 12px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff !important;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
    transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
}
.tks-read-more:hover {
    background: linear-gradient(180deg, #1d4ed8 0%, #1740b0 100%);
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
    color: #fff !important;
}
.tks-read-more:active { transform: translateY(0); }

.entry-excerpt {
    max-width: none !important;
    font-weight: 400 !important;
}

/* =========================================================================
   ВИДЖЕТ «ХОЧУ ДОБАВИТЬ...» / «ЭТО МОЯ КОМПАНИЯ»
   ========================================================================= */

.edit-request-widget { margin: 0; }
.edit-request-widget__desc {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0 0 12px;
}
.edit-request-widget__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
    transition: transform 0.15s, box-shadow 0.2s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.edit-request-widget__btn:hover {
    background: linear-gradient(180deg, #1d4ed8 0%, #1740b0 100%);
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
}
.edit-request-widget__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.30);
}
.edit-request-widget__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* =========================================================================
   КАТАЛОГИ: карточки как на /institution/
   Перебивает всё, что делает родительская тема Reboot
   ========================================================================= */

/* ---------- 1. Сетка ---------- */
.post-cards--grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    align-items: stretch;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

/* ---------- 2. Карточка ---------- */
.post-cards--grid > .post-card--grid,
.post-cards--grid > .post-card--grid:nth-child(6n),
.post-cards--grid > .post-card--grid:nth-child(6n+1) {
    /* Layout */
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 18px 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;

    /* Внешний вид */
    background: #fff !important;
    border: 1px solid #ececec !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.post-cards--grid > .post-card--grid:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    border-color: #d8dde5 !important;
}

/* Гасим родительскую анимацию появления (inline transform тянет карточку на 40px вниз) */
.post-cards--grid > .post-card--grid.w-animate,
.post-cards--grid > .post-card--grid.w-animate--started,
.post-cards--grid > .post-card--grid.w-animate--wait {
    transform: none !important;
    opacity: 1 !important;
    transition-delay: 0s !important;
}

/* ---------- 3. Внутренний контейнер ---------- */
.post-cards--grid > .post-card--grid > .post-card__body {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------- 4. Заголовок ---------- */
.post-cards--grid > .post-card--grid .post-card__title,
.post-cards--grid > .post-card--grid .post-card__title span,
.post-cards--grid > .post-card--grid .post-card__title a {
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    margin: 0 !important;
    transition: color 0.2s;
}
.post-cards--grid > .post-card--grid:hover .post-card__title,
.post-cards--grid > .post-card--grid:hover .post-card__title a,
.post-cards--grid > .post-card--grid:hover .post-card__title span {
    color: #1d4ed8 !important;
}

/* ---------- 5. Описание ---------- */
.post-cards--grid > .post-card--grid .post-card__description {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #6b7280 !important;
    margin: 0 !important;
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- 6. Мета (комментарии/просмотры) — скрываем ---------- */
.post-cards--grid > .post-card--grid .post-card__meta {
    display: none !important;
}

/* ---------- 7. Рейтинг — внизу, как .edu-institution-card__stats ---------- */
.post-cards--grid > .post-card--grid .post-card__company-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: auto 0 0 !important;
    padding: 10px 0 0 !important;
    background: none !important;
    border: none !important;
    border-top: 1px solid #f0f0f0 !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    color: #b45309 !important;
    align-self: stretch !important;
}
.post-cards--grid > .post-card--grid .post-card__company-rating-value {
    font-weight: 700 !important;
    color: #b45309 !important;
}
.post-cards--grid > .post-card--grid .post-card__company-rating-count {
    color: #92400e !important;
    font-size: 11px !important;
}

/* ---------- 8. Прячем SEO-обёртки и meta-теги ---------- */
.post-cards--grid > .post-card--grid > meta,
.post-cards--grid > .post-card--grid > [itemprop="publisher"],
.post-cards--grid > .post-card--grid > [itemprop="author"],
.post-cards--grid > .post-card--grid > [itemprop="mainEntityOfPage"] {
    display: none !important;
}

/* ---------- 9. Адаптив ---------- */
@media (max-width: 640px) {
    .post-cards--grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* =========================================================================
   Отступ между сеткой карточек и пагинацией
   ========================================================================= */

/* Сетки каталогов (компании/направления/новости/заведения) */
.post-cards--grid,
.edu-institutions-grid {
    margin-bottom: 32px !important;
}

/* Стандартная пагинация WP: <nav class="navigation pagination"> */
.post-cards--grid + .navigation.pagination,
.post-cards--grid + nav.pagination,
.edu-institutions-grid + .navigation.pagination,
.edu-institutions-grid + nav.pagination,
.edu-institutions-grid + .navigation,
.post-cards--grid + .navigation {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

/* Внутренний блок страниц — на случай, если родитель использует .nav-links */
.post-cards--grid + .navigation .nav-links,
.edu-institutions-grid + .navigation .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* На всякий случай — общий селектор для page-numbers вне nav */
.post-cards--grid ~ .pagination,
.edu-institutions-grid ~ .pagination {
    margin-top: 24px !important;
}

/* =========================================================================
   РАЗДЕЛ «РАБОТА» — карточки вакансий и резюме
   ========================================================================= */

/* ---------- Сетка карточек ---------- */
.job-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 0 32px;
}

/* ---------- Карточка вакансии / резюме ---------- */
.job-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-sizing: border-box;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.job-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #d8dde5;
    transform: translateY(-2px);
}
.job-card__link {
    text-decoration: none;
    color: inherit;
}
.job-card__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 0;
    transition: color 0.2s;
}
.job-card:hover .job-card__title { color: #1d4ed8; }

.job-card__company {
    font-size: 13px;
    color: #6b7280;
}
.job-card__company a {
    color: #1d4ed8;
    text-decoration: none;
}
.job-card__company a:hover { text-decoration: underline; }

.job-card__salary {
    font-size: 15px;
    font-weight: 700;
    color: #047857;
}

.job-card__experience {
    font-size: 13px;
    color: #6b7280;
}

.job-card__excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.job-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.job-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.3;
}

.job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #9ca3af;
}
.job-card__region {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.job-card__region::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 1 1 18 0Z'/><circle cx='12' cy='10' r='3'/></svg>") no-repeat center / contain;
}

/* ---------- Пустое состояние ---------- */
.jobs-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 14px;
    border: 1px dashed #e5e7eb;
    margin: 24px 0;
}

/* ---------- Иконки карточек-хаба ---------- */
.media-hub-card--jobs .media-hub-card__icon {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
}
.media-hub-card--resume .media-hub-card__icon {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #6d28d9;
}

/* ---------- Отступ сетки от пагинации ---------- */
.job-cards {
    margin-bottom: 32px;
}

/* ---------- Виджеты: компактные списки ---------- */
.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.job-list__item + .job-list__item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}
.job-list__link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    color: inherit;
}
.job-list__title {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: #1a1a1a;
    transition: color 0.15s;
}
.job-list__link:hover .job-list__title { color: #1d4ed8; }
.job-list__meta {
    font-size: 12px;
    color: #6b7280;
}


/* ---------- Мобильная адаптация ---------- */
@media (max-width: 640px) {
    .job-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .job-card { padding: 16px 18px; }
}

/* =========================================================================
   ДЕТАЛЬНАЯ СТРАНИЦА ВАКАНСИИ / РЕЗЮМЕ
   ========================================================================= */

.job-single {
    max-width: 900px;
    margin: 0 0 40px;
}

.job-single__header {
    margin: 0 0 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #ececec;
}

.job-single__title {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 14px;
    text-wrap: balance;
}

.job-single__company {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 18px;
}
.job-single__company a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}
.job-single__company a:hover { text-decoration: underline; }

.job-single__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 20px;
}
.job-single__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #ececec;
    border-radius: 10px;
}
.job-single__meta-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}
.job-single__meta-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}
.job-single__meta-value--salary {
    color: #047857;
    font-size: 16px;
}

.job-single__section {
    margin: 28px 0;
}
.job-single__section-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.job-single__content {
    font-size: 15px;
    line-height: 1.7;
    color: #1f2937;
}
.job-single__content p { margin: 0 0 14px; }
.job-single__content p:last-child { margin-bottom: 0; }
.job-single__content ul,
.job-single__content ol { margin: 0 0 14px; padding-left: 22px; }

.job-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
}

.job-single__portfolio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #eef3fb;
    color: #1d4ed8;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
}
.job-single__portfolio:hover { background: #dbe7f9; }

@media (max-width: 640px) {
    .job-single__meta {
        grid-template-columns: 1fr 1fr;
    }
    .job-single__title { font-size: 22px; }
}

/* ---------- Хаб раздела «Работа» — без сайдбара, во всю ширину ---------- */
body.jobs-hub-page .site-content-inner { display: block !important; }
body.jobs-hub-page #primary.content-area,
body.jobs-hub-page .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}
body.jobs-hub-page #secondary.widget-area { display: none !important; }

/* =========================================================================
   СТРАНИЦА «ПРОФЕССИОНАЛЬНАЯ ПЕРЕПОДГОТОВКА»
   ========================================================================= */

.edu-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 0 32px;
}

.edu-program-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-sizing: border-box;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.edu-program-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #d8dde5;
    transform: translateY(-2px);
}

.edu-program-card__link {
    text-decoration: none;
    color: inherit;
}
.edu-program-card__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 0;
    transition: color 0.2s;
}
.edu-program-card:hover .edu-program-card__title {
    color: #1d4ed8;
}

.edu-program-card__institution {
    font-size: 13px;
    color: #6b7280;
}

.edu-program-card__excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    margin: 2px 0 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.edu-program-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.edu-program-card__stat {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}
.edu-program-card__stat-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.edu-program-card__stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}
.edu-program-card__stat--price .edu-program-card__stat-value {
    color: #047857;
}

.edu-program-card__doc {
    font-size: 12px;
    color: #6b7280;
    padding-top: 6px;
    border-top: 1px dashed #f3f4f6;
}


.edu-programs-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 14px;
    border: 1px dashed #e5e7eb;
}

@media (max-width: 640px) {
    .edu-programs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .edu-program-card {
        padding: 18px;
    }
}

/* ---------- Профессиональная переподготовка — без сайдбара ---------- */
body.prof-retraining-page .site-content-inner {
    display: block !important;
}
body.prof-retraining-page #primary.content-area,
body.prof-retraining-page .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}
body.prof-retraining-page #secondary.widget-area {
    display: none !important;
}

/* =========================================================================
   ЧЕК-БОКС СОГЛАСИЯ С ПОЛИТИКОЙ КОНФИДЕНЦИАЛЬНОСТИ
   ========================================================================= */

.submit-modal__field--privacy {
    margin-top: -4px;
}

.submit-modal__checkbox--privacy {
    align-items: flex-start;
    font-size: 12.5px;
    line-height: 1.45;
    color: #6b7280;
    padding: 4px 6px;
}

.submit-modal__checkbox--privacy input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.submit-modal__checkbox--privacy a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.submit-modal__checkbox--privacy a:hover {
    color: #1740b0;
}

/* ===== HTML-таблицы внутри свойств направления ===== */
.edu-info-table td table,
.edu-info-table td .table,
.edu-info-table td .table-responsive {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
    margin: 4px 0;
}

.edu-info-table td table th,
.edu-info-table td table td {
    padding: 6px 10px;
    border: 1px solid #ececec;
    font-weight: normal;
    text-align: left;
    vertical-align: top;
    background: #fff;
}

.edu-info-table td table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.edu-info-table td .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* То же для блока «Вступительные испытания» */
.company-section .edu-text table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
    margin: 8px 0;
}

.company-section .edu-text table th,
.company-section .edu-text table td {
    padding: 8px 12px;
    border: 1px solid #ececec;
    text-align: left;
    vertical-align: top;
}

.company-section .edu-text table th {
    background: #f8fafc;
    font-weight: 600;
}

@media (max-width: 640px) {
    .edu-info-table td table,
    .company-section .edu-text table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* =========================================================================
   КАРТОЧКА ПРОФ. ПЕРЕПОДГОТОВКИ — HTML в «Срок»
   ФИКС: не даём таблицам вылезать за пределы карточки на мобильном
   ========================================================================= */

/* 1. Сетка — гарантируем, что колонки могут сжиматься */
.edu-programs-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/* 2. Карточка — базовое ограничение */
.edu-program-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* 3. Тело карточки — тоже сжимаемое */
.edu-program-card__link,
.edu-program-card__title,
.edu-program-card__institution,
.edu-program-card__excerpt {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 4. Контейнер stats — flex, дети должны сжиматься */
.edu-program-card__stats {
    min-width: 0;
    max-width: 100%;
}

.edu-program-card__stat {
    min-width: 0;
    max-width: 100%;
}

/* 5. «Срок» — блок на всю ширину, скроллится горизонтально */
.edu-program-card__stat--duration {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 4px;
    overflow: hidden; /* внешний контейнер не даёт таблице растянуть карточку */
}

.edu-program-card__stat--duration .edu-program-card__stat-value {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    font-weight: 400;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

/* 6. Сама таблица — не тянет за собой карточку */
.edu-program-card__stat--duration .edu-program-card__stat-value table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    font-size: 12.5px;
    margin: 4px 0;
}

.edu-program-card__stat--duration .edu-program-card__stat-value table th,
.edu-program-card__stat--duration .edu-program-card__stat-value table td {
    padding: 5px 8px;
    border: 1px solid #ececec;
    text-align: left;
    vertical-align: top;
    background: #fff;
    font-weight: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.edu-program-card__stat--duration .edu-program-card__stat-value table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

/* 7. Параграфы-разделители внутри «Срок» */
.edu-program-card__stat--duration .edu-program-card__stat-value p {
    margin: 4px 0;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* 8. Обёртка с горизонтальным скроллом для узких таблиц */
.edu-program-card__stat--duration .edu-program-card__stat-value table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

/* Девсктоп — таблицу можно снова отображать как обычно */
@media (min-width: 641px) {
    .edu-program-card__stat--duration .edu-program-card__stat-value table {
        display: table;
        white-space: normal;
    }
}

/* 9. Мобильная адаптация */
@media (max-width: 640px) {
    .edu-programs-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .edu-program-card {
        padding: 16px 14px;
    }
    .edu-program-card__title {
        font-size: 15px;
    }
    .edu-program-card__stat--duration .edu-program-card__stat-value table {
        font-size: 11.5px;
    }
    .edu-program-card__stat--duration .edu-program-card__stat-value table th,
    .edu-program-card__stat--duration .edu-program-card__stat-value table td {
        padding: 4px 6px;
    }
}