* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px 14px 70px;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at top, #334155, transparent),
    linear-gradient(180deg, #0f172a, #020617);
  color: #e5e7eb;
}

h1 {
  text-align: center;
  margin-bottom: 32px;
  font-weight: 600;
}

/* ===== VPN список ===== */
#vpn-list {
  max-width: 500px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

/* ===== VPN карточка ===== */
.card {
  background: linear-gradient(180deg, #020617, #020617dd);
  border: 1px solid #475569;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-top h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.date {
  font-size: 12px;
  color: #94a3b8;
}

/* ===== Skeleton ===== */
.skeleton {
  background: #47556933;
  border-radius: 12px;
  height: 20px;
  width: 100%;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* ===== Кнопки ===== */
.action-btn {
  width: 120px;
  height: 36px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #7dd3fc, #60a5fa);
  color: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s ease;
}

.action-btn:hover {
  filter: brightness(1.1);
}

.action-btn:active {
  transform: scale(.95);
}

.action-btn.success {
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

/* ===== Блок скачивания ===== */
.downloads {
  max-width: 500px;
  margin: 48px auto 0;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, #020617, #020617dd);
  border: 1px solid #475569;
  text-align: center;
}

.downloads p {
  color: #cbd5f5;
  font-size: 14px;
}

/* ===== Приложения ===== */
.apps-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.app-card {
  background: linear-gradient(
    145deg,
    rgba(30,41,59,.9),
    rgba(2,6,23,.95)
  );
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.app-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.app-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* чтобы картинка полностью покрывала квадрат */
  border-radius: 12px; /* степень скругления */
}


.app-info {
  flex: 1;
}

.app-name {
  font-size: 16px;
  font-weight: 600;
}

.app-platform {
  font-size: 12px;
  color: #94a3b8;
}

/* ===== Мобильные ===== */
@media (max-width: 640px) {
  h1 {
    font-size: 22px;
  }
  .card-top h3 {
    font-size: 14px;
  }
  .action-btn {
    width: 100px;
    height: 36px; /* исправлено */
    font-size: 13px;
  }
}

/* Шапка сайта */
.site-header {
  max-width: 500px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.logo img {
  width: 40px;
  height: 40px;
  max-height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.site-title {
  font-size: 20px;
  font-weight: 900;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav button {
  margin-left: 12px;
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #7dd3fc, #60a5fa);
  color: #020617;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.site-nav button:hover {
  filter: brightness(1.05);
}
