/* =========================================================
   Премия журнала «Гольф-Клуб» — страница голосования
   Макет: Figma «Лендинг Гольф клуб голосование»
   Брейкпоинты: < 768 — mobile, 768–1199 — tablet, ≥ 1200 — desktop
   ========================================================= */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --c-bg: #1e1e1e;
  --c-white: #fff;
  --c-gold: #ce9b2c;
  --c-panel: rgba(255, 255, 255, 0.1);
  --c-line: rgba(255, 255, 255, 0.1);
  --c-line-strong: rgba(255, 255, 255, 0.3);
  --c-muted: rgba(255, 255, 255, 0.5);
  --c-error: #ff5a4f;
  --grad-gold: linear-gradient(67deg, #ce9b2c 10.691%, #e9ca7a 52.151%, #ce9b2c 114.99%);

  --ff-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --gutter: 16px;
  --container: 1360px;
  --header-h: 80px;
  --section-py: 48px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --section-py: 80px; }
}
@media (min-width: 1200px) {
  :root { --section-py: 100px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--c-bg);
  color: var(--c-white);
  font: 700 16px/1.2 var(--ff-body);
  font-feature-settings: "lnum" 1, "pnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--c-white); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px;
  background: var(--c-white); color: var(--c-bg);
}
.skip-link:focus { top: 16px; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider {
  height: 1px; margin: 0;
  border: 0;
  background: var(--c-line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 20px 32px;
  border: 0;
  font: 700 16px/1 var(--ff-body);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition: filter .2s var(--ease), background-color .2s var(--ease), opacity .2s;
}
.btn--fill { background: var(--grad-gold); color: var(--c-bg); }
.btn--fill:hover { filter: brightness(1.08); }
.btn--fill:active { filter: brightness(.94); }
.btn--outline {
  background: transparent;
  color: var(--c-white);
  box-shadow: inset 0 0 0 1px var(--c-white);
}
.btn--outline:hover { background: var(--c-panel); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }
.btn.is-loading { pointer-events: none; opacity: .7; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  background: var(--grad-gold);
  color: var(--c-bg);
  transition: filter .2s var(--ease);
}
.icon-btn:hover { filter: brightness(1.08); }
.icon { width: 24px; height: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid var(--c-line-strong);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: var(--header-h);
}
.site-header__logo { flex: none; }
.contacts { display: flex; align-items: center; gap: 24px; }
.contacts__link {
  font: 400 18px/1.2 var(--ff-body);
  white-space: nowrap;
  transition: opacity .2s;
}
.contacts__link:hover { opacity: .75; }

.site-header__toggle .icon--close { display: none; }

@media (max-width: 767px) {
  .site-header__meta {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: grid;
    place-items: center;
    background: var(--c-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s;
  }
  .site-header__meta .contacts { flex-direction: column; gap: 26px; margin-top: -80px; }
  .site-header.is-open {
    position: fixed;
    background: var(--c-bg);
  }
  .site-header.is-open .site-header__meta { opacity: 1; visibility: visible; }
  .site-header.is-open .icon--menu { display: none; }
  .site-header.is-open .icon--close { display: block; }
}
@media (min-width: 768px) {
  .site-header__toggle { display: none; }
  .site-header__meta { flex: 1; display: flex; justify-content: flex-end; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  z-index: -1;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 143px;
  background: linear-gradient(#000, transparent);
  z-index: -1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 128px;
}
.hero__content { display: flex; flex-direction: column; gap: 32px; }
.hero__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1;
}
.hero__eyebrow { font-size: 24px; }
.hero__name { font-size: 46px; text-transform: uppercase; }
.hero__cta { width: 100%; }

.hero__event {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--ff-head);
  position: relative;
  z-index: 3;
}
.hero__date { font-size: 24px; line-height: 1; width: max-content; }
.hero__venue { font-size: 20px; line-height: 1.1; }

.hero__magazines {
  position: absolute;
  z-index: 1;
  top: 480px;
  left: 50%;
  width: 512px;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__magazines img { width: 100%; }

@media (min-width: 768px) {
  .hero { min-height: 0; height: 820px; }
  .hero__inner { height: 100%; justify-content: space-between; padding-top: 152px; padding-bottom: 80px; }
  .hero__content { gap: 48px; align-items: flex-start; }
  .hero__eyebrow { font-size: 32px; }
  .hero__name { font-size: clamp(72px, 9vw, 120px); }
  .hero__cta { width: auto; }
  .hero__date { font-size: 32px; }
  .hero__venue { font-size: 24px; }
  .hero__magazines {
    top: auto;
    bottom: 0;
    left: auto;
    right: 0.5%;
    width: 67%;
    transform: none;
  }
}
@media (min-width: 1200px) {
  .hero { height: clamp(820px, 51.05vw, 980px); }
  .hero__inner { padding-bottom: 100px; }
  .hero__event { padding-left: 11px; max-width: 437px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-py); }
.section__title {
  font: 700 32px/1 var(--ff-head);
  text-transform: uppercase;
}
.section__title--center { text-align: center; }
@media (min-width: 768px) {
  .section__title { font-size: 56px; }
}

.card {
  background: var(--c-panel);
  border: 1px solid var(--c-gold);
}

/* ---------- About ---------- */
.about .container { display: flex; flex-direction: column; gap: 24px; }
.about__facts { display: grid; gap: 12px; }
.fact { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.fact__title { font: 700 20px/1.1 var(--ff-head); }
.fact__text { font: 700 16px/1.2 var(--ff-body); }

.media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.about__facts + .media { margin-top: -12px; } /* между карточками и видео — 12px (desktop 24px) */
.media__poster, .media iframe, .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.media iframe, .media video { position: absolute; inset: 0; }
.media__play {
  position: absolute;
  top: 50%; left: 50%;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border: 0; border-radius: 50%;
  background: var(--grad-gold);
  color: var(--c-bg);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.media__play svg { margin-left: 3px; }
.media__play:hover { transform: translate(-50%, -50%) scale(1.06); }

@media (min-width: 768px) {
  .about .container { gap: 32px; }
  .about__facts { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .fact { gap: 20px; padding: 24px; }
  .fact__title { font-size: 24px; }
  .fact__text { font-size: 18px; }
  .media__play { width: 88px; height: 88px; }
  .about__facts + .media { margin-top: -8px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .about__facts { grid-template-columns: 1fr; }
}

/* ---------- Voting ---------- */
.voting {
  padding-block: var(--section-py) 0;
  background: var(--c-bg);
  outline: none;
}
@media (min-width: 1200px) {
  .voting { padding-block: 50px; }
}

.panel {
  background: var(--c-panel);
  border: 1px solid var(--c-gold);
}

/* auth + сообщения */
.voting-auth, .voting-message {
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.voting-auth__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(100%, 444px);
}
.voting-auth__heading { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.voting-auth__lead { font: 700 16px/1.2 var(--ff-body); }
.voting-auth__form { display: flex; flex-direction: column; gap: 12px; }
.voting-auth__hint {
  font: 400 14px/1.3 var(--ff-body);
  color: var(--c-muted);
  text-align: center;
}

.voting-message { min-height: 240px; }
.voting-message__inner { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.voting-message__title { font: 700 32px/1 var(--ff-head); text-transform: uppercase; }
.voting-message__text { font: 700 16px/1.2 var(--ff-body); }

@media (min-width: 768px) {
  .voting-auth, .voting-message { min-height: 808px; padding: 40px; }
  .voting-auth__inner { gap: 32px; }
  .voting-auth__lead, .voting-message__text { font-size: 18px; }
  .voting-message__title { font-size: 56px; }
}

/* поле ввода */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--c-bg);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .15);
  font: 700 18px/1.2 var(--ff-body);
  color: var(--c-white);
  transition: border-color .2s var(--ease);
  appearance: none;
}
.field__input::placeholder { color: var(--c-white); opacity: .6; }
.field__input:hover { border-color: var(--c-gold); }
.field__input:focus { outline: none; border-color: var(--c-white); }
.field__input:disabled { opacity: .5; border-color: transparent; }
.field.is-error .field__input { border-color: var(--c-error); color: var(--c-error); }
.field__error { font: 400 14px/1.3 var(--ff-body); color: var(--c-error); }

/* бюллетень */
.ballot { display: flex; flex-direction: column; gap: 12px; }
.ballot__sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px;
}
.ballot__sidebar-top, .ballot__sidebar-bottom { display: flex; flex-direction: column; gap: 12px; }
.ballot__award { font: 700 20px/1.1 var(--ff-head); }

.ballot__stats { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.stat__value { font: 700 32px/1 var(--ff-head); width: max-content; }
.stat__label { display: block; font: 400 14px/1.2 var(--ff-body); }
.stat--status dd { display: flex; flex-direction: column; gap: 8px; }
.stat__status { font: 700 24px/1 var(--ff-head); width: max-content; }

.ballot__rule, .ballot__step { font: 400 14px/1.2 var(--ff-body); color: var(--c-muted); }
.ballot__progress { display: flex; flex-direction: column; gap: 8px; }
.ballot__progress-label { font: 400 14px/1.2 var(--ff-body); }
.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--c-line);
}
.progress__bar {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--grad-gold);
  transition: width .4s var(--ease);
}

.ballot__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 16px;
}
.ballot__fieldset { min-width: 0; margin: 0; padding: 0; border: 0; flex: 1; }
.ballot__title {
  float: left;
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
  font: 700 24px/1 var(--ff-head);
  outline: none;
}
.nominees {
  clear: both;
  display: grid;
  gap: 12px;
  align-content: start;
}

.nominee {
  position: relative;
  display: flex;
  min-height: 100px;
  border: 1px solid var(--c-line);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  animation: nominee-in .35s var(--ease) both;
}
.nominee:hover { background: var(--c-panel); border-color: var(--c-line-strong); }
.nominee__img { position: relative; flex: none; width: 100px; align-self: stretch; background: #2a2a2a; }
.nominee__img picture, .nominee__img img { width: 100%; height: 100%; }
.nominee__img img { object-fit: cover; min-height: 100px; }
.nominee__img::after {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 24px; height: 24px;
  background: url("../icons/check.svg") no-repeat center / contain;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nominee__name {
  flex: 1;
  min-width: 0;
  padding: 12px;
  font: 700 18px/1.1 var(--ff-head);
  overflow-wrap: anywhere;
}
.nominee:has(.nominee__input:checked),
.nominee.is-checked {
  border-color: var(--c-gold);
  box-shadow: inset 0 0 0 1px var(--c-gold);
}
.nominee:has(.nominee__input:checked) .nominee__img::after,
.nominee.is-checked .nominee__img::after { opacity: 1; transform: none; }
.nominee:has(.nominee__input:focus-visible) { outline: 2px solid var(--c-white); outline-offset: 2px; }

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

.ballot__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ballot__note { font: 700 14px/1.3 var(--ff-body); }
.ballot__error { font: 400 14px/1.3 var(--ff-body); color: var(--c-error); }
.ballot__actions { display: flex; flex-direction: column-reverse; gap: 8px; }
.ballot__actions .btn { width: 100%; }

/* mobile: кнопки «прилипают» к низу экрана — удобно при 20–40 кандидатах */
@media (max-width: 767px) {
  .ballot__footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -16px -16px;
    padding: 12px 16px 16px;
    background: #353535;
    box-shadow: 0 -12px 24px -12px rgba(0, 0, 0, .5);
  }
}

@media (min-width: 768px) {
  .ballot__main { padding: 40px; gap: 32px; }
  .ballot__title { font-size: 32px; margin-bottom: 32px; }
  .nominees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nominee { min-height: 105px; }
  .nominee__img { width: 105px; }
  .nominee__img img { min-height: 105px; }
  .nominee__img::after { top: 8px; left: 8px; }
  .nominee__name { padding: 16px; font-size: 20px; }
  .ballot__footer { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .ballot__footer > p { max-width: 560px; }
  .ballot__note { font-size: 16px; }
  .ballot__actions { flex-direction: row; gap: 12px; margin-left: auto; }
  .ballot__actions .btn { width: auto; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .ballot__sidebar { padding: 24px; }
}
@media (min-width: 1200px) {
  .ballot { flex-direction: row; gap: 24px; align-items: stretch; }
  .ballot__sidebar {
    flex: none;
    width: 322px;
    min-height: 808px;
    justify-content: space-between;
    padding: 40px;
  }
  .ballot__sidebar-top, .ballot__sidebar-bottom { gap: 24px; }
  .ballot__award { font-size: 24px; }
  .ballot__stats { display: grid; grid-template-columns: 1fr auto; gap: 20px; }
  .stat--status { grid-column: 1 / -1; }
  .stat__value { font-size: 56px; text-transform: uppercase; }
  .stat__label, .ballot__rule, .ballot__step, .ballot__progress-label { font-size: 16px; }
  .stat__status { font-size: 32px; }
  .ballot__progress { gap: 12px; }
  .progress { height: 16px; }
  .ballot__main { flex: 1; min-height: 808px; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .nominee__name { font-size: 18px; }
}

/* ---------- Другие номинации ---------- */
.other { padding-top: var(--section-py); clip-path: inset(-200px 0 0 0); } /* отражение кубка не заходит на футер */
.other__inner { display: flex; flex-direction: column; gap: 24px; }
.other__content { display: flex; flex-direction: column; gap: 24px; }
.ul-list { display: flex; flex-direction: column; gap: 8px; }
.ul-list li {
  position: relative;
  padding-left: 16px;
  font: 700 16px/1.2 var(--ff-body);
}
.ul-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-gold);
}
.other__trophy { align-self: center; width: min(260px, 72%); }
.other__trophy img { -webkit-box-reflect: below 0 linear-gradient(transparent 78%, rgba(0, 0, 0, .3)); }

@media (min-width: 768px) {
  .other__content { gap: 32px; }
  .ul-list li { font-size: 18px; }
  .ul-list li::before { top: 8px; }
  .other__trophy { width: 340px; }
}
@media (min-width: 1200px) {
  .other { padding-top: 0; }
  .other__inner { position: relative; flex-direction: row; min-height: 470px; }
  .other__content { flex: 1; max-width: 760px; }
  .other__trophy {
    position: absolute;
    left: 58.75%; /* 799px из 1360 */
    top: -102.91px;
    width: 490px;
  }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--c-line-strong); }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-block: 32px;
}
.site-footer__logo img { width: 160px; height: auto; }
.site-footer .contacts { flex-wrap: wrap; justify-content: center; gap: 16px 12px; }
.site-footer .contacts li:last-child:has(.icon-btn) { flex-basis: 100%; display: flex; justify-content: center; }

@media (min-width: 768px) {
  .site-footer__inner { flex-direction: row; gap: 40px; height: 80px; padding-block: 0; }
  .site-footer__logo img { width: 144px; }
  .site-footer__meta { flex: 1; display: flex; justify-content: flex-end; }
  .site-footer .contacts { flex-wrap: nowrap; gap: 24px; }
  .site-footer .contacts li:last-child:has(.icon-btn) { flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
