.widget__container {
  margin: 0 auto;
  width: 100%;
  max-width: 80rem;
  display: flex;
  flex-direction: row;
  gap: 9.375rem;
  align-items: flex-start;
  padding: 3.75rem 4rem 3.6875rem 4rem;
  border-radius: 2.5rem;
  background-color: rgba(13, 13, 13, 1);
  justify-content: space-between;
}

.widget__content {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  align-items: flex-start;
  width: 100%;
  flex: 1 1 0;
}

h1.widget__heading,
h2.widget__heading,
h3.widget__heading,
h4.widget__heading,
h5.widget__heading {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 120%;
  text-align: left;
  color: rgba(255, 255, 255, 1);
  margin: 0px;
}

p.widget__text {
  font-size: 1.25rem;
  font-family: "ALSGorizont_reg", sans-serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 120%;
  text-align: left;
  color: rgba(255, 255, 255, 1);
  opacity: 0.6;
  margin: 0rem;
  padding: 0rem;
}

.widget__links {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.5625rem;
}

.widget__container a.button__arrow {
  text-decoration: none;
  color: rgba(13, 13, 13, 1);
}

.widget__container a.button__secondary {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
}

.widget__image {
  display: flex;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  margin-top: 0.25rem;
  max-width: 22.0625rem;
}

.widget__image img {
  width: 100%;
}

.web .widget__heading span {
    color: #00CCFF;
}

.design .widget__heading span {
    color: #9BEBE8;
}

.ai .widget__heading span {
    color: #F6503A;
}

.bim .widget__heading span {
    color: #0B68FE;
}

.cad .widget__heading span {
    color: #EDB40B;
}

.motion .widget__heading span {
    color: #6E27B6;
}

.d3 .widget__heading span {
    color: #0DFBE7;
}

.code .widget__heading span {
    color: #00CCFF;
}

/* ===== Адаптивность =====

/* Tablet (768px) */
@media screen and (max-width: 1200px) {
  /* .widget__container {
    min-width: 0;
    height: 58.6875rem;
    flex-direction: column;
    gap: 4rem;
    justify-content: flex-start;
    padding: 3.625rem 1.5rem 4rem 1.5rem;
    border-radius: 2.5rem;
  }

  .widget__content {
    flex: none;
    gap: 1.1875rem;
  }

  .widget__container img {
    width: 95%;
    height: auto;
    margin-top: 1.0625rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 43.75rem;
  }
}

@media screen and (max-width: 768px) { */
  .widget__container {
    border-radius: 2.5rem;
    padding: 3.75rem 1.5rem 4rem 1.5rem;
    gap: 2.5625rem;
    flex-direction: column;
    height: auto;
  }

  .widget__content {
    row-gap: 1.125rem;
  }

  .widget__heading {
    font-size: 2.5rem;
    line-height: 120%;
  }

  .widget__text {
    font-size: 1.25rem;
  }

  .widget__links {
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0px;
    width: 100%;
    margin-top: 25px;
  }
  
  .widget__container a.button__arrow {
    gap: 0.5rem;
    letter-spacing: 0rem;
    line-height: 1.125rem;
    padding: 14px 20px 14px 24px;
    font-size: 16px;
    text-decoration: none;
    color: rgba(13, 13, 13, 1);
  }

  .widget__container a.button__secondary {
    gap: 0.5rem;
    letter-spacing: 0rem;
    line-height: 1.125rem;
    padding: 16px 18px 16px 18px;
    font-size: 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
  }

  .widget__image {
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    align-self: center;
    margin-top: 46px;
  }

  .widget__image img {
    width: auto;
    height: auto;
    max-width: none;
    margin: 0 0 0 0;
  }
}

@media screen and (max-width: 768px) {
  h1.widget__heading, 
  h2.widget__heading, 
  h3.widget__heading, 
  h4.widget__heading, 
  h5.widget__heading {
    font-size: 1.5rem;
  }

  .widget__container {
        border-radius: 30px;
        padding: 38px 16px 41px 16px;
  }

  p.widget__text {
    font-size: 14px;
  }

  .widget__links {
    margin-top: 7px;
  }

  .widget__container a.button__arrow {
    width: 100%;
  }

  .widget__container a.button__secondary {
    width: 100%;
  }

  .widget__image {
    margin-top: 20px;
  }

  .widget__image img {
    width: 233px;
    height: auto;
  }
}