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

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

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

body {
  height: 100%;
  font-family: "PT Sans", sans-serif;
  font-size: 18px;
  line-height: 21px;
  background-color: #f2f2f2;
  color: #000000;
  margin: 0;
  min-width: 1200px;
}

.main-container {
  flex-grow: 1;
  background-color: #ffffff;
}

/* скрытие невидимого контента */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* Header */
.logo {
  width: 140px;
  height: 70px;
  z-index: 1;
  transition: transform 0.3s ease;
}

.main-header {
  display: flex;
  min-height: 64px;
  padding: 0 70px;
  margin-bottom: -6px;
}

.navigation {
  margin-left: 28px;
  max-width: 500px;
}

.navigation-item-current {
  position: relative;
}

.navigation-item-current::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  height: 2px;
  bottom: 0;
  background-color: #756257;
}

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

.navigation-user {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  margin-left: auto;
  width: 370px;
}

.navigation-user-search {
  background-image: url("../images/icons/search.svg");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.navigation-user-favourites {
  margin-right: 20px;
  background-image: url("../images/icons/heart.svg");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.navigation-user-search:hover,
.navigation-user-search:focus-visible,
.navigation-user-favourites:hover,
.navigation-user-favourites:focus-visible {
  opacity: 0.6;
  transform: scale(1.2);
}

.navigation-user-search:active,
.navigation-user-favourites:active {
  opacity: 0.3;
  transform: scale(0.95);
}

.favourites {
  display: block;
  position: absolute;
  top: 11px;
  left: 166px;
  background-color: #7db54f;
  border-radius: 100vw;
  font-size: 10px;
  line-height: 10px;
  color: #ffffff;
  min-width: 20px;
  height: 20px;
  text-align: center;
  align-content: center;
  padding: 5px;
}

.navigation-link {
  display: block;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  list-style-type: none;
  padding: 20px 16px;
  transition: transform 0.3s ease;
}

.navigation-link:hover,
.navigation-link:focus-visible,
.logo:hover,
.logo:focus-visible {
  opacity: 0.6;
  transform: scale(1.05);
}

.navigation-link:active,
.logo:active {
  opacity: 0.3;
  transform: scale(0.95);
}


.navigation-user-search,
.navigation-user-favourites {
  display: block;
  width: 44px;
  padding: 22px 12px;
  min-height: 64px;
}

.navigation-user-btn {
  display: block;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  width: 160px;
  min-height: 36px;
  padding: 9px 24px 8px;
  background-color: #756157;
  color: #ffffff;
  border-radius: 4px;
  text-align: center;
  transition: transform 0.3s ease;
  margin-top: 13px;
}

.navigation-user-btn:hover,
.navigation-user-btn:focus-visible,
.search-button:hover,
.search-button:focus-visible,
.catalog-item-link:hover,
.catalog-item-link:focus-visible {
  background-color: #615048;
}

.navigation-user-btn:active,
.search-button:active,
.catalog-item-link:active {
  background-color: #756157;
  color: rgba(255, 255, 255, 0.3);
}

.search-button:disabled,
.subscribe-button:disabled,
.hotels-filter-btn:disabled,
.catalog-item-btn:disabled {
  background-color: #e5e5e5;
  color: #ffffff;
  cursor: not-allowed;
  pointer-events: none;
}

.disabled {
  background-color: #e5e5e5;
  color: #ffffff;
  cursor: not-allowed;
  pointer-events: none;
}

/* Главная */
.hero {
  background-image: url("../images/divider.svg"),
    url("../images/index-background.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: bottom, center;
  background-size: auto, cover;
  background-color: rgba(131, 179, 211, 0.60);
  padding: 51px 371px 78px 371px;
}

.reasons-section-description {
  text-align: center;
  padding: 69px 270px 90px;
}

.service-section-description {
  text-align: center;
  padding: 64px 270px;
}

.reasons-list {
  display: grid;
  grid-template-columns: repeat(3, 400px);
  grid-template-rows: repeat(3, minmax(385px, auto));
  margin: 0;
  padding: 0;
  list-style-type: none;
  text-align: center;
}

.reasons-item-blue {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-column: 1/ -1;
  align-items: stretch;
}

.reasons-item-blue-another {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
}

.reasons-item-blue .reasons-item-title-wrapper,
.reasons-item-blue-another .reasons-item-title-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 85px;
  width: 400px;
}

.reasons-item {
  padding: 112px 85px;
  background-color: rgba(131, 179, 211, 0.12);
}

.reasons-item-blue,
.reasons-item-blue-another {
  background-color: #82b3d3;
  color: #ffffff;
}

.reasons-item-lightblue {
  padding: 112px 85px;
  background-color: rgba(131, 179, 211, 0.2);
}

.reasons-item-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 400px);
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.service-item {
  min-height: 385px;
  padding: 81px 85px;
  text-align: center;
  align-content: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.service-item::before {
  content: "";
  display: block;
  width: 75px;
  height: 72px;
  margin-bottom: 30px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.service-item-home::before {
  background-image: url("../images/icons/home.svg");
}

.service-item-food::before {
  background-image: url("../images/icons/food.svg");
}

.service-item-gifts::before {
  background-image: url("../images/icons/gifts.svg");
}

.service-item-title {
  margin: 0 0 30px 0;
}

.service-item-text {
  margin: 0;
}

.reasons-title,
.search-result-hotels,
.subscribe-catalog-title {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 25px 0;
}

.subscribe-catalog-title {
  margin: 0 0 20px 0;
}

.reason-text,
.service-text,
.interested-text,
.subscribe-text,
.subscribe-catalog-text {
  color: #333333;
  font-size: 22px;
  line-height: 26px;
  margin: 0;
}

.reasons-item-text {
  margin: 0;
}

.reasons-item-title {
  margin: 0 0 62px 0;
  position: relative;
}

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

.reasons-item-title-nopicture::after {
  background-color: rgba(0, 0, 0, 0.3);
}

.reasons-item-title,
.service-item-title {
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-title,
.interested-title,
.subscribe-title {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 20px 0;
}

.service-item-text {
  color: #333333;
}

.service-item-bg {
  background-color: rgba(131, 179, 211, 0.12);
}

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

.interested-text {
  margin-bottom: 54px;
}

.search-button,
.subscribe-button {
  display: block;
  font-family: inherit;
  font-size: 20px;
  line-height: 36px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 auto;
}

.search-button {
  background-color: #756157;
  padding: 8px 50px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.subscribe-button {
  background-color: #82b3d3;
  padding: 8px 50px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  margin: 0;
  border: none;
  transition: transform 0.3s ease;
}

.subscribe-button:hover,
.subscribe-button:focus-visible,
.hotels-filter-btn:hover,
.hotels-filter-btn:focus-visible,
.catalog-item-btn:hover,
.catalog-item-btn:focus-visible {
  background-color: #68a2ca;
}

.subscribe-button:active,
.hotels-filter-btn:active,
.catalog-item-btn:active {
  background-color: #82b3d3;
  color: rgba(255, 255, 255, 0.3);
}

.subscribe {
  background-image: url("../images/subscriber-background.jpg");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-color: #83b3d3;
  text-align: center;
  padding: 96px 258px 104px;
}

.subscribe-form {
  display: flex;
}

.subscribe-input {
  font-family: inherit;
  font-size: 18px;
  line-height: 24px;
  padding: 14px 229px 14px 20px;
  border-radius: 4px 0 0 4px;
  margin: 0;
  border: none;
  background-color: #f2f2f2;
}

.subscribe-title,
.subscribe-text {
  color: #ffffff;
}

.subscribe-text,
.subscribe-catalog-text {
  margin-bottom: 54px;
}

/* Подвал */
.main-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 40px 0 30px;
  padding: 5px 0;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 70px;
  width: 240px;
}

.social-item {
  width: 47px;
  height: 40px;
  padding: 11px 11px;
  text-align: center;
}

.icon-vk,
.icon-tg,
.icon-youtube {
  fill: #83b3d3;
  transition: transform 0.3s ease;
}


.icon-vk:hover,
.icon-tg:hover,
.icon-youtube:hover,
.icon-vk:focus-visible,
.icon-tg:focus-visible,
.icon-youtube:focus-visible {
  fill: #68a2ca;
}

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

.phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-self: center;
  text-align: center;
}

.phone {
  width: 400px;
  text-align: center;
  font-size: 40px;
  line-height: 40px;
  color: #000000;
  text-decoration: none;
  transition: transform 0.3s ease;
  padding-left: 30px;
}

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

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

.footer-logos {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-self: end;
}

.logo-htmlacademy {
  width: 240px;
  margin-right: 70px;
  text-align: end;
  transition: transform 0.3s ease;
}

.icon-htmlacademy {
  fill: #000000;
}

.icon-htmlacademy:hover,
.icon-htmlacademy:focus-visible {
  fill: #756157;
}

.icon-htmlacademy:active,
.phone:active {
  fill: rgba(117, 97, 87, 0.3);
}

/* Каталог */
.catalog-filter {
  background-image: url("../images/catalog-background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #83b3d3;
  color: #ffffff;
  padding: 35px 70px 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  margin: 0;
  margin-bottom: 40px;
  padding: 0;
  align-items: center;
  gap: 28px;
}

.breadcrumbs-home-link {
  background-image: url("../images/icons/breadcrumbs-home.svg");
  display: block;
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.breadcrumbs li {
  position: relative;
}

.breadcrumbs li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -19px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 16px;
  background-image: url("../images/icons/breadcrumbs-arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.catalog-filter-title {
  font-size: 60px;
  line-height: 78px;
  font-weight: 700;
  margin: 0 0 7px 0;
}

.breadcrumbs-hotels-link {
  font-size: 16px;
  line-height: 21px;
}

.hotels-filter {
  display: flex;
}

.infrastructure {
  border: none;
  padding: 0;
  margin: 0 70px 0 0;
  width: 150px;
}

.infrastructure-list {
  padding: 0;
  margin: 0;
}

.infrastructure-item,
.type-of-housing-item {
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.3s ease;
}

.infrastructure-item:not(:last-child),
.type-of-housing-item:not(:last-child) {
  margin-bottom: 16px;
}

.infrastructure-item input {
  appearance: none;
  min-width: 20px;
  height: 20px;
  border: none;
  border-radius: 4px;
  background-color: #ffffff;
  margin: 0;
}

.infrastructure-item input,
.infrastructure-item label,
.type-of-housing-item input,
.type-of-housing-item label {
  cursor: pointer;
}

.infrastructure-item input:checked {
  background-image: url("../images/icons/checkmark.svg");
  background-repeat: no-repeat;
  background-position: center center;
}

.infrastructure-item:hover input:not([disabled]),
.type-of-housing-item:hover input:not([disabled]) {
  background-color: rgba(255, 255, 255, 0.6);
}

.infrastructure-item:hover input:not([disabled]) + label,
.type-of-housing-item:hover input:not([disabled]) + label {
  color: rgba(255, 255, 255, 0.6);
}

.infrastructure-item input:focus-visible,
.type-of-housing-item input:focus-visible {
  outline: 2px solid #83b3d3;
}

.infrastructure-item:active input:not([disabled]),
.type-of-housing-item:active input:not([disabled]) {
  background-color: rgba(255, 255, 255, 0.3);
}

.infrastructure-item:active input:not([disabled]) + label,
.type-of-housing-item:active input:not([disabled]) + label {
  color: rgba(255, 255, 255, 0.3);
}

.infrastructure-item input[disabled],
.type-of-housing-item input[disabled] {
  opacity: 0.1;
}

.infrastructure-item input[disabled] + label,
.type-of-housing-item input[disabled] + label {
  opacity: 0.1;
}

.type-of-housing {
  border: none;
  padding: 0;
  margin: 0 141px 0 0;
  width: 150px;
}

.type-of-housing-list {
  padding: 0;
  margin: 0;
}

.type-of-housing-item input {
  appearance: none;
  min-width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background-color: #ffffff;
  margin: 0;
}

.type-of-housing-item input:checked {
  background-image: url("../images/icons/checkmark-circle.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.cost {
  border: none;
  margin: 0;
  padding: 0;
  width: 288px;
  margin-right: 70px;
}

.infrastructure-title,
.type-of-housing-title,
.cost-title {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  margin-bottom: 33px;
  padding: 0;
}

.infrastructure-item,
.type-of-housing-item {
  line-height: 23px;
  list-style-type: none;
  margin-right: auto;
}

.range {
  width: 288px;
}

.range-wrapper-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  position: relative;
}

.range-wrapper-inputs input {
  font-family: inherit;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  background-color: #f2f2f2;
  padding: 12px 45px 12px 20px;
  width: 143px;
  margin-bottom: 43px;
  border: none;
}

.range-wrapper-input-min{
  position: absolute;
  content: "";
  color: rgba(0, 0, 0, 0.3);
  font-size: 18px;
  line-height: 24px;
  top: 12px;
  left: 106px;
}

.range-wrapper-input-max{
  position: absolute;
  content: "";
  color: rgba(0, 0, 0, 0.3);
  font-size: 18px;
  line-height: 24px;
  top: 12px;
  right: 20px;
}


input[name="min-price"] {
  border-radius: 4px 0 0 4px;
  background-position: 107px 21px;
}

input[name="max-price"] {
  border-radius: 0 4px 4px 0;
  background-position: 104px 21px;
}

.range-scale {
  position: relative;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
}

.range-bar {
  position: absolute;
  height: 4px;
  background-color: #ffffff;
}

.range-toggle {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: none;
  background-color: #ffffff;
  cursor: pointer;
}

.range-toggle:focus-visible {
  outline: 3px solid #83b3d3;
}

.range-toggle:active {
  outline: 2px solid #83b3d3;
}

.range-toggle-min,
.range-toggle-max {
  top: -8px;
}

.range-input::-webkit-outer-spin-button,
.range-input::-webkit-inner-spin-button {
  -moz-appearance: textfield;
  appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.range-input:hover {
  background-color: #e6e6e6;
}

.range-input:focus-visible {
  border: 3px solid 83b3d3;
}

.hotels-filter-btn,
.hotels-filter-btn-reset,
.catalog-item-link,
.catalog-item-btn {
  display: block;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
}

.hotels-filter-btn {
  font-family: inherit;
  padding: 8px 50px;
  background-color: #82b3d3;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 191px;
  min-height: 36px;
  margin-top: 56px;
  margin-bottom: 32px;
}

.hotels-filter-btn-reset {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  width: 191px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  transition: transform 0.3s ease;
}

.hotels-filter-btn-reset:hover {
  color: rgba(255, 255, 255, 0.6);
}

.hotels-filter-btn-reset:focus-visible {
  border: 3px solid #83b3d3;
  border-radius: 4px;
}

.hotels-filter-btn-reset:active {
  color: rgba(255, 255, 255, 0.3);
}

.hotels-filter-btn-reset:disabled {
  color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  pointer-events: none;
}

.search-result {
  padding: 0 70px;
  display: flex;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 39px;
}

.result-wrapper {
  width: 538px;
}

.search-result-view {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  width: 216px;
  margin-left: auto;
  justify-content: end;
  list-style-type: none;
}

.search-result-view-item {
  display: block;
  width: 48px;
  height: 48px;
  border: 2px solid #e5e5e5;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.search-result-view-current {
  border: 2px solid #000000;
  border-radius: 4px;
}

.search-result-view-item:hover,
.search-result-view-item:active {
  border-color: #000000;
}

.search-result-view-item:focus-visible {
  border-color: #68a2ca;
}

.search-result-view-item a {
  display: block;
  height: 100%;
}

.search-result-view-item:not(:last-child) {
  margin-right: 8px;
}

.view-icons {
  background: url("../images/icons/view-icons.svg") no-repeat center;
}

.view-cards {
  background: url("../images/icons/view-cards.svg") no-repeat center;
}

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

.search-result-hotels {
  margin: 0;
}

.search-result-select {
  width: 292px;
  height: 49px;
  font-family: inherit;
  font-size: 18px;
  line-height: 21px;
  color: #333333;
  padding: 12px 40px 12px 20px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  appearance: none;
  background-color: #ffffff;
  background-image: url("../images/icons/arrow-down.svg");
  background-repeat: no-repeat;
  background-position: 259px 50%;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.search-result-select option {
  background-color: #ffffff;
}

.search-result select:hover,
.search-result select:focus-visible {
  border-color: #68a2ca;
}

.search-result select:disabled {
  border-color: rgba(0, 0, 0, 0.3);
  color: rgba(0, 0, 0, 0.3);
}

.catalog {
  margin: 0;
}

.catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, 340px);
  gap: 20px;
  padding: 0 70px 40px;
  margin: 0;
  list-style-type: none;
  position: relative;
}

.catalog-list::after {
  content: "";
  width: 1060px;
  height: 1px;
  background-color: #e5e5e5;
  position: absolute;
  bottom: 0;
  left: 70px;
}

.catalog-item {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 20px;
  list-style-type: none;
  display: grid;
  height: 100%;
  grid-template-columns: 140px 140px;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 16px 20px;
  align-items: center;
  min-height: 438px;
}

.catalog-item .catalog-item-picture {
  grid-column: 1 / -1;
  grid-row: 1;
  display: block;
  width: 100%;
}

.catalog-item p {
  margin: 0;
}

.catalog-item img {
  width: 100%;
  height: 212px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.catalog-item-title-link {
  grid-column: 1 / -1;
  grid-row: 2;
  text-decoration: none;
}

.catalog-item-title {
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  color: #000000;
  margin: 0;
  transition: transform 0.3s ease;
}

.catalog-item-type {
  grid-column: 1 / 2;
  grid-row: 3;
  justify-self: start;
  align-self: end;
}

.catalog-item-price {
  grid-column: 2 / 3;
  grid-row: 3;
  justify-self: end;
  align-self: end;
}

.catalog-item-link {
  grid-column: 1 / 2;
  grid-row: 4;
  justify-self: start;
  padding: 8px 26px;
  background-color: #756157;
  border-radius: 4px;
  align-self: center;
  margin: 0;
  transition: transform 0.3s ease;
}

.catalog-item-btn,
.catalog-item-btn-chosen {
  grid-column: 2 / 3;
  grid-row: 4;
  justify-self: end;
  align-self: center;
}

.catalog-item-rating-stars {
  grid-column: 1 / 2;
  grid-row: 5;
  justify-self: start;
  height: 17px;
  line-height: 17px;
  background-image: url("../images/icons/star.svg");
  background-repeat: repeat-x;
  background-size: 24px 17px;
  background-position: left center;
  overflow: hidden;
  align-self: center;
  margin-left: -3px;
}

.catalog-item-rating {
  grid-column: 2 / 3;
  grid-row: 5;
  justify-self: end;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  background-color: #f2f2f2;
  border-radius: 4px;
  padding: 8px 22px;
  align-self: center;
}

.catalog-item-btn {
  font-family: inherit;
  padding: 8px 20px;
  background-color: #82b3d3;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: center;
  transition: transform 0.3s ease;
}

.catalog-item-btn-chosen {
  font-family: inherit;
  padding: 8px 18px;
  background-color: #7Db54f;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: center;
  transition: transform 0.3s ease;
}

.catalog-item-btn-chosen:hover,
.catalog-item-btn-chosen:focus-visible {
  background-color: #6c9e42;
}

.catalog-item-btn-chosen:active {
  background-color: #7db54f;
  color: rgba(255, 255, 255, 0.3);
}

.catalog-item-btn-chosen:disabled {
  background-color: #e5e5e5;
  color: #ffffff;
  cursor: not-allowed;
  pointer-events: none;
}

.catalog-item a {
  text-decoration: none;
}

.catalog-item img:hover,
.catalog-item img:focus-visible,
.catalog-item-title-link:hover,
.catalog-item-title-link:focus-visible {
  opacity: 0.5;
  transform: scale(1.05);
}

.catalog-item img:active,
.catalog-item-title-link:active {
  opacity: 0.3;
  transform: scale(0.95);
}

.catalog-item-type,
.catalog-item-price,
.catalog-item-rating,
.subscribe-catalog-text {
  color: #333333;
}

.stars-1 {
  width: 24px;
}

.stars-2 {
  width: 48px;
}

.stars-3 {
  width: 72px;
}

.stars-4 {
  width: 96px;
}

.stars-5 {
  width: 120px;
}

.subscribe-catalog {
  text-align: center;
  padding: 96px 258px 106px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  padding: 0 0 0 70px;
  list-style-type: none;
  margin: 40px 0 60px;
}

.pagination-item {
  font-size: 20px;
  line-height: 36px;
  font-weight: 700;
  max-width: 150px;
}

.pagination-link {
  transition: transform 0.3s ease;
}

.pagination-link:hover,
.pagination-link:focus-visible {
  background-color: #68a2ca;
  border-radius: 4px;
}

.pagination-link:active {
  background-color: #82b3d3;
  color: rgba(255, 255, 255, 0.3);
}

.pagination span {
  display: block;
  min-width: 60px;
  min-height: 60px;
  text-align: center;
  font-weight: 400;
  font-size: 22px;
  line-height: 60px;
}

.pagination a {
  display: block;
  min-width: 60px;
  min-height: 60px;
  border-radius: 4px;
  text-decoration: none;
  color: #ffffff;
  background-color: #82b3d3;
  text-align: center;
  line-height: 60px;
  padding: 0 3px;
}

.pagination-item-active a {
  color: #000000;
  background-color: #f2f2f2;
  transition: transform 0.3s ease;
}

.pagination-item-active a:hover,
.pagination-item-active a:focus-visible,
.pagination-item-active a:active {
  color: #000000;
  background-color: #f2f2f2;
}

/* Модальное окно */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  background-color: rgba(242, 242, 242, 0.8);
  z-index: 2;
}

.modal {
  width: 717px;
  min-height: 576px;
  background-color: #ffffff;
  border-radius: 30px;
  box-shadow: 0 25px 50px 0 rgba(0, 0, 0, 0.15);
  padding: 64px 70px;
  position: relative;
  margin: auto;
}

.modal-title {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 64px 0;
  text-align: left;
  padding-right: 30px;
}

.modal-content {
  position: relative;
}

.modal-close-button {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #f2f2f2;
  border: none;
  right: -18px;
  padding: 0;
  cursor: pointer;
  top: 0;
  margin-top: 0;
  z-index: 10;
  transition: background-color 0.15s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-button::after,
.modal-close-button::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background-color: #000000;
  position: absolute;
  transform-origin: center center;
}

.modal-close-button::after {
  transform: rotate(45deg);
}

.modal-close-button::before {
  transform: rotate(-45deg);
}

.modal-close-button:hover {
  background-color: #e6e6e6;
}

.modal-close-button:focus-visible {
  outline: 3px solid #83b3d3;
  background-color: #e6e6e6;
}

.modal-close-button:active {
  background-color: #e6e6e6;
}

.modal-close-button:active::after,
.modal-close-button:active::before {
  background-color: #808080;
}

.date-in,
.date-out,
.adults,
.childs {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  margin: 0;
  padding: 12px 0;
}

.date-in-wrapper,
.date-out-wrapper,
.adults-wrapper,
.childs-wrapper {
  display: flex;
}

.date-in-wrapper,
.date-out-wrapper {
  margin-bottom: 48px;
  position: relative;
}

span.childs + label {
  position: relative;
}

.number-of-people {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}

.date-in,
.date-out,
.adults,
.childs {
  width: 137px;
}

.date-input {
  font-family: inherit;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  width: 440px;
  padding: 12px 60px 12px 20px;
  border-radius: 4px;
  border: none;
  background-color: #f2f2f2;
}

.date-input:hover,
.quantity:hover {
  background-color: #e6e6e6;
}

.date-input:focus-visible {
  background-color: #e6e6e6;
  outline: 3px solid #83b3d3;
  z-index: 1;
}

.calendar {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, color 0.2s ease;
}

.calendar-icon {
  width: 20px;
  height: 20px;
  padding: 2px 2px 3px 2px;
  fill: #756157;
  fill-opacity: 0.3;
}

.calendar:hover .calendar-icon,
.date-input:hover + .calendar .calendar-icon {
  fill: #000000;
  fill-opacity: 1;
}

.calendar:focus-visible {
  outline: 3px solid #83b3d3;
  border-radius: 2px;
  outline-offset: 2px;
}

.calendar:active .calendar-icon {
  transform: scale(0.95);
  fill: #756157;
  fill-opacity: 0.3;
}

.date-alert {
  font-size: 16px;
  position: absolute;
  top: 50px;
  left: 157px;
  margin: 0;
  display: none;
}

.date-alert--visible {
  display: block;
}

.date-in-error {
  color: #ff5757;
}

.quantity {
  font-family: inherit;
  font-size: 18px;
  line-height: 20px;
  font-weight: 700;
  width: 31px;
  max-width: 60px;
  border: none;
  background-color: #f2f2f2;
  text-align: center;
  padding: 0 5px;
}

.quantity::-webkit-outer-spin-button,
.quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.less-icon-wrapper,
.more-icon-wrapper {
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.less,
.more {
  width: 40px;
  height: 48px;
  padding: 14px 10px;
  position: relative;
  cursor: pointer;
  border: none;
}

.less {
  border-radius: 4px 0 0 4px;
}

.more {
  border-radius: 0 4px 4px 0;
}

.less-icon,
.more-icon {
  fill: #756157;
  fill-opacity: 0.3;
  transition: color 0.2s ease;
}

.less:hover svg,
.more:hover svg {
  fill: #000000;
  fill-opacity: 1;
}

.less:focus-visible svg,
.more:focus-visible svg {
  fill: #000000;
  fill-opacity: 1;
}

.less:focus-visible .less-icon-wrapper,
.more:focus-visible .more-icon-wrapper {
  outline: 3px solid #82b3d3;
  border-radius: 4px;
}

.less:active svg,
.more:active svg {
  fill: #756157;
  fill-opacity: 0.3;
}

.tooltip {
  position: absolute;
  width: 26px;
  height: 26px;
  margin-left: 10px;
}

.tooltip-toggle {
  border: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  display: block;
}

.tooltip-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.tooltip-toggle:hover .tooltip-icon {
  opacity: 0.8;
  transform: scale(1.1);
}

.tooltip-text {
  background-color: #333333;
  box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  width: 256px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: #ffffff;
  padding: 15px 18px 18px 22px;
  position: absolute;
  top: 100%;
  margin-top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

.tooltip-text::after {
  content: "";
  background-image: url("../images/icons/tooltip-arrow.svg");
  background-repeat: no-repeat;
  width: 19px;
  height: 9px;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.tooltip-toggle:hover + .tooltip-text,
.tooltip-toggle:focus + .tooltip-text {
  display: block;
}

.modal-search-button {
  padding: 18px 250px;
  width: 100%;
  min-height: 60px;
  background-color: #83b3d3;
  border-radius: 10px;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.modal-search-button:hover {
  background-color: #68a2ca;
}

.modal-search-button:focus-visible {
  background-color: #68a2ca;
}

.modal-search-button:active {
  background-color: #68a2ca;
  color: rgba(255, 255, 255, 0.3);
}

.modal-container-close {
  display: none;
}
