.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: var(--font-body);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-tint);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(13rem, 0.72fr) minmax(0, 2.28fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
  align-items: start;
}

/* Left brand block */
.site-footer__brand {
  display: grid;
  gap: 1.25rem;
}

.site-footer__logo {
  width: 15.5rem;
  max-width: 100%;
  height: auto;
  padding: 0.8rem 3.6rem 0.8rem 1rem;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 42px) 100%, 0 100%);
  filter: none;
}

.site-footer__brand-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.site-footer__tagline {
  margin: 0;
  max-width: 24rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(229, 237, 245, 0.78);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  color: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.site-footer__social .cnm-icon {
  width: 1rem;
  height: 1rem;
}

/* Right link columns */
.site-footer__columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr minmax(14rem, 1.28fr);
  gap: clamp(1.75rem, 3.25vw, 3rem);
}

.footer-col__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-col__list {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list a {
  font-size: clamp(0.95rem, 1.1vw, 1.125rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(229, 237, 245, 0.82);
  text-transform: uppercase;
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: #ffffff;
}

/* Contacts column */
.footer-col__contact-list {
  display: grid;
  gap: 1.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__contact-list li {
  display: grid;
  gap: 0.35rem;
}

.footer-col--contacts {
  padding-left: clamp(1.25rem, 2.6vw, 3.25rem);
}

.footer-col--contacts .footer-col__title {
  margin-bottom: 1.35rem;
  font-size: clamp(1.3rem, 1.75vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.15;
}

.footer-col__eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.2;
  color: rgba(229, 237, 245, 0.66);
  text-transform: uppercase;
}

.footer-col__name {
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--brand);
  text-transform: uppercase;
}

.footer-col__phone {
  font-size: clamp(1.18rem, 1.55vw, 1.42rem);
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
}

.footer-col__phone:hover {
  color: var(--accent-tint);
}

/* Bottom bar */
.site-footer__bottom {
  border-top: 1px solid var(--footer-border);
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 2.75rem;
}

.site-footer__copy {
  margin: 0;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  font-weight: 500;
  color: rgba(229, 237, 245, 0.7);
  text-align: center;
}

@media (max-width: 1399px) {
  /* fine-tuning between Figma 1280 and tablet */
}

@media (max-width: 991px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
  .site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .site-footer__inner {
    padding-block: 2.5rem;
  }
}

@media (max-width: 575px) {
  .site-footer__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .site-footer__inner {
    gap: 2.5rem;
  }

  .site-footer__logo {
    width: min(15.5rem, 100%);
  }

  .site-footer__columns {
    gap: 2rem;
  }

  .footer-col--contacts {
    padding-left: 0;
  }

  .footer-col--contacts .footer-col__title {
    font-size: 1.45rem;
  }

  .footer-col__contact-list {
    gap: 1.25rem;
  }

  .footer-col__name {
    font-size: 1.45rem;
  }

  .footer-col__phone {
    font-size: 1.2rem;
  }

  .site-footer__bottom-inner {
    padding-block: 2rem;
  }
}
