/* ------------------------ */
/*     Загальні стилі       */
/* ------------------------ */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  min-height: 100vh;
  background: url("https://i.postimg.cc/mrL5zHM7/Screenshot-3.png") center/cover no-repeat fixed;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  padding: 70px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  z-index: 2;
}

/* ------------------------ */
/*      Контейнер карток    */
/* ------------------------ */
.container {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1400px;
  width: 100%;
  z-index: 2;
}

/* ------------------------ */
/*         Картки           */
/* ------------------------ */
.card {
  display: flex;
  align-items: center;
  width: 350px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s, background 0.25s;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  opacity: 0.5;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.18);
}

.card img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  flex-shrink: 0;
}

.card-content {
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.card-text {
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ------------------------ */
/*        Мобільні         */
/* ------------------------ */
@media (max-width: 420px) {
  .card { width: 100%; }
  .card img { width: 110px; height: 110px; }
    h1 {
    font-size: 1.5rem; /* або будь-який інший розмір */
  }
}

/* ------------------------ */
/*       ПК версія         */
/* ------------------------ */
@media (min-width: 900px) {
  .card {
    width: 500px;
    padding-right: 10px;
  }

  .card img {
    width: 240px;
    height: 240px;
  }

  .card-content {
    font-size: 1.05rem;
  }
}

/* ------------------------ */
/*      Кнопка Назад        */
/* ------------------------ */
.back-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 1.3rem;           /* трохи менший текст */
  font-weight: 700;            /* жирний шрифт */
  color: #fff;
  background: rgba(0, 123, 255, 0.95); /* майже непрозорий синій фон */
  padding: 6px 10px;           /* менші внутрішні відступи */
  border-radius: 6px;
  border: 2px solid #fff;      /* біла обводка */
  cursor: pointer;
  z-index: 3;
  user-select: none;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.35);
}

.back-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
