/* ============================================================
   SmartyKids Томск — Custom CSS (Настройки сайта → Вставка кода, в HEAD)
   Переписан начисто 2026-06-12. Удалены мёртвые правила (блоки заменены на T123):
     .uc-hero-left, #rec2195410131, #rec2211074181, #rec2247944251, олимпиадный параллакс (6 id).
   2026-06-18: добавлено правило — градиент-оверлей Hero (::before) не перехватывает клики
     (крошки/ссылки кликабельны на мобиле, где крошки в обычном потоке).
   ============================================================ */
/* === Скролл к якорям с учётом sticky-шапки === */
html { scroll-padding-top: 100px; }
[id^="rec"] { scroll-margin-top: 100px; }

/* === 2026-07-08: страховка от горизонтального скролла/обрезки правого края на мобиле ===
   Жалоба: на Главной (мобайл) плавающие кнопки sk-ask/sk-soc (блок Подвала) и попап
   «Запись на диагностику» обрезаются у правого края. В эмуляции (iPhone 390×844, разные
   ширины 320–412) воспроизвести не удалось — CSS-отступы верные (14px), контейнер попапа
   в размер экрана. На странице есть элементы шире вьюпорта (слайдер), из-за которых на
   реальном устройстве возможен горизонтальный скролл/сдвиг — это может визуально обрезать
   fixed-элементы у края на некоторых телефонах/зумах. Жёстко режем как страховку. */
html, body { overflow-x: hidden !important; max-width: 100vw !important; }

/* === Hero-направлений: градиент-оверлей (::before) НЕ ловит клики — крошки и ссылки под ним кликабельны === */
[class*="sk-hero-"]::before { pointer-events: none !important; }

/* === МОБИЛКА всех Hero: крошки в обычный поток под шапку, контент сверху (без наложения) === */
@media (max-width: 960px) {
  [class*="sk-hero-"][class*="__crumbs"] {
    position: static !important; top: auto !important; left: auto !important; right: auto !important;
    max-width: 100% !important; margin: 104px 0 12px !important; padding: 0 24px !important;
  }
  /* направления: контент сверху, отступ даёт margin крошек. Главную НЕ трогаем — у неё своя мобильная композиция (плашка+фото+кнопки) */
  [class*="sk-hero-"][class*="__wrap"]:not(.sk-hero-main__wrap) { justify-content: flex-start !important; min-height: auto !important; padding-top: 0 !important; }
}
/* === МОБИЛКА ≤640: скрыть пилюли направлений (__slogan) и плашки главной (__dirs) — лишние переходы на телефоне === */
@media (max-width: 640px) {
  [class*="sk-hero-"][class*="__crumbs"] { margin-top: 96px !important; padding: 0 20px !important; }
  [class*="sk-hero-"][class*="__slogan"],
  [class*="sk-hero-"][class*="__dirs"] { display: none !important; }
}
/* Плавающие кнопки на мобиле позиционирует БЛОК ПОДВАЛА (bottom:48%, середина экрана). Здесь правил нет — иначе !important перебьёт Подвал. */

/* === Заголовки нативных секций H2 одного размера === */
.t-section__title { font-size: 56px !important; font-weight: 700 !important; line-height: 1.1 !important; }
@media (max-width: 960px) { .t-section__title { font-size: 40px !important; } }
@media (max-width: 640px) { .t-section__title { font-size: 32px !important; } }
/* === CR35 «Летние программы» — скрыть таймер === */
#rec2222325541 .t415__timer,
#rec2222325541 [class*="timer"] { display: none !important; }
/* === FR201 «Безопасность» — фон с фото класса === */
#rec2235153331 {
  background-image:
    linear-gradient(rgba(32, 32, 128, 0.6), rgba(32, 32, 128, 0.6)),
    url(https://static.tildacdn.com/tild6237-3965-4535-a664-646337306261/class_english.png) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
#rec2235153331 .t-section__title { color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important; }
#rec2235153331 .t-section__descr { color: #ffffff !important; font-size: 22px !important; text-shadow: 0 2px 6px rgba(0,0,0,0.5) !important; }
#rec2235153331 .t-card__title,
#rec2235153331 .t-card__title a,
#rec2235153331 .t-card__descr { color: #ffffff !important; text-shadow: 0 2px 6px rgba(0,0,0,0.5) !important; }
#rec2235153331 .t490__col {
  background: rgba(26, 26, 26, 0.32) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 22px 16px !important;
  box-sizing: border-box !important;
}
#rec2235153331 .t-btn {
  padding: 14.6px 70px !important; font-size: 22px !important; font-weight: 600 !important;
  border-radius: 8px !important; height: 60px !important;
  position: relative !important; overflow: hidden !important; isolation: isolate !important;
}
#rec2235153331 .t-btn .t-btnflex__text { position: relative !important; z-index: 2 !important; }
#rec2235153331 .t-btn::after {
  content: '' !important; position: absolute !important; top: 0 !important; left: -100% !important;
  width: 60% !important; height: 100% !important;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%) !important;
  animation: sk-btn-glide 3s ease-in-out infinite !important; pointer-events: none !important; z-index: 1 !important;
}
@keyframes sk-btn-glide { 0% { left: -100%; } 60%, 100% { left: 200%; } }
/* === Шапка FAQ — расширить описание === */
#rec2248625961 .t-section__descr,
#rec2248625961 .t017__title { max-width: 760px !important; }
/* === ПОПАП-ФОРМЫ — фото растворяется в белый + кадрирование (.t702__img — проверено) === */
/* Крути object-position (видимая часть кадра) и max-height (высота фото). */
/* Отклик (Карьера) */
#rec2279400981 .t702__img,
#rec2279400981 .t-img {
  width: 100% !important; max-height: 360px !important;
  object-fit: cover !important; object-position: center 20% !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.5) 82%, transparent 100%) !important;
          mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.5) 82%, transparent 100%) !important;
}
/* Чекбокс согласия (Карьера) — квадрат слева от текста.
   Текст = .t-input-title (над квадратом), квадрат = .t-input-block. Меняем порядок в строке. */
#rec2279400981 .t-input-group_cb { display: flex !important; flex-wrap: wrap !important; align-items: flex-start !important; }
#rec2279400981 .t-input-group_cb .t-input-block { order: 0 !important; flex: 0 0 auto !important; width: auto !important; margin: 4px 10px 0 0 !important; }
#rec2279400981 .t-input-group_cb .t-input-title { order: 1 !important; flex: 1 1 auto !important; width: auto !important; margin: 0 !important; text-align: left !important; }
#rec2279400981 .t-input-group_cb .t-input-error { order: 2 !important; flex: 1 1 100% !important; }
/* Запись на диагностику */
#rec2239221351 .t702__img,
#rec2239221351 .t-img {
  width: 100% !important; max-height: 360px !important;
  object-fit: cover !important; object-position: center 25% !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.5) 82%, transparent 100%) !important;
          mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.5) 82%, transparent 100%) !important;
}
/* Задать вопрос */
#rec2302748561 .t702__img,
#rec2302748561 .t-img {
  width: 100% !important; max-height: 360px !important;
  object-fit: cover !important; object-position: center 25% !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.5) 82%, transparent 100%) !important;
          mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.5) 82%, transparent 100%) !important;
}
@media (max-width: 640px) {
  #rec2279400981 .t702__img, #rec2279400981 .t-img,
  #rec2239221351 .t702__img, #rec2239221351 .t-img,
  #rec2302748561 .t702__img, #rec2302748561 .t-img { max-height: 160px !important; }
}

/* === ПОПАП-ФОРМЫ 2026-07-06: фикс "форма не прокручивается на мобиле" + компактнее ===
   Диагностика (эмуляция iPhone 390×844 через iframe): .t-popup у Tilda и так overflow-y:auto,
   контент реально длиннее вьюпорта (~1012px против 844px) — scrollHeight/clientHeight подтверждают,
   что скролл структурно есть (scrollTop программно двигается). Но на iOS Safari вложенный скролл
   внутри position:fixed без -webkit-overflow-scrolling:touch может "не подхватывать" свайп —
   палец тянет, а скроллится фон под попапом вместо самого попапа (то, что описал пользователь).
   Добавлено: инерционный скролл + overscroll-behavior:contain (не даёт свайпу "провалиться" в фон),
   плюс уменьшены отступы между полями и фото на мобиле — форма компактнее и требует меньше скролла. */
.t-popup { -webkit-overflow-scrolling: touch !important; overscroll-behavior: contain !important; }
@media (max-width: 640px) {
  #rec2279400981 .t-input-group,
  #rec2239221351 .t-input-group,
  #rec2302748561 .t-input-group { margin-bottom: 14px !important; }
  #rec2279400981 .t702__text-wrapper,
  #rec2239221351 .t702__text-wrapper,
  #rec2302748561 .t702__text-wrapper { margin-bottom: 10px !important; }
}