/* =========================
   FOOTER — FINAL DESKTOP
   ========================= */

.footer {
  margin-top: 64px;
}
footer.footer {
  margin: 0 auto;
  padding: 0;
  /* position: sticky; */
  bottom: 0;
  right: auto;
}
.site-footer {
  background-color: transparent;
}
.footer .col-full {
  background: #292929;
  border-radius: 50px 50px 0 0;
  padding: 80px 20px 20px 20px;
  color: var(--ak-text-white);
  font-family: var(--ak-font-text);
}

/* =========================
   TOP LAYOUT
   ========================= */

.display {
  display: flex;
  gap: 64px;

  padding: 0 20px;
}
/* LEFT 50% */
.footer__top {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  margin-bottom: 60px;
  gap: 150px;
  padding: 0 20px;
}
.footer__left {
  width: 60%;
}

.footer__left-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

/* RIGHT 50% */

.footer__right {
  width: 40%;
}

.footer__right-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 30px;
}

/* =========================
   TITLES
   ========================= */

.footer__title {
  font-family: var(--ak-font-ui);
  font-size: 20px;
  font-weight: 600;
  color: #ffffff !important;
  margin-bottom: 40px;
  line-height: 1.2;
}

/* =========================
   LISTS
   ========================= */

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 20px;
}

.footer__list-link {
  font-family: var(--ak-font-text);
  font-size: 14px;
  font-weight: 400;
  color: var(--ak-text-white);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__list-link a {
  font-family: var(--ak-font-text);
  font-size: 14px;
  font-weight: 400;
  color: var(--ak-text-white);
  text-decoration: none;
  transition: color 0.2s ease;
}
/* .footer__list a:hover {
  color: var(--ak-text-white);
} */

/* =========================
   CONTACT BLOCKS
   ========================= */

.footer__block {
  max-width: 320px;
}

/* .footer__block a {
  margin-bottom: 40px;
} */

.footer__label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}
.footer__phone,
.footer__week,
.footer__email,
.footer__adress {
  font-family: var(--ak-font-ui);
  font-size: 20px;
  font-weight: 600;
  color: var(--ak-text-white) !important;
  text-decoration: none;
}
/* PHONE */

.footer__phone {
  display: block;
  font-family: var(--ak-font-ui);
  font-size: 20px;
  font-weight: 600;
  color: var(--ak-text-white);
  text-decoration: none;
  margin-bottom: 8px;
}

/* TEXT */

/* .footer__block p,
.footer__block a:not(.footer__phone) {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ak-text-p);
  text-decoration: none;
} */

/* =========================
   SOCIALS
   ========================= */

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer__socials a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ak-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.footer__socials a:hover {
  background: var(--ak-green-hover);
}

.footer-instagram svg, .footer-facebook svg {
    width: 100%;
    height: 100%;
}

/* =========================
   BOTTOM
   ========================= */

.footer__bottom {
  margin: 0 AUTO;
  /* margin-top: 32px; */
  padding: 32px 20px 0px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1920px;
}

/* COPY */

.footer__copy {
  font-size: 12px;
  color: var(--ak-text-no);
}

/* PAYMENTS */

.footer__payments {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.footer__payments img {
  height: 40px;
  display: block;
}

/* DEV */

.footer__dev {
  text-align: right;
}
.footer__dev a {
  font-size: 12px;
  color: #838383 !important;
  cursor: pointer;
}

/* body::before {
  content: "CSS OK";
  position: fixed;
  top: 0;
  left: 0;
  background: red;
  color: #fff;
  z-index: 999999;
} */

/* =========================-------------------------------------------------------------------------------------------------------------------------------------------------
   FIX STOREOFRONT LINK COLOR
   ========================= */

/* Усі лінки у футері */
.site-footer.footer a {
  color: var(--ak-text-white);
  text-decoration: none;
}

/* Списки */
.site-footer.footer .footer__list a {
  color: var(--ak-text-white);
}

/* Hover */
.site-footer.footer a:hover {
  color: var(--ak-green-hover) !important;
}

/* Телефон (окремо) */
.site-footer.footer .footer__phone {
  color: var(--ak-text-white);
}

/* Пошта */
.site-footer.footer a[href^="mailto"] {
  color: var(--ak-text-white);
}

/* При фокусі (доступність) */
.site-footer.footer a:focus-visible {
  outline: 2px solid var(--ak-text-white);
  outline-offset: 2px;
}

.footer__socials .viber-mobile {
  display: none;
}
.footer__socials .viber-web {
  display: flex;
}
@media screen and (max-width: 1471px) {
  .footer__top {
    gap: 50px;
  }

  .footer__left-grid {
    gap: 20px;
  }
}

@media screen and (max-width: 1025px) {
  .footer__top {
    flex-wrap: wrap;
  }

  .footer__left {
    width: 100%;
  }
  .footer__right {
    width: 100%;
  }
  .footer__right-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 30px;
  }
}
@media screen and (max-width: 900px) {
  .footer__socials .viber-web {
    display: none;
  }
  .footer__socials .viber-mobile {
    display: flex;
  }
}


@media screen and (max-width: 768px){
    .footer__left-grid {
    
    grid-template-columns: repeat(2, 1fr);
}
}

@media screen and (max-width: 640px){
    .footer__right-grid {
      
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: row;
       
    }
   .footer__phone, .footer__week, .footer__email, .footer__adress {
   
    font-size: 16px;
   
}
.footer__top {
 
    padding: 0px;
}
  .footer__bottom {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    row-gap: 16px;
    padding: 24px 0 16px;
  }
  .footer__payments img {
    height: 42px;
  }
  .footer__payments {
    order: 1;
  }
  .footer__copy {
    order: 2;
  }
  .footer__dev {
    order: 3;
  }
}

@media screen and (max-width: 426px) {
  .footer .col-full {
    padding: 80px 0px 20px 0px;
  }

  .footer__left-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .footer__right-grid {
    grid-template-columns: repeat(1, auto);
    gap: 28px;
    /* grid-template-rows: repeat(1, auto); */
    grid-auto-flow: row;
  }
  .footer__bottom {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    row-gap: 16px;
    padding: 24px 0 16px;
  }
  .footer__payments img {
    height: 42px;
  }
  .footer__payments {
    order: 1;
  }
  .footer__copy {
    order: 2;
  }
  .footer__dev {
    order: 3;
  }
  .footer__top {
 
    padding: 0px 20px;
}
}

/* Contrast fix: override Storefront .site-footer a/h* on dark bar */
footer.site-footer.footer .col-full a {
  color: #ffffff !important;
  text-decoration: none !important;
}
footer.site-footer.footer .col-full h1,
footer.site-footer.footer .col-full h2,
footer.site-footer.footer .col-full h3,
footer.site-footer.footer .col-full h4,
footer.site-footer.footer .col-full h5,
footer.site-footer.footer .col-full h6 {
  color: #ffffff !important;
}
footer.site-footer.footer .footer__dev a {
  color: rgba(255, 255, 255, 0.72) !important;
}
footer.site-footer.footer .footer__copy {
  color: rgba(255, 255, 255, 0.85) !important;
}
