@keyframes bounce { 0% { transform: translateY(0); } 30% { transform: translateY(-10px); } 50% { transform: translateY(0); } 70% { transform: translateY(-5px); } 100% { transform: translateY(0); } } .esun-resources-downloads { --resources-green: #12ad5c; box-sizing: border-box; margin: 88px auto 0; max-width: 1360px; padding: 0 20px 70px; } .esun-resources-downloads *, .esun-resources-downloads *::before, .esun-resources-downloads *::after { box-sizing: border-box; } .esun-resources-downloads h2 { color: #303030; font-size: 38px; font-weight: 700; letter-spacing: 6px; margin: 0 0 96px; position: relative; text-transform: uppercase; } .esun-resources-downloads h2::after { background: var(--resources-green); bottom: -24px; content: ""; height: 2px; left: 0; position: absolute; width: 70px; } .esun-resources-downloads__items { display: grid; gap: 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); } .esun-resources-downloads__item { align-items: center; background: #eff9f1; border: 1px solid #d9ecdc; border-radius: 12px; display: flex; flex-direction: column; height: 250px; justify-content: flex-end; overflow: hidden; padding: 28px 26px 34px; position: relative; } .esun-resources-downloads__link { align-items: center; background: #fff; border-radius: 50%; color: #111; display: flex; font-size: 25px; height: 48px; justify-content: center; line-height: 1; position: absolute; right: 18px; text-decoration: none; top: 18px; width: 48px; z-index: 2; transition: all 0.5s ease-in-out; } .esun-resources-downloads__link:hover, .esun-resources-downloads__link:focus { text-decoration: none; transform: rotate(45deg); background-color: #18a957; color: #fff; } .esun-resources-downloads__link--disabled { cursor: default; } .esun-resources-downloads__image { height: 145px; margin-bottom: 10px; max-width: 82%; object-fit: contain; width: auto; } img.esun-resources-downloads__image:hover { animation: bounce 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards; } .esun-resources-downloads__item h3 { color: var(--resources-green); font-size: 21px; font-weight: 700; line-height: 1.2; margin: 0; text-align: center; } @media (max-width: 1023px) { .esun-resources-downloads__items { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 639px) { .esun-resources-downloads { margin-top: 56px; padding: 0 15px 48px; } .esun-resources-downloads h2 { font-size: 27px; letter-spacing: 3px; margin-bottom: 68px; } .esun-resources-downloads__items { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .esun-resources-downloads__item { border-radius: 10px; height: clamp(160px, 48vw, 190px); padding: 18px 10px 20px; } .esun-resources-downloads__link { font-size: 18px; height: 34px; right: 10px; top: 10px; width: 34px; } .esun-resources-downloads__image { height: clamp(85px, 27vw, 120px); margin-bottom: 6px; max-width: 88%; } .esun-resources-downloads__item h3 { font-size: clamp(13px, 3.5vw, 17px); line-height: 1.15; } }