:root {
    --font-family: "Inter", sans-serif;

    --white: #fff;
    --black: #000;
    --accent: #EF3B45;
    --blue: #1A1E25;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --fz-xsm: 14px;
    --fz-sm: 16px;

    /* theme variables */
    --bg-image: url("../img/ribs-of-praha/body-bg.png");
    --hero-image: url("../img/ribs-of-praha/hero-bg.jpg");
    --logo-image: url("../img/ribs-of-praha/logo.png");

    --surface-dark: #14171C;
    --surface-dropdown: #272A2E;
    --card-bg: #FFFFFF14;
    --text-muted: #C2C2C2;
    --border-soft: #D6D6D633;
    --handle-color: #D6D6D6;
    --modal-handle-color: #84837d;
    --allergens-text: #f4e3c5;
    --popup-confirm-bg: #FFF9F9;
    --footer-border: #4e4d44;
    --footer-bg: linear-gradient(180deg, rgba(244, 227, 197, 0.2) 0%, rgba(0, 0, 0, 0.2) 50.77%, rgba(244, 227, 197, 0.25) 100%);
    --dropdown-active-bg: rgba(20, 23, 28, 0.6);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

button {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    font-family: var(--font-family);
    color: var(--white);
    font-size: var(--fz-sm);
}

a {
    color: var(--white);
    text-decoration: none;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--fz-sm);
    line-height: 100%;
    color: var(--white);
    background-image: var(--bg-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    max-width: 768px;
    margin: 0 auto;
}

.page {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
}

.header-status-bar {
    min-height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-holder {
    display: flex;
    justify-content: space-between;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 10px;
    color: var(--black);
    background-color: var(--white);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 3px 0 #00000026;
    border: none;
}

.info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 99;
}

.info-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    max-width: 90%;
    height: 100%;
    background-color: var(--surface-dark);
    color: var(--white);
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    border: 3px solid var(--accent);
    border-left: none;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: 24px;
}

.info-menu.active {
    transform: translateX(0);
}

.info-overlay.active {
    opacity: 1;
    visibility: visible;
}

.info-menu__inner {
    overflow-y: auto;
}

.info-menu__logo {
    text-align: center;
    margin-bottom: 10px;
}

.info-menu__logo img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.info-menu__title {
    font-size: 24px;
    margin-bottom: 10px;
}

.info-menu__text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.info-menu__close {
    position: absolute;
    top: 15px;
    right: 15px;
}

.info-menu__dropdown {
    width: 100%;
    text-align: left;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    font-size: var(--fz-sm);
    font-weight: 500;
}

.info-menu__dropdown svg {
    transition: transform 0.3s ease-in-out;
    transform: rotate(-90deg);
}

.info-menu__dropdown-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    transition:
        max-height 0.45s ease,
        opacity 0.35s ease;
}

.info-menu__block.active .info-menu__dropdown-content {
    max-height: 200px;
    opacity: 1;
}

.info-menu__block.active .info-menu__dropdown svg {
    transform: rotate(0deg);
}

.info-menu__dropdown-content a {
    display: block;
    color: var(--white);
    padding: 14px 0;
    text-decoration: none;
    border-top: 1px solid var(--border-soft);
}

.info-menu__dropdown-content a:first-child {
    margin-top: 10px;
}

.info-menu__dropdown-content a:last-child {
    padding-bottom: 5px;
}

.info-menu__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-menu__link-holder {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-menu__link-icon {
    padding: 8px;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 2px 0 #1018280D;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item__text {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: var(--fz-xsm);
    display: block;
}

.card {
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    background-color: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius-lg);
}

/* lang popup */
.lang-popup {
    bottom: -100%;
    position: fixed;
}

.lang-popup.active {
    inset: 0;
    z-index: 9999;
    bottom: 0;
}

.lang-popup.active .lang-popup__overlay {
    opacity: 1;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.lang-popup.active .lang-popup__content {
    transform: translateY(0);
}

.lang-popup__overlay {
    opacity: 0;
    transition: 0.3s;
}

.lang-popup__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface-dark);
    color: var(--white);
    border-radius: 24px 24px 8px 8px;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.35s ease-in-out;
    border: 3px solid var(--accent);
    border-bottom: none;
    box-shadow: 0 4px 6px -2px #10182808;
}

.lang-popup__handle {
    width: 40px;
    height: 4px;
    background-color: var(--handle-color);
    border-radius: var(--radius-lg);
    margin: 0 auto 15px;
}

.lang-popup__title {
    font-size: var(--fz-xsm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-popup__text {
    font-size: var(--fz-xsm);
    margin-top: 10px;
}

.lang-popup__text span {
    color: var(--accent);
    font-weight: 600;
}

.lang-popup__confirm {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--accent);
    background-color: var(--popup-confirm-bg);
    color: var(--accent);
    font-weight: 600;
}

.dropdown {
    margin-top: 20px;
    position: relative;
    display: flex;
}

.dropdown__btn {
    width: 60%;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    font-size: var(--fz-xsm);
}

.dropdown__arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: 0.3s;
    margin-bottom: 5px;
}

.dropdown.active .dropdown__arrow {
    margin-bottom: 0;
    transform: rotate(-135deg);
}

.dropdown__list {
    position: absolute;
    bottom: 110%;
    left: 0;
    width: 100%;
    background: var(--surface-dropdown);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
    box-shadow: 0 4px 6px -2px #10182808, 0 12px 16px -4px #10182814;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    height: 272px;
}

.dropdown.active .dropdown__list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown__item {
    padding: 12px;
}

.dropdown__item.is-active {
    background: var(--dropdown-active-bg);
    border-radius: var(--radius-md);
    position: relative;
    padding-right: 30px;
}

.dropdown__item.is-active::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M16.6663%205L7.49967%2014.1667L3.33301%2010%22%20stroke%3D%22%23EF3B45%22%20stroke-width%3D%221.66667%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}

.blockScroll {
    overflow: hidden;
}

/* Dish modal */
.modal-dish {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--surface-dark);
    border: 3px solid var(--accent);
    border-bottom: none;
    border-radius: 24px 24px 8px 8px;
    overflow: hidden;
    transition: bottom 0.4s ease;
    z-index: 1000;
}

.modal-dish.show {
    bottom: 0;
}

.modal-dish-image {
    background-size: cover;
    background-position: center;
    position: relative;
    aspect-ratio: 1;
    width: 100%;
}

.modal-dish-inner {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-dish-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    color: var(--white);
}

.modal-dish-price.price {
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    color: var(--accent);
    margin-top: -8px;
}

.modal-dish-info {
    color: var(--text-muted);
}

.modal-handle {
    position: absolute;
    border-radius: 100px;
    width: 36px;
    height: 5px;
    background: var(--modal-handle-color);
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

.modal-dish-allergens .modal-dish-info {
    color: var(--allergens-text);
}

.modal-dish-allergens-value {
    display: inline;
}

.modal-close {
    position: absolute;
    z-index: 1;
    top: 18px;
    right: 15px;
}
/* Dish modal */

/* Sticky FOOTER */
.footer-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -2px 50px 0 rgba(0, 0, 0, 0.05);
    padding: 10px 40px 20px;
    border-top: 1px solid var(--footer-border);
    backdrop-filter: blur(53.900001525878906px);
    background: var(--footer-bg);
    z-index: 40;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 0;
}

.footer-nav-item {
    color: var(--accent);
    padding: 8px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-nav-item.is-active {
    box-shadow: 0 1px 2px 0 #1018280D;
    border: 1px solid var(--accent);
}

.footer-sticky-space {
    padding-top: 75px;
}