﻿.main-layout {
    background-color: #CFCFCF;
}
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.main-layout {
    display: flex;
    flex-direction: column;
    background-color: var(--color-grey);
    height: 3960px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}
.main-content {
    padding-top: 100px;
}

.workspace {
    padding: 4rem;
    max-width:250vw;
    margin: 0 auto;
    text-align: center;
}

.page-title {
    color: black;
    font-size: 5vw;
    font-weight: 700;
    margin-bottom: 6rem;
    margin-top: -100px;
}

.main-container {
    width: 90%; 
    max-width: 90%; 
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.categories-container {
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin-bottom: 6rem;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.category-button {
    background-color: white;
    color: black;
    border: none;
    border-radius: 138px;
    padding: 1vh 2vw;
    font-size: 3vw;
    font-weight: 700;
    white-space: nowrap;
    min-width: 0;
    flex: 0 1 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: none;
}

.category-button:hover,
.category-button.active {
    background-color: #AFAFAF;
    color: black;
}

.content-container {
    background: white;
    border-radius: 4vw;
    min-height: 140vh;
    max-height: 140vh;
    padding: 4rem;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

/* Центрированная сетка с двумя столбцами */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    width: 100%;
    padding-bottom: 2rem;
    box-sizing: border-box;
}

/* Контейнер для каждой карточки для равных отступов */
.template-item {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.no-templates {
    text-align: center;
    font-size: 2.4rem;
    color: #666;
    margin-top: 4rem;
    padding: 4rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    width: 100%;
}