.title-step { color: #3d92b8; font-size: 2rem; letter-spacing: 1px; } .step { position: absolute; font-size: 6rem; line-height: 6rem; font-weight: 600; top: -3rem; right: .3rem; color: #3d92b8; user-select: none; opacity: 0.7; } .uk-grid-match .uk-card { margin-top: 0; margin-bottom: 0; } /* Лесенка */ .uk-grid-match div:nth-child(1) .uk-card { margin-top: 0; margin-bottom: 80px; } .uk-grid-match div:nth-child(2) .uk-card { margin-top: 40px; margin-bottom: 40px; } .uk-grid-match div:nth-child(3) .uk-card { margin-top: 80px; margin-bottom: 0; } .desc { color: #3d92b8; font-size: 1rem; } .icon-step { font-size: 5rem; position: absolute; bottom: 0; right: 1rem; color: rgba(0, 0, 0, .1); user-select: none; } @media (max-width: 1920px) { /* Лесенка три в ряд */ .uk-grid-match div:nth-child(1) .uk-card { margin-top: 0; margin-bottom: 80px; } .uk-grid-match div:nth-child(2) .uk-card { margin-top: 40px; margin-bottom: 40px; } .uk-grid-match div:nth-child(3) .uk-card { margin-top: 80px; margin-bottom: 0; } } @media (max-width: 1200px) { .title-step { font-size: 1.4rem; } } @media (max-width: 959px) { /* Лесенка два в ряд */ .uk-grid-match div:nth-child(1) .uk-card { margin-top: 0; margin-bottom: 80px; } .uk-grid-match div:nth-child(2) .uk-card { margin-top: 40px; margin-bottom: 40px; } .uk-grid-match div:nth-child(3) .uk-card { margin-top: -40px; margin-bottom: 10px; } } @media (max-width: 640px) { /* Лесенку убрали */ .uk-grid-match div:nth-child(1) .uk-card { margin-top: 10px; margin-bottom: 0; } .uk-grid-match div:nth-child(2) .uk-card { margin-top: 10px; margin-bottom: 0; } .uk-grid-match div:nth-child(3) .uk-card { margin-top: 10px; margin-bottom: 0; } }