.contest-page {
    --contest-green: #079447;
    --contest-green-dark: #006837;
    --contest-blue: #003b78;
    --contest-ink: #123052;
    --contest-gold: #d99a27;
    background: #fff;
    color: var(--contest-ink);
    font-size: 16px;
}

.contest-shell { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.contest-hero { position: relative; min-height: 470px; overflow: hidden; background-color: #e9f7ff; }
.contest-hero__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.contest-hero--image-only { min-height: 0; background: #fff; }
.contest-hero--image-only .contest-hero__background { position: relative; inset: auto; display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }
.contest-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 36%, rgba(255,255,255,.2) 63%, rgba(1,49,101,.08) 100%); }
.contest-hero__content { position: relative; z-index: 1; display: flex; min-height: 470px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 48px 0 54px; }
.contest-hero__eyebrow, .contest-section__heading > p:first-child { margin: 0 0 7px; color: var(--contest-green); font-size: .82rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.contest-hero h1 { margin: 0; max-width: 670px; line-height: .94; letter-spacing: -.045em; text-transform: uppercase; }
.contest-hero h1 span { display: block; color: #0a3a76; font-size: clamp(2.35rem, 5.1vw, 4.75rem); font-weight: 950; }
.contest-hero h1 strong { display: block; margin-top: 12px; color: var(--contest-gold); font-size: clamp(3.6rem, 7.5vw, 7.2rem); font-weight: 950; text-shadow: 0 3px 0 #fff, 0 12px 24px rgba(126,79,0,.18); }
.contest-hero__tagline { margin: 14px 0 0; color: #e62724; font-size: clamp(.78rem, 1.3vw, 1rem); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.contest-hero__intro { max-width: 610px; margin: 17px 0 22px; color: #415873; font-size: 1rem; font-weight: 550; line-height: 1.65; }
.contest-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; background: linear-gradient(135deg, #12aa58, #007c3c); padding: 11px 22px; color: #fff !important; font-weight: 850; text-decoration: none !important; box-shadow: 0 9px 20px rgba(0,126,61,.18); transition: transform .2s ease, box-shadow .2s ease; }
.contest-button:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(0,126,61,.27); }
.contest-button--hero { min-width: 190px; }
.contest-section { padding: 70px 0; }
.contest-overview { padding: 18px 0 6px; background: #fff; }
.contest-overview__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .9fr) minmax(250px, .82fr); gap: 16px; align-items: stretch; }
.contest-latest { display: grid; min-width: 0; min-height: 286px; grid-template-columns: minmax(300px, 1.43fr) minmax(250px, 1fr); overflow: hidden; border: 1px solid #e3e9ef; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(20,50,80,.07); }
.contest-latest__media { position: relative; display: flex; min-height: 0; align-items: center; overflow: hidden; background: #f3f6f8; }
.contest-latest__media img { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }
.contest-latest__media > span { position: absolute; top: 18px; left: 18px; border-radius: 8px; background: #0ba150; padding: 8px 13px; color: #fff; font-size: .76rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 5px 14px rgba(0,104,55,.24); }
.contest-latest__content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 26px; }
.contest-latest__content time { color: #768394; font-size: .78rem; font-weight: 650; }
.contest-latest__content h2 { margin: 7px 0 10px; font-size: clamp(1.05rem, 1.4vw, 1.35rem); font-weight: 900; line-height: 1.3; }
.contest-latest__content h2 a { color: var(--contest-blue) !important; text-decoration: none !important; }
.contest-latest__content p { display: -webkit-box; overflow: hidden; margin: 0; color: #5d6d7f; font-size: .9rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.contest-latest__empty { display: grid; grid-column: 1/-1; min-height: 286px; place-items: center; color: #63778b; font-weight: 700; }
.contest-join-panel { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #054a7c 0%, #006e62 57%, #11a75b 100%); padding: 16px 18px 14px; color: #fff; box-shadow: 0 9px 24px rgba(0,75,72,.16); }
.contest-join-panel header { text-align: center; text-transform: uppercase; }
.contest-join-panel header h2 { margin: 0; color: #fff; font-size: 1rem; font-weight: 950; line-height: 1.15; }
.contest-join-panel header p { margin: 5px 0 0; color: rgba(255,255,255,.9); font-size: .68rem; font-weight: 800; line-height: 1.35; }
.contest-join-panel__codes { display: grid; flex: 1; place-items: center; margin: 6px 0; }
.contest-join-panel__codes a { width: 142px; min-width: 0; border-radius: 8px; background: #fff; padding: 7px; color: #064b70 !important; text-align: center; text-decoration: none !important; box-shadow: 0 7px 16px rgba(0,32,55,.18); }
.contest-join-panel__codes img { display: block; width: 100%; height: auto; border-radius: 3px; }
.contest-join-panel__button { display: flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; background: #ff2732; color: #fff !important; font-size: .88rem; font-weight: 900; text-decoration: none !important; box-shadow: 0 8px 18px rgba(151,0,12,.26); transition: transform .2s ease, background .2s ease; }
.contest-join-panel__button:hover { transform: translateY(-2px); background: #e91925; }
.contest-rules-panel { position: relative; display: grid; min-width: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contest-rules-panel__section { position: relative; display: grid; min-height: 0; grid-template-columns: 44% minmax(0, 1fr); align-items: center; overflow: hidden; border: 1px solid #f5d99d; border-radius: 14px; background: linear-gradient(135deg, #fff8e8 0%, #fffdf8 58%, #fff3d5 100%); padding: 10px 12px 10px 6px; color: #063c80 !important; text-align: center; text-decoration: none !important; box-shadow: 0 6px 18px rgba(128,88,18,.09); transition: transform .2s ease, box-shadow .2s ease; }
.contest-rules-panel__section::after { position: absolute; right: -18px; bottom: -27px; width: 105px; height: 55px; border: 8px solid rgba(246,183,65,.12); border-radius: 50%; content: ""; }
.contest-rules-panel__section--references { border-color: #a9dcf7; background: linear-gradient(135deg, #e5f7ff 0%, #f6fcff 58%, #d9f2ff 100%); box-shadow: 0 6px 18px rgba(0,103,170,.09); }
.contest-rules-panel__section--references::after { border-color: rgba(0,142,220,.1); }
.contest-rules-panel__section:hover { transform: translateY(-2px); box-shadow: 0 10px 23px rgba(20,80,120,.15); }
.contest-rules-panel__section img { position: relative; z-index: 1; display: block; width: 100%; max-height: 122px; object-fit: contain; transition: transform .25s ease; }
.contest-rules-panel__section:hover img { transform: scale(1.04); }
.contest-rules-panel__section h2 { margin: 0; color: inherit; font-size: clamp(1.3rem, 2vw, 1.85rem); font-weight: 950; line-height: .98; letter-spacing: -.035em; }
.contest-rules-panel__section h2 strong, .contest-rules-panel__section h2 span { display: block; }
.contest-rules-panel__section h2 strong { color: #d80712; }
.contest-rules-panel__section--references h2 strong { color: #063c80; }
.contest-section__heading h2 { margin: 0; color: var(--contest-blue); font-size: clamp(1.85rem, 3vw, 2.6rem); font-weight: 950; letter-spacing: -.035em; line-height: 1.15; }
.contest-section__heading--center { margin-bottom: 30px; text-align: center; }
.contest-section__rule { width: 54px; height: 4px; margin: 20px 0; border-radius: 10px; background: var(--contest-green); }
.contest-section__description { max-width: 410px; margin: 0; color: #5d7087; line-height: 1.7; }
.contest-section--entry { position: relative; background: linear-gradient(180deg, #fff 0%, #f3fbf7 100%); }
.contest-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contest-entry-card { position: relative; display: grid; min-height: 310px; grid-template-columns: 1fr 220px; gap: 25px; overflow: hidden; border: 1px solid rgba(0,140,70,.14); border-radius: 22px; background: linear-gradient(140deg, #06447c 0%, #006b59 55%, #0da95a 100%); padding: 30px; color: #fff; box-shadow: 0 18px 45px rgba(13,56,88,.14); }
.contest-entry-card::after { position: absolute; right: -80px; bottom: -120px; width: 300px; height: 260px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; content: ""; }
.contest-entry-card__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.contest-entry-card__number { color: rgba(255,255,255,.55); font-size: 1rem; font-weight: 900; letter-spacing: .14em; }
.contest-entry-card h3 { margin: 9px 0 12px; color: #fff; font-size: 1.5rem; font-weight: 900; line-height: 1.2; }
.contest-entry-card p { margin: 0 0 22px; color: rgba(255,255,255,.82); line-height: 1.6; }
.contest-entry-card .contest-button { margin-top: auto; background: #fff; color: var(--contest-green-dark) !important; box-shadow: none; }
.contest-qr { position: relative; z-index: 1; align-self: center; border-radius: 16px; background: #fff; padding: 12px 12px 9px; color: var(--contest-blue) !important; text-align: center; text-decoration: none !important; box-shadow: 0 10px 30px rgba(0,32,59,.22); }
.contest-qr img { display: block; width: 100%; height: auto; border-radius: 6px; }
.contest-qr span { display: block; padding-top: 6px; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contest-section--documents { background: #f1f8f5; }
.contest-documents-layout { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.4fr); gap: 70px; align-items: center; }
.contest-document-list { display: grid; gap: 15px; }
.contest-document-card { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 18px; align-items: center; border: 1px solid rgba(0,105,55,.13); border-radius: 16px; background: #fff; padding: 20px 22px; color: inherit !important; text-decoration: none !important; box-shadow: 0 10px 28px rgba(17,64,49,.06); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.contest-document-card:hover { transform: translateY(-2px); border-color: rgba(0,148,71,.4); box-shadow: 0 14px 34px rgba(17,64,49,.11); }
.contest-document-card__icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 14px; background: #eaf8f0; color: var(--contest-green); }
.contest-document-card__icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.contest-document-card__copy { display: flex; flex-direction: column; gap: 5px; }
.contest-document-card__copy strong { color: var(--contest-blue); font-size: 1.08rem; }
.contest-document-card__copy span { color: #64758a; font-size: .9rem; line-height: 1.5; }
.contest-document-card__type { display: flex; align-items: center; gap: 8px; color: #e62e2e; font-size: .75rem; font-weight: 900; }
.contest-document-card__type b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #eff9f3; color: var(--contest-green); font-size: 1rem; }
.contest-section--news { padding: 8px 0 60px; background: #fff; }
.contest-news-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.contest-text-link { color: var(--contest-green-dark) !important; font-weight: 850; text-decoration: none !important; }
.contest-featured-news { display: grid; grid-template-columns: 1.12fr 1fr; overflow: hidden; border: 1px solid #e3eaf0; border-radius: 20px; background: #fff; box-shadow: 0 16px 42px rgba(14,45,74,.09); }
.contest-featured-news__media { position: relative; min-height: 365px; overflow: hidden; background: #eef3f6; }
.contest-featured-news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.contest-featured-news:hover .contest-featured-news__media img { transform: scale(1.035); }
.contest-featured-news__media > span { position: absolute; top: 18px; left: 18px; border-radius: 8px; background: var(--contest-green); padding: 8px 13px; color: #fff; font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.contest-featured-news__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 38px 42px; }
.contest-featured-news__copy time { color: #728196; font-size: .85rem; font-weight: 700; }
.contest-featured-news__copy h3 { margin: 9px 0 12px; font-size: clamp(1.45rem, 2.3vw, 2rem); font-weight: 900; line-height: 1.25; }
.contest-featured-news__copy h3 a, .contest-news-card h3 a { color: var(--contest-blue) !important; text-decoration: none !important; }
.contest-featured-news__copy p { display: -webkit-box; margin: 0 0 24px; overflow: hidden; color: #5e7085; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.contest-button--outline { border: 1px solid rgba(0,148,71,.32); background: #fff; color: var(--contest-green-dark) !important; box-shadow: none; }
.contest-news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.contest-news-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #e3eaf0; border-radius: 15px; background: #fff; box-shadow: 0 10px 26px rgba(14,45,74,.07); transition: transform .2s ease, box-shadow .2s ease; }
.contest-news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(14,45,74,.13); }
.contest-news-card__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #edf2f5; }
.contest-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.contest-news-card:hover img { transform: scale(1.04); }
.contest-news-card__media time { position: absolute; top: 10px; left: 10px; border-radius: 6px; background: var(--contest-green); padding: 5px 8px; color: #fff; font-size: .7rem; font-weight: 850; }
.contest-news-card__copy { padding: 18px; }
.contest-news-card__copy > p { margin: 0 0 8px; color: #4d3b74; font-size: .75rem; font-weight: 800; }
.contest-news-card h3 { display: -webkit-box; margin: 0; overflow: hidden; font-size: 1rem; font-weight: 850; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.contest-news-card__copy > div { display: -webkit-box; margin-top: 10px; overflow: hidden; color: #66778b; font-size: .86rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.contest-news-empty { display: flex; min-height: 150px; align-items: center; justify-content: center; gap: 12px; border: 1px dashed #c9d9d0; border-radius: 16px; background: #f7fbf9; color: #64776c; }
.contest-news-empty span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--contest-green); color: #fff; font-weight: 900; }
.contest-news-empty p { margin: 0; }

@media (max-width: 1100px) {
    .contest-overview__grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, .75fr); }
    .contest-rules-panel { width: min(100%, 420px); min-height: 300px; grid-column: 1/-1; justify-self: center; }
    .contest-entry-card { grid-template-columns: 1fr 160px; }
    .contest-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .contest-overview__grid { grid-template-columns: 1fr; }
    .contest-rules-panel { max-width: 100%; grid-column: auto; }
    .contest-hero__background { object-position: 64% center; }
    .contest-hero__shade { background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.86) 64%, rgba(255,255,255,.38)); }
    .contest-entry-grid, .contest-documents-layout, .contest-featured-news { grid-template-columns: 1fr; }
    .contest-documents-layout { gap: 32px; }
    .contest-featured-news__media { min-height: 300px; }
    .contest-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contest-latest { height: auto; min-height: 286px; }
}

@media (max-width: 600px) {
    .contest-shell { width: min(100% - 28px, 1320px); }
    .contest-section { padding: 50px 0; }
    .contest-hero, .contest-hero__content { min-height: 520px; }
    .contest-hero.contest-hero--image-only { min-height: 0; }
    .contest-hero__background { object-position: 71% center; }
    .contest-hero__shade { background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.89) 78%, rgba(255,255,255,.65)); }
    .contest-rules-panel { width: 100%; min-height: 310px; }
    .contest-rules-panel__section h2 { font-size: clamp(1.45rem, 6vw, 1.85rem); }
    .contest-entry-card { grid-template-columns: 1fr; padding: 24px; }
    .contest-qr { width: min(220px, 100%); justify-self: center; }
    .contest-document-card { grid-template-columns: 48px minmax(0,1fr); padding: 17px; }
    .contest-document-card__icon { width: 48px; height: 48px; }
    .contest-document-card__type { grid-column: 2; }
    .contest-news-header { align-items: flex-start; flex-direction: column; }
    .contest-featured-news__media { min-height: 230px; }
    .contest-featured-news__copy { padding: 26px 22px; }
    .contest-news-grid { grid-template-columns: 1fr; }
    .contest-latest { grid-template-columns: 1fr; }
    .contest-latest__media { min-height: 0; aspect-ratio: 10/7; }
}

@media (prefers-reduced-motion: reduce) {
    .contest-page * { scroll-behavior: auto !important; transition: none !important; }
}
