.akordi-home-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 28px;
}

.akordi-home-tool-card {
  display: flex;
  flex-direction: column;
  height: 320px;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #222222;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.akordi-home-tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.13);
  border-color: #c62828;
  color: #c62828;
}

.akordi-home-tool-image {
  flex: 1 1 auto;
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
  background: #f7f7f7;
}

.akordi-home-tool-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.akordi-home-tool-card:hover .akordi-home-tool-image img {
  transform: scale(1.04);
}

.akordi-home-tool-title {
  min-height: 58px;
  padding: 15px 10px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  background: #ffffff;
}

.block-akordi-home-tools,
#block-akordihometools,
#block-tara-akordionlinehometools {
  padding: 22px 18px;
}

@media (max-width: 1250px) {
  .akordi-home-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .akordi-home-tool-card {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .block-akordi-home-tools,
  #block-akordihometools,
  #block-tara-akordionlinehometools {
    padding: 14px 8px;
  }

  .akordi-home-tools {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 16px 0 22px;
  }

  .akordi-home-tool-card {
    display: grid;
    grid-template-columns: 42% 58%;
    width: 100%;
    height: 155px;
    min-height: 155px;
  }

  .akordi-home-tool-image {
    width: 100%;
    height: 155px;
    min-height: 0;
    padding: 10px;
  }

  .akordi-home-tool-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
  }

  .akordi-home-tool-title {
    width: 100%;
    height: 155px;
    min-height: 0;
    padding: 15px 12px;
    font-size: 18px;
    line-height: 1.3;
  }

  .akordi-home-tool-card:hover {
    transform: none;
  }
}
