

.site-footer {
    display: flex;
    width: 100%;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    gap: 48px;
    box-sizing: border-box;
}

/* Блок «Нужна помощь» + карта (Figma 999:1233), над колонкой с собакой */
.footer-help-consult-wrap {
    width: 100%;
    max-width: 1464px;
    margin-inline: auto;
    padding-left: max(clamp(16px, 4vw, 32px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(16px, 4vw, 32px), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.footer-help-consult {
    max-width: none;
    margin-inline: 0;
}

.footer-help-consult.home-map-cta {
    width: 100%;
    margin-inline: 0;
    font-family: Onest, system-ui, sans-serif;
}

.footer-help-consult .home-map-cta__layout {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.footer-help-consult .home-map-cta__left {
    flex: 0 0 690px;
    max-width: 690px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.footer-help-consult .home-map-cta__card {
    background: #fff;
    border-radius: 32px;
    padding: 42px 32px;
    width: 100%;
    height: 636px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 52px;
    box-sizing: border-box;
}

.footer-help-consult .home-map-cta__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-help-consult .home-map-cta__title {
    margin: 0;
    color: #232929;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.3;
}

.footer-help-consult .home-map-cta__title span,
.footer-help-consult .home-map-cta__lead span {
    display: block;
}

.footer-help-consult .home-map-cta__lead {
    margin: 0;
    color: #859494;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
}

.footer-help-consult .home-map-cta__links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-help-consult .home-map-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 82px;
    padding: 0 24px 0 32px;
    border-radius: 32px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
}

.footer-help-consult .home-map-link__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(169.616deg, #54bfd1 0%, #239cb1 80.895%);
    pointer-events: none;
}

.footer-help-consult .home-map-link__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0.07;
    background-image: url('../images/main-page/help-texture.png');
    background-size: 183.2px 245.2px;
    background-repeat: repeat;
    background-position: 0 0;
}

.footer-help-consult .home-map-link__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 626 82' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)' opacity='0.4000000059604645'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(-1.0941 26.331 -42.404 -1.616 534.67 41)'><stop stop-color='rgba(255,255,255,1)' offset='0'/><stop stop-color='rgba(255,255,255,0)' offset='1'/></radialGradient></defs></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.footer-help-consult .home-map-link__label {
    position: relative;
    z-index: 1;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.footer-help-consult .home-map-link__icon {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-help-consult .home-map-link__icon-frame {
    width: 72px;
    height: 72px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(15deg);
    flex-shrink: 0;
}

.footer-help-consult .home-map-link__icon-img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.footer-help-consult .home-map-link--telegram .home-map-link__icon-frame,
.footer-help-consult .home-map-link--max .home-map-link__icon-frame {
    position: relative;
}

.footer-help-consult .home-map-link--telegram .home-map-link__icon-img,
.footer-help-consult .home-map-link--max .home-map-link__icon-img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 172px;
    height: 172px;
    margin: -86px 0 0 -86px;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.footer-help-consult .home-map-link:focus-visible {
    outline: 3px solid #239cb1;
    outline-offset: 3px;
}

.footer-help-consult .home-map-cta__legal {
    margin: 0;
    width: 100%;
    color: #859494;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.footer-help-consult .home-map-cta__legal a {
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-offset: 2px;
}

.footer-help-consult .home-map-cta__map {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 750px;
    border: 3px solid #239cb1;
    border-radius: 32px;
    overflow: hidden;
    box-sizing: border-box;
    background: #e8f4f6;
}

.footer-help-consult .home-map-cta__map-slot {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(35, 156, 177, 0.08), rgba(35, 156, 177, 0.05));
}

.footer-help-consult .home-map-cta__map-embed {
    width: 100%;
    height: 100%;
}

.footer-help-consult .home-map-cta__map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-info-block {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    gap: 15px;
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.dog-image-container {
    position: relative;
    width: min(32%, 573px);
    min-width: 280px;
    align-self: flex-end;
    border-radius: 32px;
    overflow: visible;
    flex-shrink: 0;
}

.dog-background {
    display: flex;
    width: 100%;
    height: 457px;
    border-radius: 32px;
    background: radial-gradient(circle at center, #A7D9E1 35%, #50BCCF 100%);
}

.dog-image {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 377px;
    height: 590px;
    transform: translateX(-50%);
}

.dog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.footer-info-container {
    position: relative;
    display: flex;
    width: min(100%, 1164px);
    max-width: 100%;
    min-width: 0;
    padding: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 72px;
    border-radius: 32px;
    background: #fff;
    min-height: 457px;
    box-sizing: border-box;
}

.footer-favicon-logo {
    position: absolute;
    top: -100px;
    right: 24px;
    width: 167px;
    height: 167px;
    transform: rotate(-19.861deg);
    flex-shrink: 0;
    aspect-ratio: 1/1;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 72px;
    font-family: Onest, system-ui, sans-serif;
}

.footer-nav-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer-nav-title {
    margin: 0;
    color: #859494;
    text-align: left;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
}

.footer-nav-list,
.footer-nav-info ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav-list a,
.footer-nav-info a {
    color: #232929;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    word-break: break-word;
}

.footer-nav-list a:hover,
.footer-nav-info a:hover {
    color: #239cb1;
}

.footer-subscribe {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
    font-family: Onest, system-ui, sans-serif;
}

.footer-subscribe-title {
    margin: 0;
    color: #232929;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.footer-subscribe-notice {
    margin: 8px 0 0;
    color: #2d6a4f;
    font-size: 16px;
    line-height: 1.3;
}

.footer-subscribe-form {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    align-self: stretch;
}

.footer-subscribe-form input {
    display: flex;
    min-width: 0;
    padding: 16px 24px;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    border-radius: 12px;
    background: var(--vb-bg, #f0f8fa);
    border: none;
    color: #232929;
    font-family: Onest, system-ui, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
}

.footer-subscribe-form input::placeholder {
    color: #859494;
}

.footer-subscribe-button {
    display: flex;
    width: min(100%, 350px);
    padding: 16px 32px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    background: #f8485e;
    border: none;
    color: #fff;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
    cursor: pointer;
}

.footer-subscribe-button:focus-visible {
    outline: 2px solid var(--vb-accent, #239cb1);
    outline-offset: 2px;
}

.footer-brand-block {
    display: flex;
    width: min(100%, 1087px);
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.footer-brand-words {
    width: 100%;
    max-width: 100%;
}

.footer-brand-words img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.footer-team-image {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-team-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    gap: 12px;
}

.footer-legal-item {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    color: #859494;
    font-family: Onest, system-ui, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
}

/* Нижняя юридическая строка — в ряд на широком экране (Figma 3106:2876, ~1920) */
@media (min-width: 1200px) {
    .footer-legal {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
        width: 100%;
        gap: clamp(8px, 2vw, 24px);
    }

    .footer-legal-item {
        width: auto;
        max-width: none;
        flex-shrink: 0;
        white-space: nowrap;
        text-align: center;
    }

    .footer-legal-item:first-child {
        line-height: 1.2;
    }

    .footer-legal-item:not(:first-child) {
        line-height: 1.5;
    }
}

@media (max-width: 1439px) {
    .footer-info-block {
        align-items: flex-end;
    }

    .footer-info-container {
        gap: 48px;
        padding: 28px;
    }
}

@media (max-width: 1199px) {
    .site-footer {
        min-height: auto;
        align-items: stretch;
    }

    /* Одна колонка по ширине контента body: без лишних max-width и без второго слоя горизонтальных отступов */
    .footer-help-consult-wrap {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
        padding-left: max(0px, env(safe-area-inset-left, 0px));
        padding-right: max(0px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .footer-info-block {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
        padding-left: max(0px, env(safe-area-inset-left, 0px));
        padding-right: max(0px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .footer-brand-block {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
        padding-left: max(0px, env(safe-area-inset-left, 0px));
        padding-right: max(0px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .dog-image-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-self: stretch;
    }

    .footer-info-container {
        min-height: auto;
        width: 100%;
        max-width: 100%;
    }

    .footer-favicon-logo {
        top: 24px;
        right: 24px;
        width: 120px;
        height: 120px;
    }

    .footer-help-consult .home-map-cta__layout {
        flex-direction: column;
    }

    .footer-help-consult .home-map-cta__left {
        flex-basis: auto;
        max-width: 100%;
    }

    .footer-help-consult .home-map-cta__map {
        height: 560px;
    }

    .footer-help-consult .home-map-cta__card {
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .site-footer {
        gap: 32px;
        padding-bottom: max(0px, env(safe-area-inset-bottom, 0px));
    }

    .dog-image-container {
        border-radius: 24px;
    }

    .dog-background {
        height: 320px;
        border-radius: 24px;
    }

    .dog-image {
        width: 240px;
        height: 360px;
    }

    .footer-info-container {
        padding: 20px max(20px, env(safe-area-inset-left, 0px)) 20px max(20px, env(safe-area-inset-right, 0px));
        gap: 32px;
        border-radius: 24px;
    }

    .footer-favicon-logo {
        position: static;
        width: 88px;
        height: 88px;
        transform: none;
        margin-left: auto;
    }

    .footer-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        gap: 32px;
    }

    .footer-nav-info {
        width: 100%;
        max-width: 100%;
    }

    .footer-nav-title {
        text-align: left;
    }

    .footer-subscribe {
        width: 100%;
    }

    .footer-subscribe-form {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
    }

    .footer-subscribe-form input,
    .footer-subscribe-button {
        width: 100%;
        max-width: none;
        min-height: 57px;
        box-sizing: border-box;
    }

    .footer-subscribe-form input {
        flex: 1 1 auto;
        flex-basis: auto;
    }

    .footer-brand-block {
        align-items: flex-start;
    }

    .footer-help-consult .home-map-cta__card {
        min-height: auto;
        height: auto;
        padding: 28px 20px;
        gap: 32px;
        border-radius: 24px;
    }

    .footer-help-consult .home-map-cta__left {
        gap: 24px;
    }

    .footer-help-consult .home-map-cta__title {
        font-size: clamp(32px, 9vw, 52px);
    }

    .footer-help-consult .home-map-cta__lead {
        font-size: clamp(18px, 5vw, 24px);
    }

    .footer-help-consult .home-map-link {
        min-height: 72px;
        border-radius: 24px;
        padding: 0 16px 0 20px;
    }

    .footer-help-consult .home-map-link__label {
        font-size: clamp(22px, 7vw, 32px);
    }

    .footer-help-consult .home-map-link__icon {
        width: 72px;
        height: 72px;
    }

    .footer-help-consult .home-map-cta__legal {
        font-size: 16px;
        text-align: left;
    }

    .footer-help-consult .home-map-cta__map {
        height: min(52vh, 420px);
        min-height: 260px;
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        gap: 24px;
    }

    .footer-help-consult .home-map-cta__card {
        padding: 22px 16px;
        gap: 24px;
        border-radius: 20px;
    }

    .footer-help-consult .home-map-link {
        min-height: 64px;
        padding: 0 12px 0 16px;
        border-radius: 20px;
    }

    .footer-help-consult .home-map-link__icon {
        width: 64px;
        height: 64px;
    }

    .footer-help-consult .home-map-link__icon-frame {
        width: 56px;
        height: 56px;
    }

    .footer-help-consult .home-map-link__icon-img {
        width: 56px;
        height: 56px;
    }

    .footer-help-consult .home-map-link--telegram .home-map-link__icon-img,
    .footer-help-consult .home-map-link--max .home-map-link__icon-img {
        width: 140px;
        height: 140px;
        margin: -70px 0 0 -70px;
    }

    .footer-help-consult .home-map-cta__map {
        height: min(46vh, 300px);
        min-height: 220px;
        border-radius: 20px;
    }

    .dog-background {
        height: 260px;
    }

    .dog-image {
        width: 200px;
        height: 300px;
    }

    .footer-info-container {
        padding: 16px max(16px, env(safe-area-inset-left, 0px)) 16px max(16px, env(safe-area-inset-right, 0px));
        gap: 24px;
        border-radius: 20px;
    }

    .footer-favicon-logo {
        width: 72px;
        height: 72px;
    }

    .footer-nav {
        gap: 28px;
    }
}

/* Footer info typography — после структурных @media (Figma 3106:2808, 3202:3043, 3210:3382, 3225:3947, 3257:5234, 3272:4495). */

@media (min-width: 1200px) and (max-width: 1759px) {
    .footer-nav-list a,
    .footer-nav-info a,
    .footer-subscribe-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .footer-subscribe-form input {
        font-size: 18px;
        line-height: 1.4;
    }

    .footer-subscribe-button {
        font-size: 24px;
        line-height: 1.4;
        width: auto;
    }
}

@media (min-width: 901px) and (max-width: 1199px) {
    .footer-nav-list a,
    .footer-nav-info a,
    .footer-subscribe-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .footer-subscribe-form input {
        font-size: 18px;
        line-height: 1.4;
    }

    .footer-subscribe-button {
        font-size: 24px;
        line-height: 1.4;
        width: auto;
    }
}

@media (min-width: 481px) and (max-width: 900px) {
    .footer-nav-title {
        font-size: 18px;
    }

    .footer-nav-list a,
    .footer-nav-info a,
    .footer-subscribe-title,
    .footer-subscribe-form input,
    .footer-subscribe-button {
        font-size: 18px;
        line-height: 1.2;
    }

    .footer-subscribe-form input,
    .footer-subscribe-button {
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .footer-nav-title {
        font-size: 18px;
    }

    .footer-nav-list a,
    .footer-nav-info a,
    .footer-subscribe-title,
    .footer-subscribe-form input,
    .footer-subscribe-button {
        font-size: 18px;
    }

    .footer-subscribe-form input,
    .footer-subscribe-button {
        line-height: 1.4;
    }

    .footer-legal-item {
        font-size: 18px;
        line-height: 1.2;
    }
}

@media (max-width: 320px) {
    .footer-info-container {
        gap: 42px;
        padding: 16px;
        border-radius: 24px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 32px;
    }

    .footer-nav-title,
    .footer-nav-list a,
    .footer-nav-info a,
    .footer-subscribe-title,
    .footer-subscribe-form input,
    .footer-subscribe-button {
        font-size: 16px;
    }

    .footer-subscribe-title {
        line-height: 1.3;
    }

    .footer-subscribe-form input,
    .footer-subscribe-button {
        line-height: 1.4;
        border-radius: 12px;
        padding: 16px 24px;
    }

    .footer-legal-item {
        font-size: 16px;
        line-height: 1.2;
    }
}
