/* =========================================================
   SAGITOV AGENCY · GLOBAL CSS для Tilda
   Куда вставлять:
   Настройки сайта → «Ещё» → «HTML-код для вставки внутрь HEAD»
   Обернуть весь код ниже в теги  ... 
   (или положить в один блок T123 в самом верху страницы)
   ========================================================= */

/* Шрифты. Если выбрал Anton и Sora в панели Tilda (Настройки → Шрифты),
   эту строку можно удалить. Оставляешь, если хочешь гарантию. */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Sora:wght@400;500;600;700&display=swap');

:root{
  --coral:#F94E1E;      /* основной коралл, как на референсе */
  --coral-600:#E23F12;  /* коралл на ховере / нажатии */
  --ink:#161514;        /* почти чёрный: тёмные секции */
  --ink-2:#211F1C;      /* тёмные карточки */
  --paper:#FFFFFF;      /* фон страницы */
  --cloud:#F3F2EF;      /* светло-серые карточки */
  --line:#E7E5E0;       /* тонкие линии на светлом */
  --muted:#6E6B66;      /* вторичный текст */
  --bone:#F4F3EF;       /* текст на тёмном/коралловом */
  --radius:22px;        /* скругление карточек */
}

/* ---------- Типографика ---------- */
/* Заголовки: Anton, капс, плотный. Тело/кнопки/поля: Sora. */
.t-title,
h1.t-title, h2.t-title, h3.t-title, h4.t-title,
.t-heading, .t-name{
  font-family:'Anton', system-ui, sans-serif !important;
  text-transform:uppercase;
  letter-spacing:.004em;
  line-height:.98;
  font-weight:400 !important;
}
.t-text, .t-descr, .t-input, .t-btn, .t-submit,
.t-radio__control, .t-checkbox__control, .t-uptitle{
  font-family:'Sora', system-ui, sans-serif !important;
}

/* Надзаголовок (eyebrow): коралловый капс с трекингом.
   В Tilda ставим его как «Надзаголовок» блока и вешаем класс sa-eyebrow
   (Настройки блока → CSS-класс), либо стилизуем .t-uptitle глобально. */
.t-uptitle, .sa-eyebrow{
  color:var(--coral) !important;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-weight:600 !important;
  font-size:.72rem !important;
}

/* ---------- Кнопки ---------- */
.t-btn, .t-submit{
  border-radius:6px !important;
  font-weight:600 !important;
  letter-spacing:.01em;
  transition:transform .2s ease, background .2s ease, color .2s ease !important;
}
.t-btn:hover, .t-submit:hover{ transform:translateY(-2px); }

/* Класс для главной коралловой кнопки.
   В блоке кнопки: Настройки → CSS-класс → sa-btn-coral
   (или задай цвет прямо в настройках кнопки, тогда класс не нужен). */
.sa-btn-coral .t-btn, .t-btn.sa-btn-coral, .sa-btn-coral{
  background:var(--coral) !important;
  color:#fff !important;
  border-color:var(--coral) !important;
}
.sa-btn-coral .t-btn:hover, .t-btn.sa-btn-coral:hover{
  background:var(--coral-600) !important;
  border-color:var(--coral-600) !important;
}

/* ---------- Карточки и картинки ---------- */
/* Скругляем обложки, галереи, карточки услуг/тарифов */
.t-cover__carrier, .t-img, .t-gallery__item, .t156__item,
.t-card__img, .t774__col, .t-store__card__wrap_img,
.t-slds__bgimg, .t142__img{
  border-radius:var(--radius);
  overflow:hidden;
}

/* Хелпер: любой блок, которому в Настройки → CSS-класс добавишь sa-card,
   получит вид аккуратной светло-серой карточки бенто */
.sa-card{
  background:var(--cloud) !important;
  border-radius:var(--radius) !important;
  border:1px solid var(--line);
}

/* Тёмная секция: класс sa-dark на блок (или задай тёмный фон в настройках) */
.sa-dark, .sa-dark .t-text, .sa-dark .t-descr{ color:var(--bone) !important; }
.sa-dark .t-title{ color:#fff !important; }

/* Коралловая секция: класс sa-coral */
.sa-coral, .sa-coral .t-text, .sa-coral .t-descr, .sa-coral .t-title{
  color:#fff !important;
}

/* ---------- Формы (контакты) ---------- */
.t-input{
  border-radius:8px !important;
  border:1px solid var(--line) !important;
  background:#fff !important;
}
.t-input:focus{ border-color:var(--coral) !important; }

/* =========================================================
   SAGITOV — QUIZ FORM (Want a number, not a meeting?)
   Приведено к макету sagitov-preview.html: СВЕТЛЫЙ квиз.
   Блок BF204N, класс на блоке: uc-sa-quiz-dark
   (имя класса оставляем прежним, чтобы не переприсваивать в Tilda)
   Вставить в конец sagitov-global.css вместо прошлой версии.
   ========================================================= */

/* --- Секция белая, квиз в светлой карточке --- */
.uc-sa-quiz-dark{
  background:#FFFFFF !important;
}

/* Контейнер формы = 820 по центру страницы, как у блока-заголовка.
   Так левый край карточки совпадает с левым краем заголовка. */
.uc-sa-quiz-dark .t-container{
  max-width:820px !important;
  width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

.uc-sa-quiz-dark .t-col{
  max-width:100% !important;
  width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
  float:none !important;
  flex:0 0 100% !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Сбрасываем префикс-сдвиг колонки Tilda */
.uc-sa-quiz-dark .t-prefix_2,
.uc-sa-quiz-dark [class*="t-prefix"]{
  margin-left:0 !important;
}

/* Карточка квиза вокруг формы */
.uc-sa-quiz-dark .t-form{
  background:#F3F2EF !important;
  border:1px solid #E7E5E0 !important;
  border-radius:22px !important;
  padding:40px !important;
}

/* --- Вопросы в столбик --- */
.uc-sa-quiz-dark .t-form__inputsbox{
  display:block !important;
  max-width:680px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.uc-sa-quiz-dark .t-input-group{
  margin-bottom:0 !important;
  padding:26px 0 !important;
  border-top:1px solid #D9D5CE !important;
  width:100% !important;
}

/* Первый вопрос без верхней линии и отступа */
.uc-sa-quiz-dark .t-form__inputsbox .t-input-group:first-child{
  border-top:none !important;
  padding-top:0 !important;
}

/* --- Заголовки вопросов --- */
.uc-sa-quiz-dark .t-input-title{
  color:#161514 !important;
  font-family:'Sora',sans-serif !important;
  font-weight:600 !important;
  font-size:18px !important;
  letter-spacing:0;
  margin-bottom:14px !important;
}

/* Оранжевый номер вопроса.
   Номер в тексте вопроса ("01 What kind...") — часть заголовка,
   отдельного тега у него нет, поэтому красим первые символы
   через ::first-line нельзя. Оставляем номер в тексте,
   но если хочешь строго оранжевый номер — см. примечание в чате. */

/* =========================================================
   RADIO -> ПИЛЮЛИ (светлые, как в макете)
   ========================================================= */

.uc-sa-quiz-dark .t-radio__wrapper{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:9px !important;
  width:auto !important;
}

.uc-sa-quiz-dark .t-radio__item{
  display:inline-flex !important;
  align-items:center !important;
  position:relative !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  padding:11px 21px !important;
  border:1px solid #E7E5E0 !important;
  border-radius:999px !important;
  background:#FFFFFF !important;
  color:#161514 !important;
  font-family:'Sora',sans-serif !important;
  font-size:16px !important;
  font-weight:500 !important;
  line-height:1 !important;
  cursor:pointer !important;
  transition:all .18s ease !important;
  white-space:nowrap !important;
}

/* Прячем input, кликабельна вся пилюля */
.uc-sa-quiz-dark .t-radio{
  position:absolute !important;
  top:0 !important;
  left:0 !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  opacity:0 !important;
  cursor:pointer !important;
  z-index:2 !important;
}

/* Прячем стандартный кружок */
.uc-sa-quiz-dark .t-radio__indicator{
  display:none !important;
}

.uc-sa-quiz-dark .t-radio__item span{
  position:relative !important;
  z-index:1 !important;
}

/* Ховер — рамка коралловая */
.uc-sa-quiz-dark .t-radio__item:hover{
  border-color:#F94E1E !important;
}

/* Выбранный вариант — заливка кораллом */
.uc-sa-quiz-dark .t-radio__item:has(.t-radio:checked){
  background:#F94E1E !important;
  border-color:#F94E1E !important;
  color:#fff !important;
}

/* Запасной вариант без :has */
.uc-sa-quiz-dark .t-radio:checked ~ span{
  color:#fff !important;
  font-weight:600 !important;
}

/* =========================================================
   ТЕКСТОВЫЕ ПОЛЯ (Name, Email) — светлые, в ряд
   ========================================================= */

.uc-sa-quiz-dark .t-input-group_nm,
.uc-sa-quiz-dark .t-input-group_em{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  vertical-align:top;
  border-top:none !important;
  padding:22px 0 0 !important;
  margin:0 !important;
}

/* Ширина текстовых полей — ограничиваем на уровне .t-input-block и input.
   Группа имени в разметке t-input-group_nm, email — t-input-group_em. */
.uc-sa-quiz-dark .t-input-group_nm .t-input-block,
.uc-sa-quiz-dark .t-input-group_em .t-input-block{
  max-width:100% !important;
  width:100% !important;
}

.uc-sa-quiz-dark .t-input-group_nm .t-input,
.uc-sa-quiz-dark .t-input-group_em .t-input{
  max-width:100% !important;
  width:100% !important;
}

@media (max-width:640px){
  .uc-sa-quiz-dark .t-input-group_nm .t-input-block,
  .uc-sa-quiz-dark .t-input-group_em .t-input-block,
  .uc-sa-quiz-dark .t-input-group_nm .t-input,
  .uc-sa-quiz-dark .t-input-group_em .t-input{
    max-width:100% !important;
    width:100% !important;
  }
}

.uc-sa-quiz-dark .t-input{
  width:100% !important;
  background:#FFFFFF !important;
  border:1px solid #E7E5E0 !important;
  border-radius:8px !important;
  color:#161514 !important;
  font-family:'Sora',sans-serif !important;
  font-size:17px !important;
  padding:16px 18px !important;
  transition:border-color .18s ease !important;
}

.uc-sa-quiz-dark .t-input:focus{
  border-color:#F94E1E !important;
}

.uc-sa-quiz-dark .t-input::placeholder{
  color:#9a968f !important;
}

.uc-sa-quiz-dark .t-input-group_nm .t-input-title,
.uc-sa-quiz-dark .t-input-group_em .t-input-title{
  font-size:17px !important;
  margin-bottom:8px !important;
}

/* --- Кнопка Send my brief --- */
.uc-sa-quiz-dark .t-form__submit{
  margin-top:22px !important;
  text-align:left !important;
  padding-top:0 !important;
  border-top:none !important;
}

.uc-sa-quiz-dark .t-submit{
  background:#F94E1E !important;
  border:none !important;
  border-radius:999px !important;
  color:#fff !important;
  font-family:'Sora',sans-serif !important;
  font-weight:600 !important;
  font-size:16px !important;
  letter-spacing:0;
  padding:16px 34px !important;
  cursor:pointer !important;
  transition:all .18s ease !important;
  width:auto !important;
}

.uc-sa-quiz-dark .t-submit:hover{
  background:#E23F12 !important;
  transform:translateY(-2px);
}

/* --- Мобильная версия --- */
@media (max-width:640px){
  .uc-sa-quiz-dark .t-form{padding:24px !important;}

  .uc-sa-quiz-dark .t-input-group_nm,
  .uc-sa-quiz-dark .t-input-group_em{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin-right:0 !important;
  }

  .uc-sa-quiz-dark .t-radio__item{
    padding:10px 17px !important;
    font-size:15px !important;
  }

  .uc-sa-quiz-dark .t-submit{width:100% !important;text-align:center !important;}
}


/* --- Кнопка t-btnflex в коралл (перебиваем inline-стиль по ID) --- */
.uc-sa-quiz-dark .t-btnflex.t-btnflex_type_submit{
  background-color:#F94E1E !important;
  color:#fff !important;
  border-radius:999px !important;
  border:none !important;
  box-shadow:none !important;
  font-family:'Sora',sans-serif !important;
  font-weight:600 !important;
  font-size:18px !important;
  padding:18px 40px !important;
  width:auto !important;
  transition:all .18s ease !important;
}

.uc-sa-quiz-dark .t-btnflex.t-btnflex_type_submit:hover{
  background-color:#E23F12 !important;
  transform:translateY(-2px);
}

.uc-sa-quiz-dark .t-btnflex__text{
  font-family:'Sora',sans-serif !important;
  font-weight:600 !important;
}

@media (max-width:860px){
  .uc-sa-quiz-dark .t-container{
    padding-left:20px !important;
    padding-right:20px !important;
  }
}
/* --- Закончился QUIZ --- */