/* Конкурсы «МойФанфик». Изолированный модуль: все правила начинаются с contest-. */
.contest-page {
  /* Кремовая светлая тема */
  --ct-bg: #f3ebdf;
  --ct-surface: #fffaf2;
  --ct-surface-2: #f3e9dc;
  --ct-surface-3: #eadcca;

  --ct-text: #2d241f;
  --ct-muted: #74675d;
  --ct-border: #d8c9b8;

  --ct-shadow:
    0 18px 52px rgba(67, 48, 33, .14);

  --ct-shadow-soft:
    0 8px 24px rgba(67, 48, 33, .10);

  --ct-radius: 22px;
  --ct-radius-sm: 14px;

  --contest-accent: #a75e38;
  --contest-accent-ink: #fffaf5;

  color-scheme: light;
  isolation: isolate;

  color: var(--ct-text);
  background: var(--ct-bg);
}

:where(
  .theme-dark,
  .dark-theme,
  [data-theme="dark"]
) .contest-page,
:where(
  .theme-dark,
  .dark-theme,
  [data-theme="dark"]
).contest-page {
  --ct-bg: #15161a;
  --ct-surface: #1e2026;
  --ct-surface-2: #282b33;
  --ct-surface-3: #313640;

  --ct-text: #f5f5f7;
  --ct-muted: #afb3bd;
  --ct-border: #3c414b;

  --contest-accent: #7f91d8;
  --contest-accent-ink: #0d1424;

  --ct-shadow:
    0 22px 60px rgba(0, 0, 0, .38);

  --ct-shadow-soft:
    0 8px 24px rgba(0, 0, 0, .26);

  color-scheme: dark;
}

:where(
  .theme-neon,
  .neon-theme,
  [data-theme="neon"]
) .contest-page,
:where(
  .theme-neon,
  .neon-theme,
  [data-theme="neon"]
).contest-page {
  --ct-bg: #050c16;
  --ct-surface: #091626;
  --ct-surface-2: #0e2238;
  --ct-surface-3: #143451;

  --ct-text: #edf9ff;
  --ct-muted: #9fc6da;
  --ct-border: #275b76;

  --contest-accent: #38bdf8;
  --contest-accent-ink: #03131e;

  --ct-shadow:
    0 20px 58px rgba(0, 13, 25, .52);

  --ct-shadow-soft:
    0 8px 26px rgba(0, 13, 25, .38);

  color-scheme: dark;
}

:where(
  .theme-soviet,
  .soviet-theme,
  [data-theme="soviet"]
) .contest-page,
:where(
  .theme-soviet,
  .soviet-theme,
  [data-theme="soviet"]
).contest-page {
  --ct-bg: #251714;
  --ct-surface: #35211c;
  --ct-surface-2: #432a23;
  --ct-surface-3: #55372e;

  --ct-text: #fff4d5;
  --ct-muted: #d0bfa4;
  --ct-border: #715042;

  --contest-accent: #d54a3f;
  --contest-accent-ink: #fff8e8;

  --ct-shadow:
    0 20px 58px rgba(24, 10, 7, .46);

  --ct-shadow-soft:
    0 8px 24px rgba(24, 10, 7, .32);

  color-scheme: dark;
}

:where(
  .theme-spring,
  .spring-theme,
  [data-theme="spring"]
) .contest-page,
:where(
  .theme-spring,
  .spring-theme,
  [data-theme="spring"]
).contest-page {
  --ct-bg: #fff3f7;
  --ct-surface: #fffafd;
  --ct-surface-2: #f9e8ef;
  --ct-surface-3: #f1d6e1;

  --ct-text: #402732;
  --ct-muted: #806270;
  --ct-border: #dfbdcb;

  --contest-accent: #c95888;
  --contest-accent-ink: #fff;

  --ct-shadow:
    0 18px 52px rgba(116, 49, 77, .14);

  --ct-shadow-soft:
    0 8px 24px rgba(116, 49, 77, .10);

  color-scheme: light;
}

:where(
  .theme-apple,
  .apple-theme,
  [data-theme="apple"]
) .contest-page,
:where(
  .theme-apple,
  .apple-theme,
  [data-theme="apple"]
).contest-page {
  --ct-bg: #f2f7ed;
  --ct-surface: #fbfff8;
  --ct-surface-2: #e8f1e1;
  --ct-surface-3: #dce9d2;

  --ct-text: #243220;
  --ct-muted: #647360;
  --ct-border: #c3d4b9;

  --contest-accent: #4f8e3e;
  --contest-accent-ink: #fff;

  --ct-shadow:
    0 18px 52px rgba(43, 77, 36, .13);

  --ct-shadow-soft:
    0 8px 24px rgba(43, 77, 36, .09);

  color-scheme: light;
}

:where(
  .theme-cosmic,
  .cosmic-theme,
  [data-theme="cosmic"]
) .contest-page,
:where(
  .theme-cosmic,
  .cosmic-theme,
  [data-theme="cosmic"]
).contest-page {
  --ct-bg: #070b1b;
  --ct-surface: #10172e;
  --ct-surface-2: #17213d;
  --ct-surface-3: #202d50;

  --ct-text: #f3f6ff;
  --ct-muted: #a8b2d3;
  --ct-border: #34466f;

  --contest-accent: #718cff;
  --contest-accent-ink: #081127;

  --ct-shadow:
    0 24px 70px rgba(3, 5, 18, .54);

  --ct-shadow-soft:
    0 8px 28px rgba(3, 5, 18, .36);

  color-scheme: dark;
}

.contest-page *, .contest-page *::before, .contest-page *::after { box-sizing: border-box; }
.contest-page a { color: inherit; }
.contest-page img { max-width: 100%; }
.contest-page button, .contest-page input, .contest-page textarea, .contest-page select { font: inherit; }
.contest-page :where(h1, h2, h3, h4) {
  color: var(--ct-text) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none;
}
.contest-page :where(input, textarea, select, button) { color-scheme: inherit; }
.contest-shell {
  box-sizing: border-box;

  width: min(1300px, calc(100% - 24px));
  margin: 24px auto 70px;
  padding:
    28px
    clamp(18px, 2.4vw, 34px)
    84px;

  border: 1px solid var(--ct-border);
  border-radius: 30px;

  background: var(--ct-bg);
  box-shadow: var(--ct-shadow);
}

.contest-shell--narrow {
  width: min(1080px, calc(100% - 24px));
}
.contest-kicker { display: block; margin-bottom: 8px; color: var(--contest-accent); font-size: .75rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.contest-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 16px; border: 1px solid transparent; border-radius: 12px; font-weight: 760; line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.contest-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contest-button:hover:not(:disabled) { transform: translateY(-2px); }
.contest-button:disabled { opacity: .5; cursor: not-allowed; }
.contest-button--primary { color: var(--contest-accent-ink); background: var(--contest-accent); box-shadow: 0 9px 24px color-mix(in srgb, var(--contest-accent) 28%, transparent); }
.contest-button--soft { color: var(--contest-accent); background: color-mix(in srgb, var(--contest-accent) 12%, var(--ct-surface)); border-color: color-mix(in srgb, var(--contest-accent) 28%, var(--ct-border)); }
.contest-button--ghost {
  color: var(--ct-text);
  background: var(--ct-surface);
  border-color: var(--ct-border);
}
.contest-page .contest-button--primary { color: var(--contest-accent-ink); }
.contest-page .contest-button--soft { color: var(--contest-accent); }
.contest-page .contest-button--ghost { color: var(--ct-text); }
.contest-page :is(.contest-card__visual, .contest-entry-card__cover, .contest-entry-tile__cover) { color: #fff; }
.contest-button--danger { color: #fff; background: #b93643; }
.contest-button--small { min-height: 34px; padding: 7px 11px; font-size: .82rem; }
.contest-icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; flex: 0 0 auto; padding: 0; color: var(--ct-text); background: var(--ct-surface-2); border: 1px solid var(--ct-border); border-radius: 11px; cursor: pointer; }
.contest-icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contest-icon-button--danger { color: #c43e4a; background: color-mix(in srgb, #c43e4a 9%, var(--ct-surface)); }

.contest-stage, .contest-status { display: inline-flex; align-items: center; width: fit-content; min-height: 27px; padding: 4px 9px; border: 1px solid transparent; border-radius: 8px; font-size: .74rem; font-weight: 830; line-height: 1.1; }
.contest-stage--submissions, .contest-status--accepted, .contest-status--issued, .contest-status--active { color: #167143; background: #dff5e9; border-color: #b6e7ca; }
.contest-stage--voting, .contest-stage--runoff { color: #5940a9; background: #eee8ff; border-color: #d9cffb; }
.contest-stage--review, .contest-status--pending, .contest-status--needs_changes { color: #8a5b13; background: #fff0cf; border-color: #efd59a; }
.contest-stage--completed, .contest-stage--archived { color: #4c5867; background: #e9edf1; border-color: #d2d9e0; }
.contest-stage--announced, .contest-stage--tally { color: #17657b; background: #ddf3f8; border-color: #b7e0ea; }
.contest-stage--draft, .contest-stage--cancelled, .contest-status--rejected, .contest-status--withdrawn, .contest-status--disqualified, .contest-status--annulled, .contest-status--failed { color: #9a2f3c; background: #fde8eb; border-color: #f2c6cc; }

.contest-breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--ct-muted); font-size: .86rem; overflow: hidden; }
.contest-breadcrumbs a { text-decoration: none; }
.contest-breadcrumbs span:last-child { color: var(--ct-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contest-hub-hero {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 38px;

  min-height: 330px;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;

  color: var(--ct-text);
  background:
    linear-gradient(
      135deg,
      var(--ct-surface-3),
      var(--ct-surface) 62%
    );

  border: 1px solid var(--ct-border);
  border-radius: 30px;
  box-shadow: var(--ct-shadow);
}

.contest-hub-hero::before {
  content: "";

  position: absolute;
  top: -190px;
  right: -125px;

  box-sizing: border-box;
  width: 410px;
  height: 410px;

  background: var(--ct-surface);
  border: 64px solid var(--ct-surface-3);
  border-radius: 50%;

  pointer-events: none;
}

.contest-hub-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.contest-hub-hero h1 {
  margin: 0 0 16px;

  font-size: clamp(2rem, 4.3vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -.045em;

  overflow-wrap: break-word;
}

.contest-hub-hero p {
  max-width: 650px;
  margin: 0;

  color: var(--ct-muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.contest-hub-hero__actions,
.contest-hero__actions,
.home-contest__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contest-hub-hero__seal {
  position: relative;
  z-index: 2;

  display: grid;
  place-items: center;
  justify-self: center;

  width: 224px;
  height: 224px;
}

.contest-hub-hero__seal::before {
  content: "";

  position: absolute;
  inset: 0;

  box-sizing: border-box;

  background: var(--ct-surface-3);
  border: 1px solid
    color-mix(
      in srgb,
      var(--contest-accent) 42%,
      var(--ct-border)
    );
  border-radius: 50%;

  transform: none;
}

.contest-hub-hero__seal svg {
  position: relative;
  z-index: 1;

  width: 132px;

  fill: none;
  stroke: var(--contest-accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;

  filter:
    drop-shadow(
      0 12px 24px
      color-mix(
        in srgb,
        var(--contest-accent) 30%,
        rgba(0, 0, 0, .12)
      )
    );
}

.contest-section { margin-top: 48px; scroll-margin-top: 90px; }
.contest-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.contest-section__heading h2, .contest-page-heading h1 { margin: 0; font-size: clamp(1.55rem,2.8vw,2.35rem); letter-spacing: -.03em; }
.contest-section__heading p { margin: 7px 0 0; color: var(--ct-muted); }
.contest-count { min-width: 42px; height: 34px; display: inline-grid; place-items: center; color: var(--contest-accent); background: color-mix(in srgb, var(--contest-accent) 11%, var(--ct-surface)); border: 1px solid color-mix(in srgb, var(--contest-accent) 22%, var(--ct-border)); border-radius: 10px; font-weight: 850; }
.contest-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }

.contest-card { min-width: 0; overflow: hidden; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: var(--ct-radius); box-shadow: var(--ct-shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.contest-card:hover { transform: translateY(-4px); box-shadow: var(--ct-shadow); }
.contest-card__visual { position: relative; height: 190px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--contest-accent) 80%, #14111f), color-mix(in srgb, var(--contest-accent) 38%, #221a33)); text-decoration: none; }
.contest-card__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,17,.5), transparent 60%); }
.contest-card__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.contest-card:hover .contest-card__visual img { transform: scale(1.035); }
.contest-card__visual .contest-stage { position: absolute; z-index: 2; top: 13px; left: 13px; }
.contest-card__monogram { font-size: 5rem; font-weight: 900; opacity: .8; }
.contest-card__body { padding: 20px; }
.contest-card__eyebrow { margin-bottom: 6px; color: var(--contest-accent); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.contest-card h3 { margin: 0; font-size: 1.27rem; line-height: 1.22; overflow-wrap: anywhere; }
.contest-card h3 a { text-decoration: none; }
.contest-card p {
  display: -webkit-box;
  overflow: hidden;

  min-height: 4.5em;
  max-height: 4.5em;
  margin: 10px 0 14px;

  color: var(--ct-muted);
  line-height: 1.5;

  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.contest-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-top: 13px; margin-bottom: 16px; border-top: 1px solid var(--ct-border); color: var(--ct-muted); font-size: .8rem; }
.contest-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.contest-card__meta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contest-card .contest-button { width: 100%; }

.contest-empty { padding: 44px 28px; text-align: center; background: var(--ct-surface); border: 1px dashed color-mix(in srgb, var(--contest-accent) 35%, var(--ct-border)); border-radius: var(--ct-radius); }
.contest-empty--compact { padding: 28px 20px; }
.contest-empty__icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--contest-accent); background: color-mix(in srgb, var(--contest-accent) 12%, var(--ct-surface)); border: 1px solid color-mix(in srgb, var(--contest-accent) 28%, var(--ct-border)); border-radius: 16px; }
.contest-empty__icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contest-empty h2, .contest-empty h3 { margin: 0 0 8px; }
.contest-empty p { max-width: 580px; margin: 0 auto 18px; color: var(--ct-muted); line-height: 1.55; }

.contest-page-heading { margin: 28px 0; }
.contest-page-heading p { max-width: 720px; color: var(--ct-muted); line-height: 1.6; }
.contest-hero { display: grid; grid-template-columns: minmax(320px,42%) minmax(0,1fr); overflow: hidden; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 28px; box-shadow: var(--ct-shadow); }
.contest-hero__media { position: relative; min-height: 410px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--contest-accent) 85%, #17101e), color-mix(in srgb, var(--contest-accent) 28%, #161221)); }
.contest-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 45%, rgba(0,0,0,.16)); }
.contest-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.contest-hero__media svg { position: absolute; width: 200px; fill: none; stroke: rgba(255,255,255,.28); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.contest-hero__letter { position: relative; z-index: 1; font-size: 7.5rem; font-weight: 950; text-shadow: 0 18px 40px rgba(0,0,0,.25); }
.contest-hero__content { min-width: 0; padding: clamp(24px,4.5vw,58px); align-self: center; }
.contest-hero__topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; color: var(--ct-muted); font-size: .82rem; }
.contest-hero h1 { margin: 0; font-size: clamp(2rem,4vw,3.6rem); line-height: 1.02; letter-spacing: -.045em; overflow-wrap: anywhere; }
.contest-hero__lead { margin: 17px 0 23px; color: var(--ct-muted); font-size: 1.05rem; line-height: 1.65; }
.contest-hero__dates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.contest-hero__dates span { padding: 12px; background: var(--ct-surface-2); border: 1px solid var(--ct-border); border-radius: 12px; }
.contest-hero__dates small { display: block; margin-bottom: 4px; color: var(--ct-muted); font-size: .72rem; }
.contest-hero__dates strong { font-size: .82rem; line-height: 1.35; }

.contest-timeline { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin: 22px 0 0; padding: 18px 20px; list-style: none; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 16px; }
.contest-timeline::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 35px; height: 2px; background: var(--ct-border); }
.contest-timeline li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; color: var(--ct-muted); font-size: .79rem; }
.contest-timeline li > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ct-muted); background: var(--ct-surface-2); border: 2px solid var(--ct-border); border-radius: 50%; font-weight: 900; }
.contest-timeline li.is-done > span, .contest-timeline li.is-active > span { color: #fff; background: var(--contest-accent); border-color: var(--contest-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--contest-accent) 12%, transparent); }
.contest-timeline li.is-active { color: var(--ct-text); }

.contest-tabs {
  position: sticky;
  z-index: 15;
  top: 8px;

  display: flex;
  gap: 5px;
  overflow-x: auto;

  margin-top: 18px;
  padding: 6px;

  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: 14px;

  box-shadow: var(--ct-shadow-soft);
  scrollbar-width: none;
}
.contest-tabs::-webkit-scrollbar { display: none; }
.contest-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border-radius: 9px; font-size: .84rem; font-weight: 720; text-decoration: none; }
.contest-tabs a:hover,
.contest-tabs a.is-active {
  color: var(--contest-accent);
  background:
    color-mix(
      in srgb,
      var(--contest-accent) 12%,
      var(--ct-surface)
    );
}
.contest-tabs span { min-width: 21px; height: 21px; display: grid; place-items: center; background: var(--ct-surface-2); border-radius: 6px; font-size: .7rem; }

.contest-overview-grid, .contest-rules-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 18px; }
.contest-prose-card, .contest-prizes, .contest-policy-card { padding: clamp(22px,3.3vw,38px); background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: var(--ct-radius); box-shadow: var(--ct-shadow-soft); }
.contest-prose-card h2, .contest-prizes h2 { margin: 0 0 18px; font-size: 1.5rem; }
.contest-rich-text { color: var(--ct-muted); line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.contest-prize { display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: 9px; background: var(--ct-surface-2); border: 1px solid var(--ct-border); border-radius: 13px; }
.contest-prize > span { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; font-weight: 950; }
.contest-prize small { display: block; margin-bottom: 2px; color: var(--ct-muted); font-size: .72rem; }
.contest-prize--first > span { color: #7b5500; background: #f7d875; }
.contest-prize--second > span { color: #47515e; background: #d9e0e8; }
.contest-prize--third > span { color: #704018; background: #e7b27d; }
.contest-prizes__extra, .contest-prizes__coauthors { margin: 15px 0 0; color: var(--ct-muted); font-size: .83rem; line-height: 1.5; white-space: pre-line; }

.contest-vote-round { margin-top: 22px; padding: clamp(16px,2.2vw,26px); background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: var(--ct-radius); box-shadow: var(--ct-shadow-soft); }
.contest-vote-round__heading, .contest-leaderboard__title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.contest-vote-round__heading h3 { margin: 0 0 4px; font-size: 1.25rem; }
.contest-vote-round__heading p { margin: 0; color: var(--ct-muted); font-size: .82rem; }
.contest-live-mark { display: inline-flex; align-items: center; gap: 7px; color: #218853; font-size: .76rem; font-weight: 800; }
.contest-live-mark i { width: 8px; height: 8px; background: #2fb66d; border-radius: 50%; box-shadow: 0 0 0 5px rgba(47,182,109,.12); animation: contestPulse 1.8s infinite; }
.contest-vote-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 18px; }
.contest-vote-candidates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.contest-entry-card { min-width: 0; display: grid; grid-template-columns: 108px minmax(0,1fr); overflow: hidden; background: var(--ct-surface-2); border: 1px solid var(--ct-border); border-radius: 16px; }
.contest-entry-card__cover { min-height: 185px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg,var(--contest-accent),#252035); text-decoration: none; }
.contest-entry-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.contest-entry-card__cover span { font-size: 2.8rem; font-weight: 900; }
.contest-entry-card__body { min-width: 0; padding: 13px 13px 8px; }
.contest-entry-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 7px; }
.contest-entry-card__tags span { max-width: 100%; overflow: hidden; padding: 3px 6px; color: var(--ct-muted); background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 5px; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.contest-entry-card h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.contest-entry-card h3 a { text-decoration: none; }
.contest-entry-card__body > p {
  display: -webkit-box;
  overflow: hidden;

  max-height: 4.35em;
  margin: 9px 0 0;

  color: var(--ct-muted);
  font-size: .77rem;
  line-height: 1.45;

  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.contest-author { display: flex; align-items: center; gap: 7px; min-width: 0; }
.contest-author img, .contest-author > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; object-fit: cover; color: #fff; background: var(--contest-accent); border-radius: 50%; font-size: .7rem; font-weight: 900; }
.contest-author div { min-width: 0; }
.contest-author a { display: block; overflow: hidden; font-size: .76rem; font-weight: 750; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.contest-author small { display: block; overflow: hidden; color: var(--ct-muted); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.contest-entry-card__actions { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 9px; border-top: 1px solid var(--ct-border); }
.contest-entry-card__actions .contest-button { min-height: 36px; padding: 7px 9px; font-size: .76rem; }

.contest-ballot { position: sticky; top: 82px; padding: 16px; background: var(--ct-surface-2); border: 1px solid color-mix(in srgb, var(--contest-accent) 24%, var(--ct-border)); border-radius: 16px; }
.contest-ballot__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.contest-ballot__head span { font-weight: 850; }
.contest-ballot__head small { color: var(--ct-muted); }
.contest-ballot__list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.contest-ballot__list li { display: grid; grid-template-columns: 30px minmax(0,1fr) 28px; align-items: center; gap: 7px; min-height: 46px; padding: 6px; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 10px; }
.contest-ballot__rank { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--contest-accent); border-radius: 8px; font-size: .76rem; font-weight: 900; }
.contest-ballot__list strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.contest-ballot__list button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ct-muted); background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.contest-ballot__list svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.contest-ballot__empty { padding: 24px 8px; color: var(--ct-muted); text-align: center; font-size: .8rem; }
.contest-ballot.has-choices .contest-ballot__empty { display: none; }
.contest-ballot__save { width: 100%; margin-top: 12px; }
.contest-ballot__message { min-height: 1.2em; margin: 8px 0 0; color: var(--ct-muted); font-size: .74rem; text-align: center; }
.contest-ballot__message.is-success { color: #218853; }
.contest-ballot__message.is-error { color: #bd3442; }

.contest-filter select { min-height: 40px; max-width: 230px; padding: 8px 34px 8px 11px; color: var(--ct-text); background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 10px; }
.contest-entry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.contest-entry-tile { min-width: 0; display: grid; grid-template-columns: 150px minmax(0,1fr); overflow: hidden; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 17px; box-shadow: var(--ct-shadow-soft); }
.contest-entry-tile.is-hidden { display: none; }
.contest-entry-tile__cover { position: relative; min-height: 220px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg,var(--contest-accent),#242033); text-decoration: none; }
.contest-entry-tile__cover img { width: 100%; height: 100%; object-fit: cover; }
.contest-entry-tile__cover > span { font-size: 3rem; font-weight: 900; }
.contest-entry-tile__cover b { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px; overflow: hidden; color: #fff; background: rgba(11,9,16,.72); border-radius: 7px; font-size: .66rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(7px); }
.contest-entry-tile > div { min-width: 0; padding: 18px; }
.contest-entry-tile h3 { margin: 0 0 5px; font-size: 1.12rem; overflow-wrap: anywhere; }
.contest-entry-tile h3 a, .contest-entry-tile__author { text-decoration: none; }
.contest-entry-tile__author { color: var(--contest-accent); font-size: .8rem; font-weight: 750; }
.contest-entry-tile p {
  display: -webkit-box;
  overflow: hidden;

  max-height: 6.2em;
  margin: 12px 0;

  color: var(--ct-muted);
  font-size: .84rem;
  line-height: 1.55;

  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.contest-entry-tile__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.contest-entry-tile__meta span { padding: 4px 7px; color: var(--ct-muted); background: var(--ct-surface-2); border-radius: 6px; font-size: .68rem; }

.contest-leaderboard { overflow: hidden; margin-top: 12px; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 17px; box-shadow: var(--ct-shadow-soft); }
.contest-leaderboard__title { padding: 15px 18px; margin: 0; background: var(--ct-surface-2); border-bottom: 1px solid var(--ct-border); }
.contest-leaderboard__title span { color: var(--ct-muted); font-size: .76rem; }
.contest-leaderboard ol { margin: 0; padding: 0; list-style: none; }
.contest-leaderboard li { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 65px; padding: 10px 18px; border-bottom: 1px solid var(--ct-border); }
.contest-leaderboard li:last-child { border-bottom: 0; }
.contest-leaderboard__place { width: 34px; height: 34px; display: grid; place-items: center; color: var(--contest-accent); background: color-mix(in srgb, var(--contest-accent) 10%, var(--ct-surface)); border-radius: 9px; font-weight: 900; }
.contest-leaderboard li:nth-child(1) .contest-leaderboard__place { color: #7b5500; background: #f7d875; }
.contest-leaderboard li > div { min-width: 0; }
.contest-leaderboard li strong, .contest-leaderboard li span { display: block; }
.contest-leaderboard li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contest-leaderboard li strong a { text-decoration: none; }
.contest-leaderboard li div > span { margin-top: 3px; color: var(--ct-muted); font-size: .73rem; }
.contest-leaderboard li > b { color: var(--contest-accent); font-size: 1rem; }
.contest-leaderboard li > b small { color: var(--ct-muted); font-size: .65rem; }

.contest-policy-card h3 { margin: 20px 0 6px; font-size: .9rem; }
.contest-policy-card h3:first-child { margin-top: 0; }
.contest-policy-card p { margin: 0; color: var(--ct-muted); line-height: 1.55; white-space: pre-line; }
.contest-policy-card strong { display: block; margin-bottom: 5px; color: var(--contest-accent); }

.contest-results { padding: clamp(20px,3vw,34px); background: linear-gradient(135deg,color-mix(in srgb,var(--contest-accent) 8%,var(--ct-surface)),var(--ct-surface)); border: 1px solid var(--ct-border); border-radius: 24px; }
.contest-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 12px; }
.contest-podium__place { position: relative; display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: center; gap: 13px; padding: 17px; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 16px; box-shadow: var(--ct-shadow-soft); }
.contest-podium__place--1 { min-height: 155px; order: 2; border-color: rgba(198,151,27,.42); }
.contest-podium__place--2 { order: 1; }
.contest-podium__place--3 { order: 3; }
.contest-podium__number { position: absolute; top: 8px; left: 8px; z-index: 2; width: 27px; height: 27px; display: grid; place-items: center; color: #fff; background: var(--contest-accent); border-radius: 8px; font-size: .75rem; font-weight: 900; }
.contest-podium__cover { height: 112px; overflow: hidden; display: grid; place-items: center; color: #fff; background: var(--contest-accent); border-radius: 11px; }
.contest-podium__cover img { width: 100%; height: 100%; object-fit: cover; }
.contest-podium__place small, .contest-podium__place a, .contest-podium__place strong { display: block; }
.contest-podium__place small { color: var(--ct-muted); }
.contest-podium__place h3 { margin: 5px 0; font-size: .95rem; overflow-wrap: anywhere; }
.contest-podium__place h3 a, .contest-podium__place > div > a { text-decoration: none; }
.contest-podium__place > div > a { color: var(--contest-accent); font-size: .75rem; }
.contest-podium__place > div > strong { margin-top: 8px; font-size: .78rem; }
.contest-nomination-winners { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.contest-nomination-winners a { min-width: 0; padding: 12px; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 12px; text-decoration: none; }
.contest-nomination-winners small, .contest-nomination-winners strong, .contest-nomination-winners span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contest-nomination-winners small { color: var(--contest-accent); }
.contest-nomination-winners span { margin-top: 3px; color: var(--ct-muted); font-size: .73rem; }

/* ==========================================================================
   Подача конкурсной заявки
   ========================================================================== */

.contest-entry-page {
  width: min(1040px, calc(100% - 32px));

  margin-top: 24px;
  margin-bottom: 70px;
  padding: clamp(18px, 3vw, 32px);

  color: var(--ct-text);
  background: var(--ct-bg);

  border: 1px solid var(--ct-border);
  border-radius: 28px;

  box-shadow: var(--ct-shadow);
}

.contest-entry-page .contest-breadcrumbs{
  margin-bottom: 20px;
}

.contest-entry-page .contest-page-heading {
  position: relative;
  overflow: hidden;

  margin: 0 0 22px;
  padding: clamp(20px, 3vw, 30px);

  color: var(--ct-text);
  background: var(--ct-surface);

  border: 1px solid var(--ct-border);
  border-radius: 22px;
  box-shadow: var(--ct-shadow-soft);
}

.contest-entry-page .contest-page-heading::after {
  content: "";

  position: absolute;
  top: -76px;
  right: -54px;

  box-sizing: border-box;
  width: 190px;
  height: 190px;

  background: var(--ct-surface);
  border: 28px solid var(--ct-surface-3);
  border-radius: 50%;

  pointer-events: none;
}

.contest-entry-page .contest-page-heading h1{
  position: relative;
  z-index: 1;

  max-width: 760px;
  margin: 0;

  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.08;
}

.contest-entry-page .contest-page-heading p{
  position: relative;
  z-index: 1;

  max-width: 720px;
  margin: 10px 0 0;

  color: var(--ct-muted);
  line-height: 1.55;
}

.contest-entry-form{
  display: grid;
  gap: 16px;
}

.contest-entry-form .contest-entry-step{
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2.4vw, 22px);

  border: 1px solid var(--ct-border);
  border-radius: 20px;

  background: var(--ct-surface);
  box-shadow: var(--ct-shadow-soft);
}

.contest-entry-form .contest-entry-step > legend{
  display: flex;
  align-items: center;
  gap: 12px;

  width: 100%;
  margin: 0;
  padding: 0 0 16px;

  color: var(--ct-text);
}

.contest-entry-step__number{
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;

  width: 34px;
  height: 34px;

  color: var(--contest-accent-ink);
  background: var(--contest-accent);
  border-radius: 11px;

  font-size: .86rem;
  font-weight: 900;

  box-shadow:
    0 7px 18px
    color-mix(in srgb, var(--contest-accent) 25%, transparent);
}

.contest-entry-step__heading{
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contest-entry-step__heading strong{
  color: var(--ct-text);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
}

.contest-entry-step__heading small{
  color: var(--ct-muted);
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.35;
}

/* ---------- Выбор работы ---------- */

.contest-entry-page .contest-work-picker{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contest-entry-page .contest-work-option{
  position: relative;

  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;

  min-width: 0;
  min-height: 108px;
  padding: 11px;

  border: 1px solid var(--ct-border);
  border-radius: 15px;

  background: var(--ct-surface-2);
  cursor: pointer;

  hyphens: none;
  word-break: normal;

  transition:
    transform .16s ease,
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease;
}

.contest-entry-page .contest-work-option:hover:not(.is-disabled){
  transform: translateY(-2px);

  border-color:
    color-mix(in srgb, var(--contest-accent) 48%, var(--ct-border));

  background:
    color-mix(in srgb, var(--contest-accent) 6%, var(--ct-surface-2));
}

.contest-entry-page .contest-work-option:has(input:checked){
  border-color: var(--contest-accent);

  background:
    color-mix(in srgb, var(--contest-accent) 11%, var(--ct-surface));

  box-shadow:
    0 0 0 3px
    color-mix(in srgb, var(--contest-accent) 13%, transparent);
}

.contest-entry-page .contest-work-option:has(input:focus-visible){
  outline: none;

  box-shadow:
    0 0 0 4px
    color-mix(in srgb, var(--contest-accent) 20%, transparent);
}

.contest-entry-page .contest-work-option.is-disabled{
  opacity: .46;
  cursor: not-allowed;
  filter: grayscale(.35);
}

.contest-entry-page .contest-work-option > input,
.contest-entry-page .contest-nomination-option > input{
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;

  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contest-entry-page .contest-work-option__cover{
  display: grid;
  place-items: center;

  width: 62px;
  height: 84px;
  overflow: hidden;

  color: var(--contest-accent-ink);
  background:
    linear-gradient(
      145deg,
      var(--contest-accent),
      color-mix(in srgb, var(--contest-accent) 68%, #111)
    );

  border-radius: 11px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .14);
}

.contest-entry-page .contest-work-option__cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contest-entry-page .contest-work-option__cover b{
  font-size: 1.25rem;
  font-weight: 900;
}

.contest-entry-page .contest-work-option__copy{
  display: block;
  min-width: 0;
}

.contest-entry-page .contest-work-option__copy > strong{
  display: -webkit-box;
  overflow: hidden;

  color: var(--ct-text);
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.28;

  max-height: 2.56em;

  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow-wrap: break-word;
}

.contest-entry-page .contest-work-option__status{
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 7px;

  color: var(--contest-accent);
  background:
    color-mix(in srgb, var(--contest-accent) 10%, var(--ct-surface));

  border: 1px solid
    color-mix(in srgb, var(--contest-accent) 26%, var(--ct-border));
  border-radius: 999px;

  font-size: .68rem;
  font-weight: 800;
  line-height: 1.2;
}

.contest-entry-page .contest-work-option__description{
  display: -webkit-box;
  overflow: hidden;

  margin-top: 7px;

  color: var(--ct-muted);
  font-size: .74rem;
  font-style: normal;
  line-height: 1.35;

  max-height: 2.7em;

  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow-wrap: break-word;
}

.contest-entry-page .contest-radio-mark{
  display: grid;
  place-items: center;

  width: 21px;
  height: 21px;

  border: 2px solid
    color-mix(in srgb, var(--ct-muted) 58%, var(--ct-border));
  border-radius: 50%;

  background: var(--ct-surface);
  transition: border-color .16s ease;
}

.contest-entry-page .contest-radio-mark > span{
  width: 9px;
  height: 9px;

  background: var(--contest-accent);
  border-radius: 50%;

  opacity: 0;
  transform: scale(.3);
  transition:
    opacity .14s ease,
    transform .14s ease;
}

.contest-entry-page
.contest-work-option:has(input:checked)
.contest-radio-mark{
  border-color: var(--contest-accent);
}

.contest-entry-page
.contest-work-option:has(input:checked)
.contest-radio-mark > span{
  opacity: 1;
  transform: scale(1);
}

/* ---------- Номинации ---------- */

.contest-entry-page .contest-nomination-picker{
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
}

.contest-entry-page .contest-nomination-option{
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;

  min-height: 92px;
  padding: 15px;

  border: 1px solid var(--ct-border);
  border-radius: 15px;

  background: var(--ct-surface-2);
  cursor: pointer;

  transition:
    transform .16s ease,
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease;
}

.contest-entry-page .contest-nomination-option:hover{
  transform: translateY(-2px);

  border-color:
    color-mix(in srgb, var(--contest-accent) 48%, var(--ct-border));
}

.contest-entry-page .contest-nomination-option:has(input:checked){
  border-color: var(--contest-accent);

  background:
    color-mix(in srgb, var(--contest-accent) 11%, var(--ct-surface));

  box-shadow:
    0 0 0 3px
    color-mix(in srgb, var(--contest-accent) 12%, transparent);
}

.contest-entry-page .contest-nomination-option:has(input:focus-visible){
  box-shadow:
    0 0 0 4px
    color-mix(in srgb, var(--contest-accent) 20%, transparent);
}

.contest-nomination-option__copy{
  display: grid;
  gap: 6px;
  min-width: 0;
}

.contest-nomination-option__copy strong{
  color: var(--ct-text);
  font-size: .91rem;
  font-weight: 850;
  line-height: 1.25;
}

.contest-nomination-option__copy small{
  color: var(--ct-muted);
  font-size: .75rem;
  line-height: 1.4;
}

.contest-nomination-mark{
  display: grid;
  place-items: center;

  width: 21px;
  height: 21px;

  border: 2px solid
    color-mix(in srgb, var(--ct-muted) 58%, var(--ct-border));
  border-radius: 50%;

  background: var(--ct-surface);
}

.contest-nomination-mark > span{
  width: 9px;
  height: 9px;

  background: var(--contest-accent);
  border-radius: 50%;

  opacity: 0;
  transform: scale(.3);

  transition:
    opacity .14s ease,
    transform .14s ease;
}

.contest-nomination-option:has(input:checked)
.contest-nomination-mark{
  border-color: var(--contest-accent);
}

.contest-nomination-option:has(input:checked)
.contest-nomination-mark > span{
  opacity: 1;
  transform: scale(1);
}

/* ---------- Комментарий ---------- */

.contest-entry-page .contest-field{
  display: grid;
  gap: 8px;
}

.contest-entry-page .contest-field > span{
  color: var(--ct-text);
  font-size: .78rem;
  font-weight: 800;
}

.contest-entry-page .contest-field textarea{
  width: 100%;
  min-height: 120px;
  padding: 13px 14px;

  color: var(--ct-text);
  background: var(--ct-surface-2);

  border: 1px solid var(--ct-border);
  border-radius: 13px;
  outline: none;

  line-height: 1.5;
  resize: vertical;

  transition:
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease;
}

.contest-entry-page .contest-field textarea::placeholder{
  color: var(--ct-muted);
  opacity: .75;
}

.contest-entry-page .contest-field textarea:focus{
  border-color: var(--contest-accent);
  background: var(--ct-surface);

  box-shadow:
    0 0 0 4px
    color-mix(in srgb, var(--contest-accent) 13%, transparent);
}

.contest-entry-page .contest-field__hint{
  color: var(--ct-muted);
  font-size: .7rem;
  line-height: 1.4;
}

/* ---------- Подтверждение ---------- */

.contest-entry-page .contest-agreement{
  position: relative;

  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: start;
  gap: 12px;

  padding: 14px 15px;

  border: 1px solid var(--ct-border);
  border-radius: 15px;

  color: var(--ct-text);
  background: var(--ct-surface);

  cursor: pointer;
  user-select: none;

  transition:
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease;
}

.contest-entry-page .contest-agreement > input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contest-entry-page .contest-agreement__mark{
  position: relative;

  display: grid;
  place-items: center;

  width: 23px;
  height: 23px;

  border: 2px solid
    color-mix(in srgb, var(--ct-muted) 58%, var(--ct-border));
  border-radius: 7px;

  background: var(--ct-surface-2);
}

.contest-entry-page .contest-agreement__mark::after{
  content: "";

  width: 6px;
  height: 11px;

  border-right: 3px solid var(--contest-accent-ink);
  border-bottom: 3px solid var(--contest-accent-ink);

  opacity: 0;
  transform: translateY(-1px) rotate(45deg) scale(.4);

  transition:
    opacity .14s ease,
    transform .14s ease;
}

.contest-entry-page
.contest-agreement:has(input:checked){
  border-color:
    color-mix(in srgb, var(--contest-accent) 55%, var(--ct-border));

  background:
    color-mix(in srgb, var(--contest-accent) 8%, var(--ct-surface));
}

.contest-entry-page
.contest-agreement:has(input:checked)
.contest-agreement__mark{
  border-color: var(--contest-accent);
  background: var(--contest-accent);
}

.contest-entry-page
.contest-agreement:has(input:checked)
.contest-agreement__mark::after{
  opacity: 1;
  transform: translateY(-1px) rotate(45deg) scale(1);
}

.contest-entry-page
.contest-agreement:has(input:focus-visible){
  box-shadow:
    0 0 0 4px
    color-mix(in srgb, var(--contest-accent) 18%, transparent);
}

.contest-agreement__copy{
  display: grid;
  gap: 4px;
  min-width: 0;
}

.contest-agreement__copy strong{
  color: var(--ct-text);
  font-size: .82rem;
  font-weight: 850;
}

.contest-agreement__copy small{
  color: var(--ct-muted);
  font-size: .74rem;
  line-height: 1.42;
}

/* ---------- Действия ---------- */

.contest-entry-page .contest-entry-form__actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  padding: 15px;

  border: 1px solid var(--ct-border);
  border-radius: 16px;

  background: var(--ct-surface);
  box-shadow: var(--ct-shadow-soft);
}

@media (max-width: 760px){
  .contest-entry-page{
    width: min(100% - 20px, 1040px);
    margin-top: 10px;
    padding: 14px;
    border-radius: 21px;
  }

  .contest-entry-page .contest-page-heading{
    padding: 20px 17px;
    border-radius: 17px;
  }

  .contest-entry-page .contest-work-picker{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .contest-entry-page{
    width: 100%;
    margin-top: 0;
    padding: 12px 10px 32px;

    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .contest-entry-form .contest-entry-step{
    padding: 14px 12px;
    border-radius: 16px;
  }

  .contest-entry-page .contest-work-option{
    grid-template-columns: 54px minmax(0, 1fr) 21px;
    min-height: 94px;
    padding: 9px;
  }

  .contest-entry-page .contest-work-option__cover{
    width: 54px;
    height: 72px;
  }

  .contest-entry-page .contest-entry-form__actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .contest-entry-page
  .contest-entry-form__actions
  .contest-button{
    width: 100%;
  }
}
.contest-notice { display: grid; gap: 6px; padding: 18px; margin-bottom: 20px; background: var(--ct-surface); border: 1px solid var(--ct-border); border-left: 5px solid var(--contest-accent); border-radius: 13px; }
.contest-notice span { color: var(--ct-muted); }
.contest-notice a { color: var(--contest-accent); font-weight: 750; }

.contest-flash { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; margin: 0 0 18px; padding: 13px 15px; color: var(--ct-text); background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 14px; box-shadow: var(--ct-shadow-soft); }
.contest-flash__icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--contest-accent); background: color-mix(in srgb,var(--contest-accent) 12%,var(--ct-surface)); border-radius: 11px; }
.contest-flash__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contest-flash strong, .contest-flash small { display: block; }
.contest-flash small { margin-top: 3px; color: var(--ct-muted); line-height: 1.4; }
.contest-flash--success { --contest-accent: #2b9b64; }
.contest-flash--error { --contest-accent: #c33f50; }

.contest-my-list { display: grid; gap: 12px; }
.contest-my-card { display: grid; grid-template-columns: 100px minmax(0,1fr) auto; gap: 15px; min-width: 0; padding: 13px; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 16px; box-shadow: var(--ct-shadow-soft); }
.contest-my-card__cover { height: 125px; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--contest-accent); border-radius: 11px; font-size: 2rem; font-weight: 900; }
.contest-my-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.contest-my-card__body { min-width: 0; }
.contest-my-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--ct-muted); font-size: .76rem; }
.contest-my-card h2 { margin: 9px 0 4px; font-size: 1.15rem; overflow-wrap: anywhere; }
.contest-my-card__body > a { color: var(--contest-accent); font-size: .82rem; font-weight: 700; text-decoration: none; }
.contest-my-card__actions { display: flex; gap: 7px; }
.contest-decision { padding: 9px; color: var(--ct-muted); background: var(--ct-surface-2); border-radius: 8px; font-size: .78rem; line-height: 1.45; }

.home-contest { position: relative; width: min(1180px,calc(100% - 28px)); min-height: 250px; display: grid; grid-template-columns: minmax(250px,38%) minmax(0,1fr); overflow: hidden; margin: 34px auto; color: var(--ct-text); background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 24px; box-shadow: var(--ct-shadow); }
.home-contest__art { min-height: 250px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(145deg,var(--contest-accent,#7c3aed),#21172d); }
.home-contest__art img { width: 100%; height: 100%; object-fit: cover; }
.home-contest__art span { font-size: 6rem; font-weight: 950; }
.home-contest__content { align-self: center; padding: clamp(22px,4vw,44px); }
.home-contest__content h2 { margin: 5px 0 10px; color: var(--ct-text) !important; font-size: clamp(1.55rem,3vw,2.55rem); line-height: 1.05; -webkit-text-fill-color: currentColor !important; }
.home-contest__content > p { margin: 0; color: var(--ct-muted,var(--muted,#666)); line-height: 1.6; }
.home-contest__eyebrow { margin-top: 12px !important; color: var(--contest-accent) !important; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.home-contest__winners { display: grid; gap: 5px; margin-top: 13px; }
.home-contest__winners a { display: flex; gap: 10px; min-width: 0; padding: 7px 9px; background: var(--ct-surface-2,#f3f3f3); border-radius: 8px; text-decoration: none; }
.home-contest__winners strong { flex: 0 0 auto; color: var(--contest-accent); }
.home-contest__winners span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contest-toast { position: fixed; z-index: 1000; right: 20px; bottom: 20px; max-width: min(380px,calc(100vw - 32px)); padding: 12px 15px; color: var(--ct-text); background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: 12px; box-shadow: var(--ct-shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.contest-toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes contestPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .6; } }

@media (max-width: 1050px) {
  .contest-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contest-vote-layout { grid-template-columns: minmax(0,1fr) 270px; }
  .contest-vote-candidates { grid-template-columns: 1fr; }
  .contest-podium__place { grid-template-columns: 70px minmax(0,1fr); padding: 12px; }
}

@media (max-width: 780px) {
  .contest-shell,
  .contest-shell--narrow {
    width: calc(100% - 16px);
    margin: 8px auto 44px;

    padding:
      16px
      clamp(12px, 3vw, 18px)
      58px;

    border-radius: 22px;
  }
  .contest-hub-hero { min-height: auto; grid-template-columns: 1fr; padding: 28px 20px; border-radius: 21px; }
  .contest-hub-hero__seal { display: none; }
  .contest-hub-hero h1 { font-size: clamp(2rem,11vw,3rem); }
  .contest-grid { grid-template-columns: 1fr; }
  .contest-section { margin-top: 34px; }
  .contest-section__heading { align-items: flex-start; }
  .contest-hero { grid-template-columns: 1fr; border-radius: 20px; }
  .contest-hero__media { min-height: 230px; max-height: 320px; }
  .contest-hero__content { padding: 22px 18px; }
  .contest-hero h1 { font-size: clamp(1.85rem,9vw,2.8rem); }
  .contest-hero__dates { grid-template-columns: 1fr; }
  .contest-timeline { padding: 13px 8px; }
  .contest-timeline::before { top: 30px; }
  .contest-timeline li > span { width: 30px; height: 30px; }
  .contest-timeline li strong { font-size: .65rem; text-align: center; }
  .contest-tabs { top: 4px; margin-inline: -2px; }
  .contest-overview-grid, .contest-rules-grid { grid-template-columns: 1fr; }
  .contest-vote-layout { display: flex; flex-direction: column; }
  .contest-vote-candidates { width: 100%; }
  .contest-ballot { z-index: 12; top: 61px; order: -1; width: 100%; box-shadow: var(--ct-shadow); }
  .contest-entry-grid { grid-template-columns: 1fr; }
  .contest-podium { grid-template-columns: 1fr; }
  .contest-podium__place--1, .contest-podium__place--2, .contest-podium__place--3 { min-height: auto; order: initial; }
  .contest-nomination-winners { grid-template-columns: 1fr; }
  .home-contest { grid-template-columns: 1fr; }
  .home-contest__art { min-height: 180px; max-height: 230px; }
}

@media (max-width: 520px) {
  .contest-shell,
  .contest-shell--narrow {
    width: calc(100% - 8px);
    margin: 4px auto 34px;
    padding: 14px 10px 48px;
    border-radius: 18px;
  }
  .contest-hub-hero__actions, .contest-hero__actions, .contest-entry-form__actions, .home-contest__actions { display: grid; grid-template-columns: 1fr; }
  .contest-hub-hero__actions .contest-button, .contest-hero__actions .contest-button, .contest-entry-form__actions .contest-button, .home-contest__actions .contest-button { width: 100%; }
  .contest-card__visual { height: 165px; }
  .contest-section__heading { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .contest-section__heading .contest-filter { grid-column: 1/-1; }
  .contest-filter select { width: 100%; max-width: none; }
  .contest-timeline { overflow-x: auto; grid-template-columns: repeat(4,95px); justify-content: start; }
  .contest-timeline::before { display: none; }
  .contest-entry-card { grid-template-columns: 86px minmax(0,1fr); }
  .contest-entry-card__cover { min-height: 175px; }
  .contest-entry-tile { grid-template-columns: 105px minmax(0,1fr); }
  .contest-entry-tile__cover { min-height: 195px; }
  .contest-entry-tile > div { padding: 13px; }
  .contest-leaderboard li { grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; padding: 9px; }
  .contest-leaderboard li div > span { white-space: normal; }
  .contest-nomination-picker { grid-template-columns: 1fr; }
  .contest-work-option { grid-template-columns: 56px minmax(0,1fr) 24px; }
  .contest-work-option__cover { width: 56px; height: 72px; }
  .contest-my-card { grid-template-columns: 72px minmax(0,1fr); }
  .contest-my-card__cover { height: 96px; }
  .contest-my-card__actions { grid-column: 1/-1; justify-content: flex-end; }
  .contest-toast { right: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .contest-page *, .contest-page *::before, .contest-page *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
