/* ========== ДЕСКТОПНЫЙ ПОДВАЛ ========== */

.d-footer {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(1562px, calc(100% - 64px));
    padding-bottom: 48px;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.d-footer-left {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.d-footer-logo {
    width: 194px;
    height: auto;
}

.d-footer-desc-1 {
    margin-top: 24px;
    width: 100%;
    font-family: inherit;
    font-size: var(--t-lead);
    font-weight: 300;
    color: #464646;
    line-height: 1.55;
}

.d-footer-desc-2 {
    margin-top: 10px;
    width: 100%;
    font-family: inherit;
    font-size: var(--t-lead);
    font-weight: 300;
    color: #464646;
    line-height: 1.55;
}

.d-footer-nav {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.d-footer-nav-bg {
    display: none;
}

.d-footer-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 16px;
    font-size: clamp(17px, 1.15vw, 21px);
    text-align: left;
    width: 100%;
    flex: 1;
    align-content: start;
}

.d-footer-nav-links a {
    display: block;
    text-decoration: none;
    padding: 3px 0;
    border-bottom: 1px solid rgba(47, 86, 63, 0.09);
    line-height: 1.3;
}
.d-footer-nav-links a.active { color: #2f563f; }
.d-footer-nav-links a:not(.active) { color: #688863; }
.d-footer-nav-links a:hover { color: #2f563f; }

.d-footer-contacts {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.d-footer-contact-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.d-footer-contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.d-footer-contact-row-addr {
    align-items: flex-start;
}

.d-footer-ico-img {
    width: 20px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.d-footer-contact-item {
    font-size: var(--t-body);
    color: #464646;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.d-footer-address {
    margin: 0;
    font-size: var(--t-body);
    color: #464646;
    line-height: 22px;
    text-align: center;
}

.d-btn-footer {
    height: 42px;
    border: 1px solid #2f563f;
    border-radius: 37px;
    background: transparent;
    color: #2f563f;
    font-family: 'TT Norms Pro Serif', serif;
    font-size: clamp(14px, 1vw, 18px);
    font-style: italic;
    font-weight: 500;
    cursor: pointer;
}

.d-footer-btn-group {
    display: grid;
    justify-items: stretch;
    gap: 8px;
    margin-top: 20px;
    width: max-content;
}

.d-footer-btn-group .d-btn-footer {
    width: 100%;
    padding: 0 22px;
    white-space: nowrap;
}

.d-footer-btn-group .d-footer-msg-cta {
    width: 100%;
    padding: 0 22px;
}

.d-footer-social {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    flex-shrink: 0;
}

.d-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.d-footer-divider {
    width: 100%;
    height: 1px;
    margin-top: 44px;
    background: linear-gradient(90deg, rgba(207,182,152,0) 0%, rgba(207,182,152,0.95) 18%, rgba(207,182,152,0.95) 82%, rgba(207,182,152,0) 100%);
}

.d-footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    gap: 40px;
    padding-top: 48px;
}

.d-footer-bottom {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(207,182,152,0.25);
}

.d-footer-bottom-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    flex: 0 0 auto;
}

.d-footer-bottom-center {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    flex: 0 0 580px;
}

.d-footer-bottom-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    align-items: flex-end;
    text-align: right;
    flex: 0 0 auto;
    margin-left: auto;
}

.d-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.d-footer-legal-sep {
    color: #6b6256;
    font-size: var(--t-caption);
    font-weight: 400;
    line-height: 1;
}

.d-footer-privacy {
    font-size: var(--t-caption);
    font-weight: 400;
    color: #6b6256;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.d-footer-copy {
    margin: 0;
    font-size: var(--t-caption);
    font-weight: 400;
    color: #6b6256;
    line-height: 1.5;
}

.d-invest-disclaimer {
    font-size: 15px;
    color: #6b6256;
    line-height: 1.55;
}

.d-footer-msg-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.d-footer-msg-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    border-radius: 37px;
    font-family: 'TT Norms Pro Serif', serif;
    font-size: clamp(14px, 1vw, 18px);
    font-style: italic;
    font-weight: 500;
    text-decoration: none;
    transition: background 180ms ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.d-footer-msg-cta--tg {
    background: transparent;
    color: #2f563f;
    border: 1px solid rgba(47, 86, 63, 0.35);
}

.d-footer-msg-cta--tg:hover {
    background: rgba(47, 86, 63, 0.06);
}

.d-footer-msg-cta--max {
    background: transparent;
    color: #2f563f;
    border: 1px solid rgba(47,86,63,0.35);
}

.d-footer-msg-cta--max:hover {
    background: rgba(47,86,63,0.06);
}

.d-footer-msg-cta img {
    display: block;
    flex-shrink: 0;
}

.d-footer-communities {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.d-footer-community-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(47,86,63,0.2);
    text-decoration: none;
    line-height: 0;
    overflow: hidden;
    transition: border-color 200ms ease, background 200ms ease;
}

.d-footer-community-btn:hover {
    border-color: rgba(47,86,63,0.45);
    background: rgba(47,86,63,0.05);
}

.d-footer-community-btn img {
    display: block;
    flex-shrink: 0;
}

.d-footer-company {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.d-footer-req-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: #2f563f;
    text-decoration: underline;
    cursor: pointer;
}

/* Компенсация: убран zoom:0.8, при 1440px нужно компактнее */
@media (max-width: 1600px) {
    .d-footer-bottom-left {
        flex: 0 1 auto;
        min-width: 0;
    }

    .d-footer-bottom-center {
        flex: 0 0 420px;
    }

    .d-footer-left {
        align-self: start;
    }
}

@media (max-width: 1400px) {
    .d-footer-top {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 1400px) {
    .d-footer {
        width: calc(100% - 48px);
    }

    .d-footer-top {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 1440px) {
    .d-footer-bottom {
        flex-wrap: wrap;
        gap: 16px 40px;
        align-items: flex-start;
    }

    .d-footer-bottom-left {
        order: 1;
        flex: 1 1 auto;
    }

    .d-footer-bottom-right {
        order: 2;
    }

    .d-footer-bottom-center {
        order: 3;
        flex: 0 0 100%;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 1280px) {
    .d-footer-nav {
        justify-self: start;
    }

    .d-footer-contacts {
        max-width: none;
    }

    .d-footer-bottom {
        flex-wrap: wrap;
        gap: 16px 40px;
    }

    .d-footer-bottom-left {
        order: 1;
        flex: 1 1 auto;
    }

    .d-footer-bottom-right {
        order: 2;
    }

    .d-footer-bottom-center {
        order: 3;
        flex: 0 0 100%;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 1120px) {
    .d-footer {
        width: calc(100% - 32px);
    }

    .d-footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .d-footer-left,
    .d-footer-nav,
    .d-footer-contacts {
        width: 100%;
        max-width: none;
    }

    .d-footer-nav {
        min-height: 0;
        height: auto;
        justify-self: start;
    }

    .d-footer-nav-bg {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 0 auto;
    }

    .d-footer-nav-links {
        text-align: center;
    }

    .d-footer-contact-block {
        gap: 12px;
    }

    .d-footer-contact-text,
    .d-footer-address,
    .d-footer-desc-1,
    .d-footer-desc-2 {
        font-size: 18px;
    }

    .d-footer-copy,
    .d-footer-privacy {
        max-width: none;
    }
}

@media (min-width: 1025px) and (max-width: 1120px) {
    .d-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }

    .d-footer-left {
        grid-column: 1 / -1;
    }

    .d-footer-nav {
        align-self: start;
    }

    .d-footer-contacts {
        align-self: start;
        align-items: flex-start;
    }

    .d-footer-nav-links {
        text-align: left;
    }
}
