:root {
  --font: "EB Garamond", "Times New Roman", serif;
  --white: #ffffff;
  --gold-1: #efc996;
  --gold-2: #bf9969;
  --gold-3: #79512a;
  --gold-4: #b08254;
  --gold-5: #876037;
  --gold-line: #d4a869;
  --btn-text: #3a2412;
  --modal-bg: #0a1a14;
  --page-pad: 30px;
  --content: 330px;
  --card-w: 270px;
  --card-h: 404px;
  --card-gap: 30px;
  --gold-text: linear-gradient(
    267.31deg,
    #efc996 0%,
    #bf9969 22%,
    #79512a 42%,
    #efc996 55%,
    #b08254 74%,
    #876037 100%
  );
  --gold-btn: linear-gradient(
    174deg,
    #efc996 11%,
    #bf9969 56%,
    #79512a 96%
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: #02110c;
  min-height: 100%;
  min-height: 100svh;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--white);
  background: transparent;
  min-height: 100%;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.page {
  position: relative;
  z-index: 0;
  min-height: 100%;
  overflow-x: hidden;
}

.page__bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  height: 100svh;
  height: 100dvh;
  pointer-events: none;
  background:
    url("../img/bg.jpg") center / cover no-repeat,
    #02110c;
}

.curtains {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.curtain {
  position: absolute;
  width: 438px;
  overflow: hidden;
}

.curtain img {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: none;
}

.curtain--tl,
.curtain--tr {
  top: -50px;
  height: 529px;
}

.curtain--tl img,
.curtain--tr img {
  top: -0.04%;
  height: 189.68%;
}

.curtain--bl,
.curtain--br {
  bottom: 0;
  height: 463px;
}

.curtain--bl img,
.curtain--br img {
  top: -116.67%;
  height: 216.71%;
}

.curtain--tl,
.curtain--bl {
  left: -243px;
}

.curtain--tr,
.curtain--br {
  right: -243px;
  transform: scaleX(-1);
}

.column {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 45px 0 48px;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, var(--content));
}

.header__logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 33px;
}

.logo--ffr {
  width: 75px;
  height: 33px;
}

.logo--rsf {
  width: 51px;
  height: 32px;
}

.logo--ins {
  width: 99px;
  height: 20px;
}

.header__emblem {
  width: 330px;
  height: auto;
  margin-top: 120px;
}

.lead-title {
  margin: 72px 0 0;
  width: min(100% - 60px, var(--content));
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}

.intro {
  margin-top: 48px;
  width: min(100% - 60px, var(--content));
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

.intro p {
  margin: 0 0 1em;
}

.intro p:last-child {
  margin-bottom: 0;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 204px;
  height: 28px;
  margin-top: 24px;
}

.socials--footer {
  margin-top: 72px;
}

.socials__link {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.socials__link img {
  width: 28px;
  height: 28px;
}

.gold-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-title__line {
  display: block;
}

.gold-title__line[hidden] {
  display: none;
}

.voting {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.voting__title {
  margin-top: 72px;
  width: min(100% - 60px, var(--content));
}

.before-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 60px, var(--content));
  margin-top: 16px;
  text-align: center;
}

.before-block[hidden],
.voting[hidden] {
  display: none;
}

.before-block__text {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 24px;
}

.nomination {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 48px;
}

.nomination + .nomination {
  margin-top: 72px;
}

.nomination__title {
  margin: 0;
  width: min(100% - 60px, var(--content));
  font-size: 24px;
  font-weight: 700;
  line-height: 31px;
  text-align: center;
}

.carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 36px;
}

.carousel__window {
  width: 100%;
  height: var(--card-h);
  overflow: hidden;
  touch-action: pan-y;
}

.carousel__track {
  display: flex;
  gap: var(--card-gap);
  height: 100%;
  will-change: transform;
  transition: transform 0.35s ease;
}

.carousel__track.is-dragging {
  transition: none;
}

.carousel__card {
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  height: var(--card-h);
  overflow: hidden;
  background: #111;
}

.carousel__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.carousel__meta {
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  align-items: start;
  gap: 10px;
  width: var(--card-w);
  margin-top: 12px;
}

.carousel__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 40px;
  padding: 0;
  margin-top: 0;
  border: 0;
  background: none;
}

.carousel__arrow[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.carousel__arrow img {
  width: 11px;
  height: 25px;
}

.carousel__caption {
  min-width: 0;
  text-align: center;
}

.carousel__name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
}

.carousel__info {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.carousel__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--card-w);
  margin-top: 12px;
  min-height: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--gold-3);
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
}

.btn--gold {
  background: var(--gold-btn);
  color: var(--btn-text);
}

.btn--choice {
  background: transparent;
  border-color: var(--gold-line);
  color: var(--gold-line);
  cursor: default;
}

.btn--ghost {
  background: transparent;
  border-color: var(--gold-line);
  color: var(--gold-1);
}

.toast {
  width: 100%;
  margin-top: 12px;
  padding: 13px 17px;
  background: var(--modal-bg);
  color: var(--white);
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  animation: toast-in 0.25s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  height: 100svh;
  height: 100dvh;
}

.modal[hidden] {
  display: none;
}

.modal__dim {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 55%);
}

.modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(330px, calc(100% - 60px));
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--modal-bg);
  border: 1px solid var(--gold-line);
}

.modal__title {
  margin: 0;
  width: 100%;
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  color: var(--gold-1);
}

.modal__name {
  margin: 0;
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.modal__note {
  margin: 0;
  width: 100%;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}

.modal__buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.modal__buttons .btn {
  flex: 1 1 0;
  width: auto;
  height: 44px;
  font-size: 16px;
  border-color: var(--gold-line);
}

@media (min-width: 768px) {
  :root {
    --page-pad: 40px;
    --content: 600px;
    --card-w: 300px;
    --card-h: 450px;
    --card-gap: 24px;
  }

  .column {
    padding-top: 55px;
  }

  .header {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 48px;
    width: min(100% - 80px, 860px);
  }

  .header__logos {
    width: 330px;
    order: 2;
  }

  .header__emblem {
    width: 200px;
    margin-top: 0;
    order: 1;
  }

  .lead-title,
  .intro,
  .voting__title,
  .nomination__title,
  .before-block {
    width: min(100% - 80px, var(--content));
  }

  .header__emblem + .lead-title,
  .header + .lead-title {
    margin-top: 80px;
  }

  .curtain--tl,
  .curtain--bl {
    left: -200px;
  }

  .curtain--tr,
  .curtain--br {
    right: -200px;
  }
}

@media (min-width: 1024px) {
  :root {
    --content: 800px;
    --card-w: 360px;
    --card-h: 540px;
    --card-gap: 40px;
  }

  .header {
    gap: 280px;
    width: 865px;
    padding: 8px 0;
  }

  .header__emblem {
    width: 255px;
  }

  .lead-title,
  .header + .lead-title {
    margin-top: 120px;
  }

  .carousel__meta,
  .carousel__action {
    width: var(--card-w);
  }

  .curtain--tl {
    left: -183px;
  }

  .curtain--tr {
    right: -184px;
  }

  .curtain--bl {
    left: -203px;
  }

  .curtain--br {
    right: -194px;
  }
}

@media (min-width: 1440px) {
  .curtains {
    --curtain-scale: calc(100vw / 1440);
  }

  .curtain {
    width: calc(438 * var(--curtain-scale));
  }

  .curtain--tl,
  .curtain--tr {
    top: calc(-50 * var(--curtain-scale));
    height: calc(529 * var(--curtain-scale));
  }

  .curtain--bl,
  .curtain--br {
    height: calc(463 * var(--curtain-scale));
  }

  .curtain--tl {
    left: calc(-183 * var(--curtain-scale));
  }

  .curtain--tr {
    right: calc(-184 * var(--curtain-scale));
  }

  .curtain--bl {
    left: calc(-203 * var(--curtain-scale));
  }

  .curtain--br {
    right: calc(-194 * var(--curtain-scale));
  }
}
