/* Contest-only layout. Header, footer, Panel buttons and navigation use this site's shared styles.css / script.js. */
html.choinka-page { scroll-padding-top: var(--header-height); }
.choinka-page body { background: #103851; color: #fff; }
.choinka-page body::before { display: none; }
.choinka-page main > section { position: relative; scroll-margin-top: 0; }
.choinka-page main > section:focus { outline: none; }
.choinka-page h1:where(:not(.contest__title)), .choinka-page h2:where(:not(.contest__title)) { font-family: "Oswald", Arial, sans-serif; font-weight: 700; text-transform: uppercase; margin: 0; line-height: 1.16; }
.choinka-page main p:where(:not(.contest__label)) { margin: 0; }
.choinka-page main { --focus-color: #ffffff; }
.choinka-page main a:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 4px; }
.choinka-page main .button { max-width: 100%; text-align: center; white-space: normal; }
.choinka-page .choinka-label { position: relative; display: inline-block; width: fit-content; max-width: 100%; padding: 6px 17px 8px; color: #033c18; font: 700 clamp(18px, 1.55vw, 25px)/1.25 "Oswald", Arial, sans-serif; text-transform: uppercase; isolation: isolate; }
.choinka-page .choinka-label::before, .choinka-page .choinka-season::before { content: ""; position: absolute; inset: 0; background: #85dc4d; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); z-index: -1; }
.choinka-about__details p { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; }
.choinka-page .choinka-rules { background: radial-gradient(ellipse at 10% 0, #033c18 0, transparent 65%), linear-gradient(130deg, #16382c, #0f2f24 55%, #0a231a); padding: clamp(40px, 5vw, 72px) 0; }
.choinka-rules h2 { max-width: 1050px; margin-top: 18px; font-size: clamp(29px, 3vw, 46px); }
.choinka-rules__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin-top: 32px; }
.choinka-rule { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.choinka-rule svg { width: 36px; height: 36px; color: #85dc4d; }
.choinka-rule h3 { margin: 0 0 9px; font-size: 20px; line-height: 1.3; }
.choinka-page .choinka-rule p { color: #eee; font-size: 17px; line-height: 1.55; }
.choinka-page .choinka-regulations { margin-top: 32px; font-size: 17px; line-height: 1.55; }
.choinka-regulations a, .choinka-form__fallback a { text-decoration: underline; text-underline-offset: 4px; }
.choinka-page .choinka-rules .button { margin-top: 24px; }
.choinka-page .choinka-form { --focus-color: #101114; background: #fff; color: #101114; padding: clamp(36px, 4vw, 56px) 20px; }
.choinka-form__container { max-width: 800px; margin-inline: auto; }
.choinka-form h2 { text-align: center; font-size: clamp(32px, 3vw, 46px); margin: 0 0 28px; }
.choinka-form iframe { display: block; width: 100%; border: 0; }
.choinka-page .choinka-form__fallback { margin-top: 24px; color: #454951; font-size: 14px; line-height: 1.6; text-align: center; }
.choinka-page .choinka-form a:focus-visible { outline-color: #101114; }
.choinka-page .choinka-about { display: grid; grid-template-columns: 47% 53%; align-content: center; min-height: calc(100svh - var(--header-height)); padding: 40px 0; background: #750009; }
.choinka-about__visual { position: absolute; inset: 0; pointer-events: none; }
.choinka-about__visual img { width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.choinka-about__heading, .choinka-about__details { position: relative; z-index: 1; grid-column: 1; margin-left: clamp(24px, 3vw, 48px); margin-right: 16px; }
.choinka-about__heading h2 { margin-top: 18px; font-size: clamp(40px, 4vw, 72px); }
.choinka-season { display: inline-block; position: relative; isolation: isolate; width: fit-content; color: #033c18; padding: .03em .25em .16em; margin-top: .13em; white-space: nowrap; }
.choinka-about__details { margin-top: 24px; max-width: 560px; }
@media (max-width: 1023px) {
  .choinka-page .choinka-about { display: flex; flex-direction: column; min-height: 0; padding: 0; }
  .choinka-about__heading, .choinka-about__details { margin: 0; padding: 22px 24px; max-width: none; }
  .choinka-about__details p { font-size: 17px; }
  .choinka-page .choinka-about { min-height: calc(100svh - var(--header-height)); background: #7a0012; }
  .choinka-about__heading, .choinka-about__details { background: #7a0012; }
  .choinka-about__details { flex-grow: 1; }
  .choinka-about__heading h2 { font-size: clamp(34px, 5.6vw, 56px); }
  .choinka-about__visual { position: relative; width: 100%; }
  .choinka-about__visual img { height: auto; width: 100%; object-fit: contain; }
  .choinka-page .choinka-about__details .button { margin-top: 18px; }
}
@media (max-width: 599px) {
  .choinka-about__heading, .choinka-about__details { padding: 18px 16px; }
  .choinka-page .choinka-label { font-size: 19px; padding: 6px 14px 8px; }
  .choinka-about__details p { font-size: 16px; line-height: 1.5; }
  .choinka-page .choinka-about__details .button, .choinka-page .choinka-rules .button { margin-top: 18px; }
  .choinka-page .choinka-rules { padding: 32px 0; }
  .choinka-rules h2 { margin-top: 15px; font-size: 29px; }
  .choinka-rules__grid { grid-template-columns: 1fr; gap: 26px; margin-top: 28px; }
  .choinka-rule { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .choinka-rule svg { width: 28px; height: 28px; }
  .choinka-rule h3 { font-size: 18px; margin-bottom: 6px; }
  .choinka-page .choinka-rule p, .choinka-page .choinka-regulations { font-size: 16px; line-height: 1.5; }
  .choinka-page .choinka-regulations { margin-top: 28px; }
  .choinka-page .choinka-form { padding: 32px 16px; }
  .choinka-form h2 { font-size: 32px; margin-bottom: 22px; }
  .choinka-about__heading h2 { font-size: clamp(34px, 8.7vw, 40px); margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html.choinka-page { scroll-behavior: auto; }
  .choinka-page main .button { transition: none; transform: none; }
}
/* Reserve the actual portrait aspect ratio before the lazy mobile image loads. */
@media (max-width: 639px) {
  .choinka-about__visual img { aspect-ratio: 1079 / 1414; }
}

/* Desktop visual sections grow with copy, and preserve the entire artwork. */
@media (min-width: 1024px) {
  .choinka-page .choinka-about { min-height: calc(100dvh - var(--header-height)); }
  .choinka-about__visual img {
    position: absolute;
    inset: 0 0 0 auto;
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: contain;
    mask-image: linear-gradient(90deg, transparent, #000 22%);
  }
}
