/*
фоновые изображения главной страницы и фильтра в каталоге подключаются после:
1. импорта графики из figma
2. оптимизации изображений
3. добавления в структуре проекта отдельной папки для графики image

создаём файл style.css в папке css
и подключаем его через link rel="stylesheet" href="./css/style.css"
в index.html
*/


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

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

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

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

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

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  height: 100%;
  color: #333333;
  background-color: #e5e5e5;
  font-family: "PT Sans", sans-serif;
  font-size: 18px;
}

.page-body {
  display: flex;
  flex-direction: column;
  width: 1200px;
  min-height: 100%;
  background-color: #ffffff;
  margin: 0 auto;
}

.page-header-catalog {
  margin-bottom: 0;
}

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

.header-nav {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 30px;
  min-height: 65px;
  padding: 0 70px;
  margin: auto 0;
}

.header-nav-catalog {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 30px;
  min-height: 65px;
  padding: 0 70px;
}

.logo {
  position: relative;
  z-index: 1;
  margin-bottom: -5px;
}

.logo-img {
  display: block;
}

.site-menu {
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  min-height: 65px;
  margin: auto 0;
  padding: 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  list-style-type: none;
}

.site-menu-item {
  display: flex;
  align-items: center;
}

.site-menu-item-active {
  position: relative;
  cursor: pointer;
}

.site-menu-item-active::after {
  content: "";
  position: absolute;
  right: 17px;
  left: 17px;
  bottom: 3px;
  height: 2px;
  background-color: #756257;
  cursor: pointer;
}

.site-menu-link {
  display: block;
  padding: 17px;
  color: #000000;
  text-decoration: none;
}

.site-menu-link[href]:hover {
  color: #756257;
  cursor: pointer;
}

.site-menu-link[href]:active {
  color: #756257;
  opacity: 0.3;
}

.additional-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  max-width: 322px;
}

.additional-menu-button {
  font-family: "PT Sans", sans-serif;
  display: block;
  min-width: 160px;
  padding: 7px 15px;
  border-radius: 4px;
  margin-left: 20px;
  text-align: center;
}

.page-footer {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  align-items: center;
  gap: 30px;
  padding: 27px 62px 20px;
  background-color: #ffffff;
}

.page-footer-social {
  align-self: start;
  margin-top: 8px;
}

.footer-phone {
  padding: 9px 15px 15px;
  color: #000000;
  font-size: 40px;
  line-height: 40px;
  border-radius: 10px;
  text-decoration: none;
}

.footer-phone:hover {
  color: #756257;
}

.footer-phone:active {
  opacity: 0.3;
}

.footer-phone:focus:not(:active) {
  color: #756257;
  outline: 3px solid #83b3d3;
  outline-offset: -3px;
}


.footer-dev {
  display: block;
  margin-right: -12px;
  padding: 6px 22px 12px;
  justify-self: end;
  border-radius: 10px;
}

.footer-dev:hover {
  fill: #756257;
}

.footer-dev:active {
  fill: #756257;
  opacity: 0.3;
}

.footer-dev:focus:not(:active) {
  fill: #756257;
  outline: 3px solid #83b3d3;
  outline-offset: -3px;
}

.footer-dev-img {
  display: block;
}

.main-promo {
  min-height: 485px;
  background-color: #83b3d3;
  background-repeat: no-repeat;
  background-position:
    50% calc(50% - 16px),
    50% calc(100% + 1px),
    50% 50%;
  background-size:
    auto auto,
    100% auto,
    cover;
  background-image:
    url("../img/welcome-promo.svg"),
    url("../img/divider.svg"),
    url("../img/background/bg-promo.jpg");
}

.main-header {
  height: 408px;
  padding: 35px 72px 83px;
  color: #ffffff;
  background-color: #83b3d3;
  background-image: url("../img/background/catalog-bg.jpg");
  background-size: cover;
}

.main-heading {
  margin: 0;
  font-size: 60px;
  line-height: 78px;
}

.section-title {
  margin: 0;
  padding: 0;
  margin-bottom: 36px;
  color: #000000;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
}

.section-description {
  margin: 0;
  padding: 0;
  font-size: 22px;
  line-height: 26px;
}

.button {
  display: inline-block;
  padding: 9px 15px 7px;
  color: #ffffff;
  background-color: #83b3d3;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 21px;
  text-align: center;
}

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

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

.button:focus:not(:active) {
  background-color: #68a2ca;
  outline: 3px solid #615048;
  outline-offset: 0;
}

.button-secondary {
  background-color: #756257;
}

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

.button-secondary:active {
  background-color: #615048;
}

.button-secondary:focus:not(:active) {
  background-color: #615048;
  outline: 3px solid #83b3d3;
}

.button-success {
  background-color: #7db54f;
}

.button-success:hover {
  background-color: #6c9e42;
}

.button-success:active {
  background-color: #6c9e42;
}

.button-success:focus:not(:active) {
  background-color: #7db54f;
}

.button-large {
  line-height: 26px;
  padding: 17px;
  border-radius: 10px;
  font-size: 20px;
}

.icon-button {
  position: relative;
  display: grid;
  place-content: center;
  width: 42px;
  height: 42px;
  fill: #000000;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.icon-button:hover {
  fill: #756257;
}

.icon-button:active {
  fill: rgba(117, 98, 87, 0.3);
}

.icon-button-counter {
  position: absolute;
  top: 3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  color: #ffffff;
  background-color: #7db54f;
  border-radius: 50%;
  line-height: 20px;
  font-size: 10px;
  text-align: center;
}

.icon-button[href]:active .icon-button-counter {
  color: rgba(255, 255, 255, 0.3);
}

.field {
  display: flex;
}

.field-title-info {
  display: flex;
  justify-content: flex-end;
  margin-left: 20px;
}

.field-input::placeholder {
  font-size: 18px;
  color: #000000;
  opacity: 0.6;
}

.field-input {
  width: 100%;
  padding: 0 19px 0 22px;
  background-color: #f2f2f2;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: inherit;
  font-size: 18px;
  line-height: 26px;
}

.field-input:hover {
  background-color: #e6e6e6;
  cursor: pointer;
}

.field-input:focus {
  background-color: #e6e6e6;
  outline: 3px solid #83b3d3;
}

.field-input-error {
  border-color: #ff5757;
}

.field-search {
  display: grid;
  grid-template-columns: 140px 1fr;
  grid-template-rows: 50px;
  column-gap: 15px;
  row-gap: 4px;
}

.field-search .field-title {
  align-self: center;
  font-weight: 700;
}

.field-search .field-input {
  font-weight: 700;
}

.field-message {
  grid-column: 2 / -1;
  font-size: 16px;
}

.field-message-error {
  color: #ff5757;
}

.field-info {
  position: relative;
  width: 25px;
  height: 25px;
  margin-right: 5px;
  margin-left: 10px;
  background-color: #83b3d3;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-image: url("../img/icons/info.svg");
  border-radius: 50%;
}

.field-info-text {
  position: absolute;
  top: calc(100% + 15px);
  left: calc(50% - 128px);
  z-index: 1;
  display: none;
  width: 256px;
  padding: 15px 20px 23px;
  color: #ffffff;
  background-color: #333333;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 400;
}

.field-info-text::before {
  content: "";
  position: absolute;
  top: -9px;
  left: calc(50% - 10px);
  width: 19px;
  height: 9px;
  background-image: url("../img/icons/triangle.svg");
}

.field-info-text::after {
  content: "";
  position: absolute;
  top: -25px;
  right: 0;
  left: 0;
  height: 25px;
}

.field-info:hover .field-info-text {
  display: block;
}

.field-input:required:valid {
  border: 3px solid #06af06;
}

.range {
  margin-top: 35px;
}

.range-fields {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
}

.range-fields::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 2px;
  background-color: #ffffff;
}

.range-fields:hover::before {
  opacity: 0.6;
}

.range-fields:focus-within::before {
  opacity: 1;
}

.range-field {
  display: grid;
  grid-template-columns: 1fr 44px;
}

.range-field:first-child {
  order: -1;
}

.range-input {
  width: 100%;
  grid-column: 1 / -1;
  grid-row: 1 / 2;
  height: 48px;
  padding: 10px 18px;
  padding-right: 50px;
  color: #ffffff;
  background-color: transparent;
  border: 2px solid #ffffff;
  border-radius: 4px;
  font-family: inherit;
  font-size: 18px;
  appearance: textfield;
}

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

.range-field:first-child .range-input {
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.range-field:nth-child(2) .range-input {
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.range-input:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.range-input:focus {
  outline: 3px solid #83b3d3;
  border-color: #ffffff;
  box-shadow: inset 0 0 0 3px #83b3d3;
}

.range-input:not(:placeholder-shown):focus {
  background-color: #756257;
  border-color: #ffffff;
  box-shadow: none;
  outline: none;
}

.range-title {
  grid-column: -2 / -1;
  grid-row: 1 / 2;
  align-self: center;
  justify-self: center;
  margin-top: -2px;
  opacity: 0.3;
  line-height: 18px;
}

.range-field:nth-child(2) .range-title {
  margin-right: 6px;
}

.range-slider {
  margin-top: 28px;
}

.slider {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
}

.slider-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  background-color: #ffffff;
}

.slider-thumb {
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border: none;
  border-radius: 5px;
}

.slider-thumb:last-child {
  position: absolute;
  left: 216px;
}

.slider-thumb:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.slider-thumb:focus {
  outline: 3px solid #83b3d3;
}

.slider-thumb:active {
  outline-width: 2px;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.4);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  margin-top: -10px;
  margin-bottom: 43px;
  margin-left: -8px;
  padding: 0;
  font-size: 16px;
  line-height: 21px;
  list-style: none;
}

.breadcrumbs-item + .breadcrumbs-item {
  position: relative;
  margin-left: 10px;
}

.breadcrumbs-item + .breadcrumbs-item::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  left: -7px;
  width: 5px;
  height: 8px;
  background-image: url("../img/icons/vector-right.svg");
  opacity: 0.3;
}

.breadcrumbs-link {
  display: flex;
  padding: 3px 8px;
  border-radius: 4px;
}

.breadcrumbs-link[href]:hover {
  opacity: 0.6;
}

.breadcrumbs-link[href]:active {
  opacity: 0.3;
}

.breadcrumbs-link:focus {
  outline: 3px solid #83b3d3;
  outline-offset: -3px;
}

.breadcrumbs-link-home {
  width: 28px;
  height: 27px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-image: url("../img/icons/home_1.svg");
}

.card-list {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 18px;
  row-gap: 10px;
  padding-bottom: 34px;
}

.card {
  position: relative;
  z-index: 0;
  display: grid;
  align-items: start;
  grid-template-columns: 1fr 26px 140px;
  grid-template-rows: 206px;
  grid-template-areas:
    "image image image"
    "title title title"
    "description description description"
    "button-more . button-chosen"
    "stars rate rate";
  row-gap: 16px;
  padding: 20px;
}

.card-link {
  grid-area: title;
  color: #000000;
  text-decoration: none;
}

.card-link:focus {
  outline: 0;
}

.card-link::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 160px;
  left: 0;
  z-index: 1;
}

.card-title {
  grid-area: title;
  margin: 0;
  font-size: 24px;
  line-height: 31px;
}

.card-img {
  grid-area: image;
  order: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-link:hover + .card-img {
  opacity: 0.6;
}

.card-link:active + .card-img {
  opacity: 0.3;
}

.card-link:focus:not(:active) + .card-img {
  border: 3px solid #83b3d3; /* ? не работает бордер, добавил прозрачность на фокус    */
  opacity: 0.3;
}

.card-description {
  grid-column: description;
  display: grid;
  grid-template-columns: 1fr 140px;
  column-gap: 26px;
  margin: 0;
  line-height: 23px;
}

.card-more {
  grid-area: button-more;
}

.card-chosen {
  grid-area: button-chosen;
}

.card-rate {
  grid-area: rate;
  justify-self: end;
  min-width: 160px;
  margin: 0;
  padding: 7px 8px 6px;
  background-color: #f2f2f2;
  border-radius: 4px;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  line-height: 24px;
}

.card-star {
  grid-area: stars;
  align-self: start;
}

.star {
  width: 23px;
  margin: 0;
  min-height: 37px;

  background-repeat: repeat-x;
  background-position: 0 50%;
  background-size: 23px 17px;
  background-image: url("../img/icons/variant=star.svg");
}

.star-two {
  width: 46px;
}

.star-three {
  width: 69px;
}

.star-four {
  width: 92px;
}

.star-five {
  width: 115px;
}

.advantages {
  text-align: center;
}

.advantages-content {
  padding: 63px 240px 85px;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style-type: none;
  counter-reset: advantages;
}

.advantage-item {
  display: grid;
  gap: 30px;
  min-height: 384px;
  background-color: rgba(131, 179, 211, 0.12);
  counter-increment: advantages;
}

.advantage-item-large {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  color: #ffffff;
  background: #83b3d3;
}

.advantage-item:not(.advantage-item-large):nth-child(even) {
  background-color: rgba(131, 179, 211, 0.2);
}

.advantage-description {
  display: grid;
  align-content: start;
  gap: 26px;
  min-height: 384px;
  padding: 60px;
  padding-top: 100px;
}

.advantage-description::before {
  content: "— №" counter(advantages) " —";
}

.advantage-list-inner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  color: #333333;
  background: #ffffff;
  list-style: none;
}

.advantage-inner-item {
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 384px;
  padding: 60px;
  padding-top: 184px;
  background-repeat: no-repeat;
  background-size: 76px 76px;
  background-position: 50% 88px;
  background-color: rgba(131, 179, 211, 0.12);
}

.advantage-inner-item:nth-child(even) {
  background-color: #ffffff;
}

.advantage-inner-item-house {
  background-image: url("../img/icons/icon_house.svg");
}

.advantage-inner-item-food {
  background-image: url("../img/icons/icon_burger.svg");
}

.advantage-inner-item-present {
  background-image: url("../img/icons/icon_present.svg");
}

.advantage-title {
  margin: 0;
  color: #000000;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  text-transform: uppercase;
}

.advantage-item-large .advantage-title {
  color: #ffffff;
}

.advantage-inner-item .advantage-title {
  color: #000000;
}

.advantage-list-inner .advantage-item:nth-child(even) {
  background-color: #ffffff;
}

.advantage-description .advantage-title {
  order: -1;
}

.advantage-image {
  grid-column: span 2;
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: cover;
}

.advantage-item-large:nth-child(2) .advantage-image {
  order: -1;
}

.advantage-text {
  margin: 0;
  margin-top: 2px;
  line-height: 21px;
}

.searsh {
  padding: 91px 240px 93px;
  text-align: center;
}

.searsh .section-title {
  margin-bottom: 29px;
}

.searsh .section-description {
  margin-bottom: 56px;
}

.searsh-button {
  width: 575px;
}

.select {
  position: relative;
  z-index: 1;
}

.select-button {
  display: grid;
  grid-template-columns: 1fr 50px;
  padding: 10px 18px;
  padding-right: 0;
  color: #333333;
  border: 2px solid #e6e6e6;
  border-radius: 4px;
  font-size: 18px;
  cursor: default;
  user-select: none;
}

.select-button::-webkit-details-marker {
  display: none;
}

.select-button::after {
  content: "";
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-image: url("../img/icons/vector-down.svg");
  opacity: 0.3;
}

.select-button:hover:not(:active) {
  border-color: #83b3d3;
}

.select-button:active {
  color: rgba(51, 51, 51, 0.3);
}

.select-button:focus:not(:active) {
  outline: none;
  border-color: #83b3d3;
}

.select-button:active::after {
  opacity: 0.3;
}

.select[open] .select-button::after {
  transform: rotate(180deg);
}

.select-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  margin: 0;
  padding: 10px 0;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  list-style: none;
}

.select-item-active {
  background-color: #e6e6e6;
}

.select-option {
  display: block;
  padding: 8px 20px;
  color: #333333;
  text-decoration: none;
}

.select-option:hover {
  background-color: #f2f2f2;
}

.select-item-active .select-option:hover {
  background-color: transparent;
}

.select-option:active {
  color: rgba(51, 51, 51, 0.3);
  background-color: #f2f2f2;
}

.select-label {
  margin: 0;
  margin-right: 50px;
}

.subscribe {
  padding: 40px 200px 138px;
  text-align: center;
}

.subscribe .section-title {
  margin-bottom: 46px;
}

.subscribe-primary .section-title {
  color: #ffffff;
  margin-bottom: 29px;
}

.subscribe-primary {
  padding-top: 94px;
  padding-bottom: 94px;
  color: #ffffff;
  background-color: rgb(131, 179, 211);
  background-image: url("../img/background/bg-subscribe.jpg");
  background-size: cover;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr 200px;
  margin-top: 46px;
}

.subscribe-field .field-input {
  border-radius: 10px 0 0 10px;
}

.subscribe-button {
  border-radius: 0 10px 10px 0;
  font-family: "PT Sans", sans-serif;
}

.social {
  display: flex;
  flex-wrap: wrap;
  margin-right: -2px;
  margin-left: -2px;
  padding: 0;
  list-style-type: none;
}

.social-item {
  margin: 2px;
}

.social-link {
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  fill: #83b3d3;
}

.social-link:hover {
  fill: #68a2ca;
}

.social-link:active {
  opacity: 0.3;
}

.social-link:focus:not(:active) {
  outline: 3px solid #83b3d3;
  outline-offset: -3px;
}

.filter-form {
  display: grid;
  grid-template-columns: 200px 200px 1fr 224px;
  justify-content: space-between;
  gap: 17px;
}

.filter-title {
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.filter-fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.filter-fieldset-price {
  margin-left: 94px;
}

.filter-list {
  margin: 0;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.filter-item + .filter-item {
  margin-top: 11px;
}

.filter-buttons {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  margin-left: 64px;
}

.filter-submit {
  font-family: "PT Sans", sans-serif;
  min-height: 48px;
  margin-bottom: 16px;
}

.filter-submit:not(:active):focus {
  outline-color: #ffffff;
}

.filter-reset {
  align-self: center;
  padding: 3px 14px;
  color: #ffffff;
  background-color: transparent;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 18px;
}

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

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

.filter-reset:not(:active):focus {
  outline: 3px solid #83b3d3;
  outline-offset: -3px;
}

.control {
  position: relative;
}

.control-input {
  position: absolute;
  opacity: 0;
}

.control-lead {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 19px;
  line-height: 24px;
}

.control-lead::before,
.control-lead::after {
  content: "";
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  height: 20px;
  margin-top: 2px;
}

.control-lead::before {
  background-color: #ffffff;
  border-radius: 4px;
}

.control-lead::after {
  display: none;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-image: url("../img/icons/check.svg");
}

.control-input[type="checkbox"]:hover + .control-lead::before {
  background-color: rgba(255, 255, 255, 0.6);
}

.control-input[type="checkbox"]:active + .control-lead::before {
  background-color: rgba(255, 255, 255, 0.3);
}

.control-input:focus + .control-lead::before {
  outline: 3px solid #83b3d3;
}

.control-input:checked + .control-lead::after {
  display: block;
}

.control-input[type="radio"] + .control-lead::before {
  border-radius: 50%;
}

.control-input[type="radio"] + .control-lead::after {
  background-color: #3f5e72;
  background-image: none;
  background-clip: content-box;
  border: 5px solid transparent;
  border-radius: 50%;
}

.catalog {
  padding: 0 72px;
}

.catalog-sort {
  display: grid;
  grid-template-columns: 1fr 287px max-content;
  gap: 80px;
  padding: 44px 0 53px;
}

.catalog-title {
  margin: 0;
  padding-top: 5px;
}

.view {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 224px;
  margin: -4px;
  padding: 0;
  list-style-type: none;
}

.view-item {
  margin: 4px;
}

.view-link {
  display: block;
  width: 48px;
  height: 48px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  border: 2px solid #e6e6e6;
  border-radius: 4px;
}

.view-link-cards {
  background-image: url("../img/icons/cards.svg");
}

.view-link-slides {
  background-image: url("../img/icons/slides.svg");
}

.view-link-list {
  background-image: url("../img/icons/list.svg");
}

.view-link[href]:hover {
  border-color: #83b3d3;
}

.view-link[href]:active {
  border-color: #000000;
}

.view-link:focus {
  outline: none;
  border-color: #83b3d3;
}

.view-item-active .view-link {
  border-color: #000000;
}

.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid #e6e6e6;
}

.pagination-button {
  font-family: "PT Sans", sans-serif;
  min-width: 620px;
  border-radius: 4px;
  line-height: 26px;
}

.pagination-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 29px;
  border-top: 1px solid #e6e6e6;
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -4px;
  padding: 0;
  list-style-type: none;
}

.pagination-item {
  margin: 0 4px;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 55px;
  height: 55px;
  padding: 8px;
  color: #ffffff;
  background: #83b3d3;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.pagination-link:hover {
  background-color: #68a2ca;
}

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

.pagination-link:focus:not(:active) {
  outline: 3px solid #756257;
  outline-offset: 0;
}

.pagination-item-active .pagination-link {
  color: #000000;
  background-color: #f2f2f2;
}

.pagination-select {
  display: flex;
  align-items: center;
  margin-top: -3px;
}

.pagination-select .select {
  min-width: 160px;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
/* !!! отображение модального окна !!! */
  display: none;
  place-content: center;
  background-color: rgba(242, 242, 242, 0.8);
}

/* !!! отображение модального окна через класс!!! */
.modal-opened {
  display: grid;
}

.modal-container {
  position: relative;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr min-content;
  row-gap: 54px;
  width: 715px;
  padding: 70px;
  padding-top: 54px;
  background-color: #ffffff;
  border-radius: 30px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modal-close {
  width: 53px;
  height: 53px;
  padding: 0;
  background-color: #f2f2f2;
  border: none;
  border-radius: 50%;
}

.modal-close::after {
  content: "";
  display: block;
  width: 53px;
  height: 53px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-image: url("../img/icons/cross.svg");
}

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

.modal-close:active::after {
  opacity: 0.3;
}

.modal-close:focus:not(:active) {
  outline: 3px solid #83b3d3;
  outline-offset: 0;
}

.modal-title {
  font-family: "PT Sans", sans-serif;
  align-self: center;
  margin: 0;
  margin-top: 3px;
  margin-left: -2px;
  width: 499px;
}

.modal-content {
  grid-column: 1 / -1;
}

.search-form {
  display: grid;
  grid-template-columns: 50% 1fr;
  grid-template-rows: 50px 50px 50px 60px;
  row-gap: 40px;
}

.search-form-date {
  grid-column: 1 / -1;
}

.search-form-date .field-input {
  background-repeat: no-repeat;
  background-position: right 17px top 50%;
  background-image: url("../img/icons/variant=date.svg");
}

.search-form-date .field-input:not(:placeholder-shown):focus {
  outline: none;
  background-color: #ffffff;
  border: 2px solid #000000;
}

.search-form-date .data-input {
  padding: 0 19px 0 19px;
}

.search-form-button {
  grid-column: 1 / -1;
  font-family: "PT Sans", sans-serif;
}

.number {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  min-width: 133px;
}

.number-input {
  grid-column: 1 / -1;
  grid-row: 1 / 2;
  padding: 2px 50px 0 50px;
  text-align: center;
  appearance: textfield;
}

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

.number-button {
  position: relative;
  z-index: 1;
  grid-row: 1 / 2;
  display: grid;
  place-content: center;
  background-color: transparent;
  border: none;
}

.number-button::after {
  content: "";
  width: 25px;
  height: 25px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  border-radius: 4px;
  opacity: 0.3;
}

.number-button:hover::after {
  opacity: 1;
}

.number-button:active::after {
  opacity: 0.2;
}

.number-button:focus {
  outline: none;
}

.number-button:focus:not(:active)::after {
  outline: 3px solid #83b3d3;
  outline-offset: -3px;
  opacity: 1;
}

.number-button-minus {
  grid-column: 1 / 2;
}

.number-button-minus::after {
  background-image: url("../img/icons/variant=minus.svg");
}

.number-button-plus {
  grid-column: -2 / -1;
}

.number-button-plus::after {
  background-image: url("../img/icons/variant=plus.svg");
}
