/* ==========================================================================
   Тин-Транс — оформление по мотивам старого шаблона (Shape5 Business Pro).
   Файл подключается Helix Ultimate автоматически и не затирается при
   обновлении шаблона. Цвета старого сайта: жёлтый #febf04, крем #fffcd7,
   меню #454545 → #2b2b2b, активный пункт #38ace7 → #1681d1.
   ========================================================================== */

:root {
  --tt-yellow: #febf04;
  --tt-cream: #fffcd7;
  --tt-text: #5f5f5f;
  --tt-dark-1: #454545;
  --tt-dark-2: #2b2b2b;
  --tt-blue-1: #38ace7;
  --tt-blue-2: #1681d1;
  --tt-width: 1200px;
}

/* ---------- Фон: карта, закреплённая при прокрутке ---------- */
body.site {
  background-color: #a9a9a9;
  color: var(--tt-text);
  font-size: 15px;
}

.layout-boxed .body-innerwrapper {
  max-width: var(--tt-width);
  margin: 0 auto;
  background: transparent;
  box-shadow: 0 -90px 1000px 0 rgba(255, 255, 255, .9), 0 0 56px rgba(0, 0, 0, .12);
}

#sp-main { background: transparent; }

.tt-header .container,
.tt-menu .container,
.tt-banner .container,
.tt-main .container,
.tt-buttons .container,
.tt-advantages .container,
.tt-questions .container,
.tt-howwork .container,
.tt-footer .container { max-width: var(--tt-width); }

/* ---------- Шапка ---------- */
.tt-header { padding: 10px 0 12px; background: transparent; }
.tt-header .row { align-items: center; }
.tt-header .logo { padding: 0; height: auto; display: block; }
.tt-header .logo img { max-height: 100px; height: auto; width: auto; }

.tt-slogan {
  color: var(--tt-yellow);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow: 1px 1px 1px #000, -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000;
}

.tt-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 14px;
  padding: 6px 10px;
  border: 1px solid var(--tt-yellow);
  border-radius: 10px;
  background: linear-gradient(to bottom, #fefcea 0%, #f1da36 100%);
  opacity: .92;
  font-weight: 700;
  text-align: center;
}
.tt-contacts a,
.tt-contacts .tt-max {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tt-yellow);
  text-decoration: none;
  text-shadow: 1px 1px 1px #000, -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000;
}
.tt-contacts a:hover { color: #fff; }
.tt-contacts__phone { width: 100%; justify-content: center; font-size: 1.5rem; }
.tt-contacts__messengers { display: flex; gap: 14px; font-size: 1.15rem; }
.tt-contacts__messengers img { width: 26px; height: 26px; }
.tt-contacts .tt-contacts__callback {
  width: 100%;
  justify-content: center;
  font-size: .85rem;
  color: #1f5f9e;
  text-shadow: none;
  text-decoration: underline dotted;
}
.tt-max { cursor: default; }

/* ---------- Меню ---------- */
.tt-menu { padding: 0; }
.tt-menu .sp-megamenu-wrapper {
  background: linear-gradient(to bottom, var(--tt-dark-1) 0%, var(--tt-dark-2) 100%);
  min-height: 60px;
  justify-content: flex-start !important;
}
.sp-megamenu-parent { margin: 0; }
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  display: inline-block;
  line-height: 60px !important;
  padding: 0 20px !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border-right: 1px solid rgba(0, 0, 0, .45);
  box-shadow: 1px 0 0 rgba(255, 255, 255, .08);
}
.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li:hover > span,
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active > span {
  background: linear-gradient(to bottom, var(--tt-blue-1) 0%, var(--tt-blue-2) 100%);
  color: #fff !important;
}
.sp-megamenu-parent > li.sp-has-child > a::after,
.sp-megamenu-parent > li.sp-has-child > span::after { color: #fff; }
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: var(--tt-dark-2);
  padding: 6px 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > span {
  color: #fff !important;
  padding: 8px 18px;
  font-size: 13px;
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
  color: var(--tt-yellow) !important;
  background: rgba(255, 255, 255, .06);
}
.tt-menu .offcanvas-toggler-right,
.tt-menu .offcanvas-toggler-secondary { color: #fff; margin-left: auto; padding: 0 16px; }
.burger-icon > span { background-color: #fff; }

/* ---------- Баннер ---------- */
.tt-banner { padding: 0; }
.tt-banner-img { margin: 0; }
.tt-banner-img img { display: block; width: 100%; height: auto; opacity: .85; }

/* ---------- Основной блок (кремовый) ---------- */
#sp-main-body.tt-main { padding: 0; }
.tt-main > .container > .container-inner {
  background: var(--tt-cream);
  padding: 16px 20px 24px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .15);
}
.tt-main #sp-component > .sp-column { padding: 0; }
.tt-main a { color: #1e6fb8; }
.tt-main a:hover { color: #0b4f8c; }
.tt-main h1, .tt-main h2, .tt-main .article-header h1, .tt-main .article-header h2 {
  color: #6b6b6b;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.tt-main h1 a, .tt-main h2 a { color: inherit; }
.tt-main .article-details, .tt-main .blog-item, .tt-main .article-list .article { background: transparent; }
.tt-main img { max-width: 100%; height: auto; }
.featured-article-badge, .article-ratings-social-share { display: none !important; }
.blog-featured { padding: 0; }
.blog-featured .article-list .article { border: 0; padding: 0; margin: 0; box-shadow: none; }
.article-details .article-header h1, .article-details .article-header h2 { font-size: 1.5rem; }

/* В Helix у всех img display:block; в старых материалах иконки стоят в строке с текстом.
   Картинки с float/«по центру» задают своё отображение инлайн-стилями и не пострадают. */
.tt-main .article-details img,
.tt-main .blog-item img,
.tt-main .category-desc img { display: inline-block; vertical-align: middle; }

/* картинки, выровненные влево/вправо в старых материалах */
.tt-main img[style*="float: left"], .tt-main img[align="left"] { margin: 0 18px 12px 0; }
.tt-main img[style*="float: right"], .tt-main img[align="right"] { margin: 0 0 12px 18px; }

/* Хлебные крошки */
.tt-main .breadcrumb {
  background: rgba(255, 255, 255, .5);
  border: 1px solid #dcd8b8;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: .9rem;
  margin-bottom: 1rem;
}

/* Плашка «Внимание, мошенники» */
.red_box {
  background: #ffd6d6;
  border: 1px solid #ef706f;
  color: #c00;
  padding: 6px 6px 6px 15px;
  margin: 0 0 6px;
  font-size: .85rem;
}
h3.red_box { font-size: 1.2rem; margin-bottom: 10px; }
.tt-warning { margin-bottom: 1.25rem; }

/* Поделиться */
.tt-share { text-align: center; margin-top: 1.5rem; }
.likes-block_center {
  font-size: 1.5rem;
  font-weight: 700;
  color: gold;
  letter-spacing: 2px;
  text-shadow: red 1px 0, red 1px 1px, red 0 1px, red -1px 1px, red -1px 0, red -1px -1px, red 0 -1px, red 1px -1px;
}
.tt-share__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.tt-main .tt-share__btn {
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}
.tt-main .tt-share__btn:hover { color: #fff; filter: brightness(1.1); }
.tt-share__btn--vk { background: #0077ff; }
.tt-share__btn--ok { background: #ee8208; }
.tt-share__btn--tg { background: #27a6e5; }
.tt-share__btn--viber { background: #7360f2; }
.tt-share__btn--mail { background: #168de2; }

/* Карта на «Контактах» */
.tt-map iframe { display: block; width: 100%; border: 0; }

/* ---------- Кнопки заказа ---------- */
.tt-buttons { padding: 18px 0 8px; }
.tt-buttons .sp-module { margin: 0; }
#knopka, .tt-order-button {
  position: relative;
  display: block;
  max-width: 400px;
  margin: 6px auto;
  padding: 14px;
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3), 0 0 40px rgba(0, 0, 0, .1) inset;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
#knopka:hover, .tt-order-button:hover {
  box-shadow: 0 1px 5px rgba(0, 0, 0, .4), 0 0 40px rgba(0, 0, 0, .2) inset;
  transform: translateY(-1px);
}
#knopka img, .tt-order-button img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.tt-main #knopka { float: none; }
/* кнопки, вставленные в текст материалов ({loadmoduleid}), — в ряд, как на старом сайте */
.tt-main .article-details .mod-custom:has(> #knopka),
.tt-main .blog-item .mod-custom:has(> #knopka) { display: inline-block; vertical-align: top; width: min(400px, 100%); margin: 0 6px; }
#knopki_statiya, .tt-main .article-details div[style*="width: 100%"] { text-align: center; }

/* ---------- Заголовки блоков (тёмная плашка) ---------- */
.tt-advantages .sp-module-title,
.tt-howwork .sp-module-title {
  margin: 0 -20px 18px;
  padding: 14px 18px;
  background: linear-gradient(to bottom, #3b3b3b 0%, #303030 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---------- Наши преимущества ---------- */
.tt-advantages { padding: 10px 0; }
.tt-advantages .sp-module { padding: 0 20px 10px; }
#preimushestva, .tt-advantages-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 12px;
}
#preimushestvo, .tt-adv { text-align: center; }
#preimushestvo img, .tt-adv img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
#preimushestvo p, .tt-adv p {
  margin: 12px 0 0;
  color: #000;
  font-size: 1.05rem;
  text-shadow: #fff 1px 0, #fff 1px 1px, #fff 0 1px, #fff -1px 1px, #fff -1px 0, #fff -1px -1px, #fff 0 -1px, #fff 1px -1px, #fff 0 0 3px;
}

/* ---------- Остались вопросы? ---------- */
.tt-questions { padding: 10px 0; }
#voprosy, .tt-questions-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 165px;
  padding: 0 20px;
  background: #fff url(/images/fon/relsy.jpg) no-repeat center / cover;
}
#vopros {
  color: #0014ff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow: #fff 0 -3px 0, #fff 0 3px 0, #fff -3px 0 0, #fff 3px 0 0, #fff -3px -3px 0, #fff 3px -3px 0, #fff -3px 3px 0, #fff 3px 3px 0, #fff -2px -3px 0, #fff 2px 3px 0;
}
#knopka_vopros a {
  display: inline-block;
  padding: 6px 26px;
  border: 2px solid var(--tt-yellow);
  border-radius: 10px;
  background: linear-gradient(to bottom, #fefcea 0%, #f1da36 100%);
  color: lime;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: #000 0 -2px 0, #000 0 2px 0, #000 -2px 0 0, #000 2px 0 0, #000 -2px -2px 0, #000 2px -2px 0, #000 -2px 2px 0, #000 2px 2px 0;
  transition: box-shadow .2s;
}
#knopka_vopros a:hover { box-shadow: rgba(0, 0, 0, .7) 0 5px 15px, inset rgba(0, 0, 0, .15) 0 -10px 20px; color: lime; }

/* ---------- Как мы работаем ---------- */
.tt-howwork { padding: 10px 0; }
.tt-howwork .sp-module { padding: 0 20px 6px; }
.tt-howwork-img { margin: 0; }
.tt-howwork-img img { display: block; width: 100%; height: auto; }

/* ---------- Подвал ---------- */
#sp-footer.tt-footer { background: transparent; padding: 20px 0 30px; color: #6b6b6b; font-weight: 700; }
#sp-footer .container-inner { border-top: 0; padding: 0; }
#sp-footer .row { align-items: center; }
#sp-footer .sp-copyright { font-size: .95rem; line-height: 1.5; }
#sp-footer .sp-copyright a { color: #1f39d1; }
.tt-bottom-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.tt-bottom-menu > li > a { color: #000 !important; font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.tt-bottom-menu > li > a:hover { color: #1e6fb8 !important; }

/* служебная строка для всплывающих окон: без отступов */
.tt-service, .tt-service .container, .tt-service .sp-module { padding: 0; margin: 0; min-height: 0; }

/* Кнопка «наверх»: левее кнопки чата Jivo */
.sp-scroll-up { right: 20px; bottom: 90px; }

/* Формы: крем как у контента, кнопка как на старом сайте */
.leadform { --lf-accent: #1e88e5; --lf-accent-hover: #1565c0; }
.tt-main .leadform__submit { font-size: 1.6rem; padding: 1rem 3rem; }
.leadform__intro h3 { color: #6b6b6b; }

/* Карта сайта */
.tt-sitemap, .tt-sitemap ul { list-style: disc; padding-left: 1.5rem; }
.tt-sitemap li { margin: .25rem 0; }

/* ---------- Мобильные ---------- */
@media (max-width: 991.98px) {
  .tt-header .row > div { text-align: center; margin-bottom: 8px; }
  .tt-slogan { font-size: 1.3rem; }
  .tt-menu .sp-megamenu-wrapper { min-height: 50px; justify-content: flex-end !important; }
  #preimushestva, .tt-advantages-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-bottom-menu { justify-content: center; margin-top: 10px; }
  #sp-footer1 { text-align: center; }
}
@media (max-width: 575.98px) {
  .tt-main > .container > .container-inner { padding: 12px; }
  .tt-slogan { font-size: 1.1rem; }
  #preimushestva, .tt-advantages-list { grid-template-columns: 1fr; }
  #voprosy, .tt-questions-box { flex-direction: column; justify-content: center; padding: 16px; }
  #vopros, #knopka_vopros a { font-size: 1.5rem; }
}

/* Фото в новых статьях с подписью автора/лицензии */
.tt-article-figure { margin: 0 0 1.25rem; text-align: center; }
.tt-article-figure img { display: block !important; width: 100%; height: auto; margin: 0 auto; border-radius: 4px; }
.tt-article-figure figcaption { margin-top: .35rem; font-size: .75rem; color: #8a8a8a; }
.tt-article-figure figcaption a { color: inherit; text-decoration: underline dotted; }
.tt-main .blog-item .article-intro-image img { width: 100%; height: auto; border-radius: 4px; margin-bottom: .75rem; }
