/* ===========================
   FOOTER BASE
=========================== */

.footer {
    position: relative;
    background: #b7b6b6;
    padding: 120px 0 0 0;
    color: #fff;
    line-height: 150%;
    overflow: hidden;
}

/* ===========================
   BACKGROUND IMAGE
=========================== */

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/wp-content/themes/adm/assets/img/road1.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    z-index: 0;
}

/* ===========================
   COLOR OVERLAY
=========================== */

.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(66, 66, 66, 0.6);
    z-index: 1;
}

/* ===========================
   CONTENT LAYER
=========================== */

.footer__container {
    position: relative;
    z-index: 2; /* весь контент поверх фона */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}



/* ===========================
   LISTS
=========================== */

.footer__links ul,
.footer__contacts ul,
.footer__policy ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: left;
}

/* ===========================
   LINKS
=========================== */

.footer__links a,
.footer__policy a,
.footer__contacts a {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer__links a,
.footer__policy a {
    text-transform: uppercase;
}

/* ===========================
   UNDERLINE ANIMATION
=========================== */

.footer__links a::after,
.footer__policy a::after,
.footer__contacts a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer__links a:hover::after,
.footer__policy a:hover::after,
.footer__contacts a:hover::after {
    transform: scaleX(1);
}

/* ===========================
   CONTACTS
=========================== */

.footer__contacts a {
    margin-bottom: 6px;
}

/* ===========================
   BOTTOM FOOTER LINE
=========================== */
    
.footer2__container {
    text-align: center;
    position: relative; 
      background: rgba(0,0,0,0.4);
  backdrop-filter: blur(1px);
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
}

.footer2__logo p {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    opacity: 0.9;
}
.footer2 {
    background-image: url("/img/bg-footer.jpg");
    background-size:contain;       
    background-position: center;   
    background-repeat: repeat; 
    color: #fff;          
}
.footer2__container {
    position: relative;
    z-index: 2;
}
/* ===========================
   ADAPTIVE
=========================== */

@media (max-width: 1200px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer2__container {
        margin-top: 20px;
    }

    .footer__links ul,
    .footer__contacts ul,
    .footer__policy ul {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 30px 0 0 0;
    }

    .footer__container {
        gap: 25px;
    }
}
