.contest-catalog {
    --catalog-ink: #1e222b;
    --catalog-muted: #545b69;
    --catalog-line: #dce0e7;
    --catalog-accent: #6443b1;
    background: #fff;
    color: var(--catalog-ink);
    padding: clamp(22px, 3vw, 40px);
    font-family: Arial, sans-serif;
}
.contest-catalog-header, .contest-catalog-toolbar, .contest-catalog-grid,
.contest-catalog .contest-catalog-section-title, .contest-catalog-empty, .contest-catalog-feedback {
    max-width: 1600px;
    margin-inline: auto;
}
.contest-catalog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: clamp(20px, 2.8vw, 34px);
}
.contest-catalog #contest-catalog-title {
    margin: 0 0 10px;
    color: var(--catalog-ink);
    font: 750 clamp(32px, 3.75vw, 48px)/1.08 system-ui, sans-serif;
    letter-spacing: -.04em;
    text-transform: none;
    text-shadow: none;
}
.contest-catalog-header p {
    max-width: 680px;
    margin: 0;
    color: var(--catalog-muted);
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.45;
}
.contest-catalog-guides {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 14px;
    padding-top: 12px;
}
.contest-catalog-guides a, .contest-catalog-feedback a {
    color: var(--catalog-accent);
    font-size: 14px;
    font-weight: 700;
}
.contest-catalog-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 18px;
    margin-bottom: clamp(18px, 3vw, 36px);
}
.contest-catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    padding: 3px 3px 5px;
    margin-left: -3px;
}
.contest-catalog-tabs a, .contest-catalog-sort button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 4px 11px;
    border: 1px solid var(--catalog-line);
    border-radius: 24px;
    background: #fff;
    color: var(--catalog-ink);
    font: 650 13px/1.3 system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}
.contest-catalog-tabs a:hover { background: #e9eaf0; }
.contest-catalog-tabs b { font-weight: inherit; }
.contest-catalog-tabs .contest-catalog-tab-short { display: none; }
.contest-catalog-tabs a[aria-current] {
    background: var(--catalog-ink);
    border-color: var(--catalog-ink);
    color: #fff;
}
.contest-catalog-tabs span {
    border-radius: 12px;
    background: #e3e6ed;
    padding: 2px 6px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.contest-catalog-tabs a[aria-current] span { background: #454b58; }
.contest-catalog-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.contest-catalog-dot--entries { color: #25704b; }
.contest-catalog-dot--voting { color: #7445b2; }
.contest-catalog-dot--upcoming { color: #4074bb; }
.contest-catalog-tabs a[aria-current] .contest-catalog-dot { color: #fff; }
.contest-catalog-sort { flex: 0 0 auto; width: min(190px, 100%); margin: 3px 0 0; }
.contest-catalog .contest-catalog-sort select {
    appearance: none;
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 36px 0 16px;
    border: 1px solid #d2d6df;
    border-radius: 20px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%231e222b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 13px center / 16px no-repeat;
    box-shadow: none;
    color: var(--catalog-ink);
    font: 650 13px/1.3 system-ui, sans-serif;
    cursor: pointer;
}
.contest-catalog .contest-catalog-sort select:hover { background-color: #eceef3; }
.contest-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 1.5vw, 20px);
}
.contest-catalog-card {
    --card-inset: clamp(16px, 1.7vw, 24px);
    --card-arrow-size: 42px;
    --stage-badge: #4c515bdd;
    overflow: hidden;
    border-radius: 16px;
    background: #242932;
}
.contest-catalog-card--entries { --stage-badge: #1d593ce8; }
.contest-catalog-card--voting { --stage-badge: #543281e8; }
.contest-catalog-card--voting .contest-catalog-arrow { background: #552e91; }
.contest-catalog-card--upcoming { --stage-badge: #365781e8; }
.contest-catalog .contest-catalog-card-link {
    isolation: isolate;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    height: clamp(270px, 22vw, 300px);
    padding: var(--card-inset);
    color: #fff;
    text-decoration: none;
}
.contest-catalog-cover, .contest-catalog-card-link::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.contest-catalog-cover {
    z-index: -2;
    object-fit: cover;
    object-position: center 42%;
}
.contest-catalog-card-link::before {
    content: "";
    z-index: -1;
    background: linear-gradient(180deg, transparent 29%, #0a0d1670 60%, #080b12f0 100%);
}
.contest-catalog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
}
.contest-catalog-tag, .contest-catalog-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 8px 10px;
    font-size: clamp(13px, 1.08vw, 14px);
    line-height: 1.2;
    font-weight: 700;
}
.contest-catalog-tag {
    flex: none;
    max-width: 44%;
    background: #dbc6fa;
    color: #26163e;
}
.contest-catalog-tag-gold { background: #ffdb8e; color: #2c2111; }
.contest-catalog-status { min-width: 0; background: var(--stage-badge); color: #fff; }
.contest-catalog-status i { flex: none; }
.contest-catalog-time { display: inline-block; white-space: nowrap; }
.contest-catalog-card-body { padding-right: calc(var(--card-arrow-size) + 12px); }
.contest-catalog .contest-catalog-card h2 {
    display: -webkit-box;
    width: auto;
    margin: 0 0 5px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: inherit;
    font: 700 clamp(24px, 2.2vw, 28px)/1.12 Arial, sans-serif;
    letter-spacing: -.025em;
    text-transform: none;
    text-shadow: 0 1px 5px #0008;
    overflow-wrap: anywhere;
}
.contest-catalog-card-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 54ch;
    margin: 0;
    color: #f2f1f4;
    font-size: 14px;
    line-height: 1.35;
}
.contest-catalog-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 6px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.contest-catalog-stats i { margin-right: 4px; }
.contest-catalog-stats > span + span {
    padding-left: 10px;
    border-left: 1px solid #ffffff38;
}
.contest-catalog-credit {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e2e2e8;
    font-size: 11px;
}
.contest-catalog-arrow {
    position: absolute;
    bottom: var(--card-inset);
    right: var(--card-inset);
    display: grid;
    place-items: center;
    width: var(--card-arrow-size);
    height: var(--card-arrow-size);
    border-radius: 50%;
    background: var(--stage-badge);
    font-size: 29px;
    line-height: 1;
}
.contest-catalog-card-link:hover h2 { text-decoration: underline; text-underline-offset: .13em; }
.contest-catalog :is(a, select, button):focus-visible {
    outline: 2px solid var(--catalog-accent);
    outline-offset: 2px;
}
.contest-catalog .contest-catalog-card-link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.contest-catalog .contest-catalog-section-title {
    width: auto;
    margin-top: 32px;
    margin-bottom: 14px;
    color: var(--catalog-ink);
    font: 750 clamp(22px, 2.4vw, 30px)/1.15 system-ui, sans-serif;
    letter-spacing: -.025em;
    text-transform: none;
    text-shadow: none;
}
.contest-catalog-empty {
    padding: 20px;
    border: 1px solid var(--catalog-line);
    border-radius: 12px;
    background: #fff;
    color: var(--catalog-muted);
}
.contest-catalog-feedback { margin-top: 34px; text-align: center; }

@media (max-width: 850px) {
    .contest-catalog-header { flex-direction: column; }
    .contest-catalog-guides { padding: 0; justify-content: flex-start; }
}
@media (max-width: 640px) {
    .contest-catalog { padding: 20px 14px; }
    .contest-catalog-toolbar { flex-direction: column; gap: 5px; }
    .contest-catalog-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
    .contest-catalog-tabs a { gap: 5px; padding-inline: 8px; font-size: 12px; }
    .contest-catalog-tabs .contest-catalog-tab-long { display: none; }
    .contest-catalog-tabs .contest-catalog-tab-short { display: inline; }
    .contest-catalog-sort { width: min(175px, 100%); margin: 0; }
    .contest-catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .contest-catalog-card { --card-inset: 14px; --card-arrow-size: 36px; }
    .contest-catalog .contest-catalog-card-link { height: clamp(190px, 53vw, 220px); }
    .contest-catalog-tag, .contest-catalog-status { font-size: 12px; padding: 8px; }
    .contest-catalog .contest-catalog-card h2 { font-size: clamp(19px, 5.25vw, 21px); }
    .contest-catalog-card-description, .contest-catalog-credit { display: none; }
    .contest-catalog-arrow { font-size: 25px; }
}

/* Авторские конкурсы в общем каталоге */
.contest-creators {
    max-width: 1600px;
    margin: clamp(16px, 2vw, 24px) auto;
    padding: clamp(16px, 2vw, 24px);
    border: 1px solid #e4e3ee;
    border-radius: 18px;
    background: #f4f4f7;
}
.contest-creators-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-bottom: clamp(14px, 1.8vw, 20px);
}
.contest-creators-title {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
    min-width: 0;
}
.contest-creators .contest-creators-title h2 {
    width: auto;
    margin: 0;
    color: #15151c;
    font: 750 clamp(23px, 2.5vw, 33px)/1.1 system-ui, sans-serif;
    letter-spacing: -.03em;
    text-transform: none;
    text-shadow: none;
    white-space: nowrap;
}
.contest-creators-sub {
    margin: 0;
    padding-left: clamp(14px, 2vw, 26px);
    border-left: 1px solid #d9d9e3;
    color: #6b6b7a;
    font-size: 14px;
    line-height: 1.4;
}
.contest-creators-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex: none;
}
.contest-creators-link {
    color: #5b3aab;
    font: 700 14px/1.2 system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}
.contest-creators-link:hover { text-decoration: underline; text-underline-offset: .15em; }
.contest-creators-create-btn {
    padding: 9px 18px;
    border: 1px solid #7b5bd6;
    border-radius: 999px;
    background: #fff;
    color: #5b3aab;
    font: 650 14px/1.2 system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}
.contest-creators-create-btn:hover { background: #efe9fb; }
.contest-creators-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.2vw, 16px);
}
.contest-creators-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e4e4ee;
    border-radius: 12px;
    background: #fff;
    color: #15151c;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.contest-creators-card:hover { border-color: #c9c4e4; box-shadow: 0 4px 16px #2a216114; }
.contest-creators-card:hover .contest-creators-name { text-decoration: underline; text-underline-offset: .15em; }
.contest-creators-media {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    background: #e8e8f0;
}
.contest-creators-media::before {
    content: "";
    grid-area: 1 / 1;
    aspect-ratio: 16 / 9;
}
.contest-creators-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contest-creators-badge {
    position: relative;
    grid-area: 1 / 1;
    place-self: start;
    margin: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 20px);
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    font: 650 11px/1.2 system-ui, sans-serif;
    overflow-wrap: anywhere;
}
.contest-creators-badge i { flex: none; font-size: 8px; }
.contest-creators-badge--entries { color: #16643e; }
.contest-creators-badge--voting { color: #5b3aab; }
.contest-creators-badge--voting i { font-size: 11px; }
.contest-creators-badge--soon { color: #2d5b9e; }
.contest-creators-body { display: block; padding: 10px 12px 12px; }
.contest-creators-name {
    display: block;
    overflow: hidden;
    color: #15151c;
    font: 650 15px/1.3 system-ui, sans-serif;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.contest-creators-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    color: #6b6b7a;
    font-size: 12px;
    line-height: 1.3;
}
.contest-creators-owner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.contest-creators-owner img {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8e8f0;
}
.contest-creators-owner > span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.contest-creators-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    font-variant-numeric: tabular-nums;
}
.contest-creators-create {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 100%;
    padding: 16px;
    border: 1px dashed #cfcbe4;
    border-radius: 12px;
    background: #fbfaff;
    color: #5b3aab;
    font: 700 13px/1.3 system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.contest-creators-create:hover { border-color: #9c85e0; background: #f6f2ff; }
.contest-creators-plus {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #efe9fb;
    color: #6b46c9;
    font-size: 24px;
    line-height: 1;
}
.contest-creators-create b {
    display: block;
    max-width: 16em;
    color: #15151c;
    font: 650 15px/1.3 system-ui, sans-serif;
}
.contest-creators-create small {
    display: block;
    max-width: 18em;
    color: #6b6b7a;
    font: 400 12px/1.4 system-ui, sans-serif;
}
.contest-creators-narrow { display: none; }

.contest-creators-title.contest-creators-title--help { display: flex; gap: 6px; }
.contest-creators-help {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    color: #6b6b7a;
    font: 17px/1 system-ui, sans-serif;
    text-decoration: none;
}
.contest-creators-help:hover, .contest-creators-help:focus-visible { color: #5b3aab; background: #efe9fb; text-decoration: none; }

@media (max-width: 1100px) {
    .contest-creators-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .contest-creators { padding: 14px; border-radius: 14px; }
    .contest-creators-head { align-items: center; gap: 4px 10px; margin-bottom: 12px; }
    .contest-creators-title { order: 1; display: block; }
    .contest-creators .contest-creators-title h2 { font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
    .contest-creators-sub { order: 3; flex-basis: 100%; margin: 0; padding-left: 0; border-left: 0; font-size: 13px; }
    .contest-creators-actions { order: 2; margin-left: auto; }
    .contest-creators-link { font-size: 13px; }
    .contest-creators-create-btn { display: none; }
    .contest-creators-wide { display: none; }
    .contest-creators-narrow { display: inline; }
    .contest-creators-grid { gap: 8px; }
    .contest-creators-body { padding: 8px 9px 9px; }
    .contest-creators-name {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 13px;
        white-space: normal;
        text-overflow: clip;
    }
    .contest-creators-meta { margin-top: 4px; font-size: 11px; }
    .contest-creators-owner img { width: 16px; height: 16px; }
    .contest-creators-start, .contest-creators-people-word { display: none; }
    .contest-creators-create { padding: 12px 8px; gap: 6px; }
    .contest-creators-plus { width: 34px; height: 34px; font-size: 20px; }
    .contest-creators-create b { font-size: 13px; }
    .contest-creators-create > span:last-child { display: none; }
    .contest-creators-create.contest-creators-create--about { min-height: 0; }
    .contest-creators-create--about small { display: none; }
    .contest-creators-create > span.contest-creators-about-link { display: inline; }
}
