* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 10px;
    --primary-text: black;
    --bg-color: white;
    --border: #E6E6E6;
    --banner: #F9F9F9;
    --accent-color: #03A543;
    --category-color: #F5F5F5;
    --button-circle: #D2D2D2;
    --footer-bg: #1C1C1C;
    background-color: var(--bg-color);
}
html[data-theme="dark"] {
    --primary-text: #E6E6E6;
    --bg-color: #1C1C1C;
    --border: #333333;
    --banner: #2A2A2A;
    --accent-color: #03A543;
    --favorite-color: #FF5555;
    --category-color: #2A2A2A;
    --button-circle: #555555;
    --footer-bg: #0F0F0F;
}
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    color: var(--primary-text);
    background-color: var(--bg-color);
}

button {
    border: none;
    background: none;
}

body * {
    font-family: 'Montserrat', sans-serif;
}

.banner {
    background-color: var(--banner);
    display: flex;
    gap: 14.7rem;
    padding-bottom: 8.5rem;
}

h1 {
    margin-top: 12rem;
    font-size: 6.4rem;
    font-weight: bold;
    line-height: 125%;
    max-width: 69rem;
}

p {
    line-height: 140%;
}

.accent {
    color: var(--accent-color);
}

h1 .accent {
    font-weight: 300;
}

.banner img {
    margin-left: 5.4rem;
    width: 32.96vw;
    height: auto;
}

.banner p {
    margin-top: 2.6rem;
    width: 45rem;
    font-size: 1.8rem;
    line-height: 140%;
}

.about {
    margin-top: 18rem;
    padding-left: 10rem;
    padding-right: 10rem;
}

h2 {
    font-size: 4.8rem;
    line-height: 145%;
}

.about h2 {
    margin-top: 2.7rem;
    font-size: 4.8rem;
    width: 75.52vw;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    padding-left: 1rem;
}

.about p {
    width: 63rem;
    text-align: center;
    margin-top: 1.2rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 2rem;
}

.about .cards {
    display: flex;
    gap: 4.2rem;
    margin-top: 2.2rem;
}

.about .card {
    background-color: var(--banner);
    border-radius: 8px;
    width: 54.5rem;
    height: 30rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.digit {
    font-size: 10.5rem;
    font-weight: 300;
    margin-left: 3.9rem;
    margin-top: 3.5rem;
}

.about .text {
    font-weight: 300;
    font-size: 1.8rem;
    line-height: 130%;
    opacity: 65%;
    margin-left: 2.8rem;
    margin-bottom: 2.3rem;
}

.head {
    display: flex;
    justify-content: space-between;
    margin-top: 18rem;
    margin-bottom: 6.9rem;
}

.catalog {
    margin-top: 1rem;
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 300;
}

.categories_section {
    padding-left: 10rem;
    padding-right: 10rem;
}

.categories {
    display: flex;
    justify-content: space-between;
}

.category {
    width: 9.375vw;
    height: 70rem;
    background-color: var(--category-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 8px;
    align-items: center;
}

.category p {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 2rem;
    width: max-content;
    margin-top: 3rem;
    text-align: center;
    transform: rotate(180deg);
}

.category button {
    margin-bottom: 3.2rem;
}

.category img {
    transform: rotate(90deg);
}

.portfolio {
    margin-top: -1.2rem;
    padding-left: 10rem;
    padding-right: 10rem;
    overflow-x: hidden;
}

.portfolio .head {
    display: flex;
    justify-content: space-between;
    margin-top: 18rem;
    margin-bottom: 6.9rem;
}

.catalog {
    margin-top: 1rem;
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 300;
}

.portfolio .type {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.type ul {
    list-style: none;
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
}

.type li {
    text-decoration: underline;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.type li:hover {
    color: var(--accent-color);
    opacity: 65%;
}

.type li.active {
    font-weight: bold;
    text-decoration: none;
    color: var(--accent-color);
}

.buttons_div {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: -1.6rem;
}

.type button {
    width: 5.2rem;
    height: 5.2rem;
    border: 1px solid var(--button-circle);
    border-radius: 50%;
}

.type button img {
    width: 30%;
    margin-left: auto;
    margin-right: auto;
}

.next {
    transform: scaleX(-1);
}

.portfolio .projects-slider {
    overflow: hidden;
    width: 100%;
    min-width: 84rem;
}

.portfolio .projects {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 4rem;
}

.portfolio .project {
    flex: 0 0 84rem;
    height: 50rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 8px;
}

.portfolio .project .info {
    width: 38rem;
    height: 35rem;
    background: var(--bg-color);
    padding: 1.2rem;
    margin-top: 7.5rem;
    margin-left: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 8px;
    z-index: 1;
    max-width: 80%;
}

.portfolio .project p.category {
    font-size: 1.8rem;
    margin-top: 1.2rem;
}

.portfolio .project h4 {
    font-size: 2.4rem;
    margin-top: 1.2rem;
    min-height: 3rem;
}

.portfolio .project .read {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
    align-items: center;
    font-size: 1.8rem;
}

.portfolio .project .read button {
    transition: transform 0.2s ease;
}

.portfolio .project .read button:hover {
    transform: scale(1.1);
}
.project .category
{
    background: none;
}

@media screen and (max-width: 1280px) {
    .portfolio .project {
        flex: 0 0 70rem;
        height: 42rem;
    }

    .portfolio .project .info {
        width: 32rem;
        height: 30rem;
        margin-top: 6rem;
        margin-left: 3rem;
    }

    .portfolio .project p.category,
    .portfolio .project .read {
        font-size: 1.6rem;
    }

    .portfolio .project h4 {
        font-size: 2rem;
        min-height: 2.5rem;
    }

    .portfolio .projects-slider {
        min-width: 70rem;
    }

    .portfolio .type {
        gap: 1.5rem;
    }

    .type li {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 768px) {
    .portfolio .project {
        flex: 0 0 50rem;
        height: 40rem;
    }

    .portfolio .project .info {
        width: 30rem;
        height: 30rem;
        margin-top: 4rem;
        margin-left: 2rem;
    }

    .portfolio .project p.category,
    .portfolio .project .read {
        font-size: 1.4rem;
    }

    .portfolio .project h4 {
        font-size: 1.6rem;
        min-height: 2rem;
    }

    .portfolio .projects-slider {
        min-width: 50rem;
    }

    .portfolio .type {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .type li {
        font-size: 1.4rem;
    }

    .portfolio .type ul {
        display: none;
    }
}

@media screen and (max-width: 610px) {
    .portfolio {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .portfolio .project {
        flex: 0 0 40rem;
        height: 40rem;
    }

    .portfolio .project .info {
        width: 30rem;
        height: 30rem;
        margin-top: 3rem;
        margin-left: 1.5rem;
    }

    .portfolio .project p.category,
    .portfolio .project .read {
        font-size: 1.2rem;
    }

    .portfolio .project h4 {
        font-size: 1.4rem;
        min-height: 1.8rem;
    }

    .portfolio .projects-slider {
        min-width: 40rem;
    }

    .portfolio .type {
        gap: 0.8rem;
    }

    .type li {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 1280px) {
    .banner {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding-bottom: 4rem;
    }

    .banner img {
        margin-left: 0;
        width: 80%;
        max-width: 500px;
    }

    .banner .content {
        text-align: center;
        padding: 0 2rem;
    }

    h1 {
        font-size: 4.8rem;
        margin-top: 4rem;
    }

    .banner p {
        width: 100%;
        font-size: 1.6rem;
    }

    .about {
        padding-left: 2rem;
        padding-right: 2rem;
        margin-top: 10rem;
    }

    .about h2 {
        font-size: 3.6rem;
        width: 100%;
        padding-left: 0;
    }

    .about p {
        width: 100%;
        font-size: 1.6rem;
    }

    .about .cards {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about .card {
        width: 100%;
        max-width: 400px;
        height: 25rem;
    }

    .categories_section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .categories {
        gap: 2rem;
        justify-content: center;
        transform: rotate(-90deg);
    }

    .category {
        width: 10rem;
        height: 90vw;
    }

    .category p {
        transform: rotate(0deg);
    }

    .portfolio {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 786px) {
    .type {
        justify-content: end;
    }

    .type ul {
        display: none;
    }
}

@media screen and (max-width: 610px) {
    h1 {
        font-size: 3.4rem;
    }

    .about h2 {
        font-size: 2.8rem;
    }

    .head h2 {
        font-size: 2.8rem;
    }

    .head {
        flex-wrap: wrap;
        margin-bottom: 10rem;
        justify-content: center;
    }

    .portfolio {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .portfolio .type {
        justify-content: center;
    }

    .category p {
        font-size: 1.6rem;
    }
}