:root {
    --dark: #19191B;
    --grey: #696871;
    --purple: #5454D4;
    --orange: #FF7143;
}

*{
    margin: 0px;
    padding: 0px;
}

body{
    font-family: "DM Sans",sans-serif;
}

.header {
    padding-block: 30px 0;
}

.header__container {
    max-width: 1069px;
    margin-inline: auto;
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__list {
    display: flex;
    gap: 49px;
}

ul{
list-style: none;
}

.header__list-link{
font-weight: 700;
font-size: 15px;
letter-spacing: -0,47px;
color: var(--grey);
transition: color 0.3s;
}

.buscet{
font-weight: 700;
font-size: 15px;
letter-spacing: -0,47px;
color: var(--grey);
transition: color 0.3s;
}

.buscet:hover {
    color: var(--dark);
}

.header__list-link.active{
    color: var(--dark);
    border-bottom: 2px solid var(--purple);
    padding-bottom: 10px;
}

.header__list-link:hover {
    color: var(--dark);
}

a{
    text-decoration: none;
}

.header__button {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.53px;
    color: white;
    padding: 19px 59px;
    background: var(--orange);
    border-radius: 10px;
    transition: 0.3s;
}

.header__button:hover{
    opacity: 90%;
}

.card{
    width: 225px;
    min-height: 300px;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    position: relative;
    transition: 0.2s;
}

.card:hover {
    box-shadow: 4px 8px 16px rgba(255,102,51,0.2);
}

.card__top{
    flex: 0 0 220px;
    position: relative;
    overflow: hidden;
}


.card__impg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: block;
}

.card__img > img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.2s;
}

.card__img:hover > img{
    transform: scale(1.1);
}

.card__label{
position: absolute;
bottom: 10px;
left: 10px;
padding: 4px 8px;
background-color: #7000a0;
border-radius: 4px;
color: #fff;
font-weight: 400;
font-size: 16px;
}


.card__bottom {
    flex: 1 0 auto;
    padding: 10px;
}

.card__prices{
    display: flex;
    margin-bottom: 10px;
}

.card__price {
    width: 50%;
}

.card__price::after{
    content: "\20BD";
    margin-left: 4px;
}

.card__price--discount{
    font-weight: 700;
    font-size: 19px;
    color: #414141;
    display: flex;
    flex-wrap: wrap-reverse;
}

.card__price--discount::before{
    content: "Со скидкой";
    font-size: 13px;
    font-weight: 400;
    color: #bfbfbf
}

.card__price--common{
    font-size: 17px;
    font-weight: 400;
    color:#606060;
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: flex-end;
}

.card__price--common::before{
    content: "Обычная цена";
    font-weight: 400;
    font-size: 13px;
    color: #bfbfbf;
}

.card__title{
display: block;
margin-bottom: 10px;
font-weight: 400;
font-style: 17px;
line-height: 1.2;
color: #414141;
}

.card__title:hover{
    color: #ff6633;
}

.card__btn{
    display: block;
    width: 100%;
    font-weight: 400;
    font-style: 17px;
    background-color: white;
    color: black;
    padding: 10px;
    text-align: center;
    border: 1px solid black;
    
}

.card__btn:hover{
    background-color: black;
    color: #fff;
}

.cards {
    padding: 75px 0;
}

.container{
    width: 100%;
    max-width: 1000px;
    padding: 0 15px;
    margin: 0 auto;
}

.container__cards{
    display: grid;
    grid-template-columns: repeat(auto-fill, 225px);
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    justify-items: center;
    column-gap: 30px;
    row-gap: 40px;
    margin: 0 auto;
    margin-top: 40px;
}