:root {
    --blue: #173b91;
    --blue-dark: #0f2d75;
    --blue-light: #7896ef;
    --text: #173b73;
    --body-text: #3f4d69;
    --muted: #727e96;
    --white: #ffffff;
    --soft: #f7f9ff;
    --soft-blue: #eef3ff;
    --border: #e3e9f5;
    --cream: #fffaf5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--body-text);
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* TOPBAR */

.topbar {
    background: var(--blue);
    color: #fff;
    font-size: 13px;
}

.topbar-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar a {
    opacity: .96;
}

.topbar a:hover {
    opacity: 1;
}

/* HEADER */

.main-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 108px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-logo {
    margin-right: auto;
    display: flex;
    align-items: center;
}

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

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: #17356f;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--blue);
}

.desktop-nav .current-menu-item > a::after {
    content: "";
    position: absolute;
    height: 2px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--blue);
}

.header-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
}

.header-help-button:hover {
    background: var(--blue-dark);
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px auto;
    background: var(--blue);
    border-radius: 10px;
}

.mobile-menu {
    display: none;
}

/* BUTTONS */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 9px;
    font-weight: 700;
    transition: .2s ease;
}

.button-blue {
    background: var(--blue);
    border: 1px solid var(--blue);
    color: #fff;
}

.button-blue:hover {
    background: var(--blue-dark);
}

.button-outline {
    background: #fff;
    border: 1px solid var(--blue);
    color: var(--blue);
}

.button-outline:hover {
    background: var(--soft);
}

/* HERO */

.home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 83% 48%, rgba(116, 150, 239, .16), transparent 31%),
        linear-gradient(90deg, #fff 0%, #fbfcff 100%);
}

.home-hero-inner {
    min-height: 560px;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    align-items: center;
    gap: 30px;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 65px 0;
}

.hero-content h1 {
    margin: 0 0 22px;
    color: var(--blue);
    font-size: clamp(54px, 5vw, 76px);
    line-height: .98;
    letter-spacing: -3px;
}

.hero-content h1 span {
    color: var(--blue-light);
}

.hero-content p {
    max-width: 520px;
    font-size: 18px;
    line-height: 1.65;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.hero-visual {
    align-self: stretch;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-circle {
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: var(--soft-blue);
    right: 35px;
    top: 65px;
    z-index: 1;
}

.hero-parrot {
    max-height: 520px;
    width: auto;
    position: relative;
    z-index: 3;
}

.hero-decoration {
    position: absolute;
    z-index: 2;
    color: #d8e4ff;
    font-size: 68px;
    opacity: .75;
}

.hero-paw {
    left: 30px;
    top: 155px;
}

.hero-feather {
    right: 5px;
    top: 80px;
    transform: rotate(20deg);
}

/* SECTIONS */

.home-section {
    padding: 72px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 34px;
    letter-spacing: -1px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    text-align: left;
}

.section-link {
    color: var(--blue);
    font-weight: 700;
}

/* ANIMALS */

.animals-section {
    background: #fff;
}

.animal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.animal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(24, 52, 110, .06);
    transition: .2s ease;
}

.animal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(24, 52, 110, .1);
}

.animal-card-image {
    position: relative;
    aspect-ratio: 1 / .88;
    overflow: hidden;
    background: #eef2f7;
}

.animal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animal-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    border-radius: 30px;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.animal-heart {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--blue);
    font-size: 20px;
    box-shadow: 0 5px 16px rgba(0,0,0,.12);
}

.animal-card-body {
    padding: 15px;
}

.animal-card h3 {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 18px;
}

.animal-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.animal-more {
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
}

/* HELP */

.help-section {
    background:
        radial-gradient(circle at 0% 100%, rgba(117,150,239,.08), transparent 25%),
        radial-gradient(circle at 100% 10%, rgba(117,150,239,.08), transparent 25%),
        #fff;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.help-item {
    text-align: center;
    padding: 10px 10px 0;
}

.help-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 800;
}

.help-item h3 {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 17px;
}

.help-item p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.help-item a {
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
}

/* LOWER */

.lower-section {
    padding-top: 25px;
}

.lower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-card,
.news-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    padding: 28px;
}

.about-card {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 20px;
    align-items: center;
}

.about-card h2,
.news-card h2 {
    margin: 0 0 16px;
    color: var(--blue);
    font-size: 28px;
}

.about-card p {
    line-height: 1.7;
    color: var(--body-text);
}

.about-bubbles {
    position: relative;
    min-height: 250px;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 8px 24px rgba(17,51,110,.12);
}

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

.bubble-1 {
    width: 120px;
    height: 120px;
    left: 0;
    top: 15px;
}

.bubble-2 {
    width: 105px;
    height: 105px;
    right: 10px;
    top: 0;
}

.bubble-3 {
    width: 100px;
    height: 100px;
    left: 25px;
    bottom: 0;
}

.bubble-4 {
    width: 110px;
    height: 110px;
    right: 5px;
    bottom: 10px;
}

.bubble-heart {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 25px;
    border: 5px solid #fff;
}

.news-list {
    display: grid;
    gap: 12px;
}

.news-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    align-items: center;
}

.news-item img {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

.news-item strong {
    display: block;
    color: var(--blue);
    line-height: 1.35;
}

.news-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.news-more {
    display: inline-block;
    margin-top: 18px;
    color: var(--blue);
    font-weight: 700;
}

/* FOOTER */

.site-footer {
    background: linear-gradient(135deg, #173b91, #0f2d75);
    color: #fff;
    padding: 58px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.2fr 1.2fr;
    gap: 40px;
}

.footer-logo-wrap img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.footer-brand p,
.footer-support p {
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--blue);
    font-weight: 800;
}

.site-footer h3 {
    margin: 0 0 16px;
    font-size: 15px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin: 8px 0;
    color: rgba(255,255,255,.84);
    font-size: 14px;
}

.footer-support .button {
    background: #fff;
    color: var(--blue);
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.18);
    text-align: center;
    color: rgba(255,255,255,.78);
    font-size: 13px;
}

/* MOBILE */

@media (max-width: 1100px) {
    .animal-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .help-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {

    .container {
        width: min(100% - 30px, 1180px);
    }

    .topbar {
        display: none;
    }

    .header-inner {
        min-height: 78px;
    }

    .site-logo img {
        width: 62px;
        height: 62px;
    }

    .desktop-nav,
    .header-help-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu.is-open {
        display: block;
        background: #fff;
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 12px 0;
    }

    .mobile-menu li {
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu li:last-child {
        border-bottom: 0;
    }

    .mobile-menu a {
        display: block;
        padding: 16px 0;
        color: var(--blue);
        font-weight: 600;
    }

    .mobile-menu-contact {
        display: grid;
        gap: 10px;
        padding: 20px 0 25px;
        color: var(--blue);
    }

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

    .hero-content {
        padding: 50px 0 10px;
    }

    .hero-content h1 {
        font-size: 52px;
        letter-spacing: -2px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .hero-parrot {
        max-height: 360px;
    }

    .hero-circle {
        width: 300px;
        height: 300px;
        right: 50%;
        transform: translateX(50%);
        top: 20px;
    }

    .section-heading-row {
        align-items: flex-start;
        gap: 18px;
    }

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

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

    .lower-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {

    .home-section {
        padding: 55px 0;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .section-heading-row {
        display: block;
        text-align: center;
    }

    .section-link {
        display: inline-block;
        margin-top: 12px;
    }

    .animal-grid,
    .help-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        grid-template-columns: 1fr;
    }

    .about-bubbles {
        min-height: 260px;
    }
}
