/* manrope */
@font-face {
    font-family: 'Manrope';
    src: url('/fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src:
            url('/fonts/Manrope-Regular.woff') format('woff'),
            url('/fonts/Manrope-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src:
            url('/fonts/Manrope-Medium.woff') format('woff'),
            url('/fonts/Manrope-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src:
            url('/fonts/Manrope-SemiBold.woff') format('woff'),
            url('/fonts/Manrope-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

.area-a {
    grid-area: a;
}

.area-b {
    grid-area: b;
}

.area-c {
    grid-area: c;
}

.area-d {
    grid-area: d;
}

.area-e {
    grid-area: e;
}

.area-f {
    grid-area: f;
}

.area-g {
    grid-area: g;
}

.area-h {
    grid-area: h;
}

.area-i {
    grid-area: i;
}

.wrapper.table-sizes-page {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 30px;
    font-family: 'Manrope', sans-serif;
}

.sizes-table .table {
    display: flex;
    margin: 0;
    overflow: auto;
}

.sizes-table__title {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.sizes-table p {
    margin: 0;
}

.table__title {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.table__info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: #f2f2f2;
    grid-template-areas:
        'a b'
        'a c'
        'd d'
        'e f'
        'e g'
        'e h'
        'e i';
}

.table__info.table__info--paired {
    grid-template-areas:
        'a b'
        'd d'
        'e f'
        'e g'
        'e h'
        'e i';
}

.table__info.table__info--socks {
    grid-template-areas:
        'a a'
        'b b';
}
.table__info.table__info--shoes-man {
    min-width: 130px;
    grid-template-areas:
        'a a'
        'b b';
}
.table__info.table__info--shoes-woman {
    min-width: 130px;
    grid-template-areas:
        'a a'
        'b b'
        'c c';
}

.table__info {
    width: 348px;
}

.table__info p {
    padding: 12px 20px;
    white-space: nowrap;
}

.table__info .area-a {
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
}

.table__info .area-e {
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
}

.table__info .area-b,
.table__info .area-c,
.table__info .area-d,
.table__info .area-f,
.table__info .area-g,
.table__info .area-h {
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
}

.table__info.table__info--clothes {
    grid-template-rows: repeat(7, 1fr);
}

.table__info.table__info--jeans {
    grid-template-rows: repeat(6, 1fr);
}

.table__info.table__info--paired {
    grid-template-rows: repeat(5, 1fr);
}

.table__info.table__info--socks {
    grid-template-rows: repeat(2, 1fr);
}

.table__size {
    flex: 1;
    display: grid;
}

.table__size > div {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f2f2f2;
    border-bottom: 1px solid #ffffff;
}

.table__size > div p {
    font-size: 14px;
    line-height: 20px;
    text-transform: uppercase;
}

.table__size.table__size--clothes {
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(7, 1fr);
}

.table__size.table__size--jeans {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.table__size.table__size--paired {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
}

.table__size.table__size--socks {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.table__size.table__size--shoes-man {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.table__size.table__size--shoes-woman {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
}
.table__size.table__size--gloves {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(2, 1fr);
}
.table__size.table__size--hats {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.sizes-table + .sizes-table {
    margin-top: 20px;
}

.sizes-info {
    padding-bottom: 45px;
    margin-top: 40px;
    display: flex;
}
.sizes-info--shoes {
    display: block;
}
.sizes-info__define-size {
    margin-bottom: 40px;
}
.sizes-info--shoes .sizes-info__content {
    display: flex;
}
.sizes-info--shoes .sizes-info__define-size h2 {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.sizes-info--shoes .sizes-info__define-size p {
    font-size: 18px;
    line-height: 24px;
    color: #272725;
    font-weight: 400;
}

.sizes-info__item {
    display: flex;
}

.sizes-info__img {
    margin-left: 74px;
}

.sizes-info__img img {
    width: 100%;
    height: 100%;
}

.item + .item {
    margin-top: 40px;
}

.popup__text {
    color: #717171;
    font-size: 14px;
    line-height: 20px;
}
.item__num {
    border: 1px solid;
    align-self: baseline;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item__num + .item__info {
    margin-left: 16px;
}

.item__title {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 6px 0;
}

.item__text {
    font-size: 14px;
    line-height: 20px;
    color: #717171;
    margin: 0;
}
.item__text > .br {
    display: block;
}

.table__mobile {
    display: none;
}

.woman-table .table__size.table__size--clothes {
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.woman-table .table__info.table__info--clothes {
    grid-template-rows: repeat(6, 1fr);
}

.woman-table .table__size.table__size--jeans {
    grid-template-columns: repeat(11, 1fr);
}

.woman-table .table__info.table__info--jeans {
    width: 348px;
}

.title {
    font-size: 32px;
    line-height: 32px;
    font-weight: 500;
    text-transform: uppercase;
    color: #272725;
    margin: 0 0 20px;
}

.text {
    color: #717171;
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 20px;
}

@media screen and (max-width: 1024px) {
    .sizetable-popup {
        overflow: hidden;
    }
}

@media screen and (max-width: 900px) {
    .wrapper.table-sizes-page {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media screen and (max-width: 650px) {
    .table__info {
        width: 190px;
    }

    .table__mobile {
        display: block;
    }

    .table__desktop {
        display: none;
    }

    .table__size > div {
        min-width: 70px;
    }

    .woman-table .table__info.table__info--jeans {
        width: auto;
    }

    .sizes-table--paired .table__size > div {
        width: 100%;
    }

    .table__size.table__size--socks {
        justify-items: center;
    }

    .sizes-table--socks .table__size > div {
        width: 100%;
    }

    .sizes-info {
        flex-direction: column;
    }

    .sizes-info__content {
        order: 2;
    }

    .sizes-info__img {
        width: 100%;
        margin-left: 0;
        order: 1;
        display: flex;
        justify-content: center;
        margin-bottom: 50px;
    }

    .sizes-info__img img {
        width: 50%;
    }

    .item__info {
        width: 90%;
    }
    .item__text > .br {
        display: none;
    }
}

@media  screen and (max-width: 540px) {
    .sizes-table--paired .table__size > div {
        width: 90px;
    }
    .sizes-info--shoes .sizes-info__content {
        flex-direction: column-reverse;
    }
    .title {
        font-size: 24px;
        line-height: 30px;
    }
    .text {
        font-size: 12px;
        line-height: 18px;
    }
    .sizes-table__title {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 20px;
    }
    .table__info p {
        font-size: 12px;
        line-height: 20px;
        white-space: nowrap;
    }
    .sizes-info--shoes .sizes-info__define-size h2 {
        font-size: 18px;
        line-height: 20px;
        margin-bottom: 10px;
    }
    .sizes-info--shoes .sizes-info__define-size p {
        font-size: 14px;
        line-height: 19px;
    }
    .item__title {
        font-size: 14px;
        line-height: 20px;
    }
    .item__text {
        font-size: 12px;
        line-height: 18px;
    }
    .sizes-info {
        padding-bottom: 0;
    }
    .table__info p {
        padding: 12px 15px;
    }
}