/*
 * Наши стили поверх бандла конструктора. Отдельным файлом, чтобы правки
 * не терялись в 400 КБ сгенерированного CSS и переезжали в новый сайт как есть.
 * Фирменные цвета: акцент #d3000b, тёмный #131010, светлый фон #f5f9fc.
 */

/* --- Согласие на обработку персональных данных (152-ФЗ) --- */

.sino-consent {
  margin: 14px 0 0;
  text-align: left;
}

.sino-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: #7b7b7b;
}

.sino-consent__input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #d3000b;
  cursor: pointer;
}

.sino-consent__text a {
  color: #7b7b7b;
  text-decoration: underline;
}

.sino-consent__text a:hover {
  color: #d3000b;
}

/* Кнопка отправки, пока согласие не отмечено. Именно вид, а не disabled:
   кликнуть можно, и клик отвечает подсказкой - иначе человек, не заметивший
   чекбокс, упирается в кнопку, которая молча не работает. */
.sino-consent-blocked {
  opacity: .55;
}

/* Подсветка, когда отправили без отметки */
.sino-consent--error {
  border-radius: 6px;
  outline: 2px solid #d3000b;
  outline-offset: 4px;
}

.sino-consent--error .sino-consent__label {
  color: #d3000b;
}

.sino-consent--error .sino-consent__text a {
  color: #d3000b;
}

/* Тёмные секции: серый текст согласия на тёмном фоне читается плохо */
.section_popup .sino-consent__label,
.bg_type_color.is_cover .sino-consent__label {
  color: #b9b9b9;
}

.section_popup .sino-consent__text a,
.bg_type_color.is_cover .sino-consent__text a {
  color: #b9b9b9;
}

/* --- Контакты ссылками --- */

.sino-contact-link {
  color: inherit;
  text-decoration: none;
}

.sino-contact-link:hover {
  color: #d3000b;
  text-decoration: underline;
}

/* --- Мессенджеры и кабинет в шапке --- */

.sino-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-left: 10px;
}

/* Шапка конструктора - сетка «лого | пункты»; добавляем третью колонку
   под наши кнопки, иначе пункты меню срываются на вторую строку */
#acf2911dbd2644949249a324b2cbd633 .ms-menu {
  grid-template-columns: 14% 1fr auto;
}

#acf2911dbd2644949249a324b2cbd633 .ms-menu__logo {
  grid-column: 1;
  grid-row: 1;
}

#acf2911dbd2644949249a324b2cbd633 .ms-menu__items-wrapper {
  grid-column: 2;
  grid-row: 1;
}

#acf2911dbd2644949249a324b2cbd633 .sino-actions {
  grid-column: 3;
  grid-row: 1;
}

/* Пункты меню шли с отступами 30 px по бокам - после появления кнопок
   «Контакты» срывались на вторую строку, поэтому ужимаем до 20 px */
@media (min-width: 501px) {
  #acf2911dbd2644949249a324b2cbd633 .ms-menu__item {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Мессенджеры всегда иконками: подписи съедали место у пунктов меню */
.sino-actions__link--wa .sino-actions__text,
.sino-actions__link--tg .sino-actions__text {
  display: none;
}

.sino-actions__link--wa,
.sino-actions__link--tg {
  width: 36px;
  padding: 0;
  justify-content: center;
}

@media (max-width: 500px) {
  /* На телефоне: лого | иконки | бургер */
  #acf2911dbd2644949249a324b2cbd633 .ms-menu {
    grid-template-columns: 1fr auto var(--size);
  }

  #acf2911dbd2644949249a324b2cbd633 .sino-actions {
    grid-column: 2;
    grid-row: 1;
  }

  #acf2911dbd2644949249a324b2cbd633 .ms-menu__button-wrapper {
    grid-column: 3;
    grid-row: 1;
  }

  #acf2911dbd2644949249a324b2cbd633 .ms-menu__items-wrapper {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.sino-actions__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  color: #131010;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}

.sino-actions__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.sino-actions__link--wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.sino-actions__link--tg:hover {
  background: #2aabee;
  border-color: #2aabee;
  color: #fff;
}

.sino-actions__link--cab {
  background: #d3000b;
  border-color: #d3000b;
  color: #fff;
}

.sino-actions__link--cab:hover {
  background: #b00009;
  border-color: #b00009;
}

/* До 1100 px подписи убираем, остаются кружки с иконками - кнопки не пропадают */
@media (max-width: 1100px) {
  .sino-actions__text {
    display: none;
  }

  .sino-actions__link {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 500px) {
  .sino-actions {
    gap: 6px;
    padding-left: 8px;
  }

  .sino-actions__link {
    width: 32px;
    height: 32px;
  }

  .sino-actions__link svg {
    width: 16px;
    height: 16px;
  }
}

/* Уточнение к ставке на первом экране: без него «от 0,9 $ за кг» висит
   без условий и приносит нецелевые заявки. Блоки первого экрана
   позиционированы абсолютно, поэтому и наш блок ставим по координатам.
   Внутрь текстового блока конструктора вкладывать нельзя: адаптер
   вырезает чужую разметку при первом же переключении ширины. */
.sino-rate-note {
  position: absolute;
  top: 530px;
  left: 31px;
  width: 520px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #7b7b7b;
}

.sino-rate-note__short {
  display: none;
}

@media (max-width: 500px) {
  /* На телефоне под кнопкой остаётся 30 px - даём короткую строку
     и чуть удлиняем секцию, чтобы текст не наезжал на следующий блок */
  /* id секции начинается с цифры - в CSS его берём атрибутом */
  [id="7ae107c4a7f4420c8c4bf2b7295d6638"],
  [id="7ae107c4a7f4420c8c4bf2b7295d6638"] .blk_section_inner {
    min-height: 640px;
  }

  .sino-rate-note {
    top: 575px;
    left: 20px;
    width: 320px;
    font-size: 13px;
  }

  .sino-rate-note__full {
    display: none;
  }

  .sino-rate-note__short {
    display: inline;
  }
}

/* --- Липкая кнопка расчёта на телефоне --- */

.sino-cta-mobile {
  display: none;
}

@media (max-width: 700px) {
  .sino-cta-mobile {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border-radius: 26px;
    background: #d3000b;
    color: #fff;
    font-family: Montserrat, Inter, Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  }

  /* чтобы кнопка не перекрывала подвал */
  body {
    padding-bottom: 76px;
  }
}

/* --- Правовые страницы --- */

.sino-legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 64px;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #131010;
}

.sino-legal h1 {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.sino-legal h2 {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 21px;
  line-height: 1.3;
  margin: 32px 0 10px;
}

.sino-legal p,
.sino-legal li {
  margin: 0 0 10px;
}

.sino-legal ul,
.sino-legal ol {
  margin: 0 0 10px;
  padding-left: 22px;
}

.sino-legal__date {
  color: #7b7b7b;
  font-size: 14px;
  margin-bottom: 24px;
}

.sino-legal__top {
  border-bottom: 1px solid #e3e8ec;
  background: #f5f9fc;
}

.sino-legal__top-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sino-legal__logo {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #131010;
  text-decoration: none;
}

.sino-legal__logo span {
  color: #d3000b;
}

.sino-legal__back {
  font-size: 15px;
  color: #7b7b7b;
  text-decoration: none;
}

.sino-legal__back:hover {
  color: #d3000b;
}

/* Незаполненные реквизиты: видно и нам, и заказчику, что публиковать рано */
.sino-blank {
  background: #fff3bf;
  border-bottom: 1px dashed #c8a400;
  padding: 0 3px;
}

@media (max-width: 640px) {
  .sino-legal {
    padding: 24px 16px 48px;
    font-size: 15px;
  }

  .sino-legal h1 {
    font-size: 24px;
  }

  .sino-legal h2 {
    font-size: 19px;
  }
}
