.dogs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 55px 34px;
    margin-top: 53px;
}

.dog-card {
    background: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.dog-card__slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding-bottom: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: grab;
}

.dog-card__slider:active {
    cursor: grabbing;
}

.dog-card__slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
    touch-action: pan-y pinch-zoom;
}

.dog-card__slider-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.dog-card__slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.dog-card__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 23px;
}

.dog-card__name {
    margin-bottom: 5px;
    font-family: Buyan;
    font-weight: 700;
    font-size: 41px;
    line-height: 128%;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #FFFFFF;
}

.dog-card__breed {
    font-family: Buyan;
    font-weight: 700;
    font-size: 34px;
    line-height: 128%;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #FFFFFF;
    margin-bottom: 25px;
}

.dog-card__label {
    font-weight: 600;
    color: #fff;
}

.dog-card__value {
    color: #fff;
}

.dog-card__description {
    font-family: Montserrat;
    font-weight: 300;
    font-size: 16px;
    line-height: 128%;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(16px * 1.28 * 5);
}

.dog-card__slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(
        279.88deg,
        #FFC47F 6.73%,
        #FFD7A9 28.75%,
        #FFD8AB 48.43%,
        #FFD29D 75.28%,
        #F4BD7D 93.46%
    );
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.dog-card__slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.dog-card__slider-btn svg {
    display: block;
    width: 15px;
    height: 15px;
}

.dog-card__slider-btn--prev {
    left: 10px;
    padding-left: 2px;
}

.dog-card__slider-btn--next {
    right: 10px;
    padding-right: 2px;
}

.dog-card__video-btn-wrapper {
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: end;
    position: absolute;
    padding: 0 25px 26px 0;
}

.dog-card .gallery__video-btn {
    position: relative;
    margin: 0;
}

.dog-card .gallery__video-btn span {
    display: flex;
    line-height: 1;
}

.dog-card__slider-dots {
    display: none;
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    justify-content: center;
    gap: 8px;
}

.dog-card__slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #828282;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dog-card__slider-dot.active {
    background: #FFFFFF;
    width: 7px;
    height: 7px;
}

.dog-card__btn--primary {
    background: linear-gradient(263.56deg, #FFE9C8 -4.53%, #FFD9AD 18.44%, #FFDDB5 51.46%, #FFDDB5 76.6%, #FFCC8F 111.92%);
    box-shadow: 0px 3.8px 0px 0px #D8A86E;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.dog-card__btn--primary:hover {
    box-shadow: 0px 2px 0px 0px #D8A86E;
}

.dog-card__btn--secondary {
    background: linear-gradient(263.63deg, #929292 -10.3%, #D0D0D0 23.41%, #E5E5E5 48.46%, #CECECE 74.85%, #8A8A8A 109.09%), radial-gradient(55.13% 55.13% at 50% 2.23%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0px 3.8px 0px 0px #696969;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.dog-card__btn--secondary:hover {
    box-shadow: 0px 2px 0px 0px #696969;
}

@media screen and (max-width: 900px) {
    .dogs-grid {
        gap: 45px 20px;
        margin-top: 31px;
    }

    .dog-card__slider {
        padding-bottom: 83.2%;
        border-radius: 25px;
    }

    .dog-card__slider-btn {
        display: none;
    }

    .dog-card__slider-dots {
        display: flex;
    }

    .dog-card__video-btn-wrapper {
        padding: 0 17.77px 14.95px 0;
    }

    .dog-card .gallery__video-btn {
        position: relative;
        margin: 0;
    }

    .dog-card__info {
        margin-top: 13px;
    }

    .dog-card__name {
        font-size: 30px;
        margin-bottom: 3.86px;
    }

    .dog-card__breed {
        font-size: 22px;
        margin-bottom: 5.53px;
    }

    .dog-card__description {
        font-size: 12px;
        min-height: calc(12px * 1.28 * 5);
    }
}

@media screen and (max-width: 600px) {
    .dogs-grid {
        grid-template-columns: 1fr;
        gap: 37px;
        margin-top: 34px;
    }

    .dog-card__slider {
        padding-bottom: 98.1%;
        border-radius: 24px;
    }

    .dog-card__info {
        margin-top: 16px;
    }

    .dog-card__name {
        font-size: 25px;
        margin-bottom: 4px;
    }

    .dog-card__breed {
        font-size: 20px;
        margin-bottom: 7.47px;
    }

    .dog-card__description {
        font-size: 12px;
        min-height: calc(12px * 1.28 * 5);
    }
}
