@font-face {
  font-family: 'NauryzRedKeds';
  src: url('fonts/NauryzRedKeds.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fet';
  src: url('fonts/Fet-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #FFFFFF;
  border-radius: 5px;
}

html {
  overflow-x: hidden;
}

body {
  background-color: #0B1E3A;
  min-height: 100vh;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page {
  position: relative;
  width: 1055px;
  min-height: 2300px;
  flex-shrink: 0;
  transform-origin: top center;
}

/* Текстовый лого-блок «МЕДИАФУТБОЛ / Ярославль» — на десктопе это
   просто прозрачная обёртка (hero-stage не создаёт новый контекст
   позиционирования, поэтому текст позиционируется как раньше,
   напрямую относительно .page). На мобильных hero-stage становится
   самостоятельным блоком, который целиком масштабируется под ширину
   экрана — это и обеспечивает точное взаимное расположение строк. */
.hero-wrap {
  position: static;
}

.hero-stage {
  position: static;
}

.logo {
  position: absolute;
  top: 50px;
  left: 432px;
  width: 192px;
  height: 40px;
  pointer-events: none;
}

.search-box {
  position: absolute;
  top: 128px;
  left: 364px;
  width: 327px;
  height: 53px;
  background-color: rgba(217, 217, 217, 0.25);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-size: 14.35px;
  font-weight: 700;
  cursor: pointer;
}

.hero-title {
  position: absolute;
  top: 231px;
  left: 213px;
  font-family: 'NauryzRedKeds', Arial, sans-serif;
  font-size: 53.1px;
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.11px rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
}

.hero-subtitle {
  position: absolute;
  top: 260px;
  left: 301px;
  font-family: 'NauryzRedKeds', Arial, sans-serif;
  font-size: 38.26px;
  font-weight: 400;
  line-height: 1;
  color: #FFFFFF;
  text-transform: uppercase;
}

.hero-city {
  position: absolute;
  top: 291px;
  left: 453px;
  font-family: 'Fet', Arial, sans-serif;
  font-size: 38.26px;
  font-weight: 400;
  line-height: 1;
  color: #FFFFFF;
}

.cta-btn {
  position: absolute;
  top: 381px;
  left: 374px;
  width: 150px;
  height: 50px;
  background-color: #D9D9D9;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 12.24px;
  color: #0B1E3A;
  cursor: pointer;
}

.date-img {
  position: absolute;
  top: 394px;
  left: 544px;
  width: 138px;
  height: 24px;
  pointer-events: none;
}

.info-section {
  position: absolute;
  top: 500px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 80px;
  text-align: center;
}

.info-title {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  color: #FFFFFF;
}

.info-text {
  max-width: 640px;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.marquee-strip {
  position: absolute;
  top: 720px;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  height: 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 1056px) {
  .marquee-strip {
    width: 100vw;
    left: calc(50% - 50vw);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 14s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  min-width: 100vw;
  justify-content: space-around;
  flex-shrink: 0;
}

.marquee-item {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 2px;
  color: #0B1E3A;
  white-space: nowrap;
  padding: 0 60px;
  text-transform: uppercase;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.join-section {
  position: absolute;
  top: 850px;
  left: 0;
  right: 0;
  padding: 0 60px;
  text-align: center;
}

.join-title {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  color: #FFFFFF;
}

.join-subtitle {
  margin-top: 12px;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.join-steps {
  margin-top: 40px;
  display: flex;
  gap: 24px;
}

.join-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.join-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(217, 217, 217, 0.25);
  color: #FFFFFF;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
}

.join-step-title {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.join-step-text {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.tournament-section {
  position: absolute;
  top: 1180px;
  left: 0;
  right: 0;
  padding: 0 60px;
  text-align: center;
}

.tournament-title {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  color: #FFFFFF;
}

.tournament-facts {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fact-card {
  background-color: rgba(217, 217, 217, 0.25);
  border-radius: 15px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fact-num {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #FFFFFF;
}

.fact-label {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

.bracket-img {
  display: block;
  margin: 40px auto 0;
  width: 892px;
  height: 466px;
  pointer-events: none;
}

.contacts-section {
  position: absolute;
  top: 1950px;
  left: 0;
  right: 0;
  padding: 0 60px;
  text-align: center;
}

.contacts-title {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1.1;
  color: #FFFFFF;
}

.contacts-inner {
  position: relative;
  width: 892px;
  margin: 40px auto 0;
}

.contacts-img {
  display: block;
  width: 892px;
  height: 150px;
  pointer-events: none;
}

.connect-btn,
.copy-btn {
  position: absolute;
  top: 52px;
  cursor: pointer;
}

.connect-btn {
  left: 524px;
  width: 240px;
  height: 45px;
}

.copy-btn {
  left: 772px;
  width: 45px;
  height: 45px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(45px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.modal-open {
  opacity: 1;
  visibility: visible;
}

.modal-img {
  display: block;
  width: 702px;
  height: 513px;
  pointer-events: none;
}

.modal-wrap {
  position: relative;
  width: 702px;
  max-width: 100%;
  height: 513px;
  border-radius: 15px;
  overflow: hidden;
}

.modal-field {
  position: absolute;
  width: 325px;
  height: 71px;
  background-color: #152844;
  border: none;
  border-radius: 12px;
  padding: 0 24px;
  color: #FFFFFF;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  outline: none;
}

.modal-field::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.modal-send {
  position: absolute;
  top: 405px;
  left: 52px;
  width: 207px;
  height: 71px;
  background-color: #D9D9D9;
  border: none;
  border-radius: 15px;
  color: #0B1E3A;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.modal-ronaldo {
  position: absolute;
  top: 0;
  left: 441px;
  width: 261px;
  height: 513px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .stage {
    height: auto;
    display: block;
  }

  .page {
    width: 100%;
    min-height: 0;
    transform: none !important;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .logo {
    position: static;
    display: block;
    width: 140px;
    height: auto;
    margin: 24px auto 0;
  }

  .search-box {
    position: static;
    width: 100%;
    height: auto;
    margin: 18px 0 0;
    padding: 14px 16px;
    gap: 16px;
    justify-content: space-around;
    box-sizing: border-box;
  }

  .nav-item {
    font-size: 15px;
    min-height: 44px;
  }

  /* Текстовый лого-блок: масштабируется целиком (см. fit() в index.html),
     поэтому «МЕДИАФУТБОЛ» / «МЕДИАФУТБОЛ» / «Ярославль» всегда стоят
     друг относительно друга так же, как на ПК — просто меньше по размеру. */
  .hero-wrap {
    position: relative;
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    margin-top: 28px;
    overflow: hidden;
  }

  .hero-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 1055px;
    height: 120px;
    transform-origin: top left;
  }

  .hero-title {
    top: 0;
  }

  .hero-subtitle {
    top: 29px;
  }

  .hero-city {
    top: 60px;
  }

  .cta-btn {
    position: static;
    display: block;
    width: 100%;
    max-width: 340px;
    height: 58px;
    margin: 24px auto 0;
    font-size: 18px;
    border-radius: 14px;
  }

  .date-img {
    position: static;
    display: block;
    width: 150px;
    height: auto;
    margin: 18px auto 0;
  }

  .info-section {
    position: static;
    margin-top: 40px;
    padding: 0;
  }

  .info-title {
    font-size: 26px;
  }

  .info-text {
    font-size: 15px;
    max-width: 100%;
  }

  .marquee-strip {
    position: static;
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2);
    height: 56px;
    margin-top: 48px;
  }

  .marquee-group {
    min-width: auto;
  }

  .marquee-item {
    font-size: 20px;
    padding: 0 28px;
  }

  .join-section {
    position: static;
    margin-top: 52px;
    padding: 0;
    text-align: center;
  }

  .join-title {
    font-size: 26px;
  }

  .join-steps {
    flex-direction: column;
    gap: 28px;
    margin-top: 32px;
    text-align: left;
  }

  .join-num {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .tournament-section {
    position: static;
    margin-top: 52px;
    padding: 0;
    text-align: center;
  }

  .tournament-title {
    font-size: 26px;
  }

  .tournament-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 28px;
  }

  .fact-card {
    padding: 18px 12px;
  }

  .fact-num {
    font-size: 20px;
  }

  .fact-label {
    font-size: 12px;
  }

  .bracket-img {
    width: 100%;
    height: auto;
    margin-top: 28px;
  }

  .contacts-section {
    position: static;
    margin-top: 52px;
    padding: 0 0 64px;
    text-align: center;
  }

  .contacts-title {
    font-size: 26px;
  }

  .contacts-inner {
    width: 100%;
    margin: 28px auto 0;
    position: relative;
  }

  .contacts-img {
    width: 100%;
    height: auto;
  }

  .connect-btn {
    position: absolute;
    left: 58.7%;
    top: 34.7%;
    width: 27%;
    height: auto;
    max-width: none;
  }

  .copy-btn {
    position: absolute;
    left: 86.5%;
    top: 34.7%;
    width: 5%;
    height: auto;
    max-width: none;
  }

  .modal-overlay {
    padding: 16px;
  }

  .modal-wrap {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none !important;
    background-color: #152844;
    padding: 28px 20px 24px;
    border-radius: 15px;
    overflow-y: auto;
    max-height: calc(100vh - 32px);
    box-sizing: border-box;
  }

  .modal-img,
  .modal-ronaldo {
    display: none;
  }

  .modal-wrap::before {
    content: "Заявка на турнир";
    display: block;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #FFFFFF;
    margin-bottom: 22px;
    text-align: center;
  }

  .modal-field {
    position: static;
    width: 100%;
    height: 56px;
    margin-bottom: 14px;
    padding: 0 18px;
    background-color: rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
  }

  .modal-send {
    position: static;
    width: 100%;
    height: 56px;
    margin-top: 8px;
    font-size: 17px;
  }
}