/* ============================================================
   SmartyKids Томск — Custom CSS (Настройки сайта → Вставка кода, в HEAD)
   Переписан начисто 2026-06-12. Удалены мёртвые правила (блоки заменены на T123):
     .uc-hero-left, #rec2195410131, #rec2211074181, #rec2247944251, олимпиадный параллакс (6 id).
   2026-06-18: градиент-оверлей Hero (::before) не перехватывает клики.
   2026-08-21: форма записи приведена к компактному виду на всех страницах,
     удалены дубли и конфликтующие правила по #rec2239221351.
   ============================================================ */

/* === Скролл к якорям с учётом sticky-шапки === */
html { scroll-padding-top: 100px; }
[id^="rec"] { scroll-margin-top: 100px; }

/* === Страховка от горизонтального скролла на мобиле === */
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;
  }
  [class*="sk-hero-"][class*="__wrap"]:not(.sk-hero-main__wrap) { justify-content: flex-start !important; min-height: auto !important; padding-top: 0 !important; }
}

/* === МОБИЛКА ≤640: скрыть пилюли направлений и плашки главной === */
@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%). Здесь правил нет. */

/* === Заголовки нативных секций 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; }

/* ============================================================
   ПОПАПЫ «ОТКЛИК» И «ЗАДАТЬ ВОПРОС»
   Форма записи на диагностику вынесена в отдельный блок ниже.
   ============================================================ */

/* Отклик (Карьера) */
#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;
}

/* Чекбокс согласия (Карьера) — квадрат слева от текста */
#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; }

/* Задать вопрос */
#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,
  #rec2302748561 .t702__img, #rec2302748561 .t-img { max-height: 160px !important; }
}

/* === Попапы: инерционный скролл на iOS + компактность на мобиле === */
.t-popup { -webkit-overflow-scrolling: touch !important; overscroll-behavior: contain !important; }
@media (max-width: 640px) {
  #rec2279400981 .t-input-group,
  #rec2302748561 .t-input-group { margin-bottom: 14px !important; }
  #rec2279400981 .t702__text-wrapper,
  #rec2302748561 .t702__text-wrapper { margin-bottom: 10px !important; }
}

/* ============================================================
   КОМПАКТНАЯ ФОРМА ЗАПИСИ — версия 3, все страницы сайта
   Попапы «Запись на диагностику»:
     главная 2239221351 · английский 2375762961 · каллиграфия 2375768281
     китайский 2375767081 · МА 2375764181 · подготовка 2375766051
     ВПР 3049546301 · репетитор 2375766601 · скорочтение 2375766431
     тренажёры 3005777101
   На /raspisanie/ и /karyera/ этой формы нет — они не затронуты.
   Откат: удалить блок целиком до конца файла.
   ============================================================ */

/* --- фото сверху --- */
:is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t702__img {
  width: 100% !important;
  max-height: 320px !important;
  object-fit: cover !important;
  object-position: center 52% !important;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0,0,0,.6) 93%, transparent 100%) !important;
          mask-image: linear-gradient(to bottom, #000 0%, #000 82%, rgba(0,0,0,.6) 93%, transparent 100%) !important;
}

/* --- заголовок наезжает на фото --- */
:is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t702__title {
  position: relative !important;
  z-index: 2 !important;
  font-size: 25px !important;
  line-height: 1.2 !important;
  margin-top: -90px !important;
  margin-bottom: 8px !important;
  text-shadow: 0 0 18px rgba(255,255,255,.95), 0 0 8px rgba(255,255,255,.9);
}

/* --- подзаголовок --- */
:is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t702__descr {
  position: relative !important;
  z-index: 2 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  margin-bottom: 18px !important;
  opacity: .85;
}

/* --- подписи полей скрыты, работают плейсхолдеры --- */
:is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-input-title {
  display: none !important;
}

/* --- поля --- */
:is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) :is(.t-input,.t-select) {
  height: 46px !important;
  min-height: 46px !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  border-radius: 10px !important;
}
:is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-input-group {
  margin-bottom: 8px !important;
}

/* --- телефон --- */
:is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) :is(.t-input-phonemask__wrap .t-input,.t-input-phonemask,.t-input-phonemask__select-wrap) {
  height: 46px !important;
  min-height: 46px !important;
}

/* --- две колонки на десктопе --- */
@media screen and (min-width: 641px) {
  :is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-form__inputsbox {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 0;
  }
  :is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-input-group:nth-child(1) { grid-column: 1; grid-row: 1; }
  :is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-input-group:nth-child(4) { grid-column: 2; grid-row: 1; }
  :is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-input-group:nth-child(2) { grid-column: 1; grid-row: 2; }
  :is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-input-group:nth-child(3) { grid-column: 2; grid-row: 2; }
  :is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-input-group:nth-child(5) { grid-column: 1 / -1; grid-row: 3; }
  :is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-input-group:nth-child(6) { grid-column: 1 / -1; grid-row: 4; }
  :is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-input-group_cb { grid-column: 1 / -1; grid-row: 5; }
  :is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-form__submit { grid-column: 1 / -1; grid-row: 6; }
}

/* --- согласие и кнопка --- */
:is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-input-group_cb {
  margin: 6px 0 10px !important;
}
:is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-submit {
  height: 50px !important;
  font-size: 16px !important;
  border-radius: 10px !important;
}

/* --- текст про политику под кнопкой --- */
:is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-text_xs {
  font-size: 12px !important;
  line-height: 1.35 !important;
  margin-top: 8px !important;
  opacity: .7;
}
:is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t-text_xs a {
  text-decoration: underline !important;
  color: #d00050 !important;
}

/* --- мобильная --- */
@media screen and (max-width: 640px) {
  :is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t702__img {
    max-height: 240px !important;
  }
  :is(#rec2239221351,#rec2375762961,#rec2375768281,#rec2375767081,#rec2375764181,#rec2375766051,#rec3049546301,#rec2375766601,#rec2375766431,#rec3005777101) .t702__title {
    font-size: 22px !important;
    margin-top: -70px !important;
  }
}