/* Стили для модального окна */
.modal {
  display: none;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease-out;
  overflow-y: auto; /* ← вот это даёт прокрутку всего окна */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal-content {
  background-color: #fefefe;
  margin: 2.5% auto;
  padding: 0;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #888;
  position: relative;
  overflow: hidden;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

.modal-header {
  background-color: #ecf0f1;
  color: #414141;
  padding: 20px 25px;
  position: relative;
  border-bottom: 1px solid #ddd;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
}

.close-modal:hover,
.close-modal:focus {
  color: #000;
  text-decoration: none;
}

.modal-body {
  padding: 20px;
  background: white;
}

.instruction-box {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  font-family: monospace;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 15px 0;
}

.command-container {
  display: flex;
  align-items: center;
  background-color: #414141;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
  position: relative;
  border: 1px solid #4a5568;
}

.command-text {
  font-family: "Courier New", monospace;
  font-size: 13px;
  flex: 1;
  word-break: break-all;
  line-height: 1.4;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

ol.my-list {
  counter-reset: step-counter;
  padding-left: 0;
  list-style: none;
}

ol.my-list li {
  font-size: 16px;
  margin-top: 20px;
  padding: 15px 20px;
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #ddd;
  position: relative;
  counter-increment: step-counter;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

ol.my-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #414141;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.copy-btn {
  background: #ffba2b;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  min-width: 90px;
  justify-content: center;
}

.copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.copy-btn:hover::before {
  left: 100%;
}

.copy-icon {
  font-size: 14px;
}

.copy-success {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
  transform: scale(1.05);
}

.platform-label {
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.download-link {
  display: inline-block;
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin: 10px 5px;
}

.download-link:hover {
  background-color: #218838;
  color: white;
  text-decoration: none;
}

.button-container-download {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.button-download {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
  line-height: 1.5;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.button-download:hover {
  background-color: #218838;
  text-decoration: none;
}

.button-download:active {
  background-color: #1e7e34;
  transform: translateY(1px);
}

.button-download:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}
