.footer {
    display: grid;
    grid-template-areas:
        "logo nav contacts cta"
        "footer footer footer footer";
    align-items: start;
    justify-content: space-between;
    min-height: 43.75rem;
    width: 100%;
    margin-top: 12.5rem;
    padding: 3.75rem;
    padding-inline: 2.5rem;
    padding-bottom: 1.25rem;
    background: var(--dark);
    overflow: hidden;
}

.footer__logo {
    grid-area: logo;
    width: 15.625rem;
    height: auto;
}

.footer__col--nav {
    grid-area: nav;
}

.footer__col--contacts {
    grid-area: contacts;
}

.footer__col-title {
    font-size: 1.375rem;
    line-height: 1.4;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer__nav li,
.footer__contacts li {
    margin-bottom: 0.3125rem;
}

.footer__nav a,
.footer__contacts a {
    font-size: 1.375rem;
    line-height: 1.8;
    color: var(--white);
    transition: 0.2s color;
}

.footer__nav a:hover,
.footer__contacts a:hover {
    color: var(--orange);
}

.footer__cta {
    grid-area: cta;
    display: flex;
    flex-direction: column;
    width: 40.625rem;
    height: 28.125rem;
    border: 1px solid #585858;
    padding: 2.5rem;
}

.footer__cta-title {
    font-size: 2rem;
    line-height: 1.4;
    color: var(--white);
}

.footer__cta-btn {
    margin-left: auto;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    font-weight: 300;
    font-size: 1.375rem;
    line-height: 1.375rem;
    color: var(--white);
    background-color: color-mix(in srgb, var(--orange) 40%, transparent);
    padding: 1.875rem;
    transition: 0.2s background;
}
.footer__cta-btn:hover {
    background-color: var(--orange);
}

.footer__cta-arrow {
    font-size: 2rem;
    line-height: 1.9375rem;
}

.footer__footer {
    display: flex;
    justify-content: space-between;
    grid-area: footer;
    align-self: end;
    font-size: 1.125rem;
    line-height: 0.875rem;
    color: var(--white);
    transition: 0.2s color;
}

.footer__copy {
    align-self: end;
    font-size: 1.125rem;
    line-height: 0.875rem;
    color: var(--white);
    transition: 0.2s color;
}

.footer__policy {
    align-self: end;
    font-size: 1.125rem;
    color: var(--white);
    transition: 0.2s color;
}

.footer__policy:hover {
    color: var(--orange);
}

.footer__dev {
    align-self: end;
    justify-self: end;
    font-size: 1.125rem;
    color: var(--white);
    transition: 0.2s color;
}

.footer__dev:hover {
    color: var(--orange);
}

@media(max-width: 1024px) {
    .footer { padding: 1.5rem; display: flex; flex-wrap: wrap; min-height: auto; }
    .footer__logo { width: 17.5rem; }
    .footer__cta { width: 22.5rem; margin-top: -8.5rem; height: 22rem; }
    .footer__footer { width: 100%; margin-top: 3rem; }
    .footer__cta-btn { margin-left: 0;}
    .footer__cta-title { font-size: 1.5rem; }
}

@media(max-width:768px){
    .footer { 
        display: grid;
        grid-template-areas: 
        "logo logo"
        "cta cta"
        "nav contacts"
        "footer footer";
        gap: 3.5rem;
    }
    .footer__cta { margin-top: 0; }
    .footer__footer { flex-direction: column; gap: 1.5rem; }
    .footer__copy, .footer__policy, .footer__dev { align-self: unset; text-align: center; }
}