.hero-section {
    position: relative;
    padding: 0;
}

.carousel {
    position: relative;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 calc(100% / var(--per-view, 1));
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.58);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

.carousel-control.prev {
    left: 1rem;
}

.carousel-control.next {
    right: 1rem;
}

.carousel-control:hover,
.carousel-control:focus-visible {
    background: var(--brand);
}

.carousel-control[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 1.15rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.partners-section .carousel-dots {
    bottom: -1.15rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.carousel-dot.is-active {
    background: var(--brand-hover);
}

.hero-slide {
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-link {
    display: block;
    width: 100%;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-link:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

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

.hero-overlay {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62));
    min-height: 60vh;
    display: grid;
    place-items: center;
}

.hero-content {
    text-align: center;
    max-width: 820px;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(2.2rem, 7vw, 3.7rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    font-weight: 900;
}

.hero-content p {
    margin: 1.3rem auto 0;
    max-width: 700px;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    color: #374151;
    margin-bottom: 1.4rem;
}

.about-image {
    height: 600px;
    display: flex;
    align-items: center;
}

.about-image img {
    -webkit-mask-image: url("mask.svg");
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-position-x: 50%;
    -webkit-mask-position-y: 50%;
    -webkit-mask-repeat: no-repeat;
    width: auto;
}

.freedom-section {
    font-size: 1.2rem;
}

.freedom-section article p {
    font-size: 1rem;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    align-items: center;
}

article p {
    margin: 0.8rem 0 0;
    color: #374151;
    font-size: 1.2rem;
}

.how-grid ul {
    padding-left: 1.3rem;
    margin: 0.8rem 0 0;
}

.how-grid li {
    font-size: 1.1rem;
    color: #374151;
    margin: 0.2rem 0;
}

figure {
    margin: 0;
}

figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section .actions {
    margin-top: 2.5rem;
    text-align: center;
}

.img-placeholder {
    width: 100%;
    min-height: 420px;
    background: linear-gradient(135deg, #eceff4, #dae2ed);
}

.numbers-section,
.partners-section {
    background: var(--section-bg);
}

.menu-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    margin-bottom: 2rem;
}

.menu-header h2 {
    margin-bottom: 0.3rem;
}

.menu-header p {
    margin: 0;
    color: #5f6368;
    font-size: 1.02rem;
}

.action-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.action-card {
    position: relative;
    border-radius: 18px;
    padding: 1.25rem 1.15rem 1.15rem;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    animation: menuCardReveal 0.65s ease both;
    cursor: pointer;
    text-align: center;
}

.action-card:nth-child(2) {
    animation-delay: 0.08s;
}

.action-card:nth-child(3) {
    animation-delay: 0.16s;
}

.action-card:hover,
.action-card:focus-within {
    transform: translateY(-8px);
}

.action-card-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 8px 16px var(--brand-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.action-card:hover .action-card-icon,
.action-card:focus-within .action-card-icon {
    transform: translateY(-4px) rotate(-3deg) scale(1.04);
    box-shadow: 0 12px 24px var(--brand-shadow);
}

.action-card h3 {
    margin: 0.95rem 0 0;
    font-size: 1.45rem;
}

.action-card p {
    margin-top: 0.55rem;
    color: #4e5968;
    font-size: 1.05rem;
    min-height: 4.6rem;
    margin-bottom: 1rem;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.05rem;
    margin-top: 0.2rem;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.action-link::after {
    content: "\203A";
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.action-card:hover .action-link,
.action-card:focus-within .action-link {
    color: var(--brand-hover);
    border-color: var(--brand-hover);
    transform: translateX(2px);
}

.action-card:hover .action-link::after,
.action-card:focus-within .action-link::after {
    transform: translateX(2px);
}

.action-link.is-disabled {
    color: #7b7b7b;
    border-bottom: 0;
}

@keyframes menuCardReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.numbers-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.numbers-grid article {
    border-left: 3px solid #d5dbe7;
    padding-left: 0.8rem;
}

.numbers-grid strong {
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--brand);
    font-weight: 900;
}

.numbers-grid span {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.05rem;
    color: #374151;
}

.numbers-section h2 {
    text-align: center;
    word-spacing: 0.2rem;
    margin-bottom: 2.5rem;
}

.freedom-grid p {
    margin-top: 0.55rem;
    font-size: 0.95rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pets-section .card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease, border-color 0.38s ease;
}

.pets-section .card:hover,
.pets-section .card:focus-within {
    transform: translateY(-8px);
    border-color: var(--brand-hover);
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.14);
}


.pets-section .card:hover a,
.pets-section .card:focus-within a {
    color: var(--brand-hover);
    border-bottom: 1px solid var(--brand-hover);
}

.pets-section .card img,
.pets-section .card .img-placeholder {
    width: 100%;
    height: 220px;
    object-fit: cover;
    min-height: 220px;
    border-radius: 0.3rem 0.3rem 0 0;
    transition: transform 0.45s ease;
}

.pets-section .card:hover img,
.pets-section .card:focus-within img {
    transform: scale(1.04);
}

.card-body {
    padding: 0.9rem;
    transition: transform 0.3s ease;
}

.pets-section .card:hover .card-body,
.pets-section .card:focus-within .card-body {
    transform: translateY(-2px);
}

.card-body h3 {
    margin: 0;
    font-size: 1.35rem;
}

.card-body p {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.98rem;
}

.card-body summary {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.98rem;
}

.card-body a {
    display: inline-block;
    margin-top: 0.65rem;
}

.pets-section .card-body .link::after {
    content: "\203A";
    margin-left: 0.3rem;
    display: inline-block;
    transition: transform 0.25s ease;
}

.pets-section .card:hover .card-body .link::after,
.pets-section .card:focus-within .card-body .link::after {
    transform: translateX(3px);
}

.pets-section .actions .btn-primary {
    transition: background-color 0.2s ease-in-out, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}

.pets-section .actions .btn-primary:hover,
.pets-section .actions .btn-primary:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(177, 50, 98, 0.25);
}

.pets-section .actions .btn-primary:active {
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .pets-section .card,
    .pets-section .card::after,
    .pets-section .card img,
    .card-body,
    .pets-section .card-body .link::after,
    .pets-section .actions .btn-primary {
        transition: none;
    }
}

@media (max-width: 980px) {
    .action-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .action-menu-grid {
        grid-template-columns: 1fr;
    }

    .action-card p {
        min-height: 0;
    }
}

.happy-endings-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.happy-endings-container article {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.happy-endings-container article:nth-child(even) {
    flex-direction: row-reverse;
}
.happy-endings-container article:nth-child(even) .text {
    text-align: left;
}

.happy-endings-container article h3 {
    margin: 0;
    font-size: 2rem;
}

.happy-endings-container article p {
    margin-bottom: 0.8rem;
}

.happy-endings-container article .text {
    width: 50%;
    text-align: right;
}

.happy-endings-container figure {
    height: 400px;
    display: flex;
    align-items: center;
    width: 50%;
    justify-content: center;
}

.happy-endings-container figure img {
    -webkit-mask-image: url("mask2.svg");
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-position-x: 50%;
    -webkit-mask-position-y: 50%;
    -webkit-mask-repeat: no-repeat;
    width: auto;
}

.partners-carousel {
    margin-top: 0.8rem;
}

.partner-slide {
    margin: 0;
    min-width: 0;
    min-height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.6rem;
}

.partner-slide img {
    width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.partner-slide figcaption {
    font-weight: 700;
    color: #374151;
    text-align: center;
}

@media (max-width: 1060px) {

    .numbers-grid,
    .freedom-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-image {
        height: 500px;
    }
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
    }

    .how-grid figure {
        order: -1;
    }

    .about-image {
        display: none
    }

    .about-image img {
        -webkit-mask-size: 60%;
    }

    .happy-endings-container article {
        flex-direction: column-reverse!important;
    }

    .happy-endings-container article h3 {
        font-size: 1.8rem;
    }

    .happy-endings-container article .text {
        width: 100%!important;
        text-align: center!important;
    }

    .happy-endings-container figure {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .numbers-grid,
    .freedom-grid,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-section,
    .hero-overlay,
    .hero-slide {
        min-height: 40vh;
    }

    .carousel-control {
        width: 36px;
        height: 36px;
    }

    .about-image {
        height: 450px;
    }

    .about-image img {
        -webkit-mask-size: 100%;
    }
}