:root {
    --ink: #202722;
    --forest: #264d3b;
    --sage: #8da28f;
    --cream: #f5f0e7;
    --paper: #fffdf8;
    --terracotta: #b76646;
    --line: #ddd7cd;
    --muted: #6d746f;
    --radius: 22px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.65 Manrope, Arial, sans-serif
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit
}

main {
    min-height: 70vh
}

h1, h2, h3, p {
    margin-top: 0
}

h1, h2 {
    font-family: Prata, Georgia, serif;
    font-weight: 400;
    line-height: 1.12
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem)
}

.site-header {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 72px);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain
}

.logo span {
    display: flex;
    flex-direction: column;
    line-height: 1
}

.logo strong {
    font: 24px Prata, serif;
    letter-spacing: .04em
}

.logo small {
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 9px;
    color: var(--muted)
}

nav {
    display: flex;
    align-items: center;
    gap: 30px
}

nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600
}

nav a:hover {
    color: var(--terracotta)
}

.nav-contact {
    padding: 11px 18px;
    border: 1px solid var(--forest);
    border-radius: 999px
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px
}

.home-hero {
    height: clamp(560px, calc(100vh - 92px), 680px);
    display: grid;
    grid-template-columns:minmax(0, 52%) minmax(0, 48%);
    background: var(--cream);
    overflow: hidden
}

.home-hero__visual {
    position: relative;
    min-width: 0;
    background: #d9d5ca
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity .9s ease, transform 6s ease;
    pointer-events: none
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-count {
    position: absolute;
    z-index: 3;
    left: 30px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #17291fbb;
    color: white;
    font-size: 11px;
    letter-spacing: .12em
}

.hero-count i {
    width: 28px;
    height: 1px;
    background: #ffffff99
}

.home-hero__copy {
    position: relative;
    display: grid;
    min-width: 0;
    padding-bottom: 76px
}

.hero-copy {
    grid-area: 1/1;
    align-self: center;
    width: 100%;
    max-width: 760px;
    padding: clamp(38px, 5vw, 80px);
    opacity: 0;
    transform: translateY(22px);
    visibility: hidden;
    transition: opacity .55s ease, transform .55s ease, visibility .55s
}

.hero-copy.is-active {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition-delay: .2s
}

.home-hero h1 {
    font-size: clamp(3rem, 4.5vw, 4.9rem);
    margin: 14px 0 22px
}

.home-hero p {
    max-width: 530px;
    font-size: clamp(15px, 1.15vw, 18px);
    color: #4e5851;
    margin-bottom: 26px
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: clamp(38px, 5vw, 80px);
    right: clamp(38px, 5vw, 80px);
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border: 1px solid #264d3b55;
    border-radius: 50%;
    background: transparent;
    color: var(--forest);
    font-size: 18px;
    cursor: pointer
}

.hero-controls > button:hover {
    background: var(--forest);
    color: white
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 9px
}

.hero-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #264d3b44;
    cursor: pointer;
    transition: .25s
}

.hero-dots button.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--forest)
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 12px;
    font-weight: 700;
    color: var(--terracotta)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: max-content;
    min-width: 210px;
    background: var(--forest);
    color: white;
    padding: 15px 20px;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700
}

.btn:hover {
    background: #183c2b
}

.trust-strip {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 8vw, 120px);
    padding: 22px;
    background: var(--forest);
    color: #f5f0e7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em
}

.section {
    max-width: 1280px;
    margin: auto;
    padding: 100px 36px
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 42px
}

.section-heading h2 {
    margin: 10px 0 0
}

.text-link {
    color: var(--forest);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--sage)
}

.dog-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 26px
}

.dog-card {
    display: block;
    text-decoration: none;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .25s
}

.dog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px #31423518
}

.dog-card__photo {
    height: 360px;
    background: var(--cream);
    position: relative;
    overflow: hidden
}

.dog-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s
}

.dog-card:hover img {
    transform: scale(1.025)
}

.dog-card__body {
    position: relative;
    padding: 22px
}

.dog-card__body h3 {
    font: 28px Prata, serif;
    margin-bottom: 4px
}

.dog-card__body p {
    color: var(--muted);
    margin: 0
}

.status {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em
}

.dog-card .status {
    position: absolute;
    left: 16px;
    top: 16px
}

.status--available {
    background: #e6f2e9;
    color: #266342
}

.status--reserved {
    background: #fff0d2;
    color: #956313
}

.status--home {
    background: #eceeed;
    color: #59635e
}

.price {
    display: block;
    margin-top: 16px;
    color: var(--forest)
}

.card-arrow {
    position: absolute;
    right: 22px;
    top: 24px;
    font-size: 22px
}

.no-photo {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted)
}

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px;
    background: var(--cream);
    border-radius: var(--radius)
}

.story {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10%;
    padding: 100px max(6vw, 30px);
    background: var(--cream)
}

.story p {
    font-size: 18px;
    max-width: 600px
}

.page-hero {
    min-height: 390px;
    background-color: var(--forest);
    background-size: cover;
    background-position: center;
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    color: white
}

.page-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(#17322699, #173226cc)
}

.hero-content {
    position: relative;
    padding: 40px
}

.page-hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: 12px
}

.page-hero p {
    font-size: 18px;
    max-width: 650px;
    margin: auto
}

.content, .contacts {
    max-width: 900px;
    margin: auto;
    padding: 90px 30px
}

.contact-form {
    display: grid;
    gap: 14px;
    margin-top: 30px
}

.contact-form input, .contact-form textarea {
    font: inherit;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 12px
}

.contact-form textarea {
    min-height: 140px
}

.site-footer {
    display: grid;
    grid-template-columns:2fr 1fr 1fr;
    gap: 60px;
    padding: 70px max(6vw, 30px) 30px;
    background: #1e3228;
    color: #e8e4dc
}

.site-footer > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px
}

.site-footer a {
    text-decoration: none
}

.footer-brand {
    font: 38px Prata, serif
}

.site-footer p, .site-footer span {
    color: #bfc9c1
}

.copyright {
    grid-column: 1/-1;
    border-top: 1px solid #ffffff24;
    padding-top: 25px;
    margin-top: 20px
}

@media (max-width: 850px) {
    .site-header {
        height: 76px
    }

    .logo img {
        width: 48px;
        height: 48px
    }

    .nav-toggle {
        display: block
    }

    nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        padding: 24px;
        background: var(--paper);
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--line)
    }

    nav.is-open {
        display: flex
    }

    .home-hero {
        height: auto;
        grid-template-columns:1fr
    }

    .home-hero__visual {
        height: 52vh;
        min-height: 390px
    }

    .home-hero__copy {
        min-height: 480px;
        padding-bottom: 74px
    }

    .hero-copy {
        align-self: center;
        padding: 44px 24px
    }

    .hero-controls {
        left: 24px;
        right: 24px;
        bottom: 22px
    }

    .trust-strip {
        align-items: center;
        flex-direction: column;
        gap: 8px
    }

    .section {
        padding: 70px 20px
    }

    .dog-grid {
        grid-template-columns:repeat(2, 1fr)
    }

    .story {
        grid-template-columns:1fr
    }

    .site-footer {
        grid-template-columns:1fr 1fr
    }

    .copyright {
        grid-column: 1/-1
    }
}

@media (max-width: 560px) {
    .dog-grid {
        grid-template-columns:1fr
    }

    .dog-card__photo {
        height: 380px
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px
    }

    .site-footer {
        grid-template-columns:1fr
    }

    .copyright {
        grid-column: 1
    }

    .page-hero {
        min-height: 320px
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .hero-copy, .hero-dots button {
        transition: none
    }

    .hero-slide {
        transform: none
    }
}

.news-section {
    padding-top: 90px;
    padding-bottom: 40px
}

.news-grid {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 24px
}

.news-card {
    display: grid;
    grid-template-columns:42% 58%;
    min-height: 300px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    text-decoration: none;
    transition: .25s
}

.news-card--lead {
    grid-column: 1/-1;
    grid-template-columns:58% 42%;
    min-height: 440px
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px #31423518
}

.news-card__image {
    position: relative;
    min-height: 260px;
    background: var(--cream);
    overflow: hidden
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s
}

.news-card:hover img {
    transform: scale(1.025)
}

.news-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--forest);
    color: #ffffffaa;
    font: clamp(28px, 5vw, 54px) Prata, serif
}

.news-card__kind {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fffdf8e8;
    color: var(--forest);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em
}

.news-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px)
}

.news-card__body time {
    font-size: 12px;
    color: var(--muted)
}

.news-card__body h3 {
    font: clamp(25px, 3vw, 42px) Prata, serif;
    line-height: 1.2;
    margin: 12px 0
}

.news-card__body p {
    color: var(--muted)
}

.news-card__body strong {
    font-size: 13px;
    color: var(--terracotta)
}

.news-card__more {
    margin-top: auto;
    padding-top: 20px;
    font-weight: 700;
    color: var(--forest)
}

.publication {
    max-width: 1280px;
    margin: auto;
    padding: 40px 36px 110px
}

.publication-back {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px
}

.publication-hero {
    display: grid;
    grid-template-columns:.85fr 1.15fr;
    min-height: 620px;
    background: var(--cream);
    border-radius: 28px;
    overflow: hidden
}

.publication-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(48px, 5.5vw, 72px)
}

.publication-hero__copy time {
    color: var(--muted);
    font-size: 15px
}

.publication-hero h1 {
    font-size: clamp(3rem, 5.2vw, 5.2rem);
    margin: 18px 0 14px
}

.publication-hero__copy > p {
    width: 100%;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 18px;
    color: var(--muted)
}

.publication-hero__image {
    min-height: 620px
}

.publication-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.publication-content {
    max-width: 850px;
    margin: 90px auto;
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.9
}

.publication-puppies {
    padding-top: 30px
}

.news-list-page {
    padding-top: 85px
}

.news-grid--archive .news-card {
    grid-template-columns:1fr;
    min-height: 0
}

.news-grid--archive .news-card__image {
    height: 340px
}

.news-grid--archive .news-card__body {
    min-height: 300px
}

.pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 60px
}

.pagination__pages {
    display: flex;
    align-items: center;
    gap: 8px
}

.pagination a, .pagination span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    text-decoration: none;
    font-weight: 700
}

.pagination a:hover, .pagination .is-current {
    background: var(--forest);
    border-color: var(--forest);
    color: white
}

.pagination__arrow {
    font-size: 19px
}

.pagination .is-disabled {
    opacity: .35
}

.gallery-total {
    color: var(--muted);
    font-size: 14px
}

@media (max-width: 850px) {
    .news-card, .news-card--lead {
        grid-column: auto;
        grid-template-columns:1fr;
        min-height: 0
    }

    .news-card__image {
        height: 340px
    }

    .news-grid {
        grid-template-columns:1fr
    }

    .publication {
        padding: 24px 20px 80px
    }

    .publication-hero {
        grid-template-columns:1fr
    }

    .publication-hero__copy {
        min-height: 480px
    }

    .publication-hero__image {
        min-height: 460px
    }

    .publication-content {
        margin: 65px auto
    }
}

.contacts-page {
    max-width: 1180px;
    padding: 90px 30px 110px;
    text-align: left
}

.contacts-intro {
    display: grid;
    grid-template-columns:1.1fr .9fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 48px
}

.contacts-intro h2 {
    margin: 12px 0 0
}

.contacts-intro > p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 8px
}

.contact-grid {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 18px
}

.contact-card {
    min-height: 150px;
    display: grid;
    grid-template-columns:60px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    text-decoration: none;
    transition: .25s
}

.contact-card:hover {
    border-color: var(--sage);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px #31423515
}

.contact-card__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--cream);
    color: var(--forest);
    font-size: 18px;
    font-weight: 800
}

.contact-card__icon img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain
}

.contact-card--avito .contact-card__icon img {
    width: 44px
}

.contact-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column
}

.contact-card__content small {
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
    font-size: 10px
}

.contact-card__content strong {
    margin-top: 7px;
    font: clamp(18px, 2vw, 24px) Prata, serif;
    overflow-wrap: anywhere
}

.contact-card__arrow {
    font-size: 22px;
    color: var(--forest)
}

.contact-empty {
    grid-column: 1/-1;
    padding: 42px;
    background: var(--cream);
    border-radius: 20px
}

.contact-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 28px;
    padding: 38px 42px;
    border-radius: 20px;
    background: var(--forest);
    color: white
}

.contact-address h3 {
    font: clamp(22px, 3vw, 34px) Prata, serif;
    margin: 8px 0 0
}

.contact-address .eyebrow {
    color: #e9a98f
}

.contact-address .btn {
    background: white;
    color: var(--forest)
}

@media (max-width: 760px) {
    .contacts-intro {
        grid-template-columns:1fr;
        gap: 18px
    }

    .contact-grid {
        grid-template-columns:1fr
    }

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

    .contact-card {
        min-height: 128px;
        padding: 22px
    }
}

@media (max-width: 420px) {
    .contact-card {
        grid-template-columns:48px 1fr auto;
        gap: 12px
    }

    .contact-card__icon {
        width: 46px;
        height: 46px
    }

    .contact-card__icon img {
        width: 26px;
        height: 26px
    }

    .contact-card--avito .contact-card__icon img {
        width: 38px
    }

    .contacts-page {
        padding-left: 20px;
        padding-right: 20px
    }
}
