/* variables */
:root {
    --a-active: #F1CDB3;
    --a-color: #CDCDCD;
    --color-dark: #4C4C4C;
    --color-h3: #545454;
    --color-h4: #545454;
    --bg-btn: #F1CDB3;
    --btn-color: #292929;
}

/* general styles */
*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

img {
    vertical-align: top;
}

html,
body {
    font-family: 'Arial';
    font-weight: 400;
    height: 100%;
    padding: 0;
    margin: 0;
    line-height: 1.2;
    color: var(--text-color);
    background-color: #F6F6F6;
    scroll-behavior: smooth;
}

body.lock {
    overflow: hidden;
}

body._lock {
    overflow: hidden;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 1 auto;
}

.container {
    max-width: 1280px;
    margin: auto;
    padding: 0px 40px;
}

h2,
h3,
h4,
h5 {
    font-family: 'Georgia';
}

a {
    text-decoration: none;
    color: var(--a-color);
    -webkit-tap-highlight-color: transparent;
}

/* buttons */
.btn {
    font-family: Georgia;
    border-radius: 100px;
    font-size: 17px;
    line-height: 130%;
    letter-spacing: 0.06em;
    -webkit-transition: all 0.5s ease;
    -moz--transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.btn a {
    display: flex;
    padding: 15px 44.5px;
    justify-content: center;
}

.btn-primary {
    background: var(--bg-btn);
}

.btn-primary:hover {
    background: #fff;
}

.btn-know {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-btn);
}

.btn-know a {
    -webkit-transition: all 0.4s ease;
    -moz--transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.btn-know a:hover {
    color: #fff;
}

.btn-more {
    border: solid 2px var(--bg-btn);
    padding: 15px 44.5px;
    color: #292929;
}

.btn-color a {
    color: var(--btn-color);
}

.btn-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: -18px;
    width: 52px;
    height: 52px;
    border: 2px solid #f1cdb3;
    background-color: #f6f6f6;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: all 0.5s ease;
    -moz--transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.btn-slider:hover {
    background-color: var(--bg-btn);
    cursor: pointer;
}

.arrow__prev img,
.arrow__next img {
    width: 14px;
    height: 6px;
    -webkit-tap-highlight-color: transparent;
}

/* Header */
.header {
    padding: 60px 0px 60px;
}

.dark-bg {
    background-image: url(../../assets/images/noise_transparent@2x.png), radial-gradient(100% 215.42% at 0% 0%, #5b483a 0%, #262425 100%), linear-gradient(0deg, #211F20, #211F20);
    background-repeat: repeat;
    background-size: auto;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease 0s;
}

h1.logo__title {
    font-family: Georgia;
    font-weight: 400;
    font-size: 32px;
    line-height: 35px;
    letter-spacing: 0.06em;
    color: #F1CDB3;
    padding-bottom: 10px;
}

h2.logo__subtitle {
    font-family: Arial;
    font-weight: 400;
    font-size: 13px;
    line-height: 15px;
    letter-spacing: 0.1em;
    color: #fff;
}

.menu__list {
    display: flex;
    list-style: none;
}

.menu__item:nth-last-child(n+2) {
    padding-right: 35px;
}

.menu__link {
    font-size: 15px;
    line-height: 24px;
    -webkit-transition: all 0.5s ease;
    -moz--transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.menu__link:hover {
    color: #FFFFFF;
}

.menu__link.active {
    display: inline-block;
    color: #FAFAFA;
}

.menu__link.active:after {
    display: block;
    content: "";
    height: 3px;
    width: 100%;
    background-color: var(--a-active);
}

/* burger */
.menu__icon {
    display: none;
}

.burger__logo {
    display: none;
}

/* section head */
.section h3 {
    font-weight: 400;
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 0.06em;
    color: var(--color-h3);
}

.section {
    padding: 80px 0px 100px;
}

.section-not-only {
    padding: 0;
}

.not-only {
    display: flex;
    column-gap: 42px;
}

.not-only__content {
    max-width: 460px;
    padding-top: 163px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 42px;
}

.not-only__title {
    font-weight: 400;
    font-size: 44px;
    line-height: 57.2px;
    color: #fff;
}

.not-only__text {
    font-family: Arial;
    font-size: 15px;
    line-height: 24px;
    color: #CDCDCD;
}

.puppy__img {
    max-width: 698px;
    height: auto;
}

/* section about */
.section-about {
    background-color: #FFFFFF;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 120px;
}

.about__content {
    display: flex;
    flex-direction: column;
    max-width: 430px;
    row-gap: 25px;
}

.about__text {
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    color: var(--color-dark);
}

.friends__title {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

/* help */
.section-help {
    background-color: #FFFFFF;
}

.help__title {
    padding-bottom: 60px;
    text-align: center;
}

.help__text {
    font-family: 'Georgia';
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    letter-spacing: 0.06em;
    color: var(--color-h4);
}

.help {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 120px;
    row-gap: 55px;
}

.help__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

/* in addition */
.in-addition {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: #F6F6F6;
    column-gap: 30px;
}

.donation-content {
    display: flex;
    flex-direction: column;
    max-width: 380px;
    row-gap: 20px;
}

.donation-content h5 {
    font-size: 15px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 0.06em;
    color: #545454;
}

.credit-card {
    padding: 10px 15px;
    background: #F1CDB3;
    border-radius: 9px;
    max-width: 350px;
    display: flex;
    align-items: center;
    column-gap: 15px;
}

a.card-number__link {
    font-family: Georgia;
    font-size: 20px;
    line-height: 23px;
    color: #545454;
    letter-spacing: 0.06em;
}

.donation-content__text {
    font-family: Arial;
    font-style: italic;
    font-size: 12px;
    line-height: 18px;
    color: #B2B2B2;
}

/* footer */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 40px;
}

.footer .container {
    padding: 0px 40px;
}

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

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

.contacts h4,
.locations h4 {
    padding-left: 20px;
}

.contacts {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
}

.locations {
    display: flex;
    flex-direction: column;
    row-gap: 32px;
    max-width: 302px;
}

.contacts,
.locations {
    padding-top: 16px;
}

.footer-content h3 {
    font-weight: 400;
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 0.06em;
    color: #fff;
}

.footer h4 {
    font-weight: 400;
    font-size: 20px;
    line-height: 23px;
    letter-spacing: 0.06em;
    color: #F1CDB3;
}

.donation__item img {
    max-width: 100%;
}

.relocate-br {
    display: none;
}

/* popup */
.popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(41, 41, 41, 0.6);
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.2s ease 0s;
}

.popup.open {
    opacity: 1;
    visibility: visible;
}

.popup.open .popup__content {
    transform: translate(0px, 0px);
    opacity: 1;
}

.popup__wrapper {
    border: solid red;
}

.popup__body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
}

.popup-content__wrapper {
    display: flex;
    align-items: flex-end;
    height: 552px;
}

.popup__content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    max-height: 500px;
    color: #000;
    gap: 29px;
    background-color: #FAFAFA;
    border-radius: 9px;
    transition: all 0.2s ease 0s;
    opacity: 0;
    transform: translate(0px, -100%);
}

.popup__img {
    width: 500px;
    max-width: 100%;
    aspect-ratio: 1/1;
    border-radius: 9px;
    flex-shrink: 0;
}

.pet__description {
    font-family: Georgia;
    display: flex;
    flex-direction: column;
    letter-spacing: 0.06em;
    color: #000;
    padding: 50px 20px 88px 0px;
}

.popup h3.pet__name {
    font-size: 35px;
    line-height: 130%;
    font-weight: 400;
    color: #000;
    padding-bottom: 10px;
}

.pet__breed {
    font-size: 20px;
    line-height: 115%;
    padding-bottom: 40px;
}

.pet__story {
    font-size: 15px;
    line-height: 110%;
    padding-bottom: 40px;
    max-width: 350px;
}

.specifications__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.specifications__list li {
    display: flex;
    align-items: center;
    list-style: none;
}

.specifications__list li::before {
    content: "";
    display: inline-block;
    margin-right: 10px;
    width: 4px;
    height: 4px;
    background-color: #f1cdb3;
    border-radius: 50%;
}

.spec__item {
    font-weight: 700;
}

.popup__close {
    align-self: flex-start;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    border: 2px solid #F1CDB3;
    border-radius: 100px;
    position: relative;
    transition: all 0.2s ease 0s;
    transform: translate(0px, -100%);
}

.popup__close:hover {
    background-color: #F1CDB3;
}

.popup.open .popup__close {
    transform: translate(0px, 0px);
}

.popup__cross {
    display: block;
    width: 12px;
    height: 12px;
    -webkit-mask-image: url(../../assets/images/cross.svg);
    mask-image: url(../../assets/images/cross.svg);
    background-color: #292929;
}

/* swiper section test */
.our-friends__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 60px;
}

.test__items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 53px;
}

.cards-swiper {
    display: flex;
    flex: wrap;
    justify-content: center;
    align-items: center;
    /* Ширина слайдера */
    width: 992px;
    z-index: 0 !important;
}

.card-slider__wrapper {
    padding: 10px 0px;
}

.our-friends__title {
    text-align: center;
    margin: 0 auto;
}

.image-slider__img {
    text-align: center;
}

.image-slider__img img {
    max-width: 100%;
}

.card-link__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 0px 30px 0px;
    gap: 30px;
    -webkit-transition: all 0.3s ease-in-out !important;
    -moz--transition: all 0.3s ease-in-out !important;
    transition: all 0.3s ease-in-out !important;
    border-radius: 9px;
    background-color: #FAFAFA;
}

.card-link__wrapper:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: #FFFFFF;
}

.card-link__wrapper:hover .btn-more {
    background: var(--bg-btn);
}

.card__pet-name {
    font-family: 'Georgia';
    font-size: 20px;
    line-height: 23px;
    letter-spacing: 0.06em;
    color: #545454;
}

@media (max-width: 1279px) {

    .test__items {
        gap: 12px;
    }

    .cards-swiper {
        /* Ширина слайдера */
        width: 550px;
    }

    /* header */
    .header {
        padding: 30px 0px 60px;
    }

    .header__container.container {
        padding: 0px 30px;
    }

    /* not only */
    .not-only {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 100px;
    }

    .not-only__content {
        padding: 0;
    }

    .puppy__img {
        max-width: 569px;
        height: auto;
        margin-left: 139px;
    }

    .not-only__content .btn {
        align-self: center;
    }

    /* about */
    .about {
        flex-direction: column-reverse;
        row-gap: 80px;
    }

    /* help */
    .help {
        column-gap: 60px;
    }

    .help__item {
        width: 170px;
    }

    .our-friends .container {
        padding: 0px 30px;
    }

    /* in addition */
    .in-addition {
        flex-direction: column-reverse;
        row-gap: 60px;
    }

    /* footer */
    .footer .container {
        padding: 0px 55px;
    }

    .footer-content {
        justify-content: center;
        padding-top: 30px;
        column-gap: 60px;
        row-gap: 65px;
    }

    .contacts,
    .locations {
        padding-top: 0px;
    }

    /*  popup */
    .popup__img {
        width: 350px;
    }

    .popup__content {
        max-width: 640px;
        gap: 11px;
    }

    .pet__breed,
    .pet__story {
        padding-bottom: 20px;
    }

    .specifications__list {
        gap: 6px;
    }

    .specifications__list li {
        flex-wrap: wrap;
    }

}

@media (max-width: 767px) {

    .cards-swiper {
        /* Ширина слайдера */
        width: 270px;
    }

    .our-friends__container {
        row-gap: 42px;
    }

    .test__items {
        flex-wrap: wrap;
        row-gap: 40px;
        column-gap: 80px;
    }

    .cards-swiper {
        order: -1;
        flex-wrap: wrap;
    }

    /* mobile begin */
    .container.header__container {
        max-width: 100%;
        padding: 0px 50px 0px 10px;
    }

    /* dark area */
    .underlay__menu {
        opacity: 0;
        visibility: hidden;
    }

    .underlay__menu._active {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transition: all 0.5s ease 0s;
        background: rgba(41, 41, 41, 0.6);
        opacity: 1;
        visibility: visible;
    }

    /* burger mobile */
    .menu__icon {
        z-index: 5;
        display: block;
        position: relative;
        width: 30px;
        height: 20px;
        cursor: pointer;
        transition: all 0.5s ease 0s;
        -webkit-tap-highlight-color: transparent;
    }

    .menu__icon span,
    .menu__icon::before,
    .menu__icon::after {
        left: 0;
        position: absolute;
        height: 2px;
        width: 100%;
        background-color: #F1CDB3;
    }

    .menu__icon::before,
    .menu__icon::after {
        content: "";
    }

    .menu__icon::before {
        top: 0;
    }

    .menu__icon::after {
        bottom: 0;
    }

    .menu__icon span {
        top: 50%;
        transform: translate(0px, -50%);
    }

    .menu__icon._active {
        transform: rotate(90deg);
    }

    .menu__body {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100%;
        background-color: #292929;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease 0s;
        overflow: auto;
    }

    .menu__body._active {
        right: 0;
    }

    .menu__list {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 40px;
    }

    .menu__item:nth-last-child(n+2) {
        padding: 0;
    }

    .menu__item:nth-child(2) {
        padding-top: 3px;
    }

    .menu__item a {
        font-size: 32px;
        line-height: 160%;
    }

    .burger__logo {
        display: block;
        position: absolute;
        top: 30px;
        left: 10px;
    }

    /* header */
    .header__logo._hide {
        opacity: 0;
        visibility: hidden;
    }

    .container {
        max-width: 320px;
        padding: 0 10px;
    }

    img.puppy__img {
        max-width: 260px;
        margin: 0;
    }

    /* section not-only */
    .section.section-not-only {
        padding: 0;
    }

    .not-only {
        row-gap: 105px;
    }

    .not-only__content {
        align-items: center;
        text-align: center;
    }

    .not-only__title {
        font-size: 25px;
        line-height: 130%;
        letter-spacing: 0.06em;
    }

    .section h3 {
        font-size: 25px;
        line-height: 130%;
        text-align: center;
    }

    .about__text {
        text-align: justify;
    }

    .section-about {
        padding: 42px 0px;
    }

    .section {
        padding: 42px 0px;
    }

    /* help */
    .help {
        gap: 30px;
        justify-content: space-between;
    }

    .help__item {
        text-align: center;
        width: 120px;
    }

    .help__text {
        font-size: 15px;
        line-height: 110%;
    }

    .section-help .container {
        padding: 0px 15px;
    }

    /* in addition */
    .in-addition {
        flex-direction: column-reverse;
        row-gap: 42px;
    }

    .credit-card {
        max-width: 281px;
    }

    .donation__item img {
        max-width: 260px;
    }

    .donation-content {
        align-items: center;
    }

    a.card-number__link {
        font-size: 15px;
        line-height: 110%;
        letter-spacing: 0.06em;
    }

    .donation-content__text {
        text-align: justify;
    }

    .donation-content h5 {
        text-align: center;
        letter-spacing: normal;
        line-height: 24px;
    }

    /* footer */
    .footer-content h3 {
        font-size: 25px;
        line-height: 130%;
        text-align: center;
        letter-spacing: 0.06em;
    }

    .footer .container {
        padding: 0px 10px;
    }

    .hide-br {
        display: none;
    }

    .relocate-br {
        display: block;
    }

    .contacts {
        align-items: center;
    }

    /*  popup */
    .popup__img {
        display: none;
    }

    .popup-content__wrapper {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        row-gap: 10px;
    }

    .popup__content {
        max-width: 100%;
        max-height: 100%;
    }

    .popup h3.pet__name {
        padding-top: 0px;
    }

    .pet__breed {
        padding-bottom: 20px;
    }

    .pet__story {
        font-size: 13px;
        padding-bottom: 24px;
    }

    .pet__specifications {
        font-size: 15px;
    }

    .specifications__list {
        gap: 5px;
    }

    .pet__description {
        align-items: flex-start;
        padding: 10px;
    }

    .popup h3.pet__name,
    .popup .pet__breed {
        align-self: center;
    }

    .popup__close {
        align-self: flex-end;
    }

}