@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Acumin+Pro&display=swap');

@font-face {
    font-family: 'Acumin Pro';
    src: url('/bitrix/templates/TML/fonts/Acumin-RPro.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Acumin Pro';
    src: url('/bitrix/templates/TML/fontst/Acumin-ItPro.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Acumin Pro';
    src: url('/bitrix/templates/TML/fonts/Acumin-BdPro.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Acumin Pro';
    src: url('/bitrix/templates/TML/fonts/Acumin-BdItPro.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

footer {
  display: flex;
  padding: 78px 120px;
  justify-content: space-between;
  align-items: flex-start;
  border-radius: 16px;
  border: 1px solid #141414;
  background: radial-gradient(50% 50% at 0% 100%, #271D3B 0%, rgba(0, 0, 0, 0.00) 62.59%), 
              radial-gradient(141.42% 141.42% at 100% 100%, #3A233F 0%, rgba(0, 0, 0, 0.00) 24.59%), 
              #170A42;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 273px;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.managed-by {
  color: #FFF;
  font-family: "Acumin Pro";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px; /* 114.286% */
  letter-spacing: 0.28px;
}

.company-name {
  color: #FFF;
  font-family: Raleway;
  font-size: 32px;
  font-style: normal;
  font-weight: 800;
  line-height: 110%; /* 35.2px */
  letter-spacing: 0.64px;
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.social-icon img {
  width: 26px;
  height: 26px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.contact-info span,
.contact-info a.contact-link {
  color: #848895;
  font-family: "Acumin Pro";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
  letter-spacing: 0.32px;
  text-decoration: none;
}

.copyright {
  color: #848895;
  font-family: "Acumin Pro";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
  letter-spacing: 0.32px;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 72px;
  flex: 1 0 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  align-self: stretch;
}

.services-wrapper {
  display: flex;
  flex-direction: column;
}

.column-links-container {
  display: flex;
  gap: 72px;
  width: auto; /* Адаптация под контент */
}

.column-title-footer {
  color: #FFF;
  font-family: "Acumin Pro";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 160%; /* 22.4px */
  letter-spacing: 0.28px;
}

.column-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 195px; /* Сохраняем ширину для каждого column-links */
}

.column-link {
  color: #FFF;
  font-family: "Acumin Pro";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%; /* 22.4px */
  letter-spacing: 0.28px;
  text-decoration: none;
}

a {
  text-decoration: none;
}

.contact-info.mobile-only,
.copyright.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  footer {
    display: flex;
    padding: 36px 16px 24px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    align-self: stretch;
    border-radius: 16px;
    border: 1px solid #141414;
    background: radial-gradient(50% 50% at 0% 100%, #271D3B 0%, rgba(0, 0, 0, 0.00) 62.59%), 
                radial-gradient(141.42% 141.42% at 100% 100%, #3A233F 0%, rgba(0, 0, 0, 0.00) 24.59%), 
                #170A42;
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }

  .company-info {
    display: flex;
    flex-direction: column;
    gap: 11px;
  }

  .managed-by {
    color: #FFF;
    font-family: "Acumin Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0.28px;
  }

  .company-name {
    color: #FFF;
    font-family: Raleway;
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
    line-height: 110%;
    letter-spacing: 0.48px;
    text-decoration: none;
  }

  .social-links,
  .footer-left .contact-info,
  .footer-left .copyright {
    display: none;
  }

  .footer-right {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
    flex-wrap: wrap;
    width: 100%;
  }

  .services-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 calc(50% - 12px);
    max-width: 100%; /* Не превышать контейнер */
  }

  .services-wrapper .footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 auto;
    max-width: 100%;
  }

  .services-wrapper .column-links-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
  }

  .services-wrapper .column-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%; /* Полная ширина */
    padding-top: 0;
  }

  .footer-column:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    flex: 0 0 calc(50% - 12px);
    max-width: 100%;
  }

  .footer-column:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    flex: 1 0 100%;
    max-width: 100%;
  }

  .column-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%; /* Полная ширина */
    max-width: 100%; /* Ограничение по контейнеру */
  }

  .column-title-footer {
    color: #FFF;
    font-family: "Acumin Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 160%;
    letter-spacing: 0.28px;
  }

  .column-link {
    color: #FFF;
    font-family: "Acumin Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    letter-spacing: 0.28px;
    text-decoration: none;
    overflow-wrap: break-word; /* Перенос длинных слов */
    word-break: break-word; /* Разрыв слов */
  }

  .contact-info.mobile-only {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    align-self: stretch;
  }

  .contact-info.mobile-only span,
  .contact-info.mobile-only a.contact-link {
    color: #848895;
    font-family: "Acumin Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.32px;
    text-decoration: none;
  }

  .copyright.mobile-only {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: #848895;
    font-family: "Acumin Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.32px;
  }
}