@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-display: swap;
    font-style: normal;
    font-weight: 100 900;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container {
    width: 100%;
    max-width: 1440px;
    padding: 0 16px;
    margin: 0 auto;
}
body {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}
button {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
}
.tournirs-1 {
  width: 100%;
  height: auto;
}
.tour__icon {
  display: block;
  object-fit: cover;
  width: 30px;
  height: 30px;
}
.table__img {
  display: block;
  object-fit: cover;
  width: 100%;
  max-width: 920px;
  height: clamp(360px, 55vw, 775px);
  border-radius: 32px;
}
.tournirs__content-1 {
  display: flex;
  background: rgb(12, 12, 12);
  width: 100%;
  max-width: 1440px;
  height: auto;
  min-height: 420px;
  margin: 0 auto;
  border-radius: 30px;
  border: 1px solid #d4af37;
  position: relative;
}
.tournirs__block-1 {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 24px;
  padding: 20px 40px 20px 40px;
}
.tournirs__title-1 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tour__title {
  font-size: 2rem;
  font-weight: 400;
  color: #d4af37;
  line-height: 100%;
  letter-spacing: 0;
}
.tour__dsc {
  font-size: 2rem;
  font-weight: 500;
  color: #d4af37;
  line-height: 100%;
  letter-spacing: 0;
}
.tour__strong {
  color: #ffffff;
}
.tour__dsc-1 {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 170%;
  letter-spacing: 0;
}
.tournirs__lists {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.tour__list-1 {
  width: auto;
  height: auto;
}
.tour__list-btn {
  padding: 12px 20px 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  color: #ffffff;
  background: transparent;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0;
  transition: all 0.3s ease;
  cursor: pointer; 
}
.tour__list-btn:hover {
  color: black;
  background: #d4af37cc;
}
.tournirs__columns {
  display: flex;
  flex-direction: column;
  gap: 46px;
}
.tournirs__card-1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 788px;
  height: auto;
  min-height: 100px;
  border-radius: 30px;
  background: rgba(253, 253, 253, 0.2);
}
.card__button-dsc {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.button-1 {
  width: auto;
  height: auto;
}
.card__btn-2 {
  padding: 10px 10px 10px 10px;
  border: none;
  border-radius: 40px;
  background: #d4af37cc;
}
.tour__name-1 {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
}
.name-1 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 100%;
  letter-spacing: 0;
}
.name-2 {
  font-size: 1rem;
  color: #d4af37;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0;
}
.name-1,
.name-2,
.buy-in,
.buy-in-price,
.prize,
.prize-1,
.time-1,
.time-2 {
  overflow-wrap: anywhere;
}
.card__buy-in {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.buy-in {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 100%;
  letter-spacing: 0;
}
.buy-in-price {
  font-size: 1rem;
  color: #d4af37;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0;
}
.prize {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0;
}
.prize-1 {
  font-size: 1rem;
  color: #d4af37;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0;
}
.card__time {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.time-1 {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: 0;
}
.time-2 {
  font-size: 1rem;
  font-weight: 400;
  color: #d4af37;
  line-height: 100%;
  letter-spacing: 0;
}
.card__button-1 {
  width: auto;
  height: auto;
}
.card__btn-3 {
  padding: 10px 10px 10px 10px;
  border: 1px solid #d4af37;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 400;
  color: #d4af37;
  background: transparent;
  line-height: 100%;
  letter-spacing: 0;
}
.card__btn-3:hover {
  transform: translateY(-5px);
  background: #d4af37;
  color: black;
}
.tour__button-close {
  width: auto;
  height: auto;
  position: absolute;
  right: 16px;
  top: 16px;
}
.close__btn-2 {
  width: 44px;
  height: 44px;
  border: 1px solid #d4af37;
  border-radius: 50%;
  background: #c62828;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.close__btn-2:hover {
  transform: rotate(90deg);
  background: #d4af37;
  color: #0b0f14;
}

@media (max-width: 1200px) {
  .tournirs__content-1 {
    max-width: 1100px;
  }

  .tournirs__block-1 {
    flex: 1 1 65%;
    padding: 24px;
  }

  .tournirs__image-1 {
    flex: 1 1 35%;
  }

  .table__img {
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  .tournirs__card-1 {
    gap: 16px;
    padding: 16px;
  }
}

@media (max-width: 1024px) {
  .modal__fon-2 {
    align-items: flex-start;
  }

  .modal__window-2 {
    overflow: visible;
  }

  .tournirs__content-1 {
    flex-direction: column;
    max-width: 760px;
    overflow: hidden;
  }

  .tournirs__image-1 {
    order: -1;
  }

  .table__img {
    max-width: 100%;
    height: 280px;
    min-height: 0;
    border-radius: 30px 30px 0 0;
  }

  .tournirs__block-1 {
    width: 100%;
    padding: 28px;
  }

  .tournirs__card-1 {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(100px, 1fr));
    justify-content: initial;
    max-width: 100%;
  }

  .card__button-1 {
    grid-column: 1 / -1;
  }

  .card__btn-3 {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .tournirs__content-1 {
    border-radius: 20px;
  }

  .tournirs__image-1 {
    display: none;
  }

  .tournirs__block-1 {
    gap: 20px;
    padding: 56px 20px 20px;
  }

  .tour__title,
  .tour__dsc {
    font-size: 1.5rem;
  }

  .tour__dsc-1 {
    font-size: 1rem;
    line-height: 150%;
  }

  .tournirs__lists {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tour__list-btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
  }

  .tournirs__card-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    border-radius: 20px;
  }

  .card__button-dsc,
  .card__button-1 {
    grid-column: 1 / -1;
  }

  .tour__button-close {
    top: 16px;
    right: 16px;
    z-index: 1;
  }

  .card__btn-3:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }

  .tournirs__content-1 {
    border-radius: 16px;
  }

  .tournirs__block-1 {
    padding: 52px 12px 12px;
    gap: 16px;
  }

  .tour__title,
  .tour__dsc {
    font-size: 1.25rem;
  }

  .tour__dsc-1 {
    font-size: 0.875rem;
  }

  .tournirs__lists,
  .tournirs__card-1 {
    grid-template-columns: 1fr;
  }

  .card__button-dsc,
  .card__button-1 {
    grid-column: auto;
  }

  .tournirs__card-1 {
    align-items: start;
    gap: 14px;
    padding: 14px;
  }

  .card__button-dsc {
    align-items: center;
  }

  .button-1 {
    flex: 0 0 auto;
  }

  .card__buy-in,
  .card__fond,
  .card__time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .name-1,
  .buy-in,
  .prize,
  .time-1 {
    font-size: 1rem;
  }

  .name-2,
  .buy-in-price,
  .prize-1,
  .time-2 {
    font-size: 0.875rem;
  }
}

/* Compact layout for laptop screens with limited viewport height */
@media (min-width: 1025px) and (max-height: 900px) {
  .tournirs__content-1 {
    min-height: 0;
  }

  .tournirs__block-1 {
    gap: 14px;
    padding: 16px 24px;
  }

  .tournirs__title-1 {
    gap: 8px;
  }

  .tour__dsc-1 {
    font-size: 0.95rem;
    line-height: 145%;
  }

  .tournirs__columns {
    gap: 10px;
  }

  .tournirs__card-1 {
    min-height: 82px;
  }

  .table__img {
    height: min(720px, calc(100dvh - 40px));
  }
}

@media (min-width: 1025px) and (max-height: 700px) {
  .tournirs__block-1 {
    gap: 8px;
    padding: 12px 20px;
  }

  .tour__title,
  .tour__dsc {
    font-size: 1.5rem;
  }

  .tour__dsc-1 {
    font-size: 0.85rem;
    line-height: 130%;
  }

  .tour__list-btn {
    padding-block: 8px;
    font-size: 0.95rem;
  }

  .tournirs__columns {
    gap: 7px;
  }

  .tournirs__card-1 {
    min-height: 70px;
  }

  .table__img {
    height: calc(100dvh - 20px);
  }
}

@media (min-width: 769px) and (max-width: 1024px) and (max-height: 820px) {
  .tournirs__image-1 {
    display: none;
  }

  .tournirs__content-1 {
    max-width: 820px;
  }

  .tournirs__block-1 {
    padding: 56px 20px 20px;
  }
}
