/* ===== ОПТИМИЗАЦИЯ ТЕКСТА ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */

/* Основные переменные для мобильных размеров */
:root {
  /* Мобильные размеры шрифтов */
  --mobile-heading-large: 40px;
  --mobile-heading-medium: 36px;
  --mobile-heading-small: 28px;
  --mobile-text-large: 18px;
  --mobile-text-medium: 16px;
  --mobile-text-small: 14px;
  --mobile-text-xs: 12px;
  
  /* Планшетные размеры */
  --tablet-heading-large: 50px;
  --tablet-heading-medium: 42px;
  --tablet-heading-small: 32px;
  --tablet-text-large: 20px;
  --tablet-text-medium: 18px;
  --tablet-text-small: 16px;
  
  /* Десктопные размеры */
  --desktop-heading-large: 70px;
  --desktop-heading-medium: 60px;
  --desktop-heading-small: 40px;
  --desktop-text-large: 24px;
  --desktop-text-medium: 20px;
  --desktop-text-small: 18px;
  
  /* Межстрочные интервалы */
  --line-height-tight: 1.2;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
  
  /* Межбуквенные интервалы */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
}

/* ===== ОСНОВНЫЕ ЗАГОЛОВКИ ===== */

/* Главный заголовок */
.promo-section__heading {
  font-size: var(--mobile-heading-large);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  font-weight: 800;
}

.promo-section__heading div {
  font-size: var(--mobile-heading-medium);
  line-height: var(--line-height-tight);
}

/* Подзаголовки */
.subheading {
  font-size: var(--mobile-heading-medium);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  font-weight: 700;
  text-align: center;
}

.subheading_red {
  font-size: var(--mobile-heading-medium);
  line-height: var(--line-height-normal);
}

/* ===== ТЕКСТ СОДЕРЖАНИЯ ===== */

/* Основной текст */
.cond-section__text-content-item {
  font-size: var(--mobile-text-medium);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
  font-weight: 400;
}

/* Текст в списках */
.cond-section__list-item-text {
  font-size: var(--mobile-text-large);
  line-height: var(--line-height-normal);
  font-weight: 600;
}

/* Текст "кредитные каникулы" */
.cond-section__row {
  font-size: var(--mobile-text-large) !important;
  line-height: var(--line-height-normal);
  font-weight: 500;
}

/* ===== ЦЕНЫ И ВЫПЛАТЫ ===== */

/* Заголовки цен */
.promo-section__price-heading {
  font-size: var(--mobile-text-medium);
  line-height: var(--line-height-tight);
  font-weight: 600;
  text-transform: uppercase;
}



/* Суммы */
.promo-section__price {
  font-size: var(--mobile-heading-medium);
  line-height: var(--line-height-tight);
  font-weight: 800;
}

/* Подписи к ценам */
.promo-section__price-group-subtext {
  font-size: var(--mobile-text-small);
  line-height: var(--line-height-normal);
  font-weight: 400;
}

/* ===== НАВИГАЦИЯ ===== */

/* Ссылки в навигации */
.header__nav-link {
  font-size: var(--mobile-text-medium);
  line-height: var(--line-height-tight);
  font-weight: 600;
}

.header__nav-btn {
  font-size: var(--mobile-text-medium);
  line-height: var(--line-height-tight);
  font-weight: 700;
}

/* Телефоны */
.phone-number {
  font-size: var(--mobile-text-medium);
  line-height: var(--line-height-tight);
  font-weight: 600;
}

/* ===== ФОРМЫ ===== */

/* Поля ввода */
.form-section__form-input {
  font-size: var(--mobile-text-medium);
  line-height: var(--line-height-normal);
  font-weight: 400;
}

/* Кнопки */
.form-section__form-btn {
  font-size: var(--mobile-text-medium);
  line-height: var(--line-height-tight);
  font-weight: 700;
}

/* ===== ПОДВАЛ ===== */

/* Текст в подвале */
.footer__text {
  font-size: var(--mobile-heading-medium);
  line-height: var(--line-height-tight);
  font-weight: 700;
}

.footer__tel-link {
  font-size: var(--mobile-text-large);
  line-height: var(--line-height-tight);
  font-weight: 600;
}

.footer__socials-link {
  width: 100%;
  justify-content: center;
}

.footer__socials-link span {
  font-size: var(--mobile-text-small);
  line-height: var(--line-height-tight);
  font-weight: 600;
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */

.mobile-menu__nav-link {
  font-size: var(--mobile-text-large);
  line-height: var(--line-height-normal);
  font-weight: 600;
}

.mobile-menu__phone {
  font-size: var(--mobile-text-medium);
  line-height: var(--line-height-tight);
  font-weight: 600;
}

/* ===== ПЛАНШЕТЫ (768px - 1023px) ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .promo-section__heading {
    font-size: var(--tablet-heading-large);
    text-align: left !important;
  }
  
  .promo-section__heading div {
    font-size: var(--tablet-heading-medium);
    text-align: left !important;
  }
  
  .subheading {
    font-size: var(--tablet-heading-medium);
  }
  
  .cond-section__text-content-item {
    font-size: var(--tablet-text-medium);
  }
  
  .cond-section__list-item-text {
    font-size: var(--tablet-text-large);
  }
  
  .cond-section__row {
    font-size: var(--tablet-text-large) !important;
  }
  
  .promo-section__price {
    font-size: var(--tablet-heading-medium);
  }
  
  .header__nav-link,
  .header__nav-btn {
    font-size: var(--tablet-text-medium);
  }
  
  .form-section__list-item {
    font-size: var(--tablet-text-large);
  }
  
  .phone-number {
    font-size: var(--tablet-text-medium);
  }
  
  .footer__text {
    font-size: var(--tablet-heading-medium);
  }
  
  .footer__tel-link {
    font-size: var(--tablet-text-large);
  }
  

}

/* ===== ДЕСКТОП (1024px+) ===== */
@media (min-width: 1024px) {
  .promo-section__heading {
    font-size: var(--desktop-heading-large);
    text-align: left !important;
  }
  
  .promo-section__heading div {
    font-size: var(--desktop-heading-medium);
    text-align: left !important;
  }
  
  .subheading {
    font-size: var(--desktop-heading-medium);
  }
  
  .cond-section__text-content-item {
    font-size: var(--desktop-text-medium);
  }
  
  .cond-section__list-item-text {
    font-size: var(--desktop-text-large);
  }
  
  .cond-section__row {
    font-size: var(--desktop-text-large) !important;
  }
  
  .promo-section__price {
    font-size: var(--desktop-heading-medium);
  }
  
  .header__nav-link,
  .header__nav-btn {
    font-size: var(--desktop-text-medium);
  }
  
  .form-section__list-item {
    font-size: var(--desktop-text-large);
  }
  
  .phone-number {
    font-size: var(--desktop-text-medium);
  }
  
  .footer__text {
    font-size: var(--desktop-heading-medium);
  }
  
  .footer__tel-link {
    font-size: var(--desktop-text-large);
  }
  

}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 479px) ===== */
@media (max-width: 479px) {
  .cond-section__row {
    font-size: var(--mobile-text-medium) !important;
  }
}

/* ===== ЗАГОЛОВКИ ЦЕН В СЕТКЕ ===== */
.price-section__list_grid .price-section__list-item .price-section__list-item-heading {
  font-size: var(--mobile-heading-medium);
  line-height: var(--line-height-tight);
  font-weight: 700;
}

.price-section__list_grid .price-section__list-item .price-section__list-item-text {
  font-size: var(--mobile-text-medium);
  line-height: var(--line-height-normal);
  font-weight: 500;
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1023px) {
  .price-section__list_grid .price-section__list-item .price-section__list-item-heading {
    font-size: var(--tablet-heading-medium);
  }
  
  .price-section__list_grid .price-section__list-item .price-section__list-item-text {
    font-size: var(--tablet-text-medium);
  }
}

/* Десктоп */
@media (min-width: 1024px) {
  .price-section__list_grid .price-section__list-item .price-section__list-item-heading {
    font-size: var(--desktop-heading-medium);
  }
  
  .price-section__list_grid .price-section__list-item .price-section__list-item-text {
    font-size: var(--desktop-text-medium);
  }
}

/* ===== УВЕЛИЧЕННЫЕ ВИДЖЕТЫ ДЛЯ МОБИЛЬНЫХ ===== */
/* Стили для messenger-widget перенесены в responsive.css */

/* ===== ДОСТУПНОСТЬ ===== */

/* Улучшение читаемости для людей с нарушениями зрения */
@media (prefers-reduced-motion: no-preference) {
  .promo-section__heading,
  .subheading,
  .cond-section__text-content-item,
  .cond-section__list-item-text,
  .cond-section__row {
    transition: font-size 0.3s ease, line-height 0.3s ease;
  }
}

/* Увеличенный контраст для лучшей читаемости */
.cond-section__text-content-item,
.cond-section__list-item-text,
.cond-section__row {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Минимальная высота строки для лучшей читаемости */
.cond-section__text-content-item {
  min-height: 1.5em;
}

.cond-section__list-item-text {
  min-height: 1.4em;
}

.cond-section__row {
  min-height: 1.4em;
}
