.custom-footer {
    background: var(--es-surface-dark-gray);
    color: var(--es-text-inverse);
    display: block;
    padding: 52px 0 44px;
}

.footer-cta {
    display: grid;
    gap: var(--es-gap-grid);
    grid-template-columns: 1fr 1fr;
    margin-bottom: 72px;
}

.footer-form,
.footer-account {
    min-height: 208px;
}

.footer-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 25px;
}

.footer-form h2 {
    color: var(--es-text-accent);
    font-size: var(--es-h3-font-size);
    text-transform: uppercase;
    /*grid-row: span 2;*/
    /*max-width: 230px;*/
}

.footer-form p {
    font-family: 'TikTok Sans 18pt Expanded';
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    text-align: right;
    letter-spacing: -0.5px;
    color: #FFF;
}

.footer-form .d-flex {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer-form .d-flex-col {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 10px;
}

.footer-form .button {
    width: 100%;
}

.footer-form .form-container {
    gap: 10px;
    align-items: center;
}

.footer-form .input-field {
    --input-bg: transparent;
    --input-radius: 0;
    --input-color: var(--es-text-inverse);
    --input-placeholder-color: var(--es-text-inverse-40);
    --input-font-family: var(--es-headers-font), Arial, Helvetica, sans-serif;
    --input-font-size: 15px;
    --input-line-height: 92%;

    border-bottom: 1px solid white;
}

.footer-form .input-field input:focus {
    box-shadow: none;
}

.footer-form .input-field input {
    font-style: normal;
    font-weight: 500;
    padding: 0;
}

.footer-form .check-field span {
    font-family: 'Garet';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 140%;
}

.footer-form__heading p {
    width: 35%;
}

.footer-form .check-field {
    --check-size: 20px;
    --check-copy-color: var(--es-text-inverse-muted);

    grid-column: 2 / 4;
}

.footer-form .check-field input {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 1px solid var(--es-border-secondary);
    border-radius: 2px;
    flex: none;
    flex-grow: 0;
    order: 0;
    cursor: pointer;
}

.footer-form .check-field input:checked {
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='%23212121' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px;
}

.footer-account {
    display: flex;
    padding: 30px;
    transition: opacity 180ms ease, transform 180ms ease;
    position: relative;
    justify-content: end;
    flex-direction: column;
    align-items: start;
}

.footer-account:hover {
    opacity: 0.88;
}

.footer-account .btn-goto-lk {
    position: absolute;
    right: 30px;
    top: 30px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 10px;
    width: 63px;
    height: 63px;
    background: var(--es-surface-dark-translucent);
    backdrop-filter: blur(10px);
    border-radius: 72px;
}

.footer-account span {
    font-family: var(--es-headers-font), Arial, Helvetica, sans-serif;
    font-size: var(--es-h3-font-size);

    font-style: normal;
    font-weight: 600;
    font-size: clamp(21px, 2vw, 23px);
    line-height: 120%;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--es-text-primary-80);
}

.footer-main {
    display: grid;
    gap: var(--es-gap-grid);
    grid-template-columns: 1fr 1fr;
    padding-bottom: 72px;
}

.footer-contact {
    display: grid;
    gap: 40px;
}

.footer-contact > div.d-flex-col {
    gap: 12px;
}

.footer-contact__big {
    color: var(--es-text-inverse);
    font-family: var(--es-headers-font), Arial, Helvetica, sans-serif;
    /*font-size: var(--es-h2-font-size);*/
    /*line-height: 1.1;*/

    font-style: normal;
    font-weight: 600;
    font-size: 31px;
    line-height: 120%;
    letter-spacing: -0.03em;
}

.footer-contact__big.listed {
    font-size: 24px;
    padding-left: 28px;
    position: relative;
}

.footer-contact__big.listed:before {
    background: var(--es-surface-accent);
    content: "";
    height: 12px;
    left: 0;
    position: absolute;
    top: 50%;
    width: 12px;
    transform: translateY(-50%);
}

/*.footer-contact a:not(.footer-contact__big),*/
/*.footer-contact p:not(.footer-contact__big),*/
/*.footer-contact small {*/
/*  color: rgba(255, 255, 255, 0.74);*/
/*}*/

.footer-contact strong,
.footer-contact .mail {
    color: var(--es-text-accent);
    font-family: var(--es-headers-font), Arial, Helvetica, sans-serif;
    /*font-size: var(--es-h3-font-size);*/

    font-style: normal;
    font-weight: 600;
    font-size: 19px;
    line-height: 120%;
}

.footer-contact small {
    font-family: 'TikTok Sans 18pt Expanded';
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.5px;

    color: #FFFFFF;
    opacity: 0.4;
}

.social-links {
    --cluster-gap: 16px;
}

.footer-contact .social-media-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 13px;
    gap: 10px;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.footer-services {
    padding-top: 64px;
}

.footer-services h2 {
    padding-bottom: 28px;

    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.5px;
    color: #FFF;
    opacity: 0.4;
}

.footer-services__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
    "services-first services-second navigation"
    "toggle toggle navigation";
}

.footer-services__grid > :nth-child(1) {
    grid-area: services-first;
}

.footer-services__grid > :nth-child(2) {
    grid-area: services-second;
}

.footer-services__grid > .footer-services__toggle {
    grid-area: toggle;
}

.footer-services__navigation {
    grid-area: navigation;
}

.link-list--footer a {
    color: white;
}

.footer-bottom {
    align-items: center;
    color: rgba(255, 255, 255, 0.56);
    display: flex;
    gap: 32px;
    margin-top: 72px;
    justify-content: space-between;
}

.footer-bottom > div {
    gap: 20px;
    align-items: center;
}

.footer-bottom .grammers-link {
    display: inline-flex;
    margin-right: 20px;
}

.footer-bottom .btn-go-top {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    border: 1px solid var(--es-border-accent);
    border-radius: var(--es-radius-md);
    width: 53px;
    height: 54px;
    cursor: pointer;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10;
    background: var(--es-surface-dark-gray);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.footer-bottom .btn-go-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


.footer-services__grid {
    display: grid;
    gap: var(--es-gap-grid);
}

.footer-services__toggle {
    display: none;
}

.footer-bottom .d-flex p,
.footer-bottom .d-flex a {
    color: #FFF;
    font-size: 15px;
    font-family: 'TikTok Sans 18pt Expanded';
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -0.5px;
}

.footer-bottom .d-flex a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 992px) {
    .footer-form {
        padding: 32px 20px;
    }

    .footer-form h2 {
        font-size: 19px;
    }

    .footer-form__heading p {
        width: unset;
        text-align: start;
        font-size: 15px;
    }

    .footer-main {
        padding-bottom: 0;
    }

    .footer-services {
        padding-top: 36px;
    }

    .footer-bottom .btn-go-top {
        /*display: none;*/
    }

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

    .footer-form .check-field {
        grid-column: auto;
    }

    .footer-contact__big {
        font-size: 24px;
    }

    .section-head--row,
    .account-layout,
    .advantage-layout,
    .estimate-section__grid,
    .footer-cta,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .more-services__grid,
    .footer-services__grid,
    .footer-form {
        grid-template-columns: 1fr;
    }

    .footer-services__grid {
        grid-template-areas:
      "services-first"
      "services-second"
      "toggle"
      "navigation";
    }

    .footer-account,
    .footer-bottom {
        align-items: flex-start;
        /*flex-direction: column;*/
    }

    .footer-form .d-flex {
        flex-direction: column;
        gap: 13px;
    }

    .footer-form .form-container {
        gap: 20px;
    }

    .footer-form .d-flex-col {
        gap: 20px;
        width: 100%;
    }

    .footer-form .input-field {
        border-bottom: none;
    }

    .footer-form .button {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .footer-form .input-field input {
        background: var(--es-surface-soft-translucent);
        border-radius: var(--es-radius-md);
        border-bottom: none;
        padding-left: 16px;
    }

    .footer-form {
        order: 2;
    }

    .footer-bottom .d-flex {
        width: 100%;
        flex-direction: column;
        align-items: start;
        gap: 13px;
    }

    .footer-bottom .d-flex svg {
        /*margin-left: auto;*/
    }

    .footer-account,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .footer-bottom .d-flex a {
        order: 0;
    }
}

@media (max-width: 992px) {
    .footer-services--collapsible:not(.footer-services--expanded) .footer-services__item--mobile-hidden {
        display: none;
    }

    .footer-services__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        /*margin-top: 24px;*/
        padding: 12px 16px;
        border: 0;
        border-radius: 4px;
        background: #F6F6F50A;
        color: #A5F50F;
        font-family: var(--es-headers-font), Arial, Helvetica, sans-serif;
        font-size: var(--es-btn-font-size);
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .footer-cta {
        grid-template-columns: 1fr;
    }

    .footer-form .form-container .d-flex-col {
        width: 50%;
    }

    .footer-account span {
        font-size: 23px;
    }

    .footer-form .button {
        width: fit-content;
    }
}

@media (max-width: 991px) {
    .footer-account span {
        font-size: 19px;
    }
}
