/* ===== manufacturer_block  ===== */
@import url('root.css');

.stud_cat_block {
    display:flex;
    position: relative;
    flex-direction: column;
    padding: 5rem 0rem 5rem 0rem;
    width: 100%;
    height: auto;
    background-color: var(--bg-color);
    justify-content: center;
    align-items: center;
}

@media (max-width: 480px) {
    .stud_cat_block {
            padding: 2rem 0rem 2rem 0rem;
    }
}

.stud_cat_block h2 {
    font-size: var(--font-size-h2);
    font-family: var(--header-family);
    text-transform: uppercase;
    line-height: 1.5;
    letter-spacing: 10px;
    color: var(--color-text-h2);
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    padding: 0 1rem; /* Добавить отступы по бокам для мобилок */
    max-width: 100%; /* Чтобы не вылезал за пределы */
}


/* ===animation=== */

.stud_cat_block h2 {
    opacity: 0;                   
    transform: translateY(50px);  
    transition: all 0.8s ease;     
}

.stud_cat_block h2.visible {
    opacity: 1;                 
    transform: translateY(0); 
    transition-delay: 0s;
}

/* ===animation=== */


.stud_cat__container--grid {
    display: grid;
    width: auto;
    max-width: 90rem;
    height: auto;
    padding: 2rem 2rem 2rem 2rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center; 
    align-items: center;
    box-sizing: border-box;
}


@media (max-width: 480px) {
    .stud_cat__container--grid {
        width: 100%;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2rem;
        padding: 1rem 1.5rem 1rem 1.5rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .stud_cat__container--grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem;
        padding: 1.5rem;
    }
}


/* ===== stud_cat  ===== */ 

.card_stud_cat {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background-color: var(--bg-card-color);
    overflow: hidden;    
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.card_stud_cat:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stud_cat__image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; 
    overflow: hidden;
    border-radius: 12px;
}

.stud_cat__image img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stud_cat__image:hover img {
    transform: scale(1.08);
}


/* ===animation=== */

.stud_cat__image {
    opacity: 0;                   
    transform: translateY(-50px);  
    transition: all 0.8s ease;     
}

.stud_cat__image.visible {
    opacity: 1;                 
    transform: translateY(0); 
    transition-delay: 0.2s;
}

/* ===animation=== */



.card_stud_cat__text {
    position: relative;
    z-index: 1;
    width: auto;
    padding: 1.5rem;
    height: auto;
    background-color: #123c6900; 
    box-sizing: border-box;
}

.card_stud_cat__text h3 {
    font-size: var(--font-size-h3);
    font-family: var(--header-family);
    text-align:center;
    color: var(--color-text-h3);
    font-weight: 500;
    word-break: break-word;
    padding: 0 0.5rem;
}

.card_stud_cat__text p {
    font-family: var(--base-family);
    font-size: var(--font-size-p);
    text-align:center;
    color: var(--color-text-p);
    padding: 0 0.5rem;
    word-break: break-word;
}


/* ===animation=== */

.card_stud_cat__text {
    opacity: 0;                   
    transform: translateX(-50px);  
    transition: all 0.8s ease;     
}

.card_stud_cat__text.visible {
    opacity: 1;                 
    transform: translateX(0); 
    transition-delay: 0.3s;
}

/* ===animation=== */



