@font-face {
    font-family: Inter;
    src: url(fonts/InterLight.ttf);
}
@font-face {
    font-family: InterLight;
    src: url(fonts/InterExtraLight.ttf);
}
@font-face {
    font-family: cuyabra;
    src: url(fonts/cuyabra.ttf);
}


:root {
    --bg-color: #FAFAFA;
    --text-color: #000000;
    --inactive-button: #606060;
    --footer: #C0C0C0;
    --header-bg: rgba(250, 250, 250, 0.7);
}

.dark-theme {
    --bg-color: #121212;
    --text-color: #FAFAFA;
    --inactive-button: #909090;
    --footer: #1a1a1a;
    --header-bg: rgba(20, 20, 20, 0.7);
}

body {
    font-family: Inter;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0px;
    stroke-width: 0.1rem;
    
    overflow-x: hidden;
}

html, body {
    margin: 0;
}

body {
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.visible {
    opacity: 1;
}

header {
    z-index: 6;
    padding: 0.5rem 1rem;
    position: fixed;
    display: flex;
    background-color: var(--header-bg);
    backdrop-filter: blur(0.5rem);
    left: 0;
    top: 0;
    right: 0;
    height: 2rem;
    align-items: center;
    justify-content: space-between;
}

.logotype {
    font-family: cuyabra;
    font-size: 1.7rem;
    color: var(--text-color);
    text-decoration: none;
    cursor: default;
}

header a {
    color: var(--inactive-button);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease-in-out;
}

header a:hover {
    color: var(--text-color);
}

h1 {
    font-size: 4rem;
    margin: 0;
}

h3 {
    text-align: right;
    font-size: 1.5rem;
}

.header-links {
    display: flex;
    align-items: end;
    gap: 1rem;
}

#switch-mode {
    display: flex;
    cursor: pointer;
}

#main {
    padding: 0.5rem 1rem;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.adaptiveMain {
    display: flex;
}

#main > div:first-child {
    width: 100%;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}

.mainLabel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#main img {
    width: 30rem;
    height: auto;
}

.moreMain {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1rem;
}

.moreMain svg {
    width: auto;
    height: 1.5rem;
}

h2::before {
    content: "/";
}

h2::after {
    content: "/";
}

#catalog {
    padding: 0.5rem 1rem;
    scroll-margin-top: 3rem;
}

#contact {
    padding: 0.5rem 1rem;
    scroll-margin-top: 3rem;
}

.CategoryTitle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: calc(-50vw + 50%); 
    padding-right: 1rem;
    box-sizing: border-box;
}

.CategoryTitle h2 {
    margin: 0;
    font-family: cuyabra;
    font-size: 3rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.CategoryTitle img {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 1rem;
    object-fit: fill;
}

.catalogMenu {
    margin-top: 1rem;
    border: var(--text-color) 0.1rem solid;
    border-radius: 2rem;
}

#products div img {
    width: 20rem;
    height: auto;
}

#products div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    height: auto;
    width: 26rem;
    border: var(--text-color) 0.1rem solid;
    border-radius: 1rem;
    font-family: InterLight;
    font-size: 2rem;
    text-align: center;
}

#products div p {
    margin: 0;
}

#products div a {
    color: var(--inactive-button);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

#products {
    padding: 1rem 1rem 0rem 1rem;
    display: flex;
    user-select: none;
    overflow-x: auto;
    scroll-behavior: smooth;
    border-radius: 2rem 2rem 0 0;
    gap: 1rem;
}

#products.dragging {
    cursor: grabbing;
}

#products img {
    -webkit-user-drag: none;
    user-select: none;
}

#moreCatalog {
    border: var(--text-color) 0.1rem solid;
    margin: 1rem;
    border-radius: 1rem;
    display: flex;
    padding: 1rem;
    font-size: 2rem;
    height: 3rem;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}

#moreCatalog svg {
    height: 3rem;
    width: auto;
}

.catalogMenu a {
    text-decoration: none;   
}

.contactMenu {
    display: flex;
    margin-top: 1rem;
}

.contactMenu a {
    text-decoration: none;
}

.buttonLinks {
    font-size: 2rem;
    font-family: InterLight;
    color: var(--text-color);
    display: flex;
    height: 3rem;
    border: var(--text-color) 0.1rem solid;
    border-radius: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.buttonLinks svg {
    height: 3rem;
    width: auto;
}

.buttonList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contactMenu img {
    margin-top: 1rem;
    border-radius: 1rem;
    width: 67vw;
}

.firstAlarm p {
    margin: 0;
    padding: 0 1rem;
    font-family: InterLight;
    font-size: 2.5rem;
    text-align: right;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--footer);
    border-radius: 2rem 2rem 0 0;
    padding: 1rem;
    gap: 2rem;
}

.otherTitles {
    font-family: InterLight;
    font-size: 1.5rem;
    width: 55vw;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.otherTitles p, h4 {
    margin: 0;
}

footer > div {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footerLinks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.5rem;
}

.footerLinks a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.footerLinks a:hover {
    color: var(--inactive-button);
}

.footerLinks h4 {
    font-family: cuyabra;
}

#other p {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
    font-family: InterLight;
}

#other p a {
    color: var(--text-color);
}

.labelProduct {
    position: relative;
    display: inline-block;
}

.bgPattern2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 1;
    pointer-events: none; 
}

.highlight2 {
    position: relative;
    z-index: 2;
}

.highlight1 {
    position: relative;
    display: inline-block;
    z-index: 2;
}

.highlight1::before {
    content: "";

    position: absolute;
    inset: 0;

    width: 120%;
    height: 120%;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);

    background: url("images/deshevo.svg") center no-repeat;
    background-size: contain;
    background-position: left center;

    z-index: -1;
    filter: brightness(1);
}

.dark-theme .highlight1::before {
    filter: brightness(0.7);
}

#catalog,
#contact,
#other {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 1.6s ease, transform 0.8s ease;
}

#catalog.visible,
#contact.visible,
#other.visible {
    opacity: 1;
    transform: translateY(0);
}

#other {
    display: flex;
}


@media (max-width: 768px) {

    #itemDescription {
        display: none;
    }

    .labelProduct {
        opacity: 0;
    }

    .contactMenu {
        flex-direction: column;
    }

    footer > div {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 2rem;
    }

    .otherTitles {
        width: 90%;
    }

    .footerLinks {
        align-items: center;
    }

}

@media (min-width: 1900px) {

    header {
        height: 4rem;
        padding: 1rem 2rem;
    }

    h1 {
        font-size: 6rem;
    }

    h3 {
        font-size: 2rem;
    }

    .logotype {
        font-size: 3.4rem;
    }

    header a {
        font-size: 3rem;
    }

    .header-links {
        gap: 2rem;
    }

    #dark-icon {
        height: 3rem;
        width: auto;
    }

    #light-icon {
        height: 3rem;
        width: auto;
    }

    #main {
        padding: 1rem 2rem;
    }

    #main img {
        width: 45rem;
    }

    #main .moreMain p {
        font-size: 2rem;
    }

    .moreMain svg {
        height: 2rem;
        width: auto;
    }

    #catalog, #contact {
        padding: 1rem 2rem;
        scroll-margin-top: 6rem;
    }

    .CategoryTitle {
        gap: 2rem;
    }

    .CategoryTitle h2 {
        font-size: 5rem;
    }

    .catalogMenu {
        margin-top: 2rem;
        border-radius: 4rem;
    }

    #products div img {
        width: 30rem;
    }

    #products div {
        padding: 2rem;
        width: 30rem;
        border-radius: 2rem;
        font-size: 3rem;
    }

    #products {
        gap: 2rem;
        padding: 2rem 2rem 0 2rem;
        border-radius: 4rem 4rem 0 0;
    }

    #moreCatalog {
        font-size: 3rem;
        height: 5rem;
        margin: 2rem;
        padding: 2rem;
        border-radius: 2rem;
    }

    #moreCatalog svg {
        height: 4rem;
    }

    .buttonLinks {
        font-size: 4rem;
        height: 5rem;
        border-radius: 2rem;
        padding: 2rem;
    }

    .buttonList {
        gap: 2rem;
    }

    .buttonLinks svg {
        height: 5rem;
        width: auto;
    }

    .contactMenu {
        margin-top: 2rem;
    }

    .contactMenu img {
        margin-top: 2rem;
        border-radius: 2rem;
    }

    .firstAlarm p {
        padding: 0 2rem;
        font-size: 4rem;
    }

    footer {
        border-radius: 4rem 4rem 0 0;
        gap: 4rem;
        padding: 2rem;
    }

    .otherTitles {
        font-size: 3rem;
    }

    footer > div {
        gap: 3rem;
    }

    .footerLinks {
        gap: 2rem;
        font-size: 2rem;
    }

    #other p {
        font-size: 2rem;
    }
}

@media (min-width: 3400px) {

    header {
        height: 8rem;
        padding: 2rem 4rem;
    }

    h1 {
        font-size: 10rem;
    }

    h3 {
        font-size: 4rem;
    }

    .logotype {
        font-size: 6rem;
    }

    header a {
        font-size: 6rem;
    }

    .header-links {
        gap: 4rem;
    }

    #dark-icon {
        height: 6rem;
        width: auto;
    }

    #light-icon {
        height: 6rem;
        width: auto;
    }

    #main {
        padding: 2rem 4rem;
    }

    #main img {
        width: 70rem;
    }

    #main .moreMain p {
        font-size: 4rem;
    }

    .moreMain svg {
        margin-left: 4rem;
        height: 3rem;
        width: auto;
    }

    #catalog, #contact {
        padding: 2rem 4rem;
        scroll-margin-top: 12rem;
    }

    .CategoryTitle {
        gap: 2rem;
    }

    .CategoryTitle h2 {
        font-size: 8rem;
    }

    .catalogMenu {
        margin-top: 4rem;
        border-radius: 8rem;
    }

    #products div img {
        width: 50rem;
    }

    #products div {
        padding: 2rem;
        width: 50rem;
        border-radius: 4rem;
    }

    #products {
        gap: 4rem;
        padding: 4rem 4rem 0 4rem;
        border-radius: 8rem 8rem 0 0;
    }

    #moreCatalog {
        height: 10rem;
        margin: 4rem;
        border-radius: 4rem;
    }

    #moreCatalog svg {
        height: 8rem;
    }

    .buttonLinks {
        font-size: 6rem;
        height: 10rem;
        border-radius: 4rem;
        padding: 4rem;
    }

    .buttonList {
        gap: 4rem;
    }

    .buttonLinks svg {
        height: 10rem;
        width: auto;
    }

    .contactMenu {
        margin-top: 4rem;
    }

    .contactMenu img {
        border-radius: 4rem;
    }

    .firstAlarm p {
        padding: 0 4rem;
        font-size: 7rem;
    }

    footer {
        border-radius: 8rem 8rem 0 0;
        gap: 8rem;
        padding: 4rem;
    }

    .otherTitles {
        font-size: 6rem;
    }

    footer > div {
        gap: 6rem;
    }

    .footerLinks {
        gap: 4rem;
        font-size: 4rem;
    }

    #other p {
        font-size: 4rem;
    }
}
