@font-face {
    font-family: "TBK Gellix";
    src: url("../fonts/gellix-medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "TBK Gellix";
    src: url("../fonts/gellix-extrabold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800 900;
    font-display: swap;
}

.tbk-page,
.tbk-page *,
.tbk-coalition,
.tbk-coalition * {
    box-sizing: border-box;
}

.tbk-page,
.tbk-coalition {
    --tbk-red: #e9504c;
    --tbk-light-red: #fadada;
    --tbk-yellow: #ffeb6c;
    --tbk-light-yellow: #fcf6cc;
    --tbk-green: #b5f06d;
    --tbk-light-green: #e8efd8;
    --tbk-purple: #c0b7ff;
    --tbk-light-purple: #e3eaff;
    --tbk-gray: #e1dfd9;
    --tbk-light-gray: #f6f6f6;
    --tbk-black: #1d1d1d;
    --tbk-white: #fff;
    color: var(--tbk-black);
    font-family: "TBK Gellix", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.tbk-candidates-view .tbk-page {
    padding-top: 64px;
}

.tbk-page h1,
.tbk-page h2,
.tbk-page h3,
.tbk-page p,
.tbk-page figure,
.tbk-coalition p {
    color: inherit;
    font-family: inherit;
    margin: 0;
}

.tbk-page a,
.tbk-coalition a {
    color: inherit;
}

.tbk-page img,
.tbk-coalition img {
    border: 0;
    max-width: 100%;
}

.tbk-container {
    margin: 0 auto;
    max-width: 1194px;
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
}

.tbk-intro {
    background: var(--tbk-light-red);
    padding: 32px 0 64px;
}

.tbk-intro__inner {
    max-width: 772px;
}

.tbk-intro h1,
.tbk-profile h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.02;
}

.tbk-intro h1 {
    padding-bottom: 24px;
}

.tbk-intro p {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
}

.tbk-featured-section {
    background: var(--tbk-white);
    padding: 32px 0 24px;
}

.tbk-featured-wrap,
.tbk-filter-wrap {
    margin: 0 auto;
    max-width: 971px;
}

.tbk-featured {
    background: var(--tbk-red);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 606px;
    overflow: hidden;
}

.tbk-featured__image {
    background: var(--tbk-gray);
    min-height: 100%;
}

.tbk-featured__image img,
.tbk-featured__image .tbk-image-placeholder {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    width: 100%;
}

.tbk-image-placeholder {
    background: var(--tbk-gray);
}

.tbk-featured__content {
    color: var(--tbk-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 16px;
}

.tbk-featured__quote {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.18;
    padding-bottom: 32px;
}

.tbk-featured__name {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.02;
    padding: 0 32px 32px 0;
    text-align: right;
}

.tbk-arrow-link {
    align-items: center;
    color: var(--tbk-black) !important;
    display: inline-flex;
    font-family: inherit;
    font-size: 24px;
    font-weight: 500;
    gap: 0;
    line-height: 1.18;
    text-decoration: underline !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 3px;
    width: max-content;
}

.tbk-arrow-link::after {
    background: url("../imgs/right-arrow.svg") center / contain no-repeat;
    content: "";
    display: inline-block;
    height: .75em;
    transition: transform .2s ease;
    width: 1.5em;
}

.tbk-arrow-link:hover::after,
.tbk-arrow-link:focus-visible::after {
    transform: translateX(.35em);
}

.tbk-arrow-link--white {
    color: var(--tbk-white) !important;
}

.tbk-arrow-link--white::after {
    background-image: url("../imgs/right-arrow-white.svg");
}

.tbk-filter-wrap {
    padding-top: 24px;
}

.tbk-filters {
    display: flex;
    gap: 8px;
    position: relative;
}

.tbk-custom-select {
    max-width: 230px;
    position: relative;
    width: 100%;
}

.tbk-custom-select--district {
    max-width: 260px;
}

.tbk-custom-select__toggle,
.tbk-clear-filter,
.tbk-custom-select__option,
.tbk-section-toggle {
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.tbk-custom-select__toggle {
    align-items: center;
    background: var(--tbk-light-purple);
    border: 0;
    border-radius: 999px;
    color: var(--tbk-black);
    cursor: pointer;
    display: flex;
    font-size: 18px;
    font-weight: 400;
    gap: 8px;
    justify-content: space-between;
    line-height: 1;
    margin: 0;
    min-height: 52px;
    padding: 16px 20px;
    text-align: left;
    width: 100%;
}

.tbk-custom-select--role .tbk-custom-select__toggle,
.tbk-custom-select--role .tbk-custom-select__menu {
    background: var(--tbk-light-yellow);
}

.tbk-custom-select__icon {
    background: url("../imgs/arrow-down.svg") center / 100% no-repeat;
    flex: 0 0 16px;
    height: 9px;
    transition: transform .2s ease;
    width: 16px;
}

.tbk-custom-select.is-open .tbk-custom-select__icon {
    transform: rotate(180deg);
}

.tbk-custom-select__menu {
    background: var(--tbk-light-purple);
    border-radius: 16px;
    display: none;
    left: 0;
    padding: 8px;
    position: absolute;
    top: calc(100% + 8px);
    width: 100%;
    z-index: 50;
}

.tbk-custom-select.is-open .tbk-custom-select__menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tbk-custom-select__option {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--tbk-black);
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    padding: 16px;
    text-align: left;
    width: 100%;
}

.tbk-custom-select__option:hover,
.tbk-custom-select__option:focus-visible,
.tbk-custom-select__option.is-active {
    background: var(--tbk-purple);
}

.tbk-custom-select--role .tbk-custom-select__option:hover,
.tbk-custom-select--role .tbk-custom-select__option:focus-visible,
.tbk-custom-select--role .tbk-custom-select__option.is-active {
    background: var(--tbk-yellow);
}

.tbk-clear-filter {
    background: var(--tbk-light-purple) url("../imgs/close.svg") center / 14px no-repeat;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    flex: 0 0 52px;
    height: 52px;
    margin: 0;
    width: 52px;
}

.tbk-clear-filter--role {
    background-color: var(--tbk-light-yellow);
}

.tbk-clear-filter.is-hidden {
    display: none;
}

.tbk-results {
    min-height: 80px;
    opacity: 1;
    transition: opacity .2s ease;
}

.tbk-results.is-loading {
    opacity: .35;
    pointer-events: none;
}

.tbk-status {
    height: 0;
    overflow: hidden;
}

.tbk-candidate-section {
    padding: 32px 0;
}

.tbk-section--yellow {
    background: var(--tbk-light-yellow);
}

.tbk-section--green {
    background: var(--tbk-light-green);
}

.tbk-section--purple {
    background: var(--tbk-light-purple);
}

.tbk-section--gray {
    background: var(--tbk-light-gray);
}

.tbk-section-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.02;
    padding-bottom: 24px;
}

.tbk-section-title > span,
.tbk-section-toggle > span > span {
    display: block;
}

.tbk-section-toggle {
    display: none;
}

.tbk-card-grid {
    display: grid;
    gap: 32px 16px;
}

.tbk-card-grid--large {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tbk-card-grid--small {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tbk-person-card {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-bottom: 16px;
}

.tbk-person-card--large {
    padding-bottom: 24px;
}

.tbk-person-card__image {
    aspect-ratio: 4 / 5;
    background: var(--tbk-gray);
    border-radius: 8px;
    display: block;
    overflow: hidden;
    width: 100%;
}

.tbk-person-card--large .tbk-person-card__image {
    border-radius: 10px;
}

.tbk-person-card__image img,
.tbk-person-card__image .tbk-image-placeholder {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.tbk-person-card__title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    padding: 8px 0;
}

.tbk-person-card--large .tbk-person-card__title {
    font-size: 26px;
    padding: 10px 0;
}

.tbk-person-card__title a {
    color: var(--tbk-black) !important;
    text-decoration: underline !important;
    text-decoration-color: transparent !important;
}

.tbk-person-card__title a:hover,
.tbk-person-card__title a:focus-visible {
    text-decoration-color: currentColor !important;
}

.tbk-person-card__tag {
    background: var(--tbk-red);
    border-radius: 2px;
    color: var(--tbk-white);
    display: inline-flex;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 36px;
    padding: 5px 8px;
}

.tbk-person-card--large .tbk-person-card__tag {
    border-radius: 3px;
    font-size: 20px;
    margin-bottom: 48px;
    padding: 6px 10px;
}

.tbk-person-card--small .tbk-arrow-link {
    font-size: 20px;
}

.tbk-empty {
    background: var(--tbk-light-gray);
    padding: 48px 0;
    text-align: center;
}

.tbk-empty p {
    font-size: 20px;
}

.tbk-coalition {
    background: var(--tbk-red);
    color: var(--tbk-white);
    padding: 40px 0;
}

.tbk-coalition__grid {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.tbk-coalition p {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.18;
    max-width: 520px;
}

.tbk-coalition__logos {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: center;
}

.tbk-coalition__logos img {
    display: block;
    height: 54px;
    max-width: 118px;
    object-fit: contain;
    width: auto;
}

/* Profil kandidáta */
.tbk-profile {
    background: var(--tbk-white);
    padding: 48px 0 72px;
}

.tbk-profile__heading {
    max-width: 772px;
}

.tbk-profile h1 {
    padding-bottom: 16px;
}

.tbk-profile__tags,
.tbk-profile__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tbk-profile__tag {
    border-radius: 3px;
    display: inline-flex;
    font-size: 20px;
    line-height: 1.2;
    padding: 6px 10px;
}

.tbk-profile__tag--red {
    background: var(--tbk-red);
    color: var(--tbk-white);
}

.tbk-profile__tag--yellow {
    background: var(--tbk-yellow);
    color: var(--tbk-black);
}

.tbk-profile__links {
    font-size: 16px;
    padding: 8px 0;
}

.tbk-profile__links a {
    color: var(--tbk-black) !important;
    text-decoration: underline !important;
}

.tbk-profile__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    padding-top: 32px;
}

.tbk-profile__image {
    aspect-ratio: 1 / 1;
    background: var(--tbk-gray);
    border-radius: 16px;
    overflow: hidden;
}

.tbk-profile__image--with-slogan {
    border-radius: 16px 16px 0 0;
}

.tbk-profile__image img,
.tbk-profile__image .tbk-image-placeholder {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.tbk-profile__slogan {
    background: var(--tbk-red);
    border-radius: 0 0 16px 16px;
    color: var(--tbk-white);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    padding: 20px 36px;
}

.tbk-profile__copy {
    padding-left: 0;
}

.tbk-profile__paragraph {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    padding-bottom: 24px;
}

.tbk-profile__paragraph p {
    margin: 0 0 1em;
}

.tbk-featured-section--single {
    padding-top: 0;
    padding-bottom: 32px;
}

@media (max-width: 1199px) {
    .tbk-container {
        max-width: 960px;
    }

    .tbk-featured-wrap,
    .tbk-filter-wrap {
        max-width: 780px;
    }

    .tbk-featured {
        min-height: 487px;
    }
}

@media (max-width: 991px) {
    .tbk-container {
        max-width: 720px;
    }

    .tbk-intro__inner {
        max-width: 100%;
    }

    .tbk-card-grid--large,
    .tbk-card-grid--small {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tbk-candidates-view .tbk-page {
        padding-top: 0px;
    }

    .tbk-container {
        max-width: none;
    }

    .tbk-intro {
        padding: 40px 0;
    }

    .tbk-intro h1,
    .tbk-profile h1 {
        font-size: 40px;
        line-height: 1.02;
    }

    .tbk-intro h1 {
        padding-bottom: 48px;
    }

    .tbk-intro p {
        font-size: 24px;
        line-height: 1.12;
    }

    .tbk-featured-section {
        padding: 40px 0 24px;
    }

    .tbk-featured {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .tbk-featured__image {
        aspect-ratio: 9 / 10;
        min-height: 0;
    }

    .tbk-featured__content {
        min-height: 512px;
        padding: 24px 16px;
    }

    .tbk-featured__quote,
    .tbk-arrow-link {
        font-size: 24px;
    }

    .tbk-featured__name {
        padding-right: 0;
    }

    .tbk-filter-wrap {
        padding-top: 24px;
    }

    .tbk-filters {
        flex-wrap: wrap;
    }

    .tbk-custom-select {
        max-width: none;
        width: calc(100% - 60px);
    }

    .tbk-custom-select__menu {
        max-height: 320px;
        overflow-y: auto;
    }

    .tbk-candidate-section {
        padding: 0;
    }

    .tbk-section-title {
        display: none;
    }

    .tbk-section-toggle {
        align-items: center;
        background: transparent;
        border: 0;
        color: var(--tbk-black);
        cursor: pointer;
        display: flex;
        font-size: 24px;
        font-weight: 800;
        justify-content: space-between;
        line-height: 1.2;
        margin: 0;
        padding: 16px 0;
        text-align: left;
        width: 100%;
    }

    .tbk-section-toggle > span {
        max-width: calc(100% - 30px);
    }

    .tbk-section-toggle::after {
        border-bottom: 2px solid currentColor;
        border-right: 2px solid currentColor;
        content: "";
        flex: 0 0 10px;
        height: 10px;
        transform: rotate(45deg);
        transition: transform .2s ease;
        width: 10px;
    }

    .tbk-candidate-section.is-open .tbk-section-toggle::after {
        transform: rotate(225deg);
    }

    .tbk-candidate-section:not(.is-open) .tbk-section-content {
        display: none;
    }

    .tbk-card-grid--large,
    .tbk-card-grid--small {
        gap: 24px 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 32px;
    }

    .tbk-person-card,
    .tbk-person-card--large {
        padding-bottom: 16px;
    }

    .tbk-person-card__image,
    .tbk-person-card--large .tbk-person-card__image {
        border-radius: 8px;
    }

    .tbk-person-card__title,
    .tbk-person-card--large .tbk-person-card__title {
        font-size: 18px;
        line-height: 1.2;
        padding: 8px 0;
    }

    .tbk-person-card--large .tbk-person-card__title {
        font-size: 20px;
        line-height: 1.12;
    }

    .tbk-person-card__tag,
    .tbk-person-card--large .tbk-person-card__tag {
        border-radius: 2px;
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 32px;
        padding: 4px 8px;
    }

    .tbk-person-card .tbk-arrow-link,
    .tbk-person-card--small .tbk-arrow-link {
        font-size: 18px;
    }

    .tbk-coalition {
        padding: 32px 0;
    }

    .tbk-coalition__grid {
        grid-template-columns: 1fr;
    }

    .tbk-coalition p {
        font-size: 24px;
    }

    .tbk-coalition__logos {
        justify-content: flex-start;
    }

    .tbk-coalition__logos img {
        height: 42px;
        max-width: 94px;
    }

    .tbk-profile {
        background: var(--tbk-light-yellow);
        padding: 48px 0 0;
    }

    .tbk-profile h1 {
        padding-bottom: 8px;
    }

    .tbk-profile__tag {
        border-radius: 2px;
        font-size: 18px;
        padding: 4px 8px;
    }

    .tbk-profile__links {
        font-size: 18px;
        padding: 16px 0;
    }

    .tbk-profile__grid {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }

    .tbk-profile__image {
        border-radius: 16px;
    }

    .tbk-profile__image--with-slogan {
        border-radius: 16px 16px 0 0;
    }

    .tbk-profile__slogan {
        font-size: 24px;
        padding: 16px;
    }

    .tbk-profile__copy {
        background: var(--tbk-white);
        margin: 0 -12px;
        padding: 16px 12px 40px;
    }

    .tbk-profile__paragraph {
        font-size: 20px;
    }

    .tbk-featured-section--single {
        padding-top: 0;
        padding-bottom: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tbk-results,
    .tbk-arrow-link::after,
    .tbk-custom-select__icon,
    .tbk-section-toggle::after {
        transition: none;
    }
}

