.useful-sites {
  padding: 0px 0 52px;
  background: #f6f6f6;
}

.useful-sites__container {
  width: 1176px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.useful-sites__title {
  margin: 0 0 40px;
  font-family: Inter, Arial, sans-serif;
  font-size: 47.5px;
  line-height: 0.98;
  font-weight: 400;
  color: #1a1a1a;
}

.useful-sites__grid {
  display: grid;
  grid-template-columns: repeat(3, 376px);
  gap: 24px;
  justify-content: space-between;
}

.useful-sites__card {
  display: block;
  width: 376px;
  height: 226px;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  text-decoration: none;
  border: 1px solid #e5ebf3;
  box-shadow: 0 4px 14px rgba(15, 37, 77, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.useful-sites__card:hover {
  transform: translateY(-2px);
  border-color: #cfe0f6;
  box-shadow: 0 10px 24px rgba(0, 141, 233, 0.12);
}

.useful-sites__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.useful-sites__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 68px;
  margin-top: 45px;
  border-radius: 10px;
  background: #008de9;
  color: #ffffff;
  text-decoration: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 28.5px;
  line-height: 1;
  font-weight: 600;
  transition: background .25s ease, color .25s ease;
}

.useful-sites__button:hover {
  background: #ffffff;
  color: #008de9;
}

@media (max-width: 1270px) {
  .useful-sites__container {
    max-width: calc(100% - 40px);
  }

  .useful-sites__title {
    font-size: 38px;
    margin-bottom: 32px;
  }

  .useful-sites__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .useful-sites__card {
    width: 100%;
    height: auto;
    aspect-ratio: 376 / 226;
  }

  .useful-sites__button {
    min-height: 62px;
    font-size: 24px;
    margin-top: 32px;
  }
}

@media (max-width: 767px) {
  .useful-sites {
    padding: 0px 0 52px;
  }

  .useful-sites__container {
    max-width: calc(100% - 24px);
  }

  .useful-sites__title {
    font-size: 28px;
    line-height: 1.02;
    margin-bottom: 28px;
  }

  .useful-sites__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .useful-sites__card {
    width: 100%;
    height: auto;
    aspect-ratio: 376 / 226;
    border-radius: 18px;
  }

  .useful-sites__button {
    min-height: 52px;
    margin-top: 24px;
    font-size: 20px;
    border-radius: 10px;
  }
}