main {
    padding-top: 100px;
}

.main-container {
    width: 100%;
    display: grid;
    grid-template-columns: 280px 3fr 1.3fr;
    z-index: 1;
    min-height: calc(100vh - 100px)
}

.rec-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 25px;
    padding-bottom: 17px;
}

.rec-container h2 {
    width: 100%;
    color: white;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 0;
    font-size: calc(1.5rem + 0.5vw);
}

.rec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

.rec-item > a {
    width: 100%;
}

.rec-item a img {
    aspect-ratio: 1 / 1;
    width: 100%;
}

.rec-item a img {
    transition: filter 0.5s ease-in-out; /* Плавный переход фильтров */
}

.rec-item a img:hover {
    filter: hue-rotate(120deg); /* Размытие при наведении */
}

.rec-header {
    margin-top: 3px;
    margin-bottom: 10px;
    text-wrap: nowrap;
    overflow: hidden;
}

.rec-header a:hover {
    color: #f1e739;
}

.rec-header a {
    text-decoration: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.rec-description-container {
    width: 100%;
    color: white;
}

.rec-description {
    color: white;
    font-family: "Georgia", sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0;
}

.aside-menu-container {
    border: 1px solid var(--line-color);
    border-bottom: none;
    border-left: none;
    border-top: none;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    font-size: 1.25rem;
    height: calc(100vh - 100px);
    position: sticky;
    top: 100px;
    left: 0;
    box-sizing: border-box;
}

.aside-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.aside-menu-container ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.aside-menu-container li {

}

.aside-menu-container li img {
    width: 30px;
}

.aside-menu-container li a {
    text-decoration: none;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.aside-menu-container li a:hover {
    background-color: var(--site-green);
    color: black;
}

.add-ai-aside {
    cursor: pointer;
    padding: 10px 18px;
    display: block;
    width: 100%;
    font-size: 1.125rem;
    letter-spacing: 1px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 16px -2px rgba(90, 35, 140, 0.75),
                0 0 12px 2px rgba(120, 80, 210, 0.45);
    background-size: 200% 100%;
    background-image: linear-gradient(to right, #7d5fd9, #6d4fd0, #5d40c7, #4d31be);
    margin-bottom: 20px;
}

.add-ai-aside:hover {
    background-position: 100% 0;
    box-shadow: 0 8px 20px -2px rgba(90, 35, 140, 0.85),
                0 0 20px 4px rgba(120, 80, 210, 0.65);
    transition: all .4s ease-in-out;
}

.add-ai:active {
    transform: scale(0.98);
    box-shadow: 0 4px 10px -2px rgba(90, 35, 140, 0.7),
                0 0 8px 1px rgba(120, 80, 210, 0.35);
    background-position: 0% 0;
}

.neuroset-similar {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    padding: 20px;
    /*border-top: 1px solid var(--site-green);*/
    background-color: var(--card-color);
}

.similar-header {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    width: 100%;
    margin: 0;
}

.tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 15px;
}

.ads {
    border: none;
    padding: 0;
    height: 400px;
    background: none;
}

.link-img {
    width: 100%;
    aspect-ratio: auto;
}

.tool img {
    width: 100%;
    border-radius: 10px;
    margin-top: 5px;
    aspect-ratio: 2/1;
}

.tool img {
    transition: filter 0.5s ease-in-out; /* Плавный переход фильтров */
}

.tool img:hover {
    filter: hue-rotate(120deg); /* Размытие при наведении */
}

.neuroset-similar h3 {
    color: white;
    font-size: 1.125rem;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.neuroset-similar h3 a {
    color: white;
    text-decoration: none;
    transition: 0.5s ease-in-out;
}

.neuroset-similar h3 > a:hover {
    color: #f1e739;
}

.similar-description-container {
    color: white;
    display: flex;
    flex-direction: column;
}

.similar-description {
    margin: 0;
    font-size: 1.0625rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.aspect {
    aspect-ratio: 5/3!important;
}

@media screen and (max-width: 1280px) {
    .main-container {
        grid-template-columns: 200px 3fr 1.2fr;
    }
    .similar-header {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 1023px) {
    .main-container {
       grid-template-columns: 200px 1fr;
       grid-template-areas:
            "left main"
            "left right";
    }
    .neuroset-similar {
        grid-column: 2;
        grid-row: 2;
        grid-area: right;
        border-top: none!important;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 10px;
        justify-content: center;
        padding-bottom: 80px;
        padding-top: 10px;
    }
    .tool {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }
    .tool img {
        height: 150px;
        width: auto;
    }
    .similar-description-container {
        align-self: start;
    }
    .similar-header {
        font-size: calc(1.5rem + 0.5vw);
    }
}

@media screen and (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "left"
            "right";
    }
    .neuroset-similar {
        grid-area: right;
        margin: 0 auto;
    }
    .aside-menu-container {
        display: none;
    }
}

@media screen and (max-width: 650px) {
    .tool {
        flex-direction: column;
    }
    .link-img {
        display: flex;
        justify-content: center;
    }
    .similar-description-container {
        align-items: center;
    }
}

@media screen and (max-width: 600px) {
    main {
        padding-top: 70px
    }
}

@media screen and (max-width: 500px){
    .neuroset-similar {
        width: 95%;
    }
}



