@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --roboto: "Roboto", sans-serif;
  --container-width: 1200px;
  --container-padding: 16px;
}

/* ----------------------------------------------------------------------------------------------------------------------- */
*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-family: inherit;
}

a,
input,
label,
span,
textarea,
button {
  display: inline-block;
}

ol,
ul {
  list-style-type: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ------------------------------------------------------------- */
/* sticky footer - растягивание между элементами */

.body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh; /*100% область видимости*/
  font-family: var(--roboto);
  font-weight: normal;
}

.body > * {
  flex-shrink: 0; /*не сжимать данные*/
}

.body > main {
  flex-grow: 1; /*растягивание контента*/
}

.container {
  width: calc(var(--container-width) + (var(--container-padding) * 2));
  padding: 0 var(--container-padding);
  margin: 0 auto;
}

.button {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  color: #595959;
  font-size: 16px;
  line-height: 1.5; /*24px/16px=1.5%*/
  padding: 8px 16px;
}

.button.primary {
  background: #1890ff;
  border: 1px solid #1890ff;
  color: #fff;
}

/* Header */
.header {
  padding: 44px 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  gap: 10px; /*gap - невидимый отступ между элементами*/
}

.header-buttons > * + * {
  margin-left: 8px;
}

.header-buttons {
  font-size: 0;
}

.header-buttons .button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Footer */

.footer {
  padding: 60px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  gap: 36px;
  align-items: center;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 21px;
}

.footer-links > * + * {
  margin-left: 15px;
}

.footer-link {
  color: #595959;
  font-size: 18px;
  text-decoration: none;
}

.footer-link:hover {
  color: #000;
}

.social-link {
  transition: all 0.3s ease-in; /*плавное увеличение иконок*/
}

.social-link:hover {
  scale: 1.2; /*scale - увеличение масштаба*/
}

/* Banner */

.banner {
  position: relative;
}

.banner-item {
  background: #fff1b8;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  padding: 68px 70px;
}

.banner-item-content {
  width: 538px;
  color: #302c34;
}

.banner-item-content > *:not(:last-child) {
  /* (> * + *) */
  margin-bottom: 15px;
}

.banner-title {
  font-size: 39px;
  font-weight: 700; /*bold*/
  color: #302c34;
  padding-right: 100px;
}

.banner-description {
  font-size: 24px;
}

.banner-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
}

.main {
  padding: 18px 0 90px;
  background: linear-gradient(to bottom, #ffffff 0%, #c3c3c3 100%);
}

.restaurants {
  padding-top: 56px;
}

.restaurants-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.title-2 {
  font-weight: 700; /*bold*/
  font-size: 36px;
}

.restauirants-search {
  display: block;
  width: 306px;
}

.search-label,
.search {
  width: 100%;
}

.search-label {
  position: relative;
}

/* обнуляем переключение цвета на нашем поисковике*/
/* .input:focus,
.input {
  outline: none; 
}  */

.search {
  background: #fff;
  border: 1px solid #d9d9d9; /*solid - прямая линия*/
  padding: 5px 12px 5px 32px;
  border-radius: 2px;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  outline: none; /*для обнуления */
}

.search:focus {
  outline: 1px solid #999999;
}

.search::placeholder {
  color: #bfbfbf;
}

.search-icon {
  width: 18px;
  height: 18px;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%); /*по оси Y ровное расположение по центру*/
}

/* RESTAURANT-LIST */

.restaurants-list,
.products-list {
  display: grid; /*сетчатая деления указанного родителя*/
  /*1fr - 100% деление карты. данный момент делить родительский элемент ровно на 3*/
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 30px;
  padding-top: 44px;
}

.restaurant,
.product {
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

.restaurant-image {
  height: 250px;
  overflow: hidden;
}

.restauirants-image .image {
  object-position: center; /*object-position - позиционирование объекта относительно родителя*/
}

.restaurant-content,
.product-content {
  padding: 20px 20px 35px;
}

.restaurant-content-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.restaurant-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
}

.restaurant .time {
  background: #262626;
  color: #fff;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.6;
  padding: 1px 8px;
}

.restaurant-content > * + * {
  margin-top: 10px;
}

.restaurant-content-details,
.products-top-details {
  display: flex;
  align-items: center;
  gap: 26px;
}

.restaurant .rating,
.products .rating {
  display: flex;
  gap: 7.5px;
  align-items: center;
  color: #ffc107;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7; /*32px/18px=1.7%*/
}

.restaurant .description,
.products .description {
  font-size: 18px;
  line-height: 1.7;
  color: #8c8c8c;
}

.dot {
  font-weight: 900;
}

.restaurant .description > * + *,
.products .description > * + * {
  margin-left: 10px;
}

/*
.restaurant-list .image {
  transition: scale 0.3s linear; 
}

.restaurant-list:hover .image {
  scale: 1.2;
}
*/

.restaurant-list {
  transition: all 0.3s linear;
}

.restaurant-list:hover {
  transform: translateY(-10px);
  /* transform: translate(-10px, -8px); */
}

.products-top {
  display: flex;
  align-items: center;
  gap: 30px;
}

.products-list {
  padding: 44px 0 112px;
}

.product-image {
  height: 212px;
  overflow: hidden;
}

.product-title {
  line-height: 1.7;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
}

.product-description {
  color: #8c8c8c;
  font-size: 18px;
  margin-bottom: 24px;
}

.product-option .button {
  display: inline-flex;
  gap: 4px;
}

.products-option {
  display: flex;
  align-items: center;
  gap: 30px;
}

.product .price {
  font-size: 20px;
  line-height: 1.6;
}
