@import url('https://fonts.googleapis.com/css2?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 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a,
span,
button,
label,
input,
textarea {
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
}

ol, ul {
    list-style-type: none;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

/* stick footer */

.body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;

    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;
    padding: 8px 16px;
}

.button.primary {
    background: #1890FF;
    border: 1px solid #1890FF;
    color: white;
}

/* header */

.header {
    padding: 44px 0;
}

.header-row{
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.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-links > * + * {
    margin-left: 15px;
}

.footer-link {
    color: #595959;
    font-size: 18px;
    text-decoration: none;
}

.footer-link:hover {
    color: #000;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 21px;
}

/* .footer-right > * + * {
    margin-left: 21px;
} */

.social-link {
    transition: all 0.3s ease-in;
}

.social-link:hover {
    scale: 1.2;
}

/* banner */

.banner {
    position: relative;
}

.banner-item {
    background: #fff1b8;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    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: bold;
    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, #fff 0%, #f5f5f5 100%);
}

.restaurants {
    padding-top: 56px;
}

.restaurants-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.title-2 {
    font-weight: 700;
    font-size: 36px;
}

.restaurants-search {
    display: block;
    width: 306px;
}

.search-label, .search {
    width: 100%;
}

.search-label {
    position: relative;
}

.search {
    background: #fff;
    border: 1px solid #d9d9d9;
    padding: 5px 12px 5px 32px;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    border-radius: 2px;
    outline: none; /*Для обнуления рамки возле input*/
}

.search:focus {
    border: 1px solid #484848a3;
}

.search::placeholder {
    color: #bfbfbf;
}

.search-icon {
    width: 18px;
    height: 18px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* restaurants-list */

.restaurants-list, .products-list {
    display: grid;  /*сетка*/
    grid-template-columns: repeat(3, 1fr); /*сколько колонок будет в сетке, вторым значение указывается на сколько делить (При выборе 1fr позволяем гриду
    самому распределить одинаково все элементы)*/
    gap: 24px 30px;
    padding-top: 44px;
}

.restaurant, .product {
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
}

.restaurant-image {
    height: 250px;
    overflow: hidden;
}

.restaurant-image .image {
    object-position: center; /*Позиционирование объекта относительно родителя*/
}

.restaurant-content, .product-content {
    padding: 20px 22px 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;
}

.time {
    background-color: #262626;
    color: #fff;
    padding: 1px 8px;
    font-size: 12px;
    line-height: 1.6;
    border-radius: 2px;
}

.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;
}

.restaurant .description, .products .description {
    font-size: 18px;
    line-height: 1.7;
    color: #8c8c8c;
}

.restaurant .description > * + *, .products .description > * + * {
    margin-left: 10px;
}
.dot {
    font-weight: 900;
}

/* .restaurant-link .image {
    transition: scale 0.3s ease-in;
}

.restaurant-link:hover .image {
    scale: 1.2;
} */

.restaurant-link{
    transition: all 0.3s linear;
}

.restaurant-link:hover{
    transform: translateY(-10px);     /*Перемещение по оси Y при наведении на ссылку*/
}

.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 {
    font-size: 18px;
    color: #8c8c8c;
    margin-bottom: 24px;
}

.product-option .button {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.product-option {
    display: flex;
    align-items: center;
    gap: 30px;
}

.product .price {
    font-size: 20px;
    line-height: 1.6;
}