* {
    box-sizing: border-box;
}
@font-face {
    font-family: 'MuseoCyrl-900';
    src: url('../fonts/MuseoCyrl-900.woff') format('woff'),
        url('../fonts/MuseoCyrl-900.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'Roboto', sans-serif;
    color: #202020;
}
img {
    max-width: 100%;
}
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 22px 0;
    background-color: #f1f1f1;
}
.header-container {
    display: flex;
    justify-content: space-between;
    max-width: 1140px;
    margin: auto;
}
.logo {
    text-transform: uppercase;
    font-weight: 700;
    padding-right: 10px;
}
.nav-link {
    color: #202020;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    margin-left: 11px;
    margin-right: 11px;
}
.login {
    color: #202020;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}

/* Главная секция */
.hero {
    padding-top: 62px;
    padding-bottom: 71px;
    margin-top: 60px;
}
.hero-container {
    display: flex;
    align-items: center;
    max-width: 1140px;
    margin: auto;
}
.image-block {
    position: relative;
    margin-right: 122px;
}
.sale-label {
    position: absolute;
    right: 0;
    top: 23px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background-color: #c93535;
    padding: 12px 17px;
}
.autor {
    display: block;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 22px;
}
.title {
    font-family: 'MuseoCyrl-900';
    font-size: 54px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}
.subtitle {
    display: block;
    font-size: 24px;
    font-weight: 400;
    line-height: 29px;
    margin-bottom: 48px;
}
.info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 49px;
}
.info-text {
    flex-basis: 45%;
    font-size: 16px;
    font-weight: 400;
}
.price {
    display: flex;
    align-items: center;
    margin-bottom: 48px;
}
.pricetag {
    font-size: 55px;
    font-weight: 400;
    margin-right: 64px;
}
.favorites {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
}
.favorites-icon {
    margin-right: 7px;
}
.button {
    font-size: 16px;
    font-weight: 700;
    padding: 22px 50px;
    border-radius: 5px;
    border: 2px solid transparent;
}
.button-primary {
    background-color: #f89c02;
    color: #fff;
    margin-right: 20px;
}
.button-outline {
    color: #f89c02;
    border: 2px solid #f89c02;
    text-decoration: none;
}
/* О книге */
.about {
    padding: 99px 0;
    background-color: #f1f1f1;
}
.about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1140px;
    margin: auto;
}
.section-title {
    margin-top: 0;
    margin-bottom: 35px;
    font-size: 32px;
    font-weight: 700;
}
.about-book {
    max-width: 454px;
    flex-shrink: 0;
}
.about-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}
.about-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 552px;
    box-shadow: 0 1px 120px rgba(161, 161, 161, 0.08);
    border-radius: 10px;
    border: 1px solid #f3f3f3;
    background-color: #ffffff;
    padding: 68px 53px;
}
.author-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 21px;
}
.author-name {
    margin: 0;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
}
.author-link {
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
}
.author-text {
    margin-top: 24px;
    flex-basis: 100%;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}
/* Читатели */
.readers {
    padding: 99px 0;
}
.readers-container {
    max-width: 1140px;
    margin: auto;
}
.readers-block {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 57px;
}
.reader {
    width: 165px;
    height: 165px;
    margin-bottom: 30px;
    object-fit: cover;
}
/* Подвал */
.footer {
    padding-top: 60px;
    padding-bottom: 93px;
    background-color: #f1f1f1;
}
.footer-container {
    max-width: 1140px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
}
.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 32px;
}
.footer-list {
    padding: 0;
    list-style: none;
}
.list-item {
    margin-bottom: 16px;
}
.footer-link {
    color: inherit;
    text-decoration: none;
}
.requisites {
    margin-right: 160px;
}
.information {
    margin-right: 157px;
}
.to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 1px 120px rgba(161, 161, 161, 0.08);
    border-radius: 4px;
    border: 1px solid #eee;
    background-color: #fff;
    padding: 18px;
}

@media (max-width: 1200px) {
    .header-container, .hero-container,
    .about-container, .readers-container,
    .footer-container {
        max-width: 960px;
    }
    .image-block {
        min-width: 390px;
        max-width: 390px;
        margin-right: 30px;
    }
    .about-book {
        max-width: 367px;
    }
    .readers {
        padding: 94px 0;
    }
    .reader {
        width: 139px;
        height: 139px;
    }
}
@media (max-width: 992px) {
    .header-container, .hero-container,
    .about-container, .readers-container,
    .footer-container {
        max-width: 760px;
    }
    .nav {
        display: none;
    }
    .image-block {
        min-width: 300px;
        max-width: 300px;
    }
    .sale-label {
        top: 20px;
        font-size: 16px;
        padding: 10px;
    }
    .autor {
        font-size: 22px;
        margin-bottom: 13px;
    }
    .title {
        font-size: 46px;
        margin-bottom: 10px;
    }
    .subtitle {
        margin-bottom: 28px;
    }
    .info, .price {
        margin-bottom: 39px;
    }
    .age, .format {
        flex-grow: 1;
    }
    .button {
        padding: 20px 40px;
    }
    .section-title {
        font-size: 24px;
        margin-bottom: 29px;
    }
    .about {
        padding: 82px 0;
    }
    .about-container {
        flex-wrap: wrap;
    }
    .about-book {
        max-width: 100%;
        margin-bottom: 62px;
    }
    .readers {
        padding: 74px 0;
    }
    
    .reader {
        width: 166px;
        height: 166px;
    }
    .readers-block img:nth-child(5n), img:nth-child(6n)
     {
        display: none;
    }
    .requisites, .information {
        margin-right: 65px;
    }
}
@media (max-width: 768px) {
    .header-container, .hero-container,
    .about-container, .readers-container,
    .footer-container {
        max-width: 560px;
    }
    .hero {
        padding-top: 40px;
    }
    .hero-container {
        flex-wrap: wrap;
    }
    .image-block {
        min-width: 100%;
        margin-bottom: 60px;
    }
    .hero-image {
        width: 100%;
    }
    .sale-label {
        top: 45px;
        font-size: 28px;
        padding: 15px 20px;
    }
    .readers-block img:nth-child(4n) {
        display: none;
    }
    .requisites {
        margin-right: 40px;
        margin-bottom: 60px;
    }
    .information {
        margin-right: 0;
    }
}
@media (max-width: 576px) {
    .header-container, .hero-container,
    .about-container, .readers-container,
    .footer-container {
        max-width: 90%;
    }
    .sale-label {
        top: 30px;
        font-size: 20px;
    }
    .autor {
        font-size: 18px;
        margin-bottom: 16px;
    }
    .title {
        font-size: 36px;
        margin-bottom: 19px;
    }
    .subtitle {
        font-size: 20px;
        margin-bottom: 30px;
    }
    .info {
        flex-wrap: wrap;
        margin-bottom: 17px;
    }
    .info-text {
        flex-basis: 100%;
        margin-bottom: 19px;
    }
    .pricetag {
        margin-right: 28px;
    }
    .favorites-text {
        display: none;
    }
    .button {
        width: 100%;
        display: inline-block;
        text-align: center;
    }
    .button-primary {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .about-book {
        margin-bottom: 70px;
    }
    .about-author {
        padding: 54px 44px;
    }
    .author-text {
        font-size: 14px;
    }
    .author-avatar {
        width: 64px;
        height: 64px;
    }
    .readers {
        padding-top: 55px;
        padding-bottom: 65px;
    }
    .readers-block {
        margin-top: 42px;
    }
    .reader {
        width: 145px;
        height: 145px;
    }
    .footer {
        padding-bottom: 40px;
    }
    .requisites, .information, .contacts {
        flex-basis: 100%;
        margin-bottom: 36px;
        margin-right: 0;
    }
    .footer-title {
        margin-bottom: 32px;
    }
    .footer-link {
        font-size: 16px;
    }
    .to-top {
        display: none;
    }
}
@media (max-width: 483px){
    .reader {
        width: 135px;
        height: 135px;
    }
}
@media (min-width: 320px) and (max-width: 480px) {
    .hero {
        padding-bottom: 60px;
    }
    .image-block {
        margin-bottom: 40px;
    }
    .sale-label {
        top: 20px;
        font-size: 14px;
        padding: 10px;
    }
    .autor {
        font-size: 16px;
    }
    .title {
        font-size: 24px;
        margin-bottom: 11px;
    }
    .subtitle {
        font-size: 18px;
    }
    .info-text {
        font-size: 14px;
    }
    .about {
        padding: 60px 0;
    }
    .about-book {
        margin-bottom: 50px;
    }
    .about-author {
        padding: 33px 23px;
    }
    .author-avatar {
        margin-right: 10px;
    }
    .author-link {
        font-size: 12px;
    }
    .reader {
        width: 125px;
        height: 125px;
    }
    .readers-block {
        justify-content: space-evenly;
    }
}
@media (max-width: 416px) {
    .readers-block img:nth-child(3n) {
        display: none;
    }
}