html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

span {
  display: block;
  width: 2vmax;
  height: 2vmax;
  font-size: 2vmax;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
}

.btn {
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid #f1c40f;
  border-radius: 0.5em;
  color: #f1c40f;
  display: flex;
  font-size: 0.45em;
  font-weight: 700;
  margin: 10px;
  padding: 0.5em 0.5em;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  font-family: "Consolas", sans-serif;
  justify-content: center;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: background-color 300ms ease-in-out, transform 200ms ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.8);
  outline: 0;
  transform: scale(1.05);
}

.btn_link {
  transition: box-shadow 300ms ease-in-out, color 300ms ease-in-out;
}

.btn_link:hover {
  box-shadow: 0 0 40px 40px rgba(241, 196, 15, 0.9) inset;
}

.container {
  max-width: 45%;
  margin: auto;
  width: 100%;
}

.int_cont {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.btn_icon {
  width: 40px;
  height: 40px;
  margin-right: 16px;
  object-fit: contain;
}

.buttons-vertical-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  width: 100%;
}

.btn-with-icon {
  display: flex;
  align-items: center;
  min-width: 280px;
  justify-content: flex-start;
  width: 100%;
  max-width: 400px;
}

.btn-text {
  flex: 1;
  text-align: center;
  margin-right: 40px;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .container {
    max-width: 90%;
  }

  .btn-with-icon {
    min-width: 250px;
  }

  .btn_icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
  }

  .btn {
    font-size: 0.4em;
    margin: 8px;
    padding: 0.6em 0.4em;
  }

  .btn-text {
    margin-right: 20px;
  }

  .buttons-vertical-container {
    gap: 12px;
    padding: 15px 0;
  }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 70%;
  }

  .btn-with-icon {
    min-width: 300px;
    max-width: 350px;
  }
}

/* Компьютеры (десктопы) */
@media (min-width: 1025px) and (max-width: 1199px) {
  .btn-with-icon {
    min-width: 300px;
    max-width: 420px;
  }
}

/* Smart TV и большие экраны */
@media (min-width: 1200px) {
  .container {
    max-width: 50%;
  }

  .btn-with-icon {
    min-width: 620px;
    max-width: 680px;
  }

  .btn {
    font-size: 0.5em;
    padding: 0.7em 0.6em;
  }

  .btn_icon {
    width: 48px;
    height: 48px;
  }

  .btn:hover {
    transform: scale(1.08);
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .container {
    max-width: 95%;
  }

  .btn-with-icon {
    min-width: 220px;
  }

  .btn_icon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
  }

  .btn {
    font-size: 0.375em;
    margin: 6px;
  }

  .btn-text {
    margin-right: 15px;
  }
}

/* Горизонтальная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
  .buttons-vertical-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .btn-with-icon {
    min-width: 200px;
    max-width: 220px;
  }
}

/* Высокое разрешение (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .btn {
    border-width: 1.5px;
  }
}
