* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background: var(--bg_color);
    font-family: Arial, sans-serif;

    
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}



.container{
    width:100%;
    max-width:600px;
    margin:20px auto;
    padding:15px;
    
}

/* -------------------- HEADER -------------------- */

.header{
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 15px;
}

.restaurant-banner{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* затемнение баннера */
.header::after{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.2);
}

.header h1{
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 90%;

    color: var(--restaurant_name_color);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;

    text-shadow: 2px 2px 8px rgba(0,0,0,.7);

    z-index: 2;
}
/* -------------------- INFORMATION -------------------- */

/*==================================
      ИНФОРМАЦИЯ О РЕСТОРАНЕ
===================================*/

.rest_info_columns{
    display:flex;
    flex-direction:column;
    width: 100%;
    gap:6px;
    align-items: center;
    margin-bottom: 10px;
    padding:20px;
    background:color-mix(in srgb, var(--primary-color) 20%, transparent);
    border-radius:15px;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
}
/*==================================
        СОЦИАЛЬНЫЕ СЕТИ
===================================*/

.social-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    
}


.social-link img{
    width:32px;
    height:32px;
    object-fit:contain;
    margin-left: 10px;
    margin-right: 10px;

    transition:.2s;
}
.social-link:hover img{
    transform:scale(1.05);
}
.social-link:hover:active img{
    transform:scale(0.98);
}

/*==================================
            ОПИСАНИЕ
===================================*/

.main-info{
    padding-bottom:12px;
    text-align:center;
    white-space: pre-line;

    background:color-mix(in srgb, var(--primary-color) 20%, transparent);
    border-radius:15px;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
    margin: 10px auto;
}

.main-info p{
    font-family: Georgia, "Times New Roman", serif;
    margin:0;
    font-size:20px;
    font-style:italic;
    font-weight:600;
    line-height:1.6;
    color:var(--description_color);
    letter-spacing:.5px;
    
}


/*==================================
        ИНФОРМАЦИОННЫЕ СТРОКИ
===================================*/

.block-info{
    display:flex;
    align-items:center;

    min-height:28px;
    padding:4px 0;
    border-bottom:1px solid rgba(0,0,0,.05);
}

/* Последняя строка без линии */

.block-info:last-child{

    border-bottom:none;
}


/*==================================
        ТЕКСТ И ССЫЛКИ
===================================*/

.block-info p,
.block-info a{
    margin:0;
    color:var(--description_color);
    text-decoration:none;
    font-size:16px;
    line-height:1.5;
}

.block-info a{
    font-weight:600;
}

.block-info a:hover{
    color:var(--primary-color);
}


/*------------------------------------*/



.category {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}


.category-header {
    position: relative;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition: transform .2s ease;
}

.category-header:hover{
    transform:scale(1.02);
}
.category-header:active{
    transform:scale(0.98);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-header h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--category_name_color);
    font-size: 30px;
    text-shadow: 0 2px 6px black;
}

.products {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.products.open {
    display: flex;
}

.product {
    display: flex;
    background: color-mix(in srgb, var(--secondary-color) 40%, transparent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}

.product-image{

    width:120px;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:10px;

    flex-shrink:0;
}
 
.product-image img{

    width:100px;
    height:100px;

    object-fit:cover;

    border-radius:7px;
}

.product-content {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text_color);
}

.product-content h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

.product-content p {
    color: var(--text_color);
    font-size: 14px;
    margin-bottom: 10px;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

/*-------кнопка заказа-------*/
.order-button {
    position: sticky;
    bottom: 20px;
    margin: auto;
    width: 90%;
    max-width: 550px;
    z-index: 999; 
    
}

.order-button button {
    width: 100%;
    padding: 15px;

    background-color: var(--primary-color);
    color: var(--secondary-color);

    
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    font-size: 18px;
    cursor: pointer;
    border: 1px solid var(--secondary-color);

    transition:.2s;
}
.order-button button:hover {
    transform: scale(1.01);
}
.order-button button:active {
    transform: scale(0.99);
}


/* ----- выбор языка -----*/
/*==================================
        ВЫБОР ЯЗЫКА
===================================*/

.language-select{
    position:absolute;
    top:15px;
    right:15px;
    z-index:5;
}

/*==================================
        КНОПКА ЯЗЫКА
===================================*/

#languageButton{
    width:42px;
    height:42px;
    display:flex;
    justify-content:center;
    align-items:center;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.65);
    backdrop-filter:blur(4px);
    cursor:pointer;
    font-size:20px;
    color:#444;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
    transition:.2s;
}

#languageButton:hover{
    background:rgba(255,255,255,.9);
    transform:scale(1.05);
}

/*==================================
        СПИСОК ЯЗЫКОВ
===================================*/

.language-menu{
    position:absolute;
    top:50px;
    right:0;
    display:none;
    min-width:140px;
    background:rgba(255, 255, 255, 0.7);
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,.2);
}

.language-menu.open{
    display:block;
}

/*==================================
        ЭЛЕМЕНТ ЯЗЫКА
===================================*/
.language-item{
    transition:.2s;
}

/* сама ссылка */
.language-item a{
    display:block;
    padding:10px 20px;
    text-align:center;
    text-decoration:none;
    color:#444;
    cursor:pointer;
}

/* наведение */
.language-item:hover{
    background:#f2f2f2;
}

.language-item a:hover{
    color:#222;
}

/*==================================
              FOOTER
===================================*/

.footbar{
    width:100%;
    max-width:600px;
    margin: auto;
    margin-top:20px;
    padding:10px 20px;
    background:var(--primary-color);
    border-radius:15px 15px 0 0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:15px;
    color:white;
}


/*==================================
        СТРОКИ ФУТЕРА
===================================*/

.horizontal-fb{
    width:100%;
    text-align:center;
}


.horizontal-fb p{
    margin:0;
    font-size:15px;
    line-height:1;
}


/*==================================
        ССЫЛКИ
===================================*/

.horizontal-fb a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:.2s;
}

.horizontal-fb a:hover{

    opacity:.8;
}