
/* Основной контейнер */
.md-app-banner {
  --md-blue: #007bff;
  --md-dark: #17344e;

  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;

  width: 100%;
  max-width: 1104px;
  min-width: 0;
  min-height: 140px;

  margin: 18px auto;
  padding: 12px 22px;

  border: 1px solid #cfe5fc;
  border-radius: 18px;

  background: linear-gradient(
    110deg,
    #f0f8ff 0%,
    #ffffff 70%
  );

  box-shadow: 0 4px 20px rgba(0, 123, 255, .07);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.md-app-banner *,
.md-app-banner *::before,
.md-app-banner *::after {
  box-sizing: border-box;
}

/* Изображение приложения */
.md-app-banner__preview {
  flex: 0 0 72px;
  width: 72px;
  height: 116px;
  border-radius: 11px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(22, 56, 87, .12);
}

.md-app-banner__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* Текстовое содержимое */
.md-app-banner__content {
  flex: 1 1 0;
  min-width: 0;
}

.md-app-banner__tag {
  display: inline-block;
  margin-bottom: 5px;

  color: var(--md-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.md-app-banner__title {
  display: block;
  margin: 0 0 5px;

  color: var(--md-dark);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.22;
  font-weight: 800;
}

.md-app-banner__title span {
  color: var(--md-blue);
}

.md-app-banner__description {
  margin: 0;
  color: #536b80;
  font-size: 13px;
  line-height: 1.5;
}

/* Преимущества */
.md-app-banner__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 9px;

  color: #39617e;
  font-size: 11px;
  font-weight: 600;
}

.md-app-banner__features span {
  white-space: nowrap;
}

/* Кнопка скачивания */
.md-app-banner__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 48px;
  padding: 12px 21px;

  border: 0;
  border-radius: 12px;
  background: var(--md-blue);

  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;

  box-shadow: 0 4px 12px rgba(0, 123, 255, .2);

  transition:
    background .2s,
    transform .2s,
    box-shadow .2s;
}

.md-app-banner__button:hover {
  background: #0069da;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, .25);
}

.md-app-banner__button svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Планшеты */
@media (max-width: 820px) {
  .md-app-banner {
    gap: 12px;
    padding: 12px 15px;
  }

  .md-app-banner__preview {
    flex-basis: 64px;
    width: 64px;
    height: 105px;
  }

  .md-app-banner__title {
    font-size: 18px;
  }

  .md-app-banner__button {
    padding: 12px 14px;
    font-size: 13px;
  }

  .md-app-banner__features {
    gap: 5px 9px;
  }
}

/* Телефоны */
@media (max-width: 600px) {
  .md-app-banner {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;

    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 12px auto;
    padding: 12px;

    border-radius: 15px;
  }

  .md-app-banner__preview {
    width: 58px;
    height: 98px;
  }

  .md-app-banner__tag {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .md-app-banner__title {
    font-size: 17px;
    line-height: 1.25;
  }

  .md-app-banner__description {
    font-size: 12px;
    line-height: 1.4;
  }

  .md-app-banner__features {
    margin-top: 6px;
    font-size: 10px;
  }

  .md-app-banner__button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Отключение анимации при необходимости */
@media (prefers-reduced-motion: reduce) {
  .md-app-banner__button {
    transition: none;
  }
}
