/* typography-improvements.css - Улучшения для читаемости текста */

@media (max-width: 768px) {
  /* Основные правила типографики для мобильных устройств */
  body {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  /* Заголовки */
  h1 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 700;
  }
  
  h2 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 700;
  }
  
  h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 600;
  }
  
  h4, h5, h6 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 600;
  }
  
  /* Абзацы и основной текст */
  p, li, td, th {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  
  /* Мелкий текст */
  small, .small-text {
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* Улучшение контраста */
  body {
    color: #333333;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #222222;
  }
  
  a {
    color: #0066cc;
  }
  
  /* Улучшение читаемости ссылок */
  a:hover, a:focus {
    text-decoration: underline;
  }
  
  /* Улучшение межстрочного интервала для удобочитаемости */
  .product-description, 
  .coffee-description,
  .review-text,
  .blog-content {
    line-height: 1.6;
  }
  
  /* Улучшение удобочитаемости для длинных текстов */
  .blog-post, 
  .article, 
  .review-content,
  .long-text {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.01em;
  }
  
  /* Цитаты и выделенный текст */
  blockquote, 
  .highlighted-text {
    font-size: 17px;
    line-height: 1.5;
    font-style: italic;
    padding: 10px 15px;
    margin: 15px 0;
    border-left: 3px solid var(--primary-color);
    background-color: rgba(0, 0, 0, 0.03);
  }
  
  /* Улучшение читаемости списков */
  ul, ol {
    padding-left: 20px;
    margin-bottom: 15px;
  }
  
  li {
    margin-bottom: 8px;
  }
  
  /* Текст в карточках кофе */
  .coffee-card .product-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .coffee-card .product-details {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
  }
  
  /* Улучшение читаемости цен и рейтингов */
  .product-rating {
    font-size: 16px;
    font-weight: 600;
    color: #333;
  }
  
  /* Улучшение читаемости меток и тегов */
  .tag, .badge, .label {
    font-size: 13px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.02em;
  }
}

/* Стили для всех устройств */
/* Правило для оптимальной длины строки */
.readable-content {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Улучшение контраста для лучшей читаемости */
.high-contrast-text {
  color: #000;
  background-color: #fff;
}

/* Ключевой текст, который должен быть хорошо виден */
.important-text {
  font-weight: 600;
  color: #000;
}
