
@font-face {
  font-style: normal;
  font-weight: 400;
  font-family: "PT Sans";

  font-display: swap;
  src: url("./../fonts/ptsans-400.woff2") format("woff2");
}

@font-face {
  font-style: normal;
  font-weight: 700;
  font-family: "PT Sans";

  font-display: swap;
  src: url("./../fonts/ptsans-700.woff2") format("woff2");
}

:root {
  --font-family: "PT Sans", sans-serif;

  --texts-second: #333333;
  --texts-error: #ff5757;
  --texts-hover: #756157;
  --texts-active: rgba(117, 97, 87, 0.3);
  --texts-texts-basic: #000000;

  --texts-background-deafault: #ffffff;
  --texts-background-small: rgba(255, 255, 255, 0.3);
  --texts-background-hover: rgba(255, 255, 255, 0.6);
  --texts-background-active: rgba(255, 255, 255, 0.3);

  --buttons-basic: #756157;
  --buttons-second: #82b3d3;
  --buttons-select: #7db54f;
  --buttons-disabled: #e5e5e5;
  --buttons-brown-hover: #615048;
  --buttons-blue-hover: #68a2ca;
  --buttons-green-hover: #6c9e42;

  --background-basic-1: #ffffff;
  --background-basic-2: rgba(0, 0, 0, 0.3);
  --background-basic-3: #82b3d3;
  --background-second-1: rgba(131, 179, 211, 0.12);
  --background-second-2: rgba(131, 179, 211, 0.2);

  --icons-basic: #000000;
  --icons-second: #83b3d3;
  --icons-text: #7db54f;
  --icons-hover: #756157;
  --icons-active: rgba(117, 97, 87, 0.3);
  --icons-second-hover: #68a2ca;
  --icons-second-active: rgba(104, 162, 202, 0.3);

  --forms-inputs: #3f5e72;
  --forms-elements-1: #e5e5e5;
  --forms-elements-2: #f2f2f2;
}

/* Helpers */

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;

  border: 0;

  clip: rect(1px, 1px, 1px, 1px);
}

.container {
  box-sizing: border-box;
  width: 1200px;
  margin-right: auto;
  margin-left: auto;

  background-color: var(--texts-background-deafault);
}

/* Blocks */

.button {
  display: inline-block;
  box-sizing: border-box;
  padding: 0;

  font-weight: 700;
  font-family: inherit;
  text-align: center;
  color: var(--texts-background-deafault);
  text-transform: uppercase;
  text-decoration: none;
  word-break: break-all;

  background-color: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.button--primary {
  background-color: var(--buttons-second);
}

.button--secondary {
  background-color: var(--texts-hover);
}

.button--active {
  background-color: var(--buttons-select);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--buttons-blue-hover);
}

.button--primary:active {
  color: var(--texts-background-small);

  background: var(--buttons-second);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--buttons-brown-hover);
}

.button--secondary:active {
  color: var(--texts-background-small);

  background: var(--texts-hover);
}

.button--active:hover,
.button--active:focus-visible {
  background: var(--buttons-green-hover);
}

.button--active:active {
  color: var(--texts-background-small);

  background: var(--buttons-select);
}

.button--size-s {
  padding: 8px 15px;

  font-weight: 700;
  font-size: 16px;
  line-height: 125%;
}

.button--size-m {
  padding: 8px 15px;

  font-weight: 700;
  font-size: 20px;
  line-height: 180%;
}

.button--size-l {
  padding: 18px 15px;

  font-weight: 700;
  font-size: 20px;
  line-height: 120%;

  border-radius: 10px;
}

.button:disabled {
  color: var(--texts-background-deafault);

  background: var(--buttons-disabled);
  cursor: default;

  pointer-events: none;
}

.button-ghost {
  display: inline-block;
  box-sizing: border-box;
  padding: 8px 15px;

  font-weight: 700;
  font-size: 16px;
  line-height: 125%;
  font-family: inherit;
  text-align: center;
  color: var(--texts-background-deafault);
  text-transform: uppercase;
  text-decoration: none;
  word-break: break-all;

  background-color: transparent;
  border: none;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.button-ghost:hover {
  color: rgba(255, 255, 255, 0.6);
}

.button-ghost:focus-visible {
  padding: 5px 12px;

  border: 3px solid var(--icons-second);
}

.button-ghost:active {
  color: var(--texts-background-small);
}

.button-ghost:disabled {
  color: rgba(255, 255, 255, 0.1);

  cursor: default;

  pointer-events: none;
}

.button-input {
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  padding: 0;

  background-color: transparent;
  border: none;
  border-radius: 4px;
  outline: none;
  cursor: pointer;

  fill: #000000;
  fill-opacity: 0.3;
}

.button-input__icon {
  fill: inherit;
  fill-opacity: inherit;
}

.button-input:hover {
  fill-opacity: 1;
}

.button-input:focus-visible {
  outline: 3px solid var(--buttons-second);

  fill-opacity: 1;
}

.button-input:active {
  fill-opacity: 0.3;
}

.button-input:disabled {
  cursor: default;

  pointer-events: none;
}

.logo {
  display: flex;

  cursor: pointer;
}

.logo:hover,
.logo:focus-visible {
  opacity: 0.5;
}

.logo:active {
  opacity: 0.7;
}

.notification-badge {
  display: block;
  box-sizing: border-box;
  min-width: 20px;
  height: 20px;
  padding: 5px 5px 5px 4px;

  font-size: 10px;
  line-height: 10px;
  text-align: center;
  color: var(--texts-background-deafault);

  background-color: var(--buttons-select);
  border-radius: 100vh;
}

.site-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;

  list-style: none;
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  color: var(--texts-texts-basic);
  text-transform: capitalize;
}

.site-navigation__link {
  display: block;
  box-sizing: border-box;
  padding: 20px 16px;

  color: inherit;
  text-decoration: none;

  cursor: pointer;
}

.site-navigation__link:not(.site-navigation__link--active):hover,
.site-navigation__link:not(.site-navigation__link--active):focus-visible {
  opacity: 0.5;
}

.site-navigation__link:not(.site-navigation__link--active):active {
  opacity: 0.7;
}

.site-navigation__link--active {
  position: relative;
}

.site-navigation__link--active::before {
  content: "";
  position: absolute;
  right: auto;
  bottom: -1px;
  left: auto;
  z-index: 1;

  width: calc(100% - 32px);
  height: 2px;

  background-color: #756257;
  cursor: default;
}

.user-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;

  list-style: none;
}

.user-navigation__link {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 12px;

  color: inherit;
  text-decoration: none;

  cursor: pointer;
}

.user-navigation__link:hover,
.user-navigation__link:focus-visible {
  opacity: 0.5;
}

.user-navigation__link:active {
  opacity: 0.7;
}

.user-navigation__notification {
  position: absolute;
  top: 11px;
  left: 20px;
}

.user-navigation__link::before {
  content: "";

  width: 20px;
  height: 20px;
}

.user-navigation__link--theme-favorite::before {
  background-image: url("../images/icon-favorite.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.user-navigation__link--theme-search::before {
  background-image: url("../images/icon-search.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;

  list-style: none;

  fill: #83b3d3;
}

.social__item:nth-child(2) {
  margin-left: 1px;
  /* для pixel perfect */
}

.social__link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 47px;
  height: 40px;

  cursor: pointer;

  fill: inherit;
}

.social__link:hover,
.social__link:focus-visible {
  fill: #68a2ca;
}

.social__link:active {
  fill-opacity: 0.3;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;

  list-style: none;

  gap: 8px;
}

.pagination__link {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-width: 60px;
  height: 60px;
  padding-right: 10px;
  padding-bottom: 2px;
  padding-left: 10px;
  /* для pixel perfect */

  font-weight: 700;
  font-size: 20px;
  line-height: 180%;
  vertical-align: middle;
  text-align: center;
  color: var(--texts-background-deafault);
  text-transform: uppercase;
  text-decoration: none;
  word-break: break-all;

  background-color: var(--buttons-second);
  border-radius: 4px;
  cursor: pointer;
}

.pagination__link:hover,
.pagination__link:focus-visible {
  background-color: var(--buttons-blue-hover);
  border: 1px solid var(--buttons-second);
}

.pagination__link:active {
  color: var(--texts-background-small);

  background-color: var(--buttons-second);
}

.pagination__link--active[class] {
  color: var(--texts-texts-basic);

  background-color: var(--forms-elements-2);
  border: none;
  outline: none;
  cursor: default;

  pointer-events: none;
}

.pagination__link--dots[class] {
  padding-top: 3px;
  /* Для pixel perfect */

  font-size: 22px;
  line-height: 118%;
  color: var(--texts-texts-basic);

  background-color: #ffffff;
  border: none;
}

.pagination__link--dots:hover {
  opacity: 0.8;
}

.pagination__link--dots:active {
  opacity: 0.6;
}

.display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 8px;
}

.display__button {
  box-sizing: border-box;
  width: 48px;
  height: 48px;

  border: 2px solid var(--buttons-disabled);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.display__button:not(.display__button--active):hover {
  border: 2px solid var(--texts-texts-basic);
}

.display__button:not(.display__button--active):focus-visible {
  border: 2px solid var(--buttons-blue-hover);
}

.display__button:not(.display__button--active):active {
  border: 2px solid var(--texts-texts-basic);
}

.display__button--active {
  border: 2px solid var(--texts-texts-basic);
  cursor: default;

  pointer-events: none;
}

.display__button--theme-tile {
  background-image: url("../images/icon-display-tile.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.display__button--theme-list {
  background-image: url("../images/icon-display-list.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.display__button--theme-card {
  background-image: url("../images/icon-display-card.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.sort-control {
  box-sizing: border-box;
  padding: 12px 40px 12px 19px;

  font-size: 18px;
  line-height: 117%;
  font-family: inherit;
  color: inherit;

  background-color: var(--texts-background-deafault);
  background-image: url("../images/arrow-bottom.svg");
  background-repeat: no-repeat;
  background-position: right 18px top 18px;
  border: 2px solid var(--buttons-disabled);
  border-radius: 4px;
  outline: none;
  cursor: pointer;

  appearance: none;
}

.sort-control:hover,
.sort-control:focus-visible {
  border: 2px solid var(--buttons-blue-hover);
}

.sort-control:disabled,
.sort-control--disabled {
  color: var(--background-basic-2);

  background-image: url("../images/arrow-bottom-active.svg");
  border: 2px solid var(--background-basic-2);
  cursor: default;

  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;

  list-style: none;

  gap: 10px;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "";

  width: 8px;
  height: 21px;
  margin-left: 10px;

  background-image: url("../images/icon-arrow-right.svg");
  background-repeat: no-repeat;
}

.breadcrumbs__link {
  font-size: 16px;
  line-height: 131%;
  color: var(--texts-background-deafault);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--texts-background-hover);
}

.breadcrumbs__link:focus-visible {
  color: var(--texts-background-deafault);
}

.breadcrumbs__link:active {
  color: var(--texts-background-small);
}

.breadcrumbs__link--icon-home {
  display: flex;
}

.breadcrumbs__link--icon-home::before {
  content: "";

  width: 13px;
  height: 15px;

  background-image: url("../images/icon-home.svg");
  background-repeat: no-repeat;
}

.checkbox-control {
  display: flex;
  align-items: center;

  cursor: pointer;

  gap: 16px;
}

.checkbox-control:hover {
  opacity: 0.6;
}

.checkbox-control:active {
  opacity: 0.3;
}

.checkbox-control__input:focus-visible {
  outline: 3px solid var(--icons-second);
  outline-offset: 0;
}

.checkbox-control__input {
  position: relative;

  flex-shrink: 0;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: 0;

  background-color: #ffffff;
  border-radius: 4px;
  outline: none;

  appearance: none;
}

.checkbox-control__input:checked {
  background-image: url("../images/icon-checkbox.svg");
  background-repeat: no-repeat;
  background-position: left 4px top 5px;
}

.checkbox-control:has(.checkbox-control__input:disabled) {
  cursor: default;
  opacity: 0.5;

  pointer-events: none;
}

.checkbox-control__label {
  font-size: 18px;
  line-height: 128%;
  color: var(--texts-background-deafault);
  word-break: break-all;

  user-select: none;
}

.radio-control {
  display: flex;
  align-items: center;

  cursor: pointer;

  gap: 16px;
}

.radio-control:hover {
  opacity: 0.6;
}

.radio-control:active {
  opacity: 0.3;
}

.radio-control__input {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 20px;
  height: 21px;
  margin: 0;

  background-color: #ffffff;
  border-radius: 50%;

  appearance: none;
}

.radio-control__input:checked {
  background-image: url("../images/icon-radio-checked.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

.radio-control__input:focus-visible {
  outline: 3px solid var(--icons-second);
  outline-offset: 0;
}

.radio-control:has(.radio-control__input:disabled) {
  cursor: default;
  opacity: 0.5;

  pointer-events: none;
}

.radio-control__label {
  font-size: 18px;
  line-height: 128%;
  color: var(--texts-background-deafault);
  word-break: break-all;
}

.filter-range {
  width: 288px;
}

.filter-range__input-interval {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 44px;
}

.filter-range__input-wrapper {
  position: relative;
}

.filter-range__input-caption {
  position: absolute;
  top: 13px;
  right: 20px;

  line-height: 133%;
  color: var(--texts-texts-basic);
  word-break: break-all;

  opacity: 0.3;
}

.filter-range__input {
  box-sizing: border-box;
  width: 143px;
  padding: 13px 45px 11px 20px;

  font-weight: 700;
  font-size: 18px;
  line-height: 133%;
  font-family: inherit;
  color: var(--texts-texts-basic);

  background: var(--forms-elements-2);
  border: none;
  outline: none;
}

.filter-range__input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

.filter-range__input:not(:disabled):hover {
  background: #e6e6e6;
}

.filter-range__input:focus-visible {
  background: #e6e6e6;
  outline: 3px solid var(--icons-second);
}

.filter-range__input:disabled {
  cursor: default;
  opacity: 0.8;

  pointer-events: none;
}

.filter-range__input--cropping-left {
  border-radius: 4px 0 0 4px;
}

.filter-range__input--cropping-right {
  border-radius: 0 4px 4px 0;
}

.filter-range__controls {
  position: relative;
}

.filter-range__rail {
  width: 100%;
  height: 4px;

  background-color: rgba(255, 255, 255, 0.3);
}

.filter-range__track {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  width: 78%;
  height: 4px;

  background-color: var(--texts-background-deafault);
}

.filter-range__handle-button {
  position: absolute;
  top: 50%;

  width: 20px;
  height: 20px;
  padding: 0;

  background-color: var(--texts-background-deafault);
  border: none;
  border-radius: 5px;
  transform: translateY(-50%);
  cursor: pointer;
}

.filter-range__handle-button:focus-visible {
  outline: 3px solid var(--icons-second);
}

.filter-range__handle-button:active {
  outline: 2px solid var(--icons-second);
}

.filter-range__handle-button-min {
  left: 0;
}

.filter-range__handle-button-max {
  left: 207px;
}

.filter-range__handle-button--disabled {
  background-color: #d3d3d3;
  cursor: default;

  pointer-events: none;
}

.tooltip {
  width: 26px;
  height: 26px;
}

.tooltip__toggle {
  display: block;
  width: 26px;
  height: 26px;
  padding: 0;

  background-color: var(--icons-second);
  background-image: url("../images/icon-popover.svg");
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 100%;
  cursor: pointer;
}

.tooltip__toggle:hover + .tooltip__text,
.tooltip__toggle:focus + .tooltip__text {
  display: block;
}

.tooltip__text {
  position: absolute;
  top: 100%;
  right: 50%;

  display: none;
  box-sizing: border-box;
  width: 256px;
  margin-top: 15px;
  padding: 20px 18px 23px 22px;

  font-size: 16px;
  line-height: 125%;
  color: var(--texts-background-deafault);

  background-color: var(--texts-second);
  border-radius: 10px;
  box-shadow: 0 15px 30px 0 var(--background-basic-2);
  transform: translateX(50%);
}

.tooltip__text::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;

  width: 19px;
  height: 9px;

  background-image: url("../images/icon-tooltip-arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  transform: translateX(-50%);
}

.appointment-form {
  display: grid;
  margin: 0;

  gap: 23px 88px;
  grid-template-columns: 247px 242px;
}

.appointment-form__field-group {
  display: flex;
  justify-content: space-between;

  column-gap: 15px;
}

.appointment-form__field-count {
  grid-column: span 1;
}

.appointment-form__field-date {
  grid-column: span 2;
}

.appointment-form__label {
  display: inline-block;
  margin-top: 12px;

  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  color: var(--texts-texts-basic);
  text-transform: capitalize;
  word-break: break-all;
}

.appointment-form__input {
  box-sizing: border-box;

  font-weight: 700;
  font-size: 18px;
  line-height: 133%;
  font-family: inherit;
  color: var(--texts-texts-basic);

  background-color: var(--forms-elements-2);
  border: none;
  border-radius: 4px;
}

.appointment-form__input:hover {
  color: rgba(0, 0, 0, 0.6);

  background-color: #e6e6e6;
}

.appointment-form__input:focus-visible {
  color: rgba(0, 0, 0, 0.6);

  background-color: #e6e6e6;
  outline: 3px solid var(--icons-second);
}

.appointment-form__input:placeholder-shown {
  color: rgba(0, 0, 0, 0.6);
}

.appointment-form__input:disabled {
  cursor: default;
  opacity: 0.6;

  pointer-events: none;
}

.appointment-form__input-date-wrapper {
  display: grid;
  width: 440px;

  gap: 4px;
}

.appointment-form__input-date {
  width: 440px;
  padding: 13px 45px 11px 20px;

  background-image: url("../images/icon-calendar.svg");
  background-repeat: no-repeat;
  background-position: top 14px right 20px;
}

.appointment-form__input-date:focus-visible {
  background-image: url("../images/icon-calendar.svg");
  background-repeat: no-repeat;
  background-position: top 14px right 20px;
}

.appointment-form__input-count-wrapper {
  display: grid;
  width: 110px;
  height: 48px;

  background-color: var(--forms-elements-2);
  border-radius: 4px;

  grid-template-columns: 40px 30px 40px;
  place-items: center center;
}

.appointment-form__input-count {
  width: 30px;
  height: 48px;

  text-align: center;

  grid-column: 2/3;
  grid-row: 1/2;
}

.appointment-form__button-minus {
  grid-column: 1/2;
  grid-row: 1/2;
}

.appointment-form__button-plus {
  grid-column: -1/-2;
  grid-row: 1/2;
}

.appointment-form__button {
  margin-top: 25px;

  grid-column: span 2;
}

.appointment-form__text {
  margin-right: 20px;
  margin-left: 20px;

  font-size: 16px;
  line-height: 131%;
  color: var(--texts-second);
}

.appointment-form__text--danger {
  color: var(--texts-error);
}

.appointment-form__tooltip {
  position: absolute;

  margin-top: 12px;
  margin-left: 11px;
}

.hotel-rating {
  display: flex;
  margin: 0;
}

.hotel-rating::before {
  content: "";

  height: 17px;

  background-image: url("../images/star.svg");
  background-repeat: repeat-x;
}

.hotel-rating--bad::before {
  width: 24px;
}

.hotel-rating--not-bad::before {
  width: 48px;
}

.hotel-rating--normal::before {
  width: 72px;
}

.hotel-rating--good::before {
  width: 96px;
}

.hotel-rating--very-good::before {
  width: 120px;
}

.user-rating {
  margin: 0;
  padding: 9px 10px 8px 11px;

  font-size: 16px;
  line-height: 125%;
  text-align: center;
  text-transform: uppercase;

  background: var(--forms-elements-2);
  border-radius: 4px;
}

.filters-form {
  display: flex;
  flex-wrap: wrap;
  margin: 0;

  gap: 70px;
}

.filters-form__fieldset {
  margin: 0;
  padding: 0;

  border: none;
}

.filters-form__fieldset-caption {
  margin-bottom: 32px;
  padding: 0;

  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  color: var(--texts-background-deafault);
  text-transform: capitalize;
  word-break: break-all;
}

.filters-form__options-list {
  display: flex;
  flex-direction: column;

  gap: 16px;
}

.filters-form__buttons {
  display: flex;
  flex-direction: column;
  width: 191px;
  margin-top: 56px;

  gap: 32px;
}

.filters-form__range-field {
  width: 288px;
  margin-left: 80px;
}

.newsletter-form {
  display: grid;
  width: 452px;

  border-radius: 4px 0 0 4px;

  grid-template-areas: "input button";
  grid-template-columns: 1fr 232px;
}

.newsletter-form__input {
  padding: 14px 20px;

  font-weight: 400;
  font-size: 18px;
  line-height: 133%;
  font-family: inherit;
  color: var(--texts-texts-basic);

  background-color: var(--forms-elements-2);
  border: none;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;

  grid-area: input;
}

.newsletter-form__button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;

  grid-area: button;
}

.product-preview {
  display: grid;
  align-items: start;
  box-sizing: border-box;
  padding: 20px;

  border-radius: 4px;
  outline: 1px solid #e6e6e6;

  gap: 16px 20px;
  grid-template-columns: 1fr 1fr;
}

.product-preview__link {
  text-decoration: none;

  cursor: pointer;

  grid-column: 1/-1;
  grid-row: 1/2;
}

.product-preview__link:hover,
.product-preview__link:focus-visible {
  opacity: 0.5;
}

.product-preview__link:active {
  opacity: 0.7;
}

.product-preview__image {
  display: block;
  width: 100%;
  height: 100%;
}

.product-preview__title {
  margin: 0;

  font-weight: 700;
  font-size: 24px;
  line-height: 117%;
  color: var(--texts-texts-basic);

  grid-column: 1/-1;
  grid-row: 2/3;
}

.product-preview__category {
  margin: 0;

  word-break: break-all;
}

.product-preview__price {
  margin: 0;

  word-break: break-all;

  justify-self: end;
}

.product-preview__button {
  width: 140px;

  grid-column: span 1;
}

.product-preview__hotel-rating {
  align-self: center;
}

.page-header {
  z-index: 1;

  padding-right: 70px;
  padding-left: 70px;
}

.main-navigation {
  display: grid;
  align-items: start;

  column-gap: 20px;

  grid-template-columns: 138px 1fr 176px 160px;
}

.main-navigation__logo {
  display: flex;
  width: 140px;
  height: 70px;
}

.main-navigation__site-navigation {
  margin-left: 10px;

  grid-column: 2/3;
}

.main-navigation__user-navigation {
  grid-column: 3/4;
  justify-self: end;
}

.main-navigation__button {
  min-width: 160px;
  margin-top: 14px;

  grid-column: -1/-2;
}

.catalog {
  display: grid;
  padding-bottom: 40px;

  border-bottom: 1px solid #e6e6e6;

  gap: 20px;
  grid-template-columns: repeat(3, 340px);
}

.hero {
  position: relative;

  padding-top: 51px;
  padding-bottom: 82px;

  background-color: #ddebf4;
  background-image:
    url("../images/divider.svg"),
    url("../images/bg-hero.jpg");
  background-repeat: no-repeat;
  background-position:
    bottom center,
    center 0;
}

.hero__image {
  display: block;
  width: 458px;
  height: 352px;
  margin-right: auto;
  margin-left: auto;
}

.reasons__content {
  padding: 69px 274px 89px;
}

.reasons__title {
  margin: 0;
  margin-bottom: 26px;

  font-weight: 700;
  font-size: 30px;
  line-height: 120%;
  text-align: center;
  color: var(--texts-texts-basic);
  text-transform: uppercase;
}

.reasons__description {
  margin: 0;

  font-size: 22px;
  line-height: 118%;
  text-align: center;
  color: var(--texts-second);
}

.reasons__list {
  display: grid;
  margin: 0;
  padding: 0;

  list-style-type: none;

  grid-template-columns: repeat(3, 400px);
}

.reasons__image {
  display: block;
  width: 100%;
  height: 100%;
}

.reasons__item {
  background-color: var(--background-second-1);

  grid-column: span 1;
}

.reasons__item-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 113px 85px 111px;

  gap: 30px;
}

.reasons__item:nth-child(odd):not(.reasons__item--theme-accent) {
  background-color: var(--background-second-2);
}

.reasons__item-content::before {
  content: "";

  width: 60px;
  height: 2px;

  background-color: var(--background-basic-2);
}

.reasons__item-title {
  order: -1;
  margin: 0 27px;

  font-weight: 700;
  font-size: 24px;
  line-height: 117%;
  text-align: center;
  color: var(--texts-texts-basic);
  text-transform: uppercase;
}

.reasons__item-description {
  margin: 0;

  text-align: center;
}

.reasons__item--theme-accent {
  background-color: var(--buttons-second);
}

.reasons__item--theme-accent .reasons__item-content {
  padding-top: 103px;
  padding-bottom: 101px;
}

.reasons__item--theme-accent .reasons__item-content::before {
  background-color: var(--texts-background-small);
}

.reasons__item--theme-accent .reasons__item-title {
  margin-right: 29px;
  margin-left: 29px;

  color: var(--texts-background-deafault);
}

.reasons__item--theme-accent .reasons__item-description {
  color: var(--texts-background-deafault);
}

.reasons__item--wide {
  display: grid;

  grid-column: 1/-1;
  grid-template-columns: 400px 1fr;
}

.reasons__item--direction-reverse {
  grid-template-columns: 1fr 400px;
}

.reasons__item--direction-reverse .reasons__image {
  order: -1;
}

.recommendations__content {
  padding: 64px 347px;
}

.recommendations__title {
  margin: 0;
  margin-bottom: 21px;

  font-weight: 700;
  font-size: 30px;
  line-height: 120%;
  text-align: center;
  color: var(--texts-texts-basic);
  text-transform: uppercase;
}

.recommendations__text {
  margin: 0;

  font-size: 22px;
  line-height: 118%;
  text-align: center;
  color: var(--texts-second);
}

.recommendations__list {
  display: grid;
  margin: 0;
  padding: 0;

  list-style: none;

  grid-template-columns: repeat(3, 400px);
}

.recommendations__item {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 183px 85px 80px;

  gap: 29px;
}

.recommendations__list--stripped .recommendations__item:nth-child(odd) {
  background: var(--background-second-1);
}

.recommendations__item--house::before {
  content: "";
  position: absolute;
  top: 80px;
  right: auto;
  left: 162px;

  width: 77px;
  height: 72px;

  background-image: url("../images/icon-house.svg");
  background-repeat: no-repeat;
}

.recommendations__item--burger::before {
  content: "";
  position: absolute;
  top: 80px;
  right: auto;
  left: auto;

  width: 76px;
  height: 72px;

  background-image: url("../images/icon-burger.svg");
  background-repeat: no-repeat;
}

.recommendations__item--gift::before {
  content: "";
  position: absolute;
  top: 78px;
  right: auto;
  left: auto;

  width: 76px;
  height: 76px;

  background-image: url("../images/icon-gift.svg");
  background-repeat: no-repeat;
}

.recommendations__item-title {
  margin: 0;

  font-weight: 700;
  font-size: 24px;
  line-height: 117%;
  text-align: center;
  color: var(--texts-texts-basic);
  text-transform: uppercase;
  word-break: break-all;
}

.recommendations__item-description {
  margin: 0;

  text-align: center;
  color: var(--texts-second);
}

.hotels {
  padding: 97px 304px 96px;
}

.hotels__title {
  margin: 0;
  margin-bottom: 21px;

  font-weight: 700;
  font-size: 30px;
  line-height: 120%;
  text-align: center;
  color: var(--texts-texts-basic);
  text-transform: uppercase;
}

.hotels__text {
  margin: 0;
  margin-bottom: 53px;

  font-size: 22px;
  line-height: 118%;
  text-align: center;
  color: var(--texts-second);
}

.hotels__button {
  display: block;
  width: 376px;
  margin-right: auto;
  margin-left: auto;
}

.newsletter {
  padding: 96px 258px 104px;

  background-color: #ffffff;
}

.newsletter--theme-cover {
  background-color: #97acba;
  background-image: url("../images/bg-newsletter.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.newsletter__title {
  margin: 0;
  margin-bottom: 21px;

  font-weight: 700;
  font-size: 30px;
  line-height: 120%;
  text-align: center;
  color: var(--texts-texts-basic);
  text-transform: uppercase;
}

.newsletter__text {
  width: 475px;
  margin: 0 auto 54px;

  font-size: 22px;
  line-height: 118%;
  text-align: center;
  color: var(--texts-second);
}

.newsletter__form {
  width: 100%;
}

.newsletter--theme-cover .newsletter__title {
  color: var(--texts-background-deafault);
}

.newsletter--theme-cover .newsletter__text {
  color: var(--texts-background-deafault);
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 45px 70px 35px;

  gap: 40px;
}

.page-footer__social {
  width: 282px;
}

.page-footer__contacts {
  width: 500px;
  margin-left: 57px;
}

.page-footer__phone {
  font-size: 40px;
  line-height: 100%;
  text-align: center;
  color: var(--texts-texts-basic);
  text-transform: uppercase;
  text-decoration: none;
}

.page-footer__phone:hover,
.page-footer__phone:focus-visible {
  color: var(--texts-hover);
}

.page-footer__phone:active {
  color: var(--texts-active);
}

.page-footer__logo {
  display: flex;
  align-self: center;
  width: 115px;
  height: 34px;
  margin-left: auto;

  fill: #000000;
}

.page-footer__logo:hover,
.page-footer__logo:focus-visible {
  fill: #756157;
}

.page-footer__logo:active {
  fill: #756157;
  fill-opacity: 0.3;
}

.catalog-products {
  padding: 49px 70px 60px;
}

.catalog-products__headline {
  display: grid;
  align-items: center;
  margin-bottom: 40px;

  gap: 70px;
  grid-template-columns: 1fr 292px 160px;
}

.catalog-products__display {
  margin-top: -1px;
}

.catalog-products__count {
  margin: 0;

  font-weight: 700;
  font-size: 30px;
  line-height: 120%;
  color: var(--texts-texts-basic);
  text-transform: uppercase;
}

.catalog-products__catalog {
  margin-bottom: 39px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;

  display: none;
  width: 100%;
  height: 100%;

  background-color: rgba(242, 242, 242, 0.8);
}

.modal--opened {
  display: flex;
}

.modal__content {
  position: relative;

  box-sizing: border-box;
  width: 717px;
  margin: auto;
  padding: 64px 70px;

  background-color: var(--texts-background-deafault);
  border-radius: 30px;
  box-shadow: 0 25px 50px 0 rgba(0, 0, 0, 0.15);
}

.modal__title {
  margin: 0;
  margin-bottom: 64px;

  font-weight: 700;
  font-size: 30px;
  line-height: 120%;
  color: var(--texts-texts-basic);
  text-transform: uppercase;
}

.modal__close {
  position: absolute;
  top: 64px;
  right: 52px;

  width: 52px;
  height: 52px;

  background-color: var(--forms-elements-2);
  background-image: url("../images/icon-close.svg");
  background-repeat: no-repeat;
  background-position: top 19px left 19px;
  border: none;
  border-radius: 100%;
  outline: none;
  cursor: pointer;
}

.modal__close:hover {
  background-color: #e6e6e6;
}

.modal__close:focus-visible {
  background-color: #e6e6e6;
  outline: 3px solid var(--icons-second);
}

.modal__close:active {
  background-color: #e6e6e6;
  opacity: 0.3;
}

.page {
  min-width: 1200px;
  margin: 0;
  padding: 0;

  font-weight: 400;
  font-size: 18px;
  line-height: 117%;
  font-family: var(--font-family), sans-serif;
  color: var(--texts-second);

  background-color: var(--forms-elements-2);
}

.page__content {
  margin-top: -6px;
}

.page__content-header {
  padding: 35px 70px 71px;

  background-color: #946554;
  background-image: url("../images/bg-inner.jpg");
  background-repeat: no-repeat;
  background-position: center 0;
  background-size: cover;
}

.page__inner-title {
  margin: 0;
  margin-bottom: 8px;

  font-weight: 700;
  font-size: 60px;
  line-height: 130%;
  color: var(--texts-background-deafault);
}

.page__breadcrumbs {
  margin-bottom: 40px;
}

.page__layout {
  display: grid;
  min-height: 100vh;

  grid-template-rows: auto 1fr auto;
}

.page__shadow {
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.2);
}
