/* ============================================================
   SmartyKids Томск — Custom CSS (Настройки сайта → Вставка кода, в HEAD)
   Переписан начисто 2026-06-12. Удалены мёртвые правила (блоки заменены на T123):
     .uc-hero-left, #rec2195410131, #rec2211074181, #rec2247944251, олимпиадный параллакс (6 id).
   ============================================================ */

/* === Скролл к якорям с учётом sticky-шапки === */
html { scroll-padding-top: 100px; }
[id^="rec"] { scroll-margin-top: 100px; }

/* === Заголовки нативных секций 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: 280px !important; }
}