.deputies-section {
    margin-top: 24px;
}

.deputies-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.deputy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 18px;
    transition: all .25s ease;
}

.deputy-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.deputy-card__photo {
    display: block;
    width: 110px;
    height: 142px;
    background: var(--cream-warm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.deputy-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deputy-card__photo-placeholder,
.deputy-profile__photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, var(--primary-light), var(--primary-darker));
    color: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deputy-card__photo-placeholder svg,
.deputy-profile__photo-placeholder svg {
    width: 58px;
    height: 58px;
}

.deputy-card__body {
    min-width: 0;
}

.deputy-card__meta {
    font-family: var(--narrow);
    font-size: 11px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gold-dark);
    margin-bottom: 8px;
}

.deputy-card__title {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.deputy-card__title a {
    color: var(--primary-darker);
}

.deputy-card__title a:hover {
    color: var(--gold-dark);
}

.deputy-card__district,
.deputy-card__faction {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.deputy-card__link {
    display: inline-flex;
    margin-top: 10px;
    padding: 7px 12px;
    background: var(--primary-darker);
    color: #fff;
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.deputy-card__link:hover {
    background: var(--gold-dark);
    color: #fff;
}

.deputy-profile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    padding: 26px;
    margin-top: 24px;
}

.deputy-profile__top {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}

.deputy-profile__photo {
    width: 220px;
    min-height: 280px;
    background: var(--cream-warm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.deputy-profile__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deputy-profile__summary {
    min-width: 0;
}

.deputy-profile__position {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.3;
    color: var(--primary-darker);
    margin-bottom: 18px;
}

.deputy-profile__row {
    display: flex;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-soft);
    font-size: 14px;
    line-height: 1.45;
}

.deputy-profile__row strong {
    color: var(--primary-darker);
    min-width: 110px;
}

.deputy-profile__badge {
    display: inline-flex;
    margin: 10px 8px 0 0;
    padding: 6px 10px;
    background: var(--primary-50);
    border: 1px solid var(--border);
    color: var(--primary-darker);
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.deputy-info-block {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 2px solid var(--primary-darker);
    position: relative;
}

.deputy-info-block::after {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 60px;
    height: 1px;
    background: var(--gold);
}

.deputy-info-block h2 {
    font-size: 22px;
    color: var(--primary-darker);
    margin-bottom: 16px;
}

.deputy-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deputy-info-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: var(--cream-warm);
    border: 1px solid var(--border);
    font-size: 14px;
}

.deputy-info-item span {
    color: var(--gold-dark);
    font-family: var(--narrow);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
}

.deputy-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.deputy-text p {
    margin-bottom: 14px;
}

.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.right-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
}

.right-widget__head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    font-family: var(--narrow);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--primary-darker);
    display: flex;
    align-items: center;
    gap: 8px;
}

.right-widget__head::before {
    content: "";
    width: 4px;
    height: 14px;
    background: var(--gold);
}

.right-widget__body {
    padding: 10px 14px 14px;
}

.right-news-item {
    display: block;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-soft);
}

.right-news-item:last-child {
    border-bottom: 0;
}

.right-news-item__date {
    display: block;
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold-dark);
    margin-bottom: 4px;
}

.right-news-item strong {
    display: block;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--primary-darker);
}

.right-news-item:hover strong {
    color: var(--gold-dark);
}

.right-widget__empty {
    padding: 12px 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 1200px) {
    .deputies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .deputy-card {
        grid-template-columns: 92px 1fr;
        padding: 14px;
    }

    .deputy-card__photo {
        width: 92px;
        height: 120px;
    }

    .deputy-profile {
        padding: 18px;
    }

    .deputy-profile__top {
        grid-template-columns: 1fr;
    }

    .deputy-profile__photo {
        width: 100%;
        max-width: 240px;
    }

    .deputy-info-item,
    .deputy-profile__row {
        display: block;
    }

    .deputy-info-item span {
        display: block;
        margin-top: 6px;
    }
}

.deputy-search {
    margin-top: 22px;
    padding: 18px;
    background: var(--cream-warm);
    border: 1px solid var(--border);
}

.deputy-search__label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--gold-dark);
}

.deputy-search__field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.deputy-search__field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #fff;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text);
}

.deputy-search__field input:focus {
    outline: none;
    border-color: var(--primary);
}

.deputy-search__field button {
    padding: 0 18px;
    background: var(--primary-darker);
    color: #fff;
    font-family: var(--narrow);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    cursor: pointer;
}

.deputy-search__field button:hover {
    background: var(--gold-dark);
}

.deputy-search__count {
    margin-top: 10px;
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
}

.deputy-search__count strong {
    color: var(--gold-dark);
}

.deputies-section {
    margin-top: 24px;
}

.deputies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deputy-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 18px;
    transition: all .25s ease;
}

.deputy-row:hover {
    border-color: var(--primary);
    border-left-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.deputy-row__photo {
    display: block;
    width: 120px;
    height: 150px;
    background: var(--cream-warm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.deputy-row__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deputy-row__photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, var(--primary-light), var(--primary-darker));
    color: rgba(255, 255, 255, .72);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deputy-row__photo-placeholder svg {
    width: 58px;
    height: 58px;
}

.deputy-row__body {
    min-width: 0;
}

.deputy-row__top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.deputy-row__position {
    margin-bottom: 6px;
    font-family: var(--narrow);
    font-size: 11px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gold-dark);
}

.deputy-row__name {
    margin: 0;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.25;
}

.deputy-row__name a {
    color: var(--primary-darker);
}

.deputy-row__name a:hover {
    color: var(--gold-dark);
}

.deputy-row__more {
    display: inline-flex;
    flex-shrink: 0;
    padding: 8px 14px;
    background: var(--primary-darker);
    color: #fff;
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.deputy-row__more:hover {
    background: var(--gold-dark);
    color: #fff;
}

.deputy-row__info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.deputy-row__info-item {
    padding: 12px 14px;
    background: var(--cream-warm);
    border: 1px solid var(--border-soft);
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-soft);
}

.deputy-row__info-item strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary-darker);
}

.deputy-row__info-item span {
    display: block;
    margin-top: 4px;
}

.deputy-row__info-item em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    color: var(--gold-dark);
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.deputies-empty-search {
    margin-top: 18px;
    padding: 22px;
    background: var(--surface);
    border: 1px dashed var(--border);
    color: var(--muted);
}

@media (max-width: 1100px) {
    .deputy-row__info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .deputy-search__field {
        grid-template-columns: 1fr;
    }

    .deputy-search__field button {
        min-height: 42px;
    }

    .deputy-row {
        grid-template-columns: 92px 1fr;
        gap: 14px;
        padding: 14px;
    }

    .deputy-row__photo {
        width: 92px;
        height: 120px;
    }

    .deputy-row__top {
        display: block;
    }

    .deputy-row__name {
        font-size: 18px;
    }

    .deputy-row__more {
        margin-top: 10px;
    }
}

@media (max-width: 520px) {
    .deputy-row {
        grid-template-columns: 1fr;
    }

    .deputy-row__photo {
        width: 120px;
        height: 150px;
    }
}

.deputy-row__line {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-soft);
}

.deputy-row__line-item {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-soft);
}

.deputy-row__line-item strong {
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary-darker);
    white-space: nowrap;
}

.deputy-row__line-item span {
    color: var(--text-soft);
}

.deputy-row__separator {
    margin-right: 4px;
    color: var(--gold-dark);
}

.deputies-empty-search {
    margin-top: 18px;
    padding: 22px;
    background: var(--surface);
    border: 1px dashed var(--border);
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 768px) {
    .deputy-row__line {
        display: block;
    }

    .deputy-row__line-item {
        display: flex;
        margin-top: 8px;
    }
}
.deputy-detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    padding: 24px;
    margin-top: 24px;
}

.deputy-detail-card__grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}

.deputy-detail-card__photo {
    width: 220px;
    min-height: 285px;
    background: var(--cream-warm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.deputy-detail-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deputy-detail-card__photo-placeholder {
    width: 100%;
    min-height: 285px;
    background: linear-gradient(160deg, var(--primary-light), var(--primary-darker));
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deputy-detail-card__photo-placeholder svg {
    width: 70px;
    height: 70px;
}

.deputy-detail-card__position {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.3;
    color: var(--primary-darker);
    margin-bottom: 18px;
}

.deputy-detail-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deputy-detail-info__row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-soft);
}

.deputy-detail-info__row > strong {
    font-family: var(--narrow);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary-darker);
}

.deputy-detail-info__row > span,
.deputy-detail-info__list {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-soft);
}

.deputy-detail-info__membership {
    margin-bottom: 8px;
}

.deputy-detail-info__membership:last-child {
    margin-bottom: 0;
}

.deputy-detail-info__membership .role {
    display: block;
    margin-bottom: 2px;
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gold-dark);
}

.deputy-detail-info__contact {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.deputy-detail-info__contact span {
    color: var(--primary-darker);
    font-weight: 700;
}

.deputy-detail-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
}

.deputy-detail-text p {
    margin-bottom: 10px;
}

.deputy-detail-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.deputy-detail-badges span {
    display: inline-flex;
    padding: 7px 10px;
    background: var(--primary-50);
    border: 1px solid var(--border);
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary-darker);
}

.deputy-tabs {
    margin-top: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.deputy-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--cream-warm);
}

.deputy-tabs__button {
    padding: 14px 20px;
    border-right: 1px solid var(--border);
    font-family: var(--narrow);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary-darker);
    background: transparent;
    cursor: pointer;
}

.deputy-tabs__button.is-active {
    background: var(--primary-darker);
    color: #fff;
}

.deputy-tabs__content {
    padding: 24px;
}

.deputy-tabs__panel {
    display: none;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}

.deputy-tabs__panel.is-active {
    display: block;
}

.deputy-tabs__panel p {
    margin-bottom: 14px;
}

/* Правая колонка */

.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.right-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
}

.right-widget__head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    font-family: var(--narrow);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--primary-darker);
    display: flex;
    align-items: center;
    gap: 8px;
}

.right-widget__head::before {
    content: "";
    width: 4px;
    height: 14px;
    background: var(--gold);
}

.right-widget__body {
    padding: 12px;
}

.right-widget__empty {
    padding: 12px 4px;
    color: var(--muted);
    font-size: 13px;
}

.right-news-card {
    border-bottom: 1px dashed var(--border-soft);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.right-news-card:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.right-news-card__photo {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--cream-warm);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 10px;
}

.right-news-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-news-card__photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(140deg, var(--primary-light), var(--primary-darker));
    color: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 18px;
}

.right-news-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-family: var(--narrow);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
}

.right-news-card__views::before {
    content: "◉ ";
    color: var(--gold);
}

.right-news-card__title {
    margin: 0 0 7px;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.35;
}

.right-news-card__title a {
    color: var(--primary-darker);
}

.right-news-card__title a:hover {
    color: var(--gold-dark);
}

.right-news-card__announce {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-soft);
}

.right-news-card__announce p {
    margin: 0;
}

@media (max-width: 900px) {
    .deputy-detail-card__grid {
        grid-template-columns: 1fr;
    }

    .deputy-detail-card__photo {
        width: 220px;
    }

    .deputy-detail-info__row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .deputy-detail-card {
        padding: 16px;
    }

    .deputy-tabs__nav {
        display: block;
    }

    .deputy-tabs__button {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        text-align: left;
    }

    .deputy-tabs__content {
        padding: 16px;
    }
}