/* Общие стили */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #1e1e2f, #2a2a40);
  color: #fff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Верхняя полоска */
.top-bar {
  width: 100%;
  background: #2f2f46;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  position: fixed;
  top: 0;
  z-index: 100;
}

.logo-container .top-logo {
  height: 40px;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #00c3ff;
  font-weight: bold;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00a2d6;
  text-decoration: underline;
}

/* Контейнер страницы */
.container {
  background: #2f2f46;
  padding: 60px 40px 40px 40px;
  border-radius: 25px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  text-align: center;
  margin: 100px auto 50px auto; /* Отступ сверху чтобы не перекрывало top-bar */
}

/* Заголовки и параграфы */
h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #00c3ff;
}

p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ccc;
}

/* Кнопки */
.btn {
  display: inline-block;
  background: #00c3ff;
  color: #000;
  font-weight: bold;
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(0,195,255,0.5);
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn:hover {
  background: #00a2d6;
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(0,195,255,0.5);
}

/* Детали */
.details {
  background: rgba(0,0,0,0.2);
  padding: 20px;
  border-radius: 15px;
  text-align: left;
  margin-top: 30px;
  font-size: 13px;
  color: #ddd;
  line-height: 1.5;
}

.details strong {
  color: #00c3ff;
}

ul {
  margin: 5px 0 0 15px;
  padding: 0;
}

li {
  margin-bottom: 5px;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

@media (orientation: portrait) {
  body {
    padding-top: 150px;
  }
  .top-bar {
    height: auto;
    min-height: 100px;
    padding: 10px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .menu-toggle {
    display: flex;
    margin-right: auto;
  }
  .nav-links {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.92);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  }
  .top-bar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 13px;
    padding: 8px 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
  }
}

@media (max-width: 600px) {
  body {
    padding: 110px 12px 24px;
  }
  .container {
    width: min(100%, 500px);
    padding: 24px 16px;
    margin: 16px auto 32px;
  }
  .modal-content {
    width: min(94vw, 600px);
    padding: 20px;
    margin: 24px auto;
  }
  .nav-buttons {
    flex-direction: column;
  }
  .nav-buttons button {
    width: 100%;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (orientation: landscape) and (max-height: 700px) {
  body {
    padding-top: 100px;
  }
  .container {
    margin-top: 12px;
  }
  .modal-content {
    margin: 16px auto;
  }
}

.modal-content {
  background: #2f2f46;
  margin: 10% auto;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  text-align: center;
}

.modal-content img {
  width: 80%;
  max-width: 400px;
  margin-bottom: 10px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}

.steps .step {
  display: none;
}

.steps .step.active {
  display: block;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.nav-buttons button {
  background: #00c3ff;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 0 8px rgba(0,195,255,0.5);
  transition: all 0.3s ease;
  margin: 5px;
}

.nav-buttons button:hover {
  background: #00a2d6;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0,195,255,0.6);
}

.nav-buttons button:disabled {
  background: #555;
  color: #ccc;
  cursor: default;
  box-shadow: none;
  transform: none;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  padding: 10px 40px;
  background: linear-gradient(135deg, #1e1e2f, #2a2a40);
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.logo-container:hover {
    transform: scale(1.05);
    filter: drop-shadow(0px 0px 4px #11b0e5);
}

.top-logo {
  height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.3s;
}

.nav-links a:hover {
  background: #00c3ff;
  color: #000;
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.preview-image {
  display: block;
  width: 100%;
  max-width: 400px;
  border-radius: 6px;
  margin: 20px auto;
  box-shadow: 0 0 15px rgba(0, 195, 255, 0);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  cursor: pointer;
}

.preview-image:hover {
  transform: scale(1.6);
  box-shadow: 0 0 25px rgba(0, 195, 255, 0.148);
}

/* Эффект смещения текста */
.container p, .container .details {
  transition: transform 0.6s ease;
}

.preview-image:hover ~ p,
.preview-image:hover ~ .btn,
.preview-image:hover ~ .details {
  transform: translateY(30px); 
  transition: transform 0.s ease;
}

.version-label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 14px;
}

.version-select {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: #242438;
  color: #fff;
  font-size: 14px;
}