/* ===== ОБЩИЕ СТИЛИ ===== */
body {
  background-image: url('assets/image/bg-football-1.png');
  background-color: #05020a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hide-element {
  display: none !important;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(115, 25, 130, 0.75) 0%,
    rgba(10, 5, 18, 0.9) 45%,
    rgba(0, 185, 86, 0.4) 100%
  );
  z-index: 1;
}

/* ===== ШАПКА ===== */
.header__container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 50px;
  z-index: 5;
}

.header__logo-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__logo {
  max-width: 140px;
  max-height: 30px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}

.header__danger {
  position: absolute;
  right: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 390px) {
  .header .header__container .header__logo {
    max-width: 140px;
    max-height: 80px;
  }
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main {
  position: relative;
  z-index: 3;
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.main__title {
  color: #ffffff;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  text-shadow:
    0 4px 15px rgba(0, 0, 0, 0.8),
    2px 2px 0px #731982;
}

@media (max-width: 390px) {
  .main__title {
    font-size: 26px;
  }
}
@media (max-height: 650px) {
  .main__title {
    font-size: 22px;
    margin-bottom: 10px;
  }
}

.main__date {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 20px;
  margin: 0 auto 20px;
  width: max-content;
  border-radius: 6px;
  background: #00d964;
  box-shadow: 0 4px 15px rgba(0, 217, 100, 0.4);
}

.main__date span {
  color: #05020a;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-height: 650px) {
  .main__date {
    margin-bottom: 12px;
    padding: 6px 16px;
  }
  .main__date span {
    font-size: 14px;
  }
}

.main__content {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

@media (max-height: 650px) {
  .main__content {
    margin-bottom: 15px;
  }
}

.main__vs {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main__vs-center {
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  text-shadow:
    0 0 10px rgba(115, 25, 130, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
}

@media (max-height: 650px) {
  .main__vs-center {
    font-size: 22px;
  }
}

.main__team {
  width: 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main__team div {
  padding: 10px;
  border-radius: 35px 8px 35px 8px;
  width: 130px;
  height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(115, 25, 130, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 12px;
  border: 2px solid rgba(0, 217, 100, 0.6);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 15px rgba(115, 25, 130, 0.4);
  animation: floatTeam 4s ease-in-out infinite;
}

.main__team:nth-child(1) div {
  animation-delay: 0s;
}
.main__team:nth-child(3) div {
  animation-delay: 2s;
  border-color: rgba(115, 25, 130, 0.8);
  background: rgba(0, 217, 100, 0.1);
}

@keyframes floatTeam {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.main__team div img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 26px 4px 26px 4px;
}

@media (max-width: 390px) {
  .main__team div {
    width: 110px;
    height: 110px;
    border-radius: 28px 6px 28px 6px;
  }
  .main__team div img {
    border-radius: 20px 3px 20px 3px;
  }
}

@media (max-height: 650px) {
  .main__team div {
    width: 85px;
    height: 85px;
    margin-bottom: 8px;
    border-radius: 22px 5px 22px 5px;
  }
  .main__team div img {
    border-radius: 16px 2px 16px 2px;
  }
}

.main__team h2 {
  color: #ffffff;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

@media (max-height: 650px) {
  .main__team h2 {
    font-size: 14px;
  }
}

.main__submit {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

@media (max-height: 650px) {
  .main__submit {
    gap: 8px;
  }
}

.main__slogan {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 4vw, 20px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  text-shadow:
    0 0 8px rgba(0, 217, 100, 0.6),
    2px 2px 0px rgba(115, 25, 130, 0.8);
}

.main__btn {
  width: 80%;
  margin: 0 auto;
  text-decoration: none;
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(90deg, #731982 0%, #00b956 100%);
  color: #ffffff;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.5),
    inset 0 2px 2px rgba(255, 255, 255, 0.3);
  transition:
    transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter 0.2s ease;
}

.main__btn:hover {
  filter: hue-rotate(-10deg) brightness(1.1);
}

.main__btn:active {
  transform: scale(0.96);
}

@media (max-height: 827px) {
  .main__btn {
    padding: 18px;
    font-size: 20px;
  }
}
@media (max-height: 650px) {
  .main__btn {
    padding: 14px;
    font-size: 18px;
  }
}

.main__price {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

@media (max-height: 650px) {
  .main__price {
    font-size: 12px;
  }
}

.main__back {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  text-transform: lowercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  width: max-content;
  margin: 0 auto;
  padding: 6px 24px;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.main__back:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-height: 650px) {
  .main__back {
    font-size: 12px;
    padding: 5px 20px;
  }
}

/* ===== ФУТЕР ===== */
.footer {
  padding: 20px 0 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
}

.footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 90px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(5, 2, 10, 0) 0%, rgba(5, 2, 10, 0.98) 100%);
}

.footer__container {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.5) !important;
  position: relative;
  z-index: 3;
}

.footer__container p {
  color: rgba(255, 255, 255, 0.5) !important;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
}

.footer__container p a {
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration-line: underline;
  transition: color 0.2s ease;
}

/* ===== ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ НА ТЕЛЕФОНАХ ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .header__container {
    min-height: 30px;
  }
  .header__logo {
    max-height: 20px;
    max-width: 100px;
  }
  .header__danger {
    font-size: 8px;
    padding: 1px 4px;
  }
  .main__title {
    font-size: 18px;
    margin-bottom: 5px;
  }
  .main__date {
    padding: 3px 12px;
    margin-bottom: 0px;
  }
  .main__date span {
    font-size: 12px;
  }
  .main__team div {
    width: 60px;
    height: 50px;
    padding: 5px;
    margin-bottom: 0px;
    border-radius: 14px 3px 14px 3px;
  }
  .main__team div img {
    border-radius: 10px 2px 10px 2px;
  }
  .main__team h2 {
    font-size: 11px;
    margin: 0;
  }
  .main__vs-center {
    font-size: 16px;
  }
  .main__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 14px;
    width: 60%;
    height: 40px;
  }
  .main__price {
    font-size: 12px;
    margin: 4px;
  }
  .main__back {
    font-size: 12px;
    padding: 3px 14px;
  }
  .main__content {
    margin-bottom: 5px;
  }
  .main__submit {
    gap: 4px;
  }
  .footer {
    padding: 10px 0 5px;
  }
  .footer__container p {
    font-size: 11px;
  }
  .footer::before {
    height: 40px;
  }
}

/* ===== ПЛАНШЕТЫ: ВЕРТИКАЛЬНАЯ ОРИЕНТАЦИЯ ===== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .header__container {
    min-height: 70px;
  }
  .header__logo {
    max-height: 50px;
    max-width: 200px;
  }
  .header__danger {
    font-size: 16px;
    padding: 4px 10px;
  }
  .main__title {
    font-size: 48px;
    margin-bottom: 25px;
  }
  .main__date {
    padding: 12px 30px;
    margin-bottom: 30px;
  }
  .main__date span {
    font-size: 26px;
  }
  .main__team div {
    width: 180px;
    height: 180px;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 40px 10px 40px 10px;
  }
  .main__team div img {
    border-radius: 30px 6px 30px 6px;
  }
  .main__team h2 {
    font-size: 28px;
  }
  .main__vs-center {
    font-size: 40px;
  }
  .main__btn {
    padding: 30px;
    font-size: 32px;
    width: 60%;
  }
  .main__price {
    font-size: 20px;
  }
  .main__back {
    font-size: 18px;
    padding: 10px 32px;
  }
  .main__content {
    margin-bottom: 40px;
  }
  .main__submit {
    gap: 20px;
  }
  .footer {
    padding: 30px 0 15px;
  }
  .footer__container p {
    font-size: 16px;
  }
  .footer::before {
    height: 120px;
  }
}

/* ===== ПЛАНШЕТЫ: ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ ===== */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) and (min-height: 600px) {
  .header__container {
    min-height: 50px;
  }
  .header__logo {
    max-height: 35px;
    max-width: 160px;
  }
  .header__danger {
    font-size: 12px;
    padding: 2px 8px;
  }
  .main__title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .main__date {
    padding: 8px 20px;
    margin-bottom: 18px;
  }
  .main__date span {
    font-size: 18px;
  }
  .main__team div {
    width: 120px;
    height: 120px;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 30px 8px 30px 8px;
  }
  .main__team div img {
    border-radius: 20px 4px 20px 4px;
  }
  .main__team h2 {
    font-size: 18px;
  }
  .main__vs-center {
    font-size: 28px;
  }
  .main__btn {
    padding: 60px;
    font-size: 22px;
    width: 50%;
  }
  .main__price {
    font-size: 14px;
  }
  .main__back {
    font-size: 14px;
    padding: 6px 24px;
  }
  .main__content {
    margin-bottom: 20px;
  }
  .main__submit {
    gap: 12px;
  }
  .footer {
    padding: 15px 0 8px;
  }
  .footer__container p {
    font-size: 12px;
  }
  .footer::before {
    height: 70px;
  }
}

/* ===== ВЫСОКИЕ ТЕЛЕФОНЫ (XR, 12 Pro - 14 Pro Max в вертикальном режиме) ===== */
@media screen and (max-width: 450px) and (min-height: 800px) and (orientation: portrait) {
  .main {
    justify-content: center;
  }
  .main__title {
    margin-bottom: 30px;
  }
  .main__date {
    margin-bottom: 40px;
  }
  .main__content {
    margin-bottom: 50px;
  }
  .main__submit {
    gap: 20px;
  }
}

@media screen and (min-width: 1025px) {
  .main__submit {
    margin-top: 10px;
  }
  .main__price {
    margin-top: -12px;
  }
  .main__back {
    display: none;
  }
}
