/*Users/vyacheslavkomarov/Documents/Python/Посадочная Школа Акция/pythonProject2/UNLANDING/landing/static/landing/css/mobile_index.css*/

/* ================================
   📱 Мобильная адаптация: Блоки с отступами .py-5 (включая "Почему выбирают UN.YOU")
================================= */
@media (max-width: 767.98px) {
  /* Общие отступы для всех секций .py-5 */
  section.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Заголовки в блоках с .py-5 */
  .py-5 h2.fw-bold {
    font-size: 1.125rem;
    margin-bottom: 1.25rem !important;
  }

  /* Универсальный шрифт для описаний */
  .py-5 .fs-6,
  .py-5 p.fs-5 {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  /* Для конкретных блоков с белым фоном и центрированием */
  section.py-5.bg-white.text-center {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 3rem;
  }

  section.py-5.bg-white.text-center h2.fw-bold.mb-5 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  section.py-5.bg-white.text-center p.fs-5 {
    font-size: 0.8rem;
    line-height: 1.6;
    max-width: 95%;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  /* Вспомогательный inline-блок с предложением */
  .limited-offer-inline {
    display: inline-block;
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
    white-space: nowrap;
    line-height: 1.2 !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

}





/* ================================
   Мобильная адаптация блока "Пока ты думаешь — другие действуют!
=============================== */
  @media (max-width: 767.98px) {
    section.py-5.bg-white h2.fw-bold.display-5 {
      font-size: 1.8rem !important;
      line-height: 1.2 !important;
    }
  }

/*Отзовы студентов на INDEX*/
@media (max-width: 767.98px) {
  .testimonial-card {
    background-color: #faeff8;
    padding: 12px;
    border-radius: 1rem;
  }

  .testimonial-card video {
    aspect-ratio: 9/16;
    object-fit: contain;
    background-color: #fdf3f6;
  }
}


/* ================================
   Мобильная адаптация блока " КОНТАКТЫ +!
=============================== */
@media (max-width: 767.98px) {
  /* Контейнер картинок */
  .row.g-3.mb-3 .col-6 img,
  .row.g-3.mb-3 .col-6 iframe {
    width: 100%;       /* Максимальная ширина по контейнеру */
    height: 150px;     /* Фиксированная высота для обеих */
    object-fit: cover; /* Обрезка картинки по размеру */
    border-radius: 1rem;
  }
}


/*Форма пробный урок*/
@media (max-width: 767.98px) {
  .form-with-sticky-padding {
    padding: 1.25rem !important;
  }

  .form-control, .form-select {
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
  }

  .btn {
    font-size: 1rem;
  }
}


/*{# ==== БЛОК: Карточки преимуществ UN.YOU ==== #} Index*/
@media (max-width: 767.98px) {
  .feature-card {
    background-color: #fff6f7;
    text-align: left;
    padding: 1rem !important;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .feature-card h6 {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
  }

  .feature-card p {
    font-size: 0.8rem;
    margin: 0;
  }

   .medal-icon {
    display: none !important;
  }

  .emoji {
    line-height: 1;
  }
  .card-title::before {
    display: none !important; /* если используешь :before или медаль */
  }

}





/*Отступ для последниего блока в INDEX*/
/*@media (max-width: 767.98px) {*/
/*  !* Отступ снизу для секции с формой *!*/
/*  section.py-5.bg-light:last-of-type {*/
/*    margin-bottom: 100px; !* можно адаптировать по высоте sticky-bar *!*/
/*  }*/

/*  !* Также можно добавить отступ для .container внутри *!*/
/*  section.py-5.bg-light:last-of-type .container {*/
/*    padding-bottom: 4rem;*/
/*  }*/
/*}*/


/*{# ==== Блок: Что даёт наш курс вашему ребёнку ==== #}*/
@media (max-width: 767.98px) {

    .results-wrapper {
    border: 2px solid #e53935;
    background: #f9fafb;
    padding: 1.2rem;
    border-radius: 1rem;
    overflow: hidden;
  }



  .results-img {
    text-align: center;
  }

  .results-img img {
    width: 50%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
  }

  .results-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .result-item {
    background: #ffeeee;
    border-radius: 1rem;
    padding: 1rem;
    text-align: left;
  }

  .result-item .item-title {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem; /* уменьшено */
    font-size: 1rem;
    font-weight: 700;
    color: #d32f2f;
    padding-left: 2.6rem; /* уменьшено */
    position: relative;
  }

  .result-item .item-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADAFHv6AAAA9klEQVR4Ab2UsQ3CMAxE33I5xgxsgxsgxshgsgxMghsxiyRyyRmZHTjJJ3QeN9azqWszsBf1yil1Y1ZjAcQDKdU1by9EBQ6gaSRKD/gh2VK6VOllSHJQ/eh6ACt0ok2vg2+ZnQvwvDwASrXY3TVARnXroCWPoIMOhIKBsBP/Am1A4OisU7Q6h0BNAi7Us1AFd4qYpYY+dz0AOGLpXhHbRC4A0s6Cnke0Kc+NQ+Q3FoVyscdU6AMzOpq/RSV3qX1B9eYTMM8lf3V4LAAAAABJRU5ErkJggg==");
    background-size: cover;
    background-repeat: no-repeat;
  }

  .result-item .item-desc {
    font-size: 0.9rem;
    color: #444;
    text-align: left;
    margin-left: 2.6rem; /* уменьшено */
    margin-top: 0.5rem;
  }
}


/* БЛОК: Каких результатов ты достигнешь */
/* 📱 Мобильная адаптация */
@media (max-width: 767.98px) {
  .results-wrapper {
    padding: 1.25rem;
  }

  h2.fw-bold {
    font-size: 1.4rem !important;
    margin-bottom: 1.5rem !important;
  }

  .results-content {
    flex-direction: column !important;
    text-align: center;
  }

  .results-img img {
    max-width: 200px;
    margin: 0 auto;
  }

  .result-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .item-title {
    font-size: 0.95rem;
  }

  .item-desc {
    font-size: 0.85rem;
  }
}


/*/* Контейнер для alert-плашек SHOP*/*/
@media (max-width: 767.98px) {
/* Контейнер для alert-плашек */
.alert-pill {
  font-size: 0.85rem !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 2rem !important;
  display: inline-block;
  line-height: 1.3;
  font-weight: 600;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;    /* ✅ фиксирует вылет */
  max-width: 100% !important;           /* ✅ адаптирует под мобильные */
}


  .alert-pill.red {
    background-color: #f44336;
    color: white;
  }

  .alert-pill.blue {
    background-color: #2196f3;
    color: white;
  }

  .alert-pill.green {
    background-color: #4caf50;
    color: white;
  }

  .pulse {
    animation: pulseAnim 2s infinite;
  }

  @keyframes pulseAnim {
    0% {
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
    }
    70% {
      box-shadow: 0 0 0 8px rgba(0, 0, 0, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
  }

  /* Контейнер-перенос в столбец */
  .shop-alert-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem;
  }

  .shop-alert-row .alert-pill {
    width: 100% !important;
    text-align: center;
  }
}



{# ==== HERO-БЛОК (пульсирующая плашка + оффер + видео INDEX) ==== #}
@media (max-width: 767.98px) {

  /* 🔻 ОБЩАЯ СЕКЦИЯ */
  section.pt-4.pb-5.bg-light {
    padding: 1.5rem 0 !important;
  }

  /* 🔴 Пульсирующая плашка */
  .limited-offer-inline {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    color: #ff5c5c;
    background-color: rgba(255, 92, 92, 0.1);
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

@media (max-width: 767.98px) {
  .limited-offer-gradient {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.8rem !important;
    white-space: nowrap !important;
    display: inline-block !important;
    line-height: 1.2 !important;
  }
 .limited-offer-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin-bottom: 0.75rem;
  }
}



/* 🔁 Быстрая пульсация */
@keyframes pulseFast {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 60, 172, 0.4);
  }
  70% {
    transform: scale(1.04);
    box-shadow: 0 0 0 8px rgba(255, 60, 172, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 60, 172, 0);
  }
}




  .pulse-red {
    animation: pulseRed 1.8s infinite;
  }

  @keyframes pulseRed {
    0% {
      box-shadow: 0 0 0 0 rgba(255, 92, 92, 0.6);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(255, 92, 92, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(255, 92, 92, 0);
    }
  }

  /* 🟢 Бейдж "Курс ON-LINE" */
  .online-course-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  /* 📝 Заголовок */
  .hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  /* 💸 Ценовая плашка внутри h1 */
  .price-full-pill {
    display: inline-block;
    background-color: #ff5c5c;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    padding: 6px 14px;
    border-radius: 8px;
    margin-top: 0.5rem;
  }

  /* 📢 Подзаголовок */
  .fs-5.text-dark {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem;
  }

  /* ✅ Преимущества */
  .hero-features-list {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
  }

  .hero-features-list li {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
  }

  .hero-features-list li span {
    margin-right: 0.4rem;
  }

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

  /* 🎥 Видео */
  .col-md-6.text-center video {
    max-width: 100%;
    height: auto;
  }

  .col-md-6.text-center p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
  }

  /* 🃏 Оформление карточки */
  .card.rounded-4 {
    border-radius: 1rem !important;
    overflow: hidden;
  }

  .p-5 {
    padding: 1.5rem !important;
  }

  .p-4 {
    padding: 1rem !important;
  }

  .g-0 {
    gap: 0 !important;
  }
}


/*контакты горизонатльное расположегния сити и карты*/
@media (max-width: 767.98px) {
  .contacts-map-row {
    flex-direction: column !important;
  }

  .contacts-map-row .col-6 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .contacts-map-row img,
  .contacts-map-row iframe {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
  }
}



/* ================================
   Мобильная адаптация блока " {# ==== блок счетчика ==== #}
<!-- Липкая акция: бар фиксируется внизу --> +!
=============================== */
@media (max-width: 767.98px) {
  /* Контейнер липкой панели */
  .sticky-offer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px;
    transition: transform 0.3s ease;
  }

  /* Flex-контейнер */
  .sticky-offer-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    position: relative;
  }

  .sticky-offer-close {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 24px;
    color: #f66;
    cursor: pointer;
    z-index: 10;
  }

  .sticky-offer-top {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    padding: 4px 6px;
    gap: 6px;
    align-items: center;
  }

  .wow-gradient {
    font-size: 0.95rem;
    padding: 6px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    border-radius: 999px;
    background: linear-gradient(to right, #ff6a00, #ee0979);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 60, 172, 0.25);
  }

  .sticky-offer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .sticky-timer-block {
    display: flex;
    gap: 8px;
    flex-grow: 1;
    justify-content: center;
  }

  .timer-unit {
    min-width: 48px;
    padding: 4px 6px;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
  }

  .timer-value {
    font-size: 1.1rem;
    display: block;
  }

  .timer-label {
    font-size: 0.65rem;
    color: #666;
  }

  .sticky-action-block {
    position: relative;
    flex-shrink: 0;
      margin-left: -20px;
  }

  .wow-tag {
    position: absolute;
    top: -10px;
    left: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    background: #fff;
    border: 2px solid orange;
    padding: 2px 6px;
    border-radius: 6px;
    transform: rotate(-10deg);
    z-index: 5;
  }

.sticky-offer-btn {
  font-size: 0.85rem !important;
  padding: 8px 16px !important;
  white-space: nowrap !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  background-color: #000 !important;
  color: #fff !important;
  max-width: 100% !important;
  text-align: center;
}
}



@media (max-width: 767.98px) {
  #consultation-form {
    display: block;
  }
}


/*Плашки детская страница*/
@media (max-width: 767.98px) {
  .alert-pill {
    font-size: 0.78rem !important;                /* 👈 немного увеличим шрифт */
    padding: 0.45rem 0.9rem !important;
    border-radius: 999px !important;
    font-weight: 600;
    line-height: 1.4;
    box-sizing: border-box !important;
    white-space: normal !important;              /* ✅ разрешаем перенос */
    overflow: visible !important;
    text-align: center;
  }

  .alert-pill.red    { background-color: #e53935; color: white; }
  .alert-pill.blue   { background-color: #1e88e5; color: white; }
  .alert-pill.green  { background-color: #388e3c; color: white; }
}




/*Плашка страницы Index для узких экранов*/
@media (max-width: 360px) {
  /* 🔴 Пульсирующая плашка HERO */
  .limited-offer-gradient {
    font-size: 0.7rem !important;         /* 👈 чуть меньше шрифт */
    padding: 0.35rem 0.75rem !important;  /* 👈 уменьшенные отступы */
    line-height: 1.2 !important;
  }
}


/* 🎯 Специальная адаптация липкого блока для экранов ≤ 360px */
@media (max-width: 360px) {
  .sticky-action-block {
    margin-left: 0;
    margin-right: 4px; /* ⬅️ добавим правый отступ */
    position: relative;
    flex-shrink: 0;
  }

  .wow-tag {
    top: -12px;         /* ⬆️ чуть выше */
    left: -4px;         /* ⬅️ ближе к центру кнопки */
    font-size: 0.6rem;
    padding: 2px 5px;
    transform: rotate(-12deg); /* аккуратнее наклон */
    border: 2px solid orange;
    background: #fff;
    color: #f57c00;
    border-radius: 6px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  .sticky-offer-btn {
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
    border-radius: 999px !important;
    max-width: 100%;
    text-align: center;
  }
}



/* =========================
   📱 Контакты: Mobile layout
   ========================= */
@media (max-width: 767.98px) {
  /* Строка: эмодзи + подпись + ссылка */
  .contact-label-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
  }

  .contact-label-line .emoji {
    font-size: 1.2rem;
    line-height: 1;
  }

  /* Ссылки (email, whatsapp, telegram) */
  .contacts-phone {
    display: inline-block;
    white-space: nowrap;
    font-weight: 500;
    color: #007bff;
    text-decoration: underline;
    font-size: 0.95rem;
  }

  /* Подписи (Email:, WhatsApp:) */
  .contacts-block strong {
    font-weight: 600;
  }

  /* Общие параграфы в блоке контактов */
  .contacts-block p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
  }

  /* Удаляем ошибочные ::before у всех <p> */
  .contacts-block p::before {
    content: none;
  }
}


/* ================================
   📱 HERO-БЛОК (≤ 991.98px):
   Вертикальное расположение оффера и видео на планшетах и телефонах
================================= */
@media (max-width: 991.98px) {
  .hero-block {
    display: flex !important;
    flex-direction: column !important;
  }

  .hero-block > .col-md-6 {
    width: 100% !important;
  }

  .hero-block .p-5,
  .hero-block .p-4 {
    padding: 1.25rem !important;
  }

  .hero-block video {
    width: 100% !important;
    height: auto !important;
    margin-top: 1rem;
  }
}


/* 📱 Планшеты: адаптация хедера для ширины до 1024px */
/* 📱 Навигация: адаптация меню от 768 до 1024px (планшеты, iPad Pro) */
/* 📱 Планшеты и узкие экраны */




/* 🎯 Дополнительная адаптация sticky bar для узких экранов ≤ 420px */
@media (max-width: 420px) {
  .sticky-offer-bar.compact {
    padding: 10px 8px !important;
  }

  .sticky-offer-top {
    font-size: 0.8rem !important;
    gap: 4px;
    line-height: 1.3;
  }

  .wow-gradient {
    font-size: 0.75rem !important;
    padding: 4px 8px !important;
  }

  .timer-unit {
    min-width: auto !important;
    padding: 3px 4px !important;
    font-size: 0.75rem;
  }

  .timer-value {
    font-size: 1rem !important;
  }

  .timer-label {
    font-size: 0.6rem !important;
  }

  .sticky-offer-btn {
    font-size: 0.8rem !important;
    padding: 6px 10px !important;
  }

  .wow-tag {
    font-size: 0.6rem;
    top: -8px;
    left: 4px;
  }

  .sticky-offer-close {
    font-size: 20px !important;
    top: 4px;
    right: 6px;
  }

  /* Отступ у формы — чтобы бар не перекрывал контент */
  .form-with-sticky-padding {
    padding-bottom: 120px !important;
  }
}

/*лдл*/
/* ================================
📱 Адаптация блока "Призыв купить по акции"
=============================== */
/* 📱 Все устройства до 1024px (включая планшеты) */
/* Переопределения для планшетов (iPad Mini и iPad Pro вертикально) */
@media (max-width: 1024px) {
  .bonus-title-conservative {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    padding: 0 0.5rem !important;
  }

  .bonus-title-small {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

/* Мобильные устройства (телефоны) */
@media (max-width: 767.98px) {
  .bonus-title-conservative {
    font-size: 1.0rem !important;
    line-height: 1.3 !important;
    padding: 0 0.5rem !important;
  }
}


/* ================================
📱 Адаптация alert-плашек на экранах до 1024px CHILD
================================ */

/* Общая настройка всех плашек */
@media (max-width: 1024px) {
  .alert-pill {
    font-size: 0.85rem !important;                  /* Немного уменьшенный шрифт */
    padding: 0.5rem 0.8rem !important;              /* Удобные внутренние отступы */
    white-space: normal !important;                /* ❗ Разрешаем перенос строк */
    overflow-wrap: break-word !important;          /* Перенос по словам */
    word-break: break-word !important;             /* Перенос длинных слов */
    max-width: 100% !important;                    /* Ограничение по ширине */
    text-align: center !important;                 /* Выравнивание текста */
    line-height: 1.4;
    box-sizing: border-box !important;
  }

  /* Строка с плашками — в колонку при нехватке ширины */
  .alert-pill-row {
    display: flex;
    flex-direction: column !important;             /* ❗ Плашки одна под другой */
    gap: 0.5rem;
    align-items: stretch !important;
  }

  .alert-pill-row .alert-pill {
    width: 100% !important;                        /* Плашка занимает всю ширину */
  }
}

/* Дополнительная адаптация для мобильных */
@media (max-width: 767.98px) {
  .alert-pill {
    font-size: 0.78rem !important;                 /* Ещё чуть меньше шрифт */
    padding: 0.45rem 0.9rem !important;
    border-radius: 999px !important;               /* Скругление как у "pill" */
    font-weight: 600;
    text-align: center;
  }

  .alert-pill.red    { background-color: #e53935; color: white; }
  .alert-pill.blue   { background-color: #1e88e5; color: white; }
  .alert-pill.green  { background-color: #388e3c; color: white; }
}






















