/* ============================
   📱 CHILD MOBILE STYLES
   Для экранов ≤ 767.98px
============================ */
@media (max-width: 767.98px) {

  /* 💰 Ценовая плашка */
  .price-full-pill {
    display: inline-block;
    background-color: #ff5c5c;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 8px 18px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(255, 92, 92, 0.2);
    margin-top: 0.75rem;
  }

  /* 🔖 Общие тексты */
  .no-wrap { white-space: nowrap; }
  .fs-5, .fs-5.text-dark {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }

  /* 🧒 Заголовок */
  .hero-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
    color: #212529;
    font-family: 'Segoe UI', sans-serif;
    margin-bottom: 0.75rem;
  }

  /* 📦 Отступы для блоков */
  section.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .py-5 h2.fw-bold {
    font-size: 1.25rem;
    margin-bottom: 1.25rem !important;
  }
  .py-5 .fs-6,
  .py-5 p.fs-5,
  section.bg-white.text-center .fs-5 {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    padding: 0 0.3rem;
  }

  /* 📹 Видео */
  .hero video,
  .col-md-6.text-center video {
    max-width: 100% !important;
    height: auto !important;
    margin-top: 1rem;
  }
  .col-md-6.text-center p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
  }

  /* 🎁 Плашка акций */
  .limited-offer-inline {
    display: inline-block;
    background: linear-gradient(90deg, #FF6B6B, #FF3CAC);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(255, 60, 172, 0.25);
    white-space: nowrap;
    text-align: center;
    animation: pulseFast 1s infinite;
  }

  /* 🧩 Блоки преимуществ */
  .child-benefit-grid .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .child-benefit-card {
    background-color: #fff6f6;
    padding: 1rem;
    border-radius: 1rem;
  }
  .child-benefit-card .title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .child-benefit-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* 👩‍🏫 Отзывы */
  .testimonial-card {
    background-color: #faeff8;
    padding: 12px;
    border-radius: 1rem;
    margin-bottom: 1rem;
  }
  .testimonial-card video {
    aspect-ratio: 9/16;
    object-fit: contain;
    background-color: #fdf3f6;
  }

  /* 📦 Sticky-бар */
  .sticky-offer-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .sticky-offer-top {
    font-size: 0.9rem;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
  }
  .sticky-offer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .sticky-timer-block .timer-unit {
    min-width: 48px;
    padding: 4px 6px;
  }
  .timer-value {
    font-size: 1.1rem;
  }
  .timer-label {
    font-size: 0.65rem;
  }
  .sticky-offer-btn,
  .sticky-action-block .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .wow-gradient {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 📬 Формы */
  .form-with-sticky-padding {
    padding: 1.25rem !important;
  }
  .form-label {
    font-size: 0.9rem;
  }
  .form-control {
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
  }
  .btn {
    font-size: 1rem;
  }

  /* 🗺 Контакты + Карта */
  .row.g-3.mb-3 .col-6 img,
  .row.g-3.mb-3 .col-6 iframe {
    height: 150px;
    object-fit: cover;
    border-radius: 1rem;
  }
  .contacts-map-row {
    flex-direction: column !important;
  }
  .contacts-map-row .col {
    width: 100%;
  }

  /* ❌ Скрытые блоки */
  .hide { display: none !important; }

  /* 🔴/🔵/🟢 Плашки */
  .alert-pill {
    display: inline-block !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 0.45rem 0.9rem !important;
    border-radius: 999px !important;
    line-height: 1.4 !important;
    color: #fff !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .alert-pill.red   { background-color: #e53935 !important; }
  .alert-pill.blue  { background-color: #1e88e5 !important; }
  .alert-pill.green { background-color: #388e3c !important; }

  .alert-pill-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  .alert-pill-row .alert-pill {
    width: 100% !important;
  }

  /* ✅ Преимущества */
  .hero-features-list {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
  }
  .hero-features-list li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
  }
  .hero-features-list li span {
    margin-right: 0.4rem;
  }

  /* 🔘 Кнопка CTA */
  .hero-cta {
    font-size: 1rem;
    padding: 12px;
    text-align: center;
    width: 100%;
  }
}

/* 📱 Планшеты (iPad Air, iPad Mini, 768–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .alert-pill {
    white-space: normal !important;      /* ✅ разрешаем перенос */
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    text-align: center;
  }

  .alert-pill.red {
    font-size: 0.85rem;                  /* ⬇️ чуть меньше шрифт */
    padding: 0.5rem 1rem;
  }
}
