/* Footer Base Styles */
.footer {
  background-color: #ffffff;
  max-width: 1920px;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
  border-top: none; 
  position: relative;
}

/* линия с отступом */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px; 
  right: 32px;
  height: 1px;
  opacity: 0.2;
  background: #0E1015;
}

.footer-container {
  padding: 32px 32px 24px 32px;
}

/* Desktop Layout */
.footer-desktop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: flex-start;
  gap: 27px;
}

.rwd-logo {
  display: flex;
  align-items: center;
}

.university-logo {
  display: flex;
  align-items: center;
}

/* ===== FOOTER-RIGHT С ДВУМЯ КОЛОНКАМИ ===== */
.footer-right {
  display: flex;
  gap: 100px;
  align-items: flex-start;
  max-width: 873px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
color: #B3B5B8;
font-feature-settings: 'liga' off, 'clig' off;
font-family: Inter;
font-size: 18px;
font-style: normal;
font-weight: 500;
line-height: 130%; /* 23.4px */
letter-spacing: -0.18px;
}

.footer-link {
color: #0E1015;
font-feature-settings: 'liga' off, 'clig' off;
font-family: Inter;
font-size: 18px;
font-style: normal;
font-weight: 500;
line-height: 130%; 
letter-spacing: -0.18px;
  text-decoration: none;
}

.footer-copyright {
    color: #B3B5B8;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 25.2px */
    letter-spacing: -0.18px;
  margin-top: 32px;
}

.email-link{
    white-space: nowrap;
}

@media (max-width:1440px) {
  .footer {
    max-width: 1440px;
  }
}

/* Responsive Styles */
@media (max-width: 1380px) {
  .footer-desktop {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    align-self: stretch;
  }

  .footer-right {
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  
  .footer::before {
    left: 32px;
    right: 32px;
  }
}

@media (max-width: 640px) {
  .footer-container {
    padding: 32px 20px 24px 20px;
  }
  .footer::before {
    left: 20px;
    right: 20px;
  }
  
  .footer-right {
    gap: 24px;
  }

  .footer-copyright {
        margin-top: 24px;
    }
}

.group-logo {
  display: block;
  width: 175.832px;
  height: 22.355px;
}

.group-logo-modal {
  display: none;
  max-width: 145px;
  height: 18.435px;
}

.asset-logo {
  display: block;
  width: 141.168px;
  height: 35.292px;
}

.asset-logo-modal {
  display: none;
  max-width: 145px;
  height: 36.25px;
}

@media (max-width: 525px) {
  .group-logo {
    display: none;
  }

  .group-logo-modal {
    display: block;
  }

  .asset-logo {
    display: none;
  }

  .asset-logo-modal {
    display: block;
  }
}

/* Адаптация для маленьких экранов */
@media (max-width: 425px) {
  .footer::before {
    left: 20px;
    right: 20px;
  }

  .group-logo {
    width: 140px;
  }

  .asset-logo {
    width: 160px;
  }
}

@media (max-width: 360px) {
  .asset-logo-modal {
    width: 135px;
    height: auto;
  }

  .group-logo-modal {
    width: 120px;
    height: auto;
  }

  .footer-left {
    gap: 22px;
  }
  
  .footer::before {
    left: 16px;
    right: 16px;
  }
}