* {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Tahoma';
  src: url('../fonts/Tahoma-Regular.woff') format('woff'),
    url('../fonts/Tahoma-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Tahoma-Bold';
  src: url('../fonts/Tahoma-Bold.woff') format('woff'),
    url('../fonts/Tahoma-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Ruble';
  src: url('../fonts/Ruble.woff') format('woff'),
    url('../fonts/Ruble.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Tahoma", sans-serif;
  color: #202020;
}

img {
  max-width: 100%;
}

/* шапка сайта */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 22px 0;
  background-color: #f1f1f1;
}

.container {
  max-width: 1140px;
  margin: auto;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  color: inherit;
  margin: 0 11px;
}

.nav-link:hover {
  color: #f89c02;
}

.login {
  font-size: 14px;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
}

/* главная секция */
.hero {
  padding: 62px 0 71px;
  margin-top: 62px;
}

.hero-container {
  display: flex;
  align-items: center;
}

.hero-image {
  min-width: 460px;
  max-width: 460px;
  margin-right: 122px;
  position: relative;
}

.book-img {
  object-fit: cover;
}

.sale-lable {
  position: absolute;
  top: 23px;
  right: 0;
  padding: 12px 17px;
  font-size: 18px;
  font-weight: 500;
  background-color: #c93535;
  color: #ffffff;
}

.author {
  display: block;
  margin-bottom: 22px;
  font-size: 24px;
  font-weight: 400;
}

.title {
  margin-bottom: 15px;
  margin-top: 0;
  font-family: "Tahoma-Bold", sans-serif;
  font-size: 54px;
  font-weight: 700;
}

.subtitle {
  max-width: 370px;
  display: block;
  margin-bottom: 48px;
  font-size: 24px;
  font-weight: 400;
  line-height: 29px;
}

.info {
  margin-bottom: 33px;
  display: flex;
  flex-wrap: wrap;
}

.info_item {
  flex-basis: 45%;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 400;
}

.price {
  margin-bottom: 48px;
  display: flex;
  align-items: center;
}

.price-tag {
  margin-right: 64px;
  font-size: 55px;
  font-weight: 400;
}

.rub {
  font-family: "Ruble";
}

/* .rub {
  font-size: inherit;
  margin: 0 2px;
  color: inherit;
  position: relative;
}

.rub:after {
  content: "";
  position: absolute;
  display: inline-block;
  width: 80%;
  height: 8%;
  top: auto;
  bottom: 25%;
  left: -5%;
  background: #202020;
} */

.block-favorites {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 23px;
  font-weight: 400;
  text-decoration: none;
  color: #202020;
}

.block-favorites:hover {
  color: #f89c02;
}

.favorites-icon {
  margin-right: 7px;
}

/* .favorites-icon:hover path, */
.block-favorites:hover .favorites-icon path {
  stroke: #f89c02;
  stroke-width: 10%;
}

.favorites-icon_active path {
  stroke: #f89c02;
  fill: #f89c02;
}

.button {
  min-width: 250px;
  padding: 23px 59px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid transparent;
}

.button-full {
  margin-right: 20px;
  background-color: #f89c02;
  color: #ffffff;
  cursor: pointer;
}

.button-empty {
  display: inline-block;
  border: 2px solid #f89c02;
  text-decoration: none;
  color: #f89c02;
  text-align: center;
}

/* о книге */
.about {
  background-color: #f1f1f1;
  padding-top: 93px;
  padding-bottom: 96px;
}

.about-container {
  display: flex;
  align-items: flex-start;
}

.about-book {
  max-width: 470px;
  margin-right: 119px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.about-book p:last-child {
  margin-bottom: 0;
}

.h2-title {
  margin-top: 0;
  margin-bottom: 35px;
  font-size: 32px;
  font-weight: 700;
}

.about-author {
  max-width: 552px;
  padding: 68px 53px;
  box-shadow: 0 1px 120px rgba(161, 161, 161, 0.08);
  border-radius: 10px;
  border: 1px solid #f3f3f3;
  background-color: #ffffff;
}

.author-avatar {
  display: flex;
  align-items: center;
  margin-bottom: 27px;
}

.author-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 21px;
  object-fit: cover;
}

.author-name {
  display: block;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 700;
}

.author-link {
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  color: inherit;
}

.author-description {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* Читатели */
.readers {
  padding-top: 87px;
  padding-bottom: 109px;
}

.readers-avatars {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-right: -30px;
  margin-bottom: -30px;
}

.reader-img {
  margin-bottom: 30px;
  margin-right: 30px;
  width: 165px;
  height: 165px;
  object-fit: cover;
}

/* футер */
.footer {
  background-color: #f1f1f1;
  padding-top: 60px;
  padding-bottom: 93px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: -30px;
}

.footer-col {
  flex-basis: 30%;
  margin-bottom: 30px;
}

.footer-title {
  margin-top: 0;
  font-size: 18px;
  font-weight: 700;
}

.footer-list {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.footer-item {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 400;
}

.footer-item:last-child {
  margin-bottom: 0;
}

.footer-link {
  text-decoration: none;
  color: inherit;
}

.return-top {
  position: fixed;
  bottom: 90px;
  right: 114px;
  width: 50px;
  height: 50px;
  background-image: url(../img/icon-arrow.svg);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  box-shadow: 0 1px 120px rgba(161, 161, 161, 0.08);
  border-radius: 4px;
  border: 1px solid #eeeeee;
  background-color: #ffffff;
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
    margin: auto;
  }

  .hero {
    padding-bottom: 90px;
  }

  .hero-image {
    min-width: 390px;
    max-width: 390px;
    margin-right: 30px;
  }

  .about-book {
    max-width: 367px;
    margin-right: 52px;
  }

  .readers {
    padding-top: 69px;
    padding-bottom: 94px;
  }

  .readers-avatars {
    margin-right: -25px;
    margin-bottom: -25px;
  }

  .reader-img {
    width: 139px;
    height: 139px;
    margin-right: 25px;
    margin-bottom: 25px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 760px;
    margin: auto;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 59px;
    padding-bottom: 79px;
  }

  .hero-image {
    min-width: 298px;
    max-width: 298px;
  }

  .sale-lable {
    font-size: 14px;
  }

  .author {
    margin-bottom: 13px;
    font-size: 22px;
  }

  .title {
    margin-bottom: 10px;
    font-size: 46px;
  }

  .subtitle {
    margin-bottom: 29px;
  }

  .info {
    margin-bottom: 23px;
  }

  .book-form,
  .book-age {
    flex-grow: 1;
  }

  .price {
    margin-bottom: 39px;
  }

  .button {
    min-width: 200px;
    padding: 17px 40px;
    font-size: 14px;
  }

  .button-full {
    margin-right: 15px;
  }

  .about {
    padding-top: 81px;
    padding-bottom: 82px;
  }

  .about-container {
    flex-wrap: wrap;
  }

  .about-book {
    min-width: 100%;
    margin-right: 0;
    margin-bottom: 62px;
  }

  .h2-title {
    margin-bottom: 29px;
    font-size: 24px;
  }

  .readers {
    padding-top: 74px;
    padding-bottom: 81px;
  }

  .readers-avatars {
    margin-right: -30px;
    margin-bottom: -30px;
  }

  .reader-img {
    width: 165px;
    height: 165px;
    margin-right: 30px;
    margin-bottom: 30px;
  }

  .reader-img:nth-child(6n),
  .reader-img:nth-child(6n-1) {
    display: none;
  }

  .footer-col {
    flex-basis: 35%;
  }

  .footer-col:last-child {
    flex-basis: 25%;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 560px;
    margin: auto;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .hero-container {
    flex-wrap: wrap;
  }

  .hero-image {
    min-width: 100%;
    margin-bottom: 60px;
  }

  .book-img {
    width: 100%;
  }

  .sale-lable {
    font-size: 18px;
  }

  .about-book {
    margin-bottom: 70px;
  }

  .readers {
    padding-top: 80px;
    padding-bottom: 85px;
  }

  .reader-img:nth-child(6n-2) {
    display: none;
  }

  .footer {
    padding-bottom: 79px;
  }

  .footer-col {
    flex-basis: 50%;
    margin-bottom: 60px;
  }

  .footer-col:last-child {
    flex-basis: 100%;
    margin-bottom: 0;
  }

  .return-top {
    bottom: 50px;
    right: 50px;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 480px;
    margin: auto;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 64px;
  }

  .hero-image {
    margin-bottom: 59px;
  }

  .author {
    margin-bottom: 16px;
    font-size: 18px;
  }

  .title {
    margin-bottom: 19px;
    font-size: 36px;
  }

  .subtitle {
    margin-bottom: 31px;
    font-size: 20px;
    max-width: 50%;
    line-height: 24px;
  }

  .info {
    margin-bottom: 36px;
  }

  .info_item {
    margin-bottom: 19px;
    flex-basis: 100%;
  }

  .info_item:last-child {
    margin-bottom: 0;
  }

  .price {
    margin-bottom: 36px;
  }

  .price-tag {
    margin-right: 28px;
  }

  .block-favorites span {
    display: none;
  }

  .button {
    width: 100%;
  }

  .button-full {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .about {
    padding-top: 60px;
    padding-bottom: 97px;
  }

  .h2-title {
    margin-bottom: 35px;
  }

  .about-book {
    margin-bottom: 71px;
  }

  .about-author {
    width: 100%;
    padding: 54px 44px;
  }

  .author-img {
    width: 66px;
    height: 66px;
    margin-right: 16px;
  }

  .author-link {
    font-size: 14px;
  }

  .author-description {
    font-size: 14px;
    line-height: 20px;
  }

  .readers {
    padding-top: 55px;
    padding-bottom: 69px;
  }

  .readers-avatars {
    margin-right: -24px;
    margin-bottom: -21px;
  }

  .reader-img {
    width: 144px;
    height: 144px;
    margin-right: 24px;
    margin-bottom: 21px;
  }

  .footer-col {
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 90%;
    margin: auto;
  }

  .hero {
    padding-top: 49px;
    padding-bottom: 60px;
  }

  .hero-image {
    margin-bottom: 43px;
  }

  .sale-lable {
    font-size: 12px;
  }

  .author {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .title {
    margin-bottom: 11px;
    font-size: 24px;
  }

  .subtitle {
    max-width: 100%;
    margin-bottom: 35px;
    font-size: 18px;
  }

  .info_item {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .button-full {
    margin-bottom: 16px;
  }

  .about {
    padding-top: 60px;
    padding-bottom: 54px;
  }

  .about-book {
    margin-bottom: 50px;
  }

  .author-link {
    word-break: break-word;
  }

  .readers {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .readers-avatars {
    justify-content: space-between;
    margin-right: 0;
  }

  .reader-img {
    width: 47%;
    height: 47%;
    margin-right: 0;
  }

  .reader-img:nth-child(6n-3) {
    display: none;
  }
}