
/* === Общие стили === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img-sub {
  max-width: 80%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

p {
  margin: 0;
}

/* Анимация появления */
.ma-subscribe-container {
  /* opacity: 0; */
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Заголовок */
.ma-title {
  font-family: inherit;
  font-size: 50px;
  font-weight: bold;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 20px 0;
  color: #000;
  /* opacity: 0; */
  animation: fadeIn 0.6s ease 0.2s forwards;
}

.ma-title:last-child {
  margin-bottom: 0;
}

/* Описание */
.ma-description p {
  text-align: justify;
  /* opacity: 0; */
  animation: fadeIn 0.6s ease 0.4s forwards;
}

/* Кнопки с задержкой */
.ma-btn {
  /* opacity: 0; */
  animation: fadeIn 0.6s ease var(--btn-delay, 0.6s) forwards;
}

.ma-social-buttons a:nth-child(1) { 
  --btn-delay: 0.6s; 
  gap: 5%;
}

.ma-social-buttons a:nth-child(2) { 
  --btn-delay: 0.8s; 
  gap: 5%;
}

/* Выделение текста */
::selection {
  background: #39f;
  color: #fff;
  text-shadow: none;
}

/* Ссылки */
a {
  background: transparent;
  color: #6100ff;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}


a:focus,
a:active,
:focus {
  outline: none;
  box-shadow: none;
}

/* Контейнер */
.ma-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Основной блок */
.ma-subscribe-container {
  display: flex;
  flex-wrap: wrap;
  margin-left: -20px;
}

/* Колонки */
.ma-col {
  width: calc(50% - 20px);
  margin-left: 20px;
}

/* Заголовок секции */
.ma-section-header {
  margin-bottom: 50px;
}

/* Описание */
.ma-description {
  max-width: 450px;
}

/* Кнопки */
.ma-buttons-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center; 
}

.ma-social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 720px;
}

.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 5px 15px 4px;
  line-height: 1;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  background: var(--color-primary);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 100%;
  max-width: 180px;
  flex: 1 1 140px;
}

.ma-btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: scale(1.03);
  box-shadow: 0 4px 12px var(--color-primary-dark);
  text-decoration: none;
}


/* Изображение */
.ma-image-col {
  max-height: 50%;
  text-align: center;
}

.ma-image-wrapper {
  display: inline-block;
  max-width: 450px;
}

/* === Адаптивность === */
@media screen and (min-width: 1241px) {
  .ma-description {
    font-size: 20px;
  }
}

@media screen and (max-width: 1240px) {
  .ma-title {
    font-size: 42px;
  }
  .ma-section-header {
    margin-bottom: 40px;
  }
  .ma-buttons-wrapper {
    margin-top: 40px;
  }
}

@media screen and (max-width: 767px) {
  .ma-title {
    font-size: 34px;
  }

  .ma-btn {
    font-size: 12px;
  }

  .ma-section-header {
    margin-bottom: 25px;
  }

  .ma-col {
    width: calc(100% - 20px);
    margin-left: 20px;
  }

  .ma-image-col {
    margin-top: 25px;
  }

  .ma-text-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .ma-text-col > * {
    width: 100%;
    max-width: 450px;
    margin-left: 0;
  }

  .ma-buttons-wrapper {
    order: 2;
    margin-top: 25px;
    margin-left: 0; 
    justify-content: center; 
  }

  .ma-social-buttons {
    margin-left: 0; 
    justify-content: center;
    gap: 12px; 
    flex-wrap: wrap;
  }

  .ma-btn {
    margin: 0; 
    width: 100%; 
    max-width: 300px; 
  }

  .ma-description {
    max-width: none;
    text-align: center; 
  }
}

@media screen and (max-width: 479px) {
  .ma-title {
    font-size: 30px;
  }
  .ma-btn {
    width: calc(100% - 15px);
  }
}

@media screen and (max-width: 359px) {
  .ma-title {
    font-size: 28px;
  }
}