/* ============================
   BASE
============================ */

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  overflow: auto;
}

body {
  height: 100%;
  overflow-x: hidden;
}

.desktop-body {
  background-color: #220022;
  padding-top: 60px;                 /* под фиксированный header */
  padding-bottom: 150px;             /* под фиксированный footer */
  min-height: 100vh;
  box-sizing: border-box;
  color: #fff;
}

/* кастомный скроллбар */

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: var(--scrollbar-thumb, #333);
}

body::-webkit-scrollbar-track {
  background-color: transparent;
}

/* ============================
 CONTENT
============================ */

.desktop-content {
  padding: 40px 20px;
  text-align: center;
}

.desktop-content h1 {
  font-size: 32px;
  margin-bottom: 40px;
}

/* GRID */

.download-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* CARD */

.download-card {
  align-self: flex-start;
  width: 330px;
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  text-align: center;
}

.os-title {
  font-size: 26px;
  margin-bottom: 20px;
}

/* BUTTONS */

.btn-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-top: 20px;
}

.download-btn {
  flex: 1;
  background: #D51AC3;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  text-align: center;
}

.download-btn.single {
  border-radius: 12px !important;
}

.dropdown-btn {
  width: 55px;
  background: #8F00FF;
  border: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  position: relative;
}

.dropdown-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/static/arrow-up.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px;
  transform: rotate(180deg);
  transition: transform 0.5s ease;
}

.dropdown-btn.open::before {
  transform: rotate(0deg);
}

/* DROPDOWN LIST */

.dropdown-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  display: none;
  width: 100%;
}

.dropdown-list li {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-list li:last-child {
  border-bottom: none;
}

.dropdown-list a {
  color: #fff;
  text-decoration: none;
}

.dropdown-list a:hover {
  text-decoration: underline;
}

/* FILE INFO */

.file-info {
  margin-top: 10px;
  font-size: 15px;
  opacity: 0.75;
}

/* LINUX FORMAT SWITCH */

.linux-format-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.linux-format-btn {
  background: #8F00FF;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  transition: 0.2s;
}

.linux-format-btn.active {
  background: #D51AC3;
  transform: scale(1.05);
}

/* ============================
 MOBILE ADAPTATION
============================ */

@media (max-width: 768px) {

  .texttop {
      font-size: 32px;
  }

  .desktop-content h1 {
      font-size: 26px;
  }

  .download-card {
      width: 90%;
      max-width: 320px;
      padding: 20px;
  }

  .os-title {
      font-size: 22px;
  }

  .download-btn {
      font-size: 18px;
  }

  .dropdown-btn {
      width: 50px;
  }
}

@media (max-width: 480px) {

  .desktop-content h1 {
      font-size: 22px;
  }

  .os-title {
      font-size: 20px;
  }

  .download-btn {
      font-size: 16px;
  }
}

/* ============================
 FOOTER
============================ */

body {
  --footer-bg: #330033;
  --footer-text: #fff;
  --footer-link: #8F00FF;
}