.page {
    overflow: hidden;

    background-color: rgba(241, 81, 86, 1);
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

.content {
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    height: 820px;
}

.container_info {
    overflow: hidden;

    display: flex;
    flex-direction: row;
    gap: 106px;
    margin-top: 30px;
    align-items: flex-start;
    width: 95%;
    justify-content: space-between;
}

.container_info__logo {
    width: 177px;
    height: 47px;
}

.wrapper_info__text {
    padding-top: 63px;
    width: 479px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 70px;
}

.container_info__amigos {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
}

.amigos_container {
    display: flex;
    align-items: center;
}

.amigos_container__img {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(241, 81, 86, 1);
    border-radius: 50%;
    object-fit: cover;
    margin-left: -13px;
}

.amigos_container__img:first-child {
    margin-left: 0;
}

.amigos_text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 34px;
    color: white;
    margin: 0;
}

.amigos_text__span {
    font-weight: 800;
    padding-right: 4px;
}

.container_info__title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-style: Bold;
    font-size: 72px;
    line-height: 110.00000000000001%;
    letter-spacing: -2%;
    color: white;
    margin: 0;
}

.container_info__text {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 34px;
    color: white;
    margin: 0;
}

.wrapper_info__button {
    display: grid;
    grid-template-rows: 541px 152px;
    grid-template-columns: 592px 90px;
    grid-auto-rows: 40px;
    column-gap: 16px;
    row-gap: 20px;
    height: 100%;
}

.container_dog {
    width: 592px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    align-items: center;
    position: relative;

}

.container_dog__item-photo {
    background: linear-gradient(195deg, #F36A6F 17.23%, #E44449 73.77%);
}

.container_dog__item-button {
    border: none;
    padding: 24px;
    border-radius: 15px;
    z-index: 3;


    width: 72px;
    height: 72px;
    position: absolute;
    top: 50px;
    left: 50px;
    cursor: pointer;
}

.container_dog__item-dog {
    width: 464px;
    height: 552px;
    opacity: 1;
    position: absolute;
    object-fit: cover;
    top: 70px;
}

.container_dog__item-button_inactive {
    background-color: rgba(228, 68, 73, 1);
    height: 152px;
    position: relative;
    justify-content: center;
}

.container_dog__item-rectangle {
    height: 712px;
    background-color: rgba(228, 68, 73, 1);
    opacity: 1;
    z-index: 3;
    position: relative;
}

.a {
    width: 592px;
    height: 541px;
}

.b {
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 2;
}

.c {
    grid-column-start: 1;
    grid-column-end: 1;
    grid-row-start: 3;
}

.d {
    grid-column-start: 2;
    grid-row-start: 1;
    grid-row-end: 2;
}

.e {
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-start: 3;
}

.button_inactive {
    width: 83%;
    height: 72px;
    border-radius: 20px;
    border: none;

    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 34px;
    letter-spacing: 0%;
    text-align: center;
    color: rgba(13, 59, 102, 1);
}



.popup {
    display: none;
    transition: opacity 1s ease-out;
}


.popup--active {
    background-color: rgba(228, 68, 73, 1);
    display: flex;
    position: fixed;
    top: 0;
    width: 592px;
    height: 541px;
    opacity: 1;
    z-index: 4;
    border-radius: 20px;
    top: 30px;
    right: 105px;
    left: auto;
    /* transform: scale(0.9); */
    transition: transform 1s ease-out;
    opacity: 1;
}


.popup__close {
    width: 72px;
    height: 72px;
    top: 50px;
    left: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 15px;
    border: none;
}

.popup__close_button-background {
    border-radius: 15px;
    position: absolute;
}

.popup__close_button {
    position: absolute;
}

.popup__container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    left: 50px;
    bottom: 50px;
    top: auto;
}

.popup__link {
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 110.00000000000001%;
    letter-spacing: -2%;
    color: rgba(255, 255, 255, .5);
}

.popup__link:hover {
    color: rgba(255, 255, 255, 1);
}

.popup__logo {
    display: none;
}

.popup__line {
    display: none;
}

.popup--active {
    background-color: rgba(228, 68, 73, 1);
    display: flex
;
    position: fixed;
    width: 592px;
    height: 541px;
    right: 105px;
}

.popup__content{
    flex-direction: column;
    gap: 120px;
    display: flex;
    padding: 50px;
}

@media screen and (max-width: 1166px) {
    .container_info__title {
        font-size: 60px;


    }

    .container_info {
        gap: 80px;
    }

    .wrapper_info__button {
        grid-template-rows: 541px 152px;
        grid-template-columns: 500px 80px;

    }

    .container_dog {
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        align-items: center;
        position: relative;

    }



    .container_dog__item-photo {
        background: linear-gradient(195deg, #F36A6F 17.23%, #E44449 73.77%);
    }

    .a {
        width: 100%;
    }

    .b {
        width: 100%;
        height: 142px;
    }

    .c {
        width: 100%;
    }

    .e {
        grid-column-start: 2;
        grid-column-end: 2;
        grid-row-start: 3;
    }

    .popup--active {
        background-color: rgba(228, 68, 73, 1);
        display: flex;
        position: fixed;
        width: 500px;
        height: 541px;
        right: 95px;
    }

    .popup__content{
        flex-direction: column;
        gap: 120px;
        display: flex;
        padding: 50px;
    }
}

@media screen and (max-width: 990px) {
    .container_info__title {
        font-size: 50px;

    }

    .container_info__amigos {
        flex-direction: column;
        align-items: flex-start;
    }

    .container_info {
        gap: 80px;
    }

    .wrapper_info__button {
        grid-template-rows: 530px 130px;
        grid-template-columns: 85%;
        width: 56%;
    }

    .container_dog__item-button {
        padding: 0;
        width: 67px;
        height: 67px;
        top: 40px;
        left: 40px;
    }

    .a {
        width: 100%;
        height: 100%;
    }

    .b {
        width: 100%;
        height: 125px;
    }

    .c {
        width: 100%;
    }

    .d {
        height: 675px;
    }

    .wrapper_info__text {
        padding-top: 47px;
        gap: 75px;
    }

    .amigos_container__img {
        width: 30px;
        height: 30px;
    }

    .amigos_text {
        font-size: 14px;
    }

    .container_info__title {
        font-size: 45px;
    }

    .popup--active {
        width: 408px;
        right: 72px;
        gap: 105px;
    }

    .popup__content {
        display: flex;
        flex-direction: column;
        gap: 105px;
        padding: 25px;
    }

    .popup__link {
        font-size: 32px;
    }

    .popup__logo {
        display: none;
    }
}

@media screen and (max-width: 768px) {

    .container_info__logo {
        width: 165px;
        height: 40px;
    }



    .container_info {
        gap: 70px;
    }

    .wrapper_info__text {
        padding-top: 40px;
        gap: 50px;
    }

    .wrapper_info__button {
        grid-template-rows: 540px 135px;
        grid-template-columns: 80%;
    }

    .container_info__text {
        font-size: 20px;
    }

    .container_dog__item-dog {
        width: 380px;
        height: 446px;
        opacity: 1;
        top: 150px;
    }

}

@media screen and (min-width: 426px) and (max-width: 767px) {
    .content {
        justify-content: center;
        height: auto;
    }

    .container_info {
        margin: 0;
        flex-direction: column;
        width: 100vw;
        align-items: center;
    }

    .wrapper_info__text {
        width: 90%;
        padding-top: 25px;
        gap: 20px;
    }

    .wrapper_info__button {
        grid-template-rows: 245px 90px;
        grid-template-columns: 10% 70% 10%;
        width: 109vw;
        justify-content: center;
        justify-items: center;
    }

    .container_info__logo {
        width: 155px;
    }

    .a {
        grid-column-start: 2;
        grid-column-end: 2;
        grid-row-start: 1;
        overflow-x: visible;
    }

    .b {
        grid-column-start: 1;
        grid-column-end: 4;
        grid-row-start: 2;
        width: 72%;
        height: 100%;
    }

    .c {
        grid-column-start: 1;
        grid-column-end: 1;
        grid-row-start: 1;
        height: 100%;

    }

    .d {
        grid-column-start: 3;
        grid-column-end: 3;
        grid-row-start: 1;
        height: 100%;
        width: 100%;
    }

    .e {
        display: contents;
    }

    .container_dog__item-dog {
        width: 289px;
        height: 340px;
        opacity: 1;
        top: 0;
    }

    .container_dog__item-button {
        padding: 0;
        width: 50px;
        height: 50px;
        top: 20px;
        right: 25px;
        left: auto;
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .button {
        width: 20px;
        height: 20px;
    }

    .container_info__text {
        display: none;
    }

    .button_inactive {
        width: 75%;
        height: 60px;
        font-size: 18px;
    }

    .popup--active {
        width: 45%;
        right: 0;
        top: 10px;

    }

    .popup--active {
        width: 50%;
        height: 335px;
        right: 10px;
        top: -20px;
    }


    .popup__close {
        width: 40px;
        height: 40px;
        top: 0;
        left: 0;
    }

    .popup__link {
        font-size: 18px;
    }

    .popup__container {
        gap: 12px;
    }

    .popup--active {
        background-color: #e4444900;
    }

    .popup__content {
        width: 100%;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
        /* "свет" под блоком */
        border-radius: 20px;
        display: flex;
        justify-content: space-between;
        background-color: rgba(228, 68, 73, 1);
        padding: 20px;
        margin-top: 20px;
        flex-direction: column;
        justify-content: space-around;
        gap: 0;
    }

    .popup__line {
        width: 90%;
        height: 3px;
        object-fit: cover;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
        display: flex;
    }

    .popup__container-logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        height: 40px;
        align-items: center;
    }

    .popup__logo {
        display: flex;
        width: 125px;
        height: 32px;

    }

    .popup--active {
        width: 96%;
        height: 335px;
        right: auto;
    }


}

@media screen and (max-width: 425px) {
    .page {
        flex-direction: column;
        justify-content: flex-start;
    }

    .content {
        justify-content: center;
        height: auto;
    }

    .container_info {
        flex-direction: column;
        margin: 0;
        width: 100%;
        align-items: center;
    }

    .wrapper_info__text {
        margin: 0;
    }

    .wrapper_info__button {
        grid-template-rows: 279px;
        grid-template-columns: 11% 68% 11%;
        width: 100%;
        justify-content: center;
        position: relative;
    }

    .a {
        grid-column-start: 2;
        grid-column-end: 2;
        grid-row-start: 1;
    }

    .b {
        grid-column-start: 2;
        grid-column-end: 2;
        grid-row-start: 1;
        background-color: #e4444900;
        width: 100%;
        height: 55px;
        top: 205px;
        left: 0;
        opacity: 1;
        position: relative;
    }

    .c {
        grid-column-start: 1;
        grid-column-end: 1;
        grid-row-start: 1;
        width: 279px;
        height: 100%;
        display: contents;

    }

    .d {
        grid-column-start: 1;
        grid-column-end: 1;
        grid-row-start: 1;
        width: 279px;
        height: 279px;
        transform: translateX(-238px);
    }

    .e {
        grid-column-start: 3;
        grid-column-end: 3;
        grid-row-start: 1;
        height: 279px;
        width: 79px;
    }



    .header {
        background-color: rgba(228, 68, 73, 1);
        width: 100%;
        height: 80px;
        margin: 0;
    }

    .container_info__logo {
        width: 125px;
        height: 32.55805587768555px;
        position: absolute;
        top: 24px;
        left: 24px;
    }

    .container_dog__item-button {
        padding: 0;
        width: 40px;
        height: 40px;
        top: 20px;
        left: auto;
        right: 20px;
        position: fixed;
        border-radius: 8.33px;
        justify-content: center;
        align-items: center;
    }

    .wrapper_info__text {
        padding-top: 52px;
        gap: 35px;
        width: 85%;
    }

    .button {
        width: 16px;
        height: 16px;
    }



    .container_info__title {
        font-family: 'Nunito', sans-serif;
        font-weight: 700;
        font-size: 44px;
        line-height: 110.00000000000001%;
    }

    .container_info__text {
        display: none;
    }

    .container_dog__item-dog {
        width: 273px;
        height: 321px;
        top: -20px;
    }

    .container_dog__item-button_inactive {
        width: 100%;
        height: 55px;
        top: 205px;
        opacity: 1;

    }


    .button_inactive {
        width: 85%;
        font-family: 'Nunito', sans-serif;
        font-weight: 800;
        font-size: 14px;
        line-height: 14.72px;
        text-align: center;
        border-radius: 8.66px;
    }

    .container_dog {
        overflow: visible;
    }

    .popup__content {
        width: 100%;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
        /* "свет" под блоком */
        border-radius: 20px;
        display: flex;
        justify-content: space-between;
        background-color: rgba(228, 68, 73, 1);
        padding: 20px;
        margin-top: -20px;
        flex-direction: column;
        justify-content: space-around;
        top: 0;
        padding-top: 60px;
        gap: 20px;
    }

    .popup--active {
        width: 100%;
        right: 0;
        top: -15px;
        border-radius: 20px;
        height: auto;
    }

    .popup__logo {
        display: flex;
        width: 125px;
        height: 32px;

    }

    .popup__container-logo {
        display: flex;
        justify-content: space-between;
    }

    .popup__close {
        width: 40px;
        height: 40px;
    }

    .popup__line {
        margin: 0;
        display: flex;
    }

    .popup__link {
        font-size: 18px;
    }
}