$brand-color: #f6ca00;
$text-color: #333;

$content-max-width: 1170px;

@mixin line-animation {
  transition: opacity 0.2s, width 0.3s;
  background-color: $brand-color;
  width: 0;
  content: '';
  height: 6px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 1;
  width: 0;
  display: block;
  margin: 0 auto;
}

@mixin point-tablet {
  @media (max-width: 768px) {
    @content;
  }
}

@mixin point-phone {
  @media (max-width: 414px) {
    @content;
  }
}

@mixin text-widget(
  $title-color: #fff,
  $content-color: #dad8d8,
  $button-active: #373737,
  $background-color: rgba(55, 55, 55, .9),
  $padding: 80px 25px 60px 25px,
) {
  padding: $padding;
  background-color: $background-color;
  display: flex;
  flex-direction: column;
  .title {
    color: $title-color;
    font-size: 2.25rem;
    font-weight: bold;
    @include point-tablet {
      font-size: 1.72rem;
    }
  }
  .sub-title {
    font-size: 1.16rem;
    @include point-tablet {
      font-size: 1.09rem;
    }
    line-height: 140%;
    font-weight: bold;
    height: 80px;
    color: #373737;
    flex: 1 0 0;
    @include point-tablet {
      br {
        display: none
      }
    }
  }
  .text-content {
    flex-grow: 1;
    color: $content-color;
    margin-top: 35px;
    line-height: 190%;
    @include point-tablet {
      margin-top: 16px;
    }
    &::before {
      content: '';
      display: block;
      width: 40px;
      height: 4px;
      background-color: $title-color;
      margin-bottom: 17px;
      @include point-tablet {
        margin-bottom: 10px;
      }
    }
  }
  .button {
    border: 2px solid $title-color;
    color: $title-color;
    text-decoration: none;
    box-sizing: border-box;
    transition-duration: 0.3s;
    padding: 15px 0;
    min-height: 50px;
    font-weight: bold;
    text-align: center;
    &:hover {
      background-color: $title-color;
      color: $button-active;
    }
  }
}

@mixin link-icon {
  font-size: 0.9rem;
  line-height: 20px;
  display: flex;
  gap: 8px;
  color: #373737;
  margin-top: 16px;
  font-weight: bold;
  &::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("/btn_link.png");
    background-size: cover;
    background-position: 0%;
    transition: all 200ms ease 0s;
  }
}
@mixin link-icon-hover {
  &::before {
    background-position: 100%;
  }
}