.footer {
    font-family: "Manrope", sans-serif;
}

.footer__main {
    min-height: 600px;
    position: relative;
    display: flex;
    gap: 175px;
    padding-top: 80px;
}

.footer__images, .footer__menus {
    flex: 1;
    position: relative;
}

.footer__images-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;  
    gap: 15px;
}

.footer__logo-link {
    max-width: 65%;
}

.footer__logo-img {
    width: 100%;
    height: 100%;
}

.footer__logo-img--mobile {
    display: none;
}

.footer__socials {
    display: flex;
    gap: 14px;
}

.footer__socials a {
    position: relative;
    text-decoration: none;
}

.footer__crown-wrapper {
    width: 510px;
    height: 517px;
    position: absolute;
    left: 0;
    bottom: 0;
    background: radial-gradient(circle at 00% 50%, 
        #4E8B4C 0%, 
        #4680C0 20%, 
        #E49C5F 40%, 
        #C64C4C 70%, 
        #F2C66F 100%);
    background-size: 200% 200%;
    -webkit-mask-image: url('images/svg/Logo__crown.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url('images/svg/Logo__crown.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    animation: crownFlowLeftCenter 6s linear infinite;
}

@keyframes crownFlowLeftCenter {
  0% { background-position: 0% 50%; background-size: 200% 200%; }
  50% { background-position: 100% 50%; background-size: 100% 100%; }
  100% { background-position: 0% 50%; background-size: 200% 200%; }
}

.footer__menus-inner {
    display: flex;
    gap: 165px;
    padding-right: 50px;
}

.footer__menu-title {
    color: #292929;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 15px;
}

.footer__menu-title:last-child {
    white-space: nowrap;
}

.footer__menu-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: "Bounded";
    font-size: 13px;
    margin-top: 45px;
}

.footer__menu-buttons--mobile {
    display: none;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 0 15px;
    margin-top: 40px;
}

.footer__menu-button {
    flex: 1;
    width: 160px;
    max-width: 160px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    color: #292929;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #292929;
    border-radius: 5px;
    padding: 11px;
    background: white;          
    position: relative;           
    z-index: 2;                   
    overflow: visible;
    box-sizing: border-box;
}

.corner-border {
    border: none;
  --border-color: #292929;
  --border-width: 1px;
  --corner-length: 17px; 
  --bg: white;   
}

.corner-border svg {
    position: absolute;
    top: 3px;
    right: 7px;
}

.corner-border::before {
  content: "";
  position: absolute;
  inset: 0;                   
  border: 1px solid #292929;
  border-radius: 5px;
  pointer-events: none;
  z-index: 0;                 
}


.corner-border::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;                
  border-radius: 5px;
  background:
    linear-gradient(#FFFFFF, #FFFFFF) top center / calc(100% - 36px) 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) bottom center / calc(100% - 36px) 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center left / 1px calc(100% - 36px) no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center right / 1px calc(100% - 36px) no-repeat;
  background-repeat: no-repeat;
  transition: all .3s ease-in-out;
}

.corner-border:hover::after {
  background:
    linear-gradient(#FFFFFF, #FFFFFF) top center / 0 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) bottom center / 0 1px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center left / 1px 0 no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center right / 1px 0 no-repeat;
}

.footer__link {
    max-width: 100%;
    color: #292929;
    font-size: 13px;
    font-weight: 300;
    text-decoration: none;
}

.footer__link--bold {
    font-weight: 600;
}

.footer__copyright {
    display: flex;
    justify-content: space-between;
    color: #ACACAC;
    font-weight: 300;
    text-transform: uppercase;
    border-top: 1px solid #ACACAC;
    padding: 20px 50px;
}

.footer__copyright-block {
    width: calc(50% + 75px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright-link {
    color: #ACACAC;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
}

.footer__copyright-csg {
    max-width: 140px;
    color: #ACACAC;
    font-size: 12px;
    font-weight: 300;
    text-align: right;
    text-decoration: none;
}

@media (max-width: 1200px) {
    .footer__logo-link {
        max-width: 90%;
    }
}

@media (max-width: 1024px) {
    .footer__main {
        flex-direction: column;
        gap: 0;
        padding-top: 20px;
    }

    .footer__images-inner {
        align-items: center;
        gap: 20px;
    }

    .footer__logo-img--desktop {
        display: none;
    }

    .footer__logo-img--mobile {
        display: block;
    }
    
    .footer__crown-wrapper {
        display: none;
    }

    .footer__menus-inner {
        justify-content: center;
        padding: 40px 50px;
    }
}

@media (max-width: 768px) {
    .footer__socials a {
        width: 35px;
        height: 35px;
    }

    .footer__socials img {
        width: 100%;
        height: auto;
    }

    .footer__menus-inner {
        gap: 40px;
        padding: 40px 15px;
        padding-right: 25px;
    }

    .footer__menu-links {
        gap: 10px;
    }

    .footer__menu-buttons {
        display: none;
    }

    .footer__menu-buttons--mobile {
        display: flex;
    }

    .footer__copyright {
        font-size: 10px;
        padding: 15px;
    }

    .footer__copyright-block {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .footer__copyright-link {
        font-size: 10px;
        font-weight: 300;
    }

    .footer__copyright-csg {
        max-width: 120px;
        font-size: 10px;
    }
}

@media (max-width: 450px) {
    .footer__menus-inner {
        justify-content: space-between;
    }
}