.downloads-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 16px;
}

h4.DLhead {
  justify-content: center;
  color:#2087C7;
  width: 90%;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 16pt;
  padding-bottom: 20px 0;
  line-height: 1;
  margin: auto;
}

.downloads-grid {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) and (max-width: 899px) {
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .downloads-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .downloads-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-main-img {
  height: 128px;
  object-fit: contain;
  margin-top: 30px;
  border: 1px solid #4b5563;
  box-shadow: 0 2px 6px rgba(156, 163, 175, 0.6);
  transition: all 0.2s ease;
}

.card-icon-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -50px;
  margin-left: 47px;
}

.card-icon {
  height: 50px;
  transition: all 0.7s ease;
}

.card-text {
  text-align: center;
  font-family: "Jura", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12pt;
  color: #374151;
  margin-top: 15px;
  margin-bottom: auto;
  transition: color 0.3s ease;
}

.download-card:hover .card-text {
  color: #2087C7;
}

.download-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-main-img {
  margin: 30px auto 0 auto;
}

.download-card {
  display: flex;
  width: 100%;
  height: 300px;
  text-decoration: none;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.download-card-fx {
  box-sizing: border-box;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  background: rgba(247, 244, 239, 0.25);
  border: 1px solid #CCC9C6;
  border-radius: 14px;

  box-shadow: 0 12px 28px rgba(0,0,0,0.17), inset -5px -5px 5px rgba(94,93,91,0.1);

  padding: 16px;
  
  transition:
    transform 0.35s cubic-bezier(.2,.8,.2,1),
    box-shadow 0.35s ease;
    border-color 0.3s ease,
    background 0.3s ease;
    
    align-items: center;
    justify-content: space-between;
}

.download-card:hover .download-card-fx {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 42px rgba(0,0,0,0.18), inset -5px -5px 5px rgba(94,93,91,0.05), 0 0 15px rgba(32,135,199,0.3);
  transition: all 0.15s ease;
  border-color: #5AA1F6;
}

.download-card.is-pressed .download-card-fx {
  transform: translateY(0.5px) scale(0.99);
  box-shadow: 0 10px 22px rgba(0,0,0,0.16), inset -5px -5px 5px rgba(94,93,91,0.1);
  transition: transform 0.08s ease;
}

/* === Адаптив === */
@media (max-width: 900px) {
  .downloads-wrapper {
    width: 100%;
    padding: 30px 0;
  }
  .downloads-grid {
    display: flex;
    flex-direction: column;
  }
  .downloads-grid {
    width: 90%;
  }
  .card-main-img {
    height: 110px;
  }

  .card-icon-wrapper {
    margin-left: 30px;
  }

  .card-icon {
    height: 40px;
  }

  .card-text {
    font-size: 12pt;
  }
  .download-card {
    height: auto;
  }
  .download-card-inner {
    display: flex;
    flex-direction: row;
  }
  .card-main-img {
    margin: 0;
  }
  .card-icon-wrapper {
     position: relative;
     z-index: 10;
     display: flex;
     justify-content: center;
     align-items: center;
     margin-top: 63px;
     margin-left: -36px;
  }
  .card-text {
    text-align: left;
    font-family: "Jura", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12pt;
    color: #374151;
    margin: auto 20px;
    transition: color 0.3s ease;
  }
}