:root {
    --bg-main: #F9F6F0;
    --bg-white: #FFFFFF;
    --bg-dark-green: #5D6855;
    --bg-light-olive: #A8B3A0;
    --bg-footer: #E8DFC9;
    --text-dark: #2C2C2C;
    --text-gray: #757575;
    --accent-badge: #E8DFC9;
    --border-soft: #CCCCCC;
    --radius-card: 24px;
    --radius-button: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== HEADER ===== */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-block: 24px;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: #2C2C2C;
        }

        .logo-circle {
            width: 40px;
            height: 40px;
            border-radius: 14px;
            background: #D9D9D9;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }

        .logo-circle img {
            height: 70%;
        }

        .brand-name {
            font-size: 18px;
            font-weight: 600;
            text-decoration: none;
        }

        .nav {
            display: flex;
            gap: 32px;
            font-size: 15px;
        }

        .nav a {
            text-decoration: none;
            color: var(--text-dark);
        }

        .nav a:hover {
            color: var(--bg-light-olive);
        }

        .header-contacts-btn {
            background: var(--bg-light-olive);
            color: #FFFFFF;
            border-radius: var(--radius-button);
            padding: 20px 24px;
            border: none;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
        }

/* ===== HERO ===== */
.hero-section {
    padding: 40px 0 60px;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-badge);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #6B5D3E;
}

.hero-title {
    font-size: 48px;
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-text-block {
    margin-bottom: 32px;
}

.hero-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-btn-primary {
    background: transparent;
    color: var(--bg-dark-green);
    border-radius: var(--radius-button);
    padding: 14px 28px;
    font-weight: 600;
    border: 1.5px solid var(--bg-light-olive);
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.hero-btn-primary:hover {
    background: var(--bg-light-olive);
    color: #fff;
}

.btn-arrow {
    font-size: 14px;
}

/* ===== MAIN LAYOUT (Sidebar + Content) ===== */
.main-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    padding: 40px 0 60px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}

.sidebar-nav {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
}

.sidebar-link {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
}

.sidebar-link:hover {
    color: var(--text-dark);
}

.sidebar-link.active {
    color: var(--bg-dark-green);
    font-weight: 700;
}

/* Scroll offset for anchored sections */
section[id] {
    scroll-margin-top: 24px;
}

.sidebar-cta {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.06);
}

.sidebar-cta-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.sidebar-cta-icon {
    font-size: 16px;
}

.sidebar-cta-text {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 16px;
}

.sidebar-cta-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-button);
    background: transparent;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-cta-btn:hover {
    background: var(--bg-light-olive);
    color: #fff;
    border-color: var(--bg-light-olive);
}

/* ===== NEEDS SECTION ===== */
.needs-section {
    margin-bottom: 48px;
}

.section-pretitle {
    font-size: 14px;
    color: var(--bg-light-olive);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.needs-intro {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 700px;
}

.needs-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.need-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: left;
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.need-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.need-card--multi-detail .topic-more:not(:last-child) {
    margin-bottom: 16px;
}

.need-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #F0EBE1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px;
    font-size: 24px;
}

.need-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.need-card-text {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 12px;
}

.topic-more {
    font-size: 13px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.topic-more:hover {
    color: var(--text-dark);
}

/* Модальное окно карточек потребностей */
.need-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.need-modal.is-open {
    display: flex;
}

.need-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 48, 42, 0.45);
}

.need-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 28px 24px 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.need-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 36px 12px 0;
    color: var(--text-dark);
}

.need-modal-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-gray);
    margin: 0;
}

.need-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-gray);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.need-modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
}

/* ===== ACTION SECTION ===== */
.action-section {
    margin-bottom: 48px;
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.04);
}

.action-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.action-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
}

.action-text--para-gap {
    margin-top: 1.25em;
}

/* ===== BREED SECTION ===== */
.breed-section {
    margin-bottom: 32px;
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.04);
}

.breed-badge-wrapper {
    margin-bottom: 16px;
}

.breed-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #F0EDE5;
    padding: 14px 24px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.breed-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.breed-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.breed-type-card {
    background: var(--bg-main);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.04);
}

.breed-type-card h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.breed-type-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ===== ENRICHMENT SECTION ===== */
.enrichment-section {
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.enrichment-intro {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 700px;
}

.enrichment-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.enrichment-photo-item {
    text-align: center;
}

.enrichment-photo-item img {
      position: absolute;
      top: 50%;
      transform: translateY(calc(-50% + 30px));
}


.enrichment-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 10px;
}

.enrichment-label {
    font-size: 13px;
    color: var(--text-gray);
    font-style: italic;
}

/* DEVELOPING CARD */
.developing-card {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.06);
}

.developing-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.developing-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F5F2EB;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ===== SAFETY BANNER ===== */
.safety-banner {
    background: #F2E0D8;
    border-radius: var(--radius-card);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 40px 0;
}

.safety-icon-wrap {
    flex-shrink: 0;
}

.safety-dog-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.safety-content {
    flex: 1;
}

.safety-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #8B5E4B;
}

.safety-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* ===== WALK SECTION ===== */
.walk-section {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 40px 32px 48px;
    border: 1px solid rgba(0,0,0,0.04);
}

.walk-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.walk-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--bg-light-olive);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.walk-title {
    font-size: 28px;
    font-weight: 700;
}

.walk-intro {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 700px;
}

.walk-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.walk-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.walk-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light-olive);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.walk-step-content h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.walk-step-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ===== CHECKLIST SECTION ===== */
.checklist-wrapper {
    background: var(--bg-white);
    margin-top: 40px;
}

.checklist-section {
    padding: 60px 0;
    text-align: center;
}

.checklist-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.checklist-subtitle {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 40px;
    text-align: left;
}

.checklist-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.checklist-item {
    text-align: center;
}

.checklist-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #F0EBE1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
}

.checklist-item h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.checklist-item p {
    font-size: 13px;
    color: var(--text-gray);
}

.checklist-cta {
    margin-bottom: 24px;
}

.cta-main-btn {
    background: var(--bg-light-olive);
    color: #fff;
    border: none;
    border-radius: var(--radius-button);
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.cta-main-btn:hover {
    background: var(--bg-dark-green);
}

.checklist-note {
    font-size: 13px;
    color: var(--text-gray);
    font-style: italic;
}

/* ===== FOOTER ===== */
        .footer-wrapper {
            background: var(--bg-footer);
            margin-top: 80px;
        }

        .footer {
            padding-block: 60px 24px;
        }

        .footer-top {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-logo-block {
            max-width: 250px;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .footer-logo-icon {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            background: #D9D9D9;
        }

        .footer-logo-text {
            font-weight: 700;
        }

        .footer-description {
            font-size: 13px;
            color: var(--text-gray);
            margin-top: 16px;
            line-height: 1.5;
        }

        .footer-column-title {
            font-weight: 600;
            margin-bottom: 16px;
            font-size: 14px;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 12px;
            font-size: 14px;
        }

        .footer-links a {
            color: var(--text-gray);
            text-decoration: none;
        }

        .footer-links a:hover {
            color: var(--text-dark);
        }

        .footer-socials {
            display: flex;
            gap: 12px;
        }

        .footer-social-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #D9D9D9;
        }

        .footer-divider {
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            margin-bottom: 24px;
        }

        .footer-bottom {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-gray);
        }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .container {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 40px;
    }

    .main-layout {
        grid-template-columns: 200px 1fr;
        gap: 40px;
    }

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

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

    .checklist-items {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer { padding-inline: 0; }

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        padding: 0 20px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .header {
        flex-wrap: wrap;
        gap: 16px;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-section {
        padding: 24px 0 40px;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .sidebar-links {
        margin-bottom: 0;
    }

    .needs-cards {
        grid-template-columns: 1fr;
    }

    .breed-types {
        grid-template-columns: 1fr;
    }

    .enrichment-photos {
        grid-template-columns: 1fr;
    }

    .enrichment-img {
        height: 200px;
    }

    .safety-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

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

    .footer-bottom-simple {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
}
}

@media (max-width: 480px) {


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

    .checklist-items {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 28px;
    }

}
