@font-face {
  font-family: "Pt Sans";
  src: url(../fonts/ptsans-400.woff2);
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pt Sans";
  src: url(../fonts/ptsans-700.woff2);
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pt Sans";
  src: url(../fonts/ptsans-400.woff2);
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Pt Sans";
  src: url(../fonts/ptsans-700.woff2);
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

html {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Pt Sans", "Arial", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  color: #333333;
  background-color: #f2f2f2;
  height: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 1200px;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
  background: #fff;
  margin: 0 auto;
}

.button {
  font-family: inherit;
  font-weight: 700;
  font-size: 20px;
  line-height: 36px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: #756157;
  border-radius: 4px;
  padding: 8px 14px;
  border: none;
  text-decoration: none;
  box-sizing: border-box;
}

.button:hover,
.button:focus {
  background-color: #615048;
}

.button:active {
  color: rgba(255, 255, 255, 0.3);
}


.button-blue {
  background: #82b3d3;
}

.button-blue:hover,
.button-blue:focus {
  background-color: #68a2ca;
}

.button-reset {
  margin-top: 32px;
  padding: 8px 50px;
  background-color: rgba(0, 0, 0, 0);
}

.button-reset:hover {
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0);
}

.button-reset:focus {
  background-color: rgba(0, 0, 0, 0);
}

/* header */

.main-header {
  display: flex;
  background-color: #fff;
  color: #000000;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  padding: 0 70px;
}

.main-logo {
  display: block;
  margin-right: 30px;
}

.navigation {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.navigation-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.navigation-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  text-align: center;
  padding: 20px 16px;
}

.navigation-link:hover::before,
.navigation-link:focus::before,
.navigation-link:active::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  background-color: #756257;
  height: 2px;
}

.navigation-link-current::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  background-color: #756257;
  height: 2px;
}

.navigation-link-search {
  background: url(../images/icons/search.svg) center no-repeat;
  padding: 22px 30px;
}

.navigation-link-selected {
  background: url(../images/icons/heart.svg) center no-repeat;
  padding: 22px 30px;
  margin-right: 20px;
}

.navigation-link-button {
  padding-left: 34px;
  padding-right: 34px;
}

/* end header */

/* main index*/
.main-index {
  flex-grow: 1;
}

.slogan {
  background: url(../images/index-bacground-bow.svg) bottom no-repeat,
    url(../images/index-bacground.jpg) center / cover no-repeat rgba(131, 179, 211, 0.2);
  text-align: center;
  padding-top: 50px;
  padding-bottom: 84px;
}

.advantages-intro {
  padding: 70px 270px;
  grid-column: 1 / -1;
}

.section-title {
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  text-transform: uppercase;
  text-align: center;
  color: #000;
  margin-top: 0;
  margin-bottom: 25px;
}

.text-basic {
  font-weight: 400;
  font-size: 22px;
  line-height: 26px;
  text-align: center;
  margin: 0 0 54px 0;
}

.advantages {
  display: grid;
  grid-template-columns: repeat(3, 400px);
  grid-template-rows: 1fr repeat(3, 385px);
}

.advantages-title {
  position: relative;
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 30px 0;
  color: #000;
  max-width: 175px;
}

.advantages-title::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.3);
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
}

.advantages-title-white {
  color: #fff;
}

.advantages-title-white::before {
  background-color: rgba(255, 255, 255, 0.3);
}

.advantages-description {
  text-align: center;
  margin: 30px 0 0;
}

.advantages-town,
.advantages-bridge {
  background: #82b3d3;
  color: #fff;
  padding: 0 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.advantages-image-1 {
  grid-column: 2 / -1;
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
}

.advantages-image-2 {
  grid-column: 1 / 3;
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
}

.advantages-square,
.advantages-turist {
  background: rgba(131, 179, 211, 0.12);
  padding: 0 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.advantages-road {
  background: rgba(131, 179, 211, 0.2);
  padding: 0 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.relax {
  display: grid;
  grid-template-columns: repeat(3, 400px);
}

.relax-intro {
  padding: 64px 347px;
  grid-column: 1 / -1;
}

.relax-housing,
.relax-souvenir {
  background: rgba(131, 179, 211, 0.12);
  padding: 80px 85px;
  text-align: center;
}

.relax-food {
  padding: 80px 85px;
  text-align: center;
}

.interest {
  text-align: center;
  padding: 96px 304px;
}

.mailing {
  background: #82b3d3 url(../images/bacground-mailing.jpg) center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 96px 258px 104px 258px;
}

.mailing-title {
  color: #fff;
}

.mailing-form {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.additional-button {
  border-radius: 0 4px 4px 0;
  padding: 8px 50px;
}

.mailing-input {
  border-radius: 4px 0 0 4px;
  padding-left: 20px;
  width: 452px;
  height: 52px;
  background-color: #f2f2f2;
  border: none;
  box-sizing: border-box;
}

/* end main */

/* catalog */

.hotel {
  background: rgba(131, 179, 211, 0.2) url(../images/catalog-background.jpg) center / cover no-repeat;
  color: #fff;
  padding: 35px 70px 70px;
}

.hotel-title {
  font-weight: 700;
  font-size: 60px;
  line-height: 78px;
  color: #fff;
  margin: 0 0 8px;
}

.home {
  background: url(../images/icons/home.svg) center no-repeat;
  padding: 12px;
}

.breadcrumbs {
  margin: 0 0 40px;
  padding: 0;
}

.breadcrumbs-item {
  display: inline-block;
}

.breadcrumbs-item::before {
  content: url(../images/icons/breadcrumbs-arrow.svg);
  margin-left: 10px;
  margin-right: 10px;
}

.breadcrumbs-item:first-child::before {
  content: "";
  margin: 0;
}

.breadcrumbs-link {
  font-weight: 400;
  font-size: 16px;
  line-height: 21px;
  color: #fff;
  text-decoration: none;
}

.catalog-filter {
  display: flex;
  justify-content: space-between;
}

.catalog-filter-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.catalog-filter-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  text-transform: capitalize;
  color: #fff;
}

.catalog-filter-price {
  width: 288px;
}

.catalog-buttons {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hotel-cart {
  margin: 0 70px;
}

.hotel-cart-sorts {
  display: flex;
  padding-top: 50px;
  padding-bottom: 40px;
}

.select-control {
  font-family: inherit;
  font-weight: 400;
  font-size: 18px;
  line-height: 21px;
  color: #333;
  margin-left: auto;
}

.hotel-cart-title {
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  text-transform: uppercase;
  color: #000;
  margin: 0;
}

.sort-lists {
  display: flex;
  align-items: center;
  margin-left: 70px;
}

.sort-list:last-child {
  margin-right: 0;
}

.sort {
  border: 2px solid #e5e5e5;
  border-radius: 4px;
  padding: 16px;
  margin-right: 8px;
}
.sort:hover,
.sort:focus,
.sort:active,
.sort-curent{
  border-color: #000;
}

.sort-cart {
  background: url(../images/icons/variant=tile.svg) center no-repeat;
}

.sort-slide {
  background: url(../images/icons/variant-slideshow.svg) center no-repeat;
}

.sort-list {
  background: url(../images/icons/variant-list.svg) center no-repeat;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 340px);
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 20px;
  box-sizing: border-box;
}

.product-card-link {
  text-decoration: none;
  display: block;
}

.product-card-img {
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin-bottom: 16px;
}

.product-card-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  color: #000;
  margin: 0 0 16px;
}

.product-card-description {
  display: flex;
  justify-content: space-between;
  margin: 0 0 16px;
  flex-grow: 1;
}

.buttons-block {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rating {
  display: flex;
  justify-content: space-between;
}

.rating-block-star {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.rating-star {
  background: url(../images/icons/star.svg) center no-repeat;
  padding: 10px;
}

.rating-result {
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  background: #f2f2f2;
  border-radius: 4px;
  margin: 0;
  padding: 8px 22px;
}

.pagination {
  display: flex;
  padding: 0;
  margin-top: 40px;
  margin-bottom: 50px;
  list-style-type: none;
}

.pagination-list:not(:last-child) {
  margin-right: 10px;
}

.pagination-item {
  border-radius: 4px;
  width: 60px;
  height: 60px;
  display: block;
  text-align: center;
  align-content: center;
  font-weight: 700;
  font-size: 20px;
  line-height: 36px;
  text-transform: uppercase;
  color: #fff;
  background-color: #82b3d3;
  text-decoration: none;
}
.pagination-item:hover,
.pagination-item:focus{
  background-color: #68a2ca;
}
.pagination-item:active{
  background-color: #82b3d3;
  color: rgba(255, 255, 255, 0.3);
}



.pagination-item-current,
.pagination-item-current:hover,
.pagination-item-current:focus,
.pagination-item-current:active {
  background-color: #f2f2f2;
  color: inherit;
}

.pagination-item-skip,
.pagination-item-skip:hover,
.pagination-item-skip:focus,
.pagination-item-skip:active {
  background: none;
  color: #333;
}


.mailing-catalog {
  background-color: #fff;
  color: #333;
  text-align: center;
  padding: 96px 258px 104px 258px;
}

.mailing-catalog .mailing-title {
  color: #000;
}

/* end catalog */

/* footer */

.main-footer {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 45px 70px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
  align-items: center;
}

.button-social-vk,
.button-social-telegram,
.button-social-youtube {
  padding: 12px;
  display: flex;
}

.social-icon:hover,
.social-icon:focus {
  fill: #68a2ca;
}

.social-icon:active {
  fill: rgba(104, 162, 202, 0.3);
}

.footer-phone {
  font-weight: 400;
  font-size: 40px;
  line-height: 40px;
  text-transform: uppercase;
  text-align: center;
  color: #000;
  text-decoration: none;
}

.footer-phone:hover,
.footer-phone:focus {
  color: #756157;
}

.footer-phone:active {
  color: rgba(117, 97, 87, 0.3);
}

.logo-academy:hover,
.logo-academy:focus {
  fill: #756157;
}
.logo-academy:active{
  fill: rgba(117, 97, 87, 0.3);
}

/* end footer */
