/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Cantata+One&family=Roboto:wght@400;500&display=swap');

/* Базовые стили для модуля купона */
.coupon-sale {
  background-image: url('/templates/greenery/images/coupon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* Изображение будет обрезаться, а не масштабироваться */
  max-width: 1200px; /* Ограничиваем максимальную ширину */
  margin: 0 auto; /* Центрируем по горизонтали */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 82px;
  padding: 0 12px;
  min-height: 80px;
}
/* Общие стили для всех текстовых элементов */
.summer-text, .coupon-info, .coupon-code {
  /* Установка минимальной высоты строки для предотвращения наложения */
  line-height: 1.5;
  /* Предотвращение обрезки нижних частей букв */
  padding-bottom: 2px;
}
/* Стиль для "Summer Sale" */
.summer-text {
  font-family: 'Cantata One', serif;
  font-size: 32px;
  color: #698D25;
  text-transform: uppercase;
  letter-spacing: 2.9px;
}

/* Стиль для информации о купоне */
.coupon-info {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #03031D; 
  line-height: 150%;
}

/* Стиль для кода купона */
.coupon-code {
  font-family: 'Cantata One', serif;
  font-size: 22px;
  color: #03031D;
  font-weight: bold;
}

/* Медиа-запрос для планшетов */
@media screen and (max-width: 992px) {
  .coupon-sale {
    gap: 40px;
  }
  
  .summer-text {
    font-size: 26px;
  }
  
  .coupon-info {
    font-size: 18px;
    line-height: 140%;
  }
  
  .coupon-code {
    font-size: 20px;
  }
}

/* Медиа-запрос для мобильных устройств */
@media screen and (max-width: 767px) {
  .coupon-sale {
    /* Изменяем расположение на 2 ячейки */
    justify-content: space-between;
    gap: 15px;
    /*padding: 10px;*/
    background-size: cover; /* Обрезка фона */
    background-position: 60% center; /* Смещаем фокус фона */
  }
  
  /* Создаем контейнер для левой ячейки */
  .summer-text {
    font-size: 15px;
    width: 35%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Создаем контейнер для правой ячейки с вертикальным расположением */
  .coupon-info-container {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  
  .coupon-info {
    font-size: 12px;
    line-height: 120%;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 5px;
  }
  
  .coupon-code {
    font-size: 14px;
    text-align: center;
    width: 100%;
  }
}

/* Дополнительные стили для очень узких экранов */
@media screen and (max-width: 480px) {
  .summer-text {
    font-size: 26px;
  }
  
  .coupon-info {
    font-size: 24px;
    line-height: 110%;
  }
  
  .coupon-code {
    font-size: 26px;
  }
}
