:root {
    --color-white: #E0DEDA;

    --color-black: #191918;
    --color-dark: #1f1f1e;

    --color-light-accents: #999996;
    --color-light-outline: #333332;

    --color-blue: rgb(5, 150, 250);
    --color-blue-transparent: rgba(5, 150, 250, 0.1);

    --color-green: rgb(72, 198, 0);
    --color-green-transparent: rgba(72, 198, 0, 0.1);

    --color-purple: rgb(200, 30, 250);
    --color-purple-transparent: rgba(200, 30, 250, 0.16);

    --color-yellow: rgb(255, 200, 0);
    --color-yellow-transparent: rgba(255, 200, 0, 0.1);

    --color-light-background: #262625;

    --color-transparent: rgba(0, 0, 0, 0.033);

    --font-color-dark: #999991;

    --max-width: 1800px;

    --font-size-tiny: 12px;
    --font-size-small: 14px;
    --font-size-base: 16px;
    --font-size-large: 22px;
    --font-size-xl: 26px;

    --font-weight-lite: 300;
    --font-weight-base: 400;
    --font-weight-bold: 700;

    --base-height-nav: 88px;
    --base-height-nav-mobile: 44px;

    --blur-level: 20px;
    --saturate-level: 110%;
    --brightness-level: 75%;

    --brightness-level-on-hover: 123%;
    --brightness-level-on-hover-picture: 104%;

    --border-radius-small: 8px;
    --border-radius-medium: 19px;
    --border-radius-large: 25px;
    --border-radius-force-round: 999px;

    --default-gap: 8px;
    --big-gap: 25px;
    --small-gap: 4px;
    --main-content-gap: 25px;

    --button-height: 43px;
    --nav-mobile-button-height: 20vw;
    --logo-height: 43px;

    --menu-button-height: 26px;

    --catalogue-item-height: 148px;
    --catalogue-item-width: 284px;
    --catalogue-container-padding: 13px 0;
}

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;

    width: auto;

    color: var(--color-white);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: var(--font-weight-base);
    letter-spacing: .33px;
    font-size: var(--font-size-base);

    touch-action: manipulation;
}

button {
    outline: none;
    border: none;
    background: var(--color-light-background);
    cursor: pointer;
    opacity: 1;

    transition: all 0.1s ease;
    box-shadow: 0 0 0px 0px var(--color-light-outline);
}

button.active {
    opacity: 0.6;
}

@media (min-device-width: 769px) {
    button:hover {
        box-shadow: 0 0 8px 2px var(--color-light-outline);
    }
}

html, body {
    overscroll-behavior-x: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: var(--color-black);

    width: 100%;
}

body.no-scroll {
    overflow: hidden;
}

.light-background {
    background-color: var(--color-light-background);
}

.big-font {
    font-size: var(--font-size-large);
}

.bold-font {
    font-weight: var(--font-weight-bold);
}

.container {
    display: flex;
    flex-direction: column;
    gap: var(--main-content-gap);
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.pad-main-cont {
    padding: 100px 0 150px 0;
}

.search-t {
    height: var(--button-height);
    width: 488px;
    display: flex;
}

.logo-svg {
    margin: 0 11px 0 0;
    height: var(--logo-height);
    width: var(--logo-height);
}

.logo-svg img {
    width: 100%;
    height: 100%;
}

.img-cov {
    height: 24px;
}

.img-cov-small {
    height: 11px;
    margin: auto 5px auto 0;
}

.img-cov-medium {
    height: 16px;
    margin: auto 0;
}

.img-cov-adaptive {
    height: 100%;
}

.svg-ico {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
}

.glass {
    background-color: var(--color-transparent);

    backdrop-filter: blur(var(--blur-level)) saturate(var(--saturate-level)) brightness(var(--brightness-level));
    -webkit-backdrop-filter: blur(var(--blur-level)) saturate(var(--saturate-level)) brightness(var(--brightness-level));
}

header, footer {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: var(--base-height-nav);

    border-bottom: 1px solid var(--color-light-outline);
    -webkit-overflow-scrolling: touch;

    z-index: 1500;
}

footer {
    position: absolute;
    bottom: 0;
    top: auto;
    border: none;
}

.force-borders-round {
    border-radius: var(--border-radius-force-round);
}

input {
    color: var(--font-color-dark);
    width: 100%;
    height: 100%;
    background: none;
    box-shadow: none;
    outline: none;
    border: none;
    padding: 5px 44px;
}

input::placeholder {
    color: var(--font-color-dark);
    font-size: var(--font-size-small);
}

.roundy {
    width: var(--button-height);
    height: var(--button-height);
    border-radius: 50%;
}

.claim-sum {
    width: 173px;
    height: var(--button-height);
    border: 1px solid var(--color-light-accents);
}

.padding-width-def {
    padding: 0 15px;
}

.flex-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

.flex-object {
    display: flex;
    align-items: center;
}

.menu-buttons {
    display: flex;
    gap: var(--default-gap);
    margin: 0 0 0 auto;
}

.menu-button {
    width: var(--menu-button-height);
    height: var(--menu-button-height);
    border-radius: var(--border-radius-small);
    background: transparent;
}

.header-actions-center {
    display: flex;
    gap: var(--default-gap);
    margin: 0 0 0 33px;
}

ul {
    display: flex;
}

ul li {
    list-style: none;
}

.widgets-scroll-container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 10px;

    width: 100%;
}

.widgets-scroll-container::-webkit-scrollbar {
    display: none;
}

.widgets-upper {
    display: flex;
    gap: 4vw;
    flex-wrap: nowrap;
    padding: 0 10px;
}

.widget {
    display: flex;
    height: 144px;
    width: 250px;
    max-width: 250px;

    background-color: var(--color-light-background);
    border-radius: var(--border-radius-medium);
    flex: 0 0 auto;

    scroll-snap-align: start;
    scroll-margin: 0 10px;
}

.mobile-only {
    display: none;
}

@media (max-device-width: 768px) {
    .mobile-only {
        display: flex;
    }

    .widget {
        height: 199px;
        width: 460px;
        max-width: 460px;
    }

    .header-actions-center {
        margin: 0;
    }

    .search-t {
        width: 100%;
    }
}

@media (max-device-width: 480px) {
    .widget {
        width: 90vw;
        max-width: 90vw;
    }
}

.non-mobile-only {
    display: none;
}

@media (min-device-width: 769px) {
    .non-mobile-only {
        display: flex;
    }
}

.catalogue-string-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--default-gap);
    width: 100%;

    padding: var(--catalogue-container-padding);
}

.h {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
}

.h2 {
    font-size: var(--font-size-large);
    font-weight: var(--font-weight-bold);
}

.catalogue-string {
}

.catalogue-string-list {
    flex-wrap: nowrap;
    list-style: none;
    gap: var(--default-gap);
    padding: 0 10px;
}

.catalogue-item, .company-widget-container {
    display: flex;
    width: var(--catalogue-item-width);
    height: var(--catalogue-item-height);
    border-radius: var(--border-radius-medium);
    background-color: var(--color-light-background);

    overflow: hidden;
}

.company-widget {
    width: 100%;
    height: 100%;
    filter: brightness(95%);
    object-fit: cover;
    object-position: center;
}

.catalogue-item {
    flex-direction: column;
    border-radius: 0;
    height: auto;
    background-color: transparent;

    scroll-snap-align: start;
    scroll-margin: 0 10px;

    cursor: pointer;
}

@media (min-device-width: 769px) {
    .catalogue-item:hover .catalogue-main-info, .catalogue-item:hover .catalogue-item-tags, .catalogue-item:hover .catalogue-item-description {
        filter: brightness(var(--brightness-level-on-hover));
    }
    .catalogue-item:hover .company-widget {
        filter: brightness(var(--brightness-level-on-hover-picture));
    }
}

.catalogue-item-header {
    display: flex;
    justify-content: space-between;
}

.catalogue-main-info {
    display: flex;
    flex-direction: column;
    padding: 8px 10px 3px 10px;
}

.catalogue-header {
    display: flex;
    justify-content: space-between;
    padding: 5px 13px;
}

.catalogue-button-show-all {
    padding: 0 22px 0 9px;
    border-radius: var(--border-radius-small);
    background: transparent;
}

.small-img-cov {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 10px;
}

.small-img-cov-marg-left {
    margin: 0 0 0 5px;
}

.upper-items {
    flex-direction: column;
    gap: var(--default-gap);
}

.nav-buttons-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 5vw;
    gap: var(--default-gap);
}

.nav-button-big {
    width: calc(90vw - 20vw - var(--default-gap));
    aspect-ratio: 1 !important;
    border-radius: var(--border-radius-medium);
}

.nav-buttons-first-lane-column {
    display: flex;
    flex-direction: column;
    gap: var(--default-gap);
    align-items: flex-end;
}

.nav-button-small {
    width: var(--nav-mobile-button-height);
    height: var(--nav-mobile-button-height);
    border-radius: var(--border-radius-medium);
}

.nav-buttons-first-lane, .nav-buttons-second-lane {
    display: flex;
    justify-content: space-between;
}

.delivery-time {
    display: flex;
    font-size: var(--font-size-small);
}

.catalogue-item-tags {
    display: flex;
    gap: var(--small-gap);
    margin: 5px 0 0 0;
}

.catalogue-item-tag {
    font-size: var(--font-size-tiny);
    padding: 2px 5px;
    border-radius: var(--border-radius-force-round);
}

.catalogue-item-description {
    font-size: var(--font-size-small);
    color: var(--color-light-accents);
    font-weight: var(--font-weight-lite);
    padding: 0 10px;
    margin-bottom: var(--default-gap);
    line-height: 0.98;
}

.item-rating {
    display: flex;
    align-items: start;
}

.item-rating .img-cov-small {
    margin: 5px 5px 0 0;
}

.blue-tag {
    background-color: var(--color-blue-transparent);
    color: var(--color-blue);
}

.green-tag {
    background-color: var(--color-green-transparent);
    color: var(--color-green);
}

.purple-tag {
    background-color: var(--color-purple-transparent);
    color: var(--color-purple);
}

.yellow-tag {
    background-color: var(--color-yellow-transparent);
    color: var(--color-yellow);
}

.catalogue-other-shops-wrapper {
    margin: 55px 0 25px 0;
    padding: 0 2vw;
    flex-direction: column;
}

.catalogue-other-shops-sorter-wrapper {
    display: flex;
    position: relative;

    margin: var(--default-gap);

    width: 100%;
    height: 70px;

    align-items: center;
    border-radius: var(--border-radius-large);

    overflow: hidden;
}

.catalogue-other-shops-sorter {
    display: flex;
    align-items: center;
    position: relative;

    padding: 10px 80px 10px 10px;
    width: 100%;
    height: 100%;

    background-color: var(--color-light-background);
    overflow-y: hidden;
    overflow-x: scroll;
    white-space: nowrap;

    gap: var(--default-gap);

}

.catalogue-sorter-filters {
    display: flex;

    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 60px;
}

.catalogue-sorter-filters img {
    margin: auto;
}

.catalogue-other-shops-sorter::-webkit-scrollbar {
    display: none;
}

.catalogue-sorter-category {
    cursor: pointer;
    padding: 15px 25px;
    border-radius: var(--border-radius-medium);

    transition: all .2s ease-in-out;
}

@media (min-device-width: 768px) {
    .catalogue-sorter-category:hover {
        background-color: var(--color-dark) !important;
    }
}

.catalogue-sorter-category.active {
    background-color: var(--color-black);
}

.catalogue-other-shops {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.popup {
    position: fixed;
    top: 13%;
    left: 50%;

    width: 100%;
    max-width: 350px;

    display: flex;
    justify-content: flex-start;
    align-items: center;

    flex-direction: column;

    padding: 20px 10px;
    z-index: 2000;

    visibility: visible;
    transform: translateY(0) translateX(-50%);

    pointer-events: visible;
    opacity: 1;
    transition: all .4s ease;

    border-radius: var(--border-radius-medium);
    border: 1px solid var(--color-light-outline);
}

.popup.hidden {
    opacity: 0;
    transform: translateY(35%) translateX(-50%);
    visibility: hidden;
    pointer-events: none;
}

.popup-header {
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--big-gap);
    font-size: var(--font-size-large);
    color: var(--color-white);
}

.popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--default-gap);
}

.popup-option {
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--border-radius-medium);
    background-color: transparent;
    color: var(--color-white);
    font-size: var(--font-size-base);
    text-align: left;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.popup-option:hover,
.popup-option:active {
    opacity: 0.9;
}

.popup-overlay {
    position: fixed;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    z-index: 1999;

    visibility: visible;
    pointer-events: visible;

    transition: background-color 0.5s ease;
}

.popup-overlay.hidden {
    pointer-events: none;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    background-color: rgba(0, 0, 0, 0.0);
    visibility: hidden;
}

@media (max-device-width: 768px) {
    .popup {
        width: 100%;
        max-width: 100%;
        height: 100%;
    }

    .popup-header {
        margin-bottom: var(--default-gap);
    }

    .popup-option {
        padding: 12px 14px;
        font-size: var(--font-size-base);
    }
}

.popup-close-button {
    background-color: transparent;
    position: absolute;
    top: 8px;
    right: 8px;
}

.catalogue-scroll-controls {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);


    left: 10px;
    width: min(calc(100vw - 20px), calc(var(--max-width) - 20px));

    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: auto;

    pointer-events: none;
}

.catalogue-scroll-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-black);
    border: 1px solid var(--color-light-outline);

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    opacity: 1;
    visibility: visible;
    transition: all 0.2s ease;

    pointer-events: visible;
}

.catalogue-scroll-button:hover {
    box-shadow: 0 0 8px 2px var(--color-light-outline);
}

.catalogue-scroll-button:disabled {
    opacity: 0;
    cursor: not-allowed;
    visibility: hidden;
    pointer-events: none;
}

.catalogue-scroll-button img {
    width: 16px;
    height: 16px;
}

@media (max-device-width: 768px) {
    .catalogue-scroll-controls {
        display: none;
    }
}