@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-Variable/Rubik-Variable.woff2') format('woff2');
    font-weight: 100 1000;
    font-optical-sizing: auto;
    font-stretch: 0% 200%;
    font-style: normal;
    font-display: swap;
}

.ebs-button-credits__wrapper * {
    box-sizing: border-box;
}


.ebs-button-credits__wrapper {
    --ebs-button-credits-container-max-width: 1140px;

    /* семейства шрифтов начало */
    --font-family-rubik: "Rubik";
    /* семейства шрифтов конец */

    /* цвета фонов начало */
    --ebs-button-credits-background-color-white: #ffffff;
    /* цвета фонов конец */

    font-family: var(--font-family-rubik);
    font-weight: 300;
    line-height: normal;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 80px;
}

.ebs-button-credits__container {
    display: grid;
    /* grid-template-columns: 345px 345px */
    grid-template-columns: 109px 604px;
    grid-template-areas: "ebs-button-credits__logo ebs-button-credits__content";
    gap: 40px;
    max-width: var(--ebs-button-credits-container-max-width);
    margin: 0 auto;
    box-sizing: border-box;
    justify-content: center;
    padding-inline: 20px;
    text-decoration: none;
    outline: none;
    border: none;
}

.ebs-button-credits__container:hover .ebs-button-credits__content {

    background-color: #0066b3;
}

.ebs-button-credits__logo {
    grid-area: ebs-button-credits__logo;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 109px;
    width: 100%;
    height: auto;

}

.ebs-button-credits__logo img {
    width: 100%;
}

.ebs-button-credits__content {
  grid-area: ebs-button-credits__content;
  max-width: 100%;
  width: 100%;
  font-family: var(--font-family-rubik);
  background-color: #3aa6ff;
  color: #ffffff;
  font-size: 25px; /* ← это значение будет заменено в медиа-запросе */
  line-height: normal;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  padding: 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

/* === Медиа-запросы начало === */

@media screen and (max-width: 840px) {
  .ebs-button-credits__content {
    font-size: clamp(14px, 2vw + 1rem, 20px);
  }

  .ebs-button-credits__container {
    grid-template-columns: 20% 1fr;
    gap: 10px;
  }
}

@media screen and (max-width: 500px) {
  .ebs-button-credits__content {
    font-size: 14px;
  }

  .ebs-button-credits__container {
    grid-template-columns: 65px 1fr;
    gap: 10px;
  }
}

@media screen and (max-width: 380px) {
  .ebs-button-credits__content {
    font-size: 12px;
  }

  .ebs-button-credits__container {
    grid-template-columns: 45px 1fr;
    gap: 10px;
  }
}

/* === Медиа-запросы конец === */