/* * ===== about cattery  ===== */
@import url('root.css');


.about_kennels {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    background-color: var(--bg-color);
    justify-content: center;
    align-items: center;
    padding: 5rem clamp(1rem, 5vw, 5rem);
    box-sizing: border-box;

}

@media (max-width: 480px) {
    .about_kennels {
        padding: 1rem 1rem;
    }
}

.about_kennels h2 {
    font-size: clamp(1.3rem, 6vw, 2rem);
    text-transform: uppercase;
    font-family: var(--header-family);
    text-align: left;
    line-height: 1.5;
    letter-spacing: 10px;
    color: var(--color-text-h2);
    font-weight: 500;
    text-align: center;
}

/* ===animation=== */

.about_kennels h2 {
    opacity: 0;
    transform: translateY(30px);
    /* Сдвинут вниз */
    transition: all 0.8s ease;
}

.about_kennels h2.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    /* Заголовок сразу */
}

/* ===animation=== */

.about_kennels__container {
    width: 100%;
    max-width: 80rem;
    height: auto;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
    align-items: center;
    height: auto;
}

@media (max-width: 968px) {
    .about_kennels__container {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0;
    }

    .about_kennels__image {
        width: 25rem;
        height: 25rem;
    }
}

.about_kennels__image {
    width: 100%;
    max-width: 45rem;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s ease;
    background: var(--bg-card-color);
}

.about_kennels__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about_kennels__image:hover img {
    transform: scale(1.05);
}

/* ===animation=== */
.about_kennels__image {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.about_kennels__image.visible {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

/* ===animation=== */

.about_kennels__text {
    max-width: 50rem;
    width: 100%;
    height: auto;
    padding: 1.5rem;
    overflow-y: auto;
    line-height: 1.6;
    color: var(--color-text-p);
}

/* ===animation=== */

.about_kennels__text {
    opacity: 0;
    transform: translateX(50px);
    /* Сдвинут вправо */
    transition: all 0.8s ease;
    align-content: center;
    height: auto;
    width: auto;
}

.about_kennels__text.visible {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
    /* Текст через 0.4 сек */
}

/* ===animation=== */

.about_kennels__text p {
    font-family: var(--base-family);
    font-size: var(--font-size-p);
    text-align: justify;
    align-content: center;

}

/* Сетка особенностей */

.features_cats {
    max-width: 80rem;
    margin: 0 0;
}

.breed__subtitle {
    font-size: 1.5rem;
    color: var(--color-text-h3);
}

.features_cats h3 {
    color: var(--color-text-h3);
}

.breed__text {
    font-size: var(--font-size-p);
    font-family: var(--base-family);
    color: var(--color-text-p);
    text-align: justify;

}

.features_cats-card p {
    color: var(--color-text-p);
}

.features_cats-card1 p {
    color: var(--color-text-p);
}

.features_cats-card2 p {
    color: var(--color-text-p);
}

/* ===animation=== */

.features_cats h3 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.features_cats h3.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* ===animation=== */



.features_cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
    max-width: 80rem;
}

@media (max-width: 968px) {
    .features_cats-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.5rem;
    }
}

.features_cats-card {
    background: var(--bg-card-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* ===animation=== */

.features_cats-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.features_cats-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* ===animation=== */


.breed__feature-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.breed__feature-title {
    font-size: var(--font-size-h4);
    color: var(--color-text-h4);
    margin-bottom: 15px;
}

/* Общее для изображений */
.breed__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.breed__image:hover {
    transform: scale(1.05);
}


@media (max-width: 480px) {
    .about_kennels {
        padding: 2rem 1rem;
    }
    
    .about_kennels__container {
        gap: 1rem;
    }
    
    .features_cats-grid {
        gap: 1rem;
        margin: 20px 0;
    }
    
    .features_cats-card {
        padding: 15px;
    }
}

