.favorites { &__descr { max-width: 400px; color: $white; font-size: 16px; line-height: 22px; font-weight: 500; margin-top: 12px; } &__sorts { display: flex; flex-wrap: wrap; margin: 0 -5px 40px; @media (min-width: 780px) { flex-wrap: nowrap; margin: 0 0 40px; } @media (min-width: 1200px) { margin: 0 0 60px; } } &__sort-group { width: calc(100% - 10px); margin: 0 5px; @media (min-width: 480px) { width: calc(50% - 10px); } @media (min-width: 780px) { width: 200px; margin: 0; } &:not(:last-child) { margin: 0px 5px 10px; @media (min-width: 780px) { margin: 0px 10px 0px 0px; } } &.sort-group--wide { @media (min-width: 780px) { width: 294px; } } } &__grid { display: grid; grid-gap: 20px; grid-template-columns: repeat(1, 1fr); @media (min-width: 540px) { grid-template-columns: repeat(2, 1fr); } @media (min-width: 920px) { grid-template-columns: repeat(3, 1fr); } @media (min-width: 1200px) { grid-template-columns: repeat(4, 1fr); } } &__items { display: grid; grid-gap: 20px; grid-template-columns: repeat(1, 1fr); @media (min-width: 640px) { grid-template-columns: repeat(2, 1fr); } @media (min-width: 1024px) { grid-template-columns: repeat(3, 1fr); } } } .favorites-top { background-color: #286699; padding-bottom: 60px; &__link { font-size: 32px; line-height: 36px; font-weight: 800; text-decoration-line: underline; color: rgba(255, 255, 255, 0.6); margin-top: 8px; @media (min-width: 1200px) { font-size: 48px; line-height: 52px; margin-top: 0; } } } .favorites-cnt { padding: 60px 0; @media (min-width: 1200px) { padding: 100px 0; } } .favorites-item { display: flex; align-items: center; background-color: #EDF7FF; border-radius: 10px; padding: 25px 20px; @media (min-width: 1200px) { padding: 25px 20px; } &__img { flex-shrink: 0; width: 80px; margin-right: 20px; img { max-width: 100%; } } &__descr { font-size: 14px; line-height: 20px; font-weight: 500; a { color: $blue; font-weight: 600; } img { display: inline-block; margin-bottom: -5px; } } }