html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --site-header-height: 88px;
    --catalog-card-bg-rgb: 238, 244, 251;
}

@supports (overflow: clip) {

    html,
    body {
        overflow-x: clip;
    }
}

header nav>div:nth-child(2) {
    min-width: 0;
}

header nav>div:nth-child(2) a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

header nav img[src$="logo.png"] {
    display: block;
    width: clamp(136px, 15vw, 196px);
    max-width: 100%;
    height: auto !important;
    max-height: 56px;
    object-fit: contain;
    transform: none !important;
    transform-origin: left center !important;
}

@media (max-width: 1023px) {
    header nav img[src$="logo.png"] {
        width: auto;
        height: 2.5rem !important;
        max-height: 2.5rem;
    }
}

body.has-fixed-site-header {
    padding-top: var(--site-header-height);
}

header.site-fixed-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 70;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[id="about"],
[id="catalog"],
[id="categories"],
[id="contacts"] {
    scroll-margin-top: calc(var(--site-header-height) + 24px);
}

.card-shadow {
    box-shadow: 0 4px 20px rgba(var(--color-navy-rgb), 0.08);
}

.catalog-card-media,
.category-card-media {
    position: relative;
    overflow: hidden;
}

.catalog-card-media {
    aspect-ratio: 4 / 5;
}

.catalog-card-bg,
.category-card-bg,
.product-image-bg {
    background: linear-gradient(180deg,
            rgba(var(--catalog-card-bg-rgb), 0.98) 0%,
            rgba(var(--catalog-card-bg-rgb), 0.88) 100%);
}

.catalog-card-image {
    width: 86%;
    height: 80%;
    object-fit: contain;
}

.category-card-image {
    width: 86%;
    height: 74%;
    object-fit: contain;
}

@media (min-width: 768px) {
    .catalog-card-image {
        width: 88%;
        height: 84%;
    }

    .category-card-image {
        width: 88%;
        height: 78%;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 25s linear infinite;
}

.bg-stripes {
    background-image: linear-gradient(90deg, rgba(var(--color-navy-rgb), 0.04) 1px, transparent 1px);
    background-size: calc(100% / 8) 100%;
}

:root[lang="ru"] {
    --color-navy-rgb: 1, 41, 61;
    --color-light-rgb: 238, 244, 251;
    --catalog-card-bg-rgb: 228, 240, 252;
}

:root[lang="en"] {
    --color-navy-rgb: 58, 28, 113;
    --color-light-rgb: 244, 238, 251;
    --catalog-card-bg-rgb: 239, 231, 252;
}

:root[lang="ar"] {
    --color-navy-rgb: 2, 70, 40;
    --color-light-rgb: 235, 245, 238;
    --catalog-card-bg-rgb: 228, 243, 233;
}

:root[lang="zh"] {
    --color-navy-rgb: 120, 10, 20;
    --color-light-rgb: 251, 238, 238;
    --catalog-card-bg-rgb: 252, 229, 230;
}

.pt-safe {
    padding-top: env(safe-area-inset-top);
}

.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}