/* Правки по ТЗ от 23.09.2026. Подключается через OCMOD system/tz_2026_09.ocmod.xml */

/* Логотип в футере — ссылка на главную */
#logzn a.tz-logo-link { display: inline-block; }
#logzn a.tz-logo-link img { cursor: pointer; }

/* Присоединяйтесь + соцсети */
.tz-join { margin-top: 14px; }
.tz-join-title { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.tz-join-text { font-size: 14px; line-height: 1.35; margin-bottom: 14px; max-width: 300px; }
.tz-soc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tz-soc li { margin: 0; padding: 0; }
.tz-soc a { display: block; width: 38px; height: 38px; border-radius: 50%; background: #8b8b8b; transition: background .2s; overflow: hidden; }
.tz-soc a img { display: block; width: 100%; height: 100%; padding: 7px; }
.tz-soc a:hover { background: #5aa86a; }
.tz-join-mobile { display: block; margin: 10px 0 20px; }

/* Дополнительные ссылки в колонке «Информация» */
.tz-extra-links { list-style: none; margin: 0; padding: 0; }
.tz-extra-links li { margin: 0; padding: 0; }
.tz-extra-links a { color: #000; display: inline-block; line-height: 1.5; padding: 2px 0; }
.tz-extra-links a:hover { color: #5aa86a; }

/* Кнопка «Написать нашему руководителю» */
a.tz-director-link { color: #d0021b; display: inline-block; margin-top: 6px; cursor: pointer; text-decoration: none; }
a.tz-director-link:hover { text-decoration: underline; color: #b00016; }
a.tz-director-btn { display: inline-block; margin: 14px 0; padding: 11px 22px; background: #d0021b; color: #fff; border-radius: 8px; cursor: pointer; text-decoration: none; font-weight: 600; }
a.tz-director-btn:hover { background: #b00016; color: #fff; }

/* Отзывы на картах */
.tz-reviews { margin-top: 30px; clear: both; }
.tz-reviews-title { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.tz-reviews-row { display: flex; flex-wrap: wrap; gap: 20px 18px; align-items: flex-start; }
.tz-reviews-item { text-align: center; font-size: 12px; line-height: 1.3; color: #555; width: 150px; }
.tz-reviews-item > span { display: block; margin-top: 8px; }
.tz-reviews-item iframe { display: block; border: 0; width: 150px; height: 56px; overflow: hidden; }
a.tz-gcard { display: block; width: 150px; height: 56px; box-sizing: border-box; padding: 6px 9px; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px #ececec; text-align: left; text-decoration: none; color: #888; }
a.tz-gcard:hover { box-shadow: 0 0 0 1px #d8d8d8; color: #888; }
.tz-gcard-top { display: flex; justify-content: space-between; font-size: 8px; line-height: 10px; white-space: nowrap; }
.tz-gcard-link { color: #1fa141; }
.tz-gcard-main { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.tz-stars { font-size: 18px; letter-spacing: 1px; color: #d9d9d9; line-height: 1; }

/* Окно обращения к руководителю */
#tz-director .modal-dialog { max-width: 420px; margin-top: 8vh; }
#tz-director .modal-content { border-radius: 18px; padding: 8px 6px 14px; }
#tz-director .modal-header { border: 0; padding: 26px 56px 4px; text-align: center; position: relative; }
#tz-director .modal-header .close { position: absolute; top: 14px; right: 18px; margin: 0; font-size: 28px; line-height: 1; }
#tz-director .modal-title { font-size: 24px; font-weight: 700; line-height: 1.2; }
#tz-director .modal-body { padding: 10px 22px 6px; }
#tz-director .form-control { height: 46px; border-radius: 10px; margin-bottom: 4px; }
#tz-director textarea.form-control { height: 110px; resize: vertical; }
#tz-director .tz-err { color: #d0021b; font-size: 12px; min-height: 16px; margin-bottom: 4px; }
#tz-director .tz-agree { font-size: 12px; color: #777; margin: 6px 0 12px; }
#tz-director .tz-agree input { margin-right: 6px; }
#tz-director .tz-send { width: 100%; height: 50px; border: 0; border-radius: 12px; background: #5aa86a; color: #fff; font-size: 17px; font-weight: 700; }
#tz-director .tz-send[disabled] { opacity: .6; }
#tz-director .tz-result { text-align: center; padding: 18px 0; font-size: 16px; }
#tz-director .tz-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Контакты: блок доставки поддомена */
.tz-delivery { background: #f4f1f0; border-radius: 6px; padding: 18px 24px; margin: 18px 0; max-width: 420px; font-size: 20px; line-height: 1.3; color: #444; }
.tz-delivery.tz-delivery-small { font-size: 16px; }

/* Кнопка обратной связи с мессенджерами */
.tz-cb { position: fixed; right: 22px; bottom: 110px; z-index: 9990; display: flex; flex-direction: column; align-items: center; }
.tz-cb-list { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 12px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .2s, transform .2s, visibility .2s; }
.tz-cb.open .tz-cb-list { opacity: 1; visibility: visible; transform: none; }
.tz-cb-item { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; box-shadow: 0 2px 8px rgba(0,0,0,.25); text-decoration: none; }
.tz-cb-item:hover { color: #fff; filter: brightness(1.1); }
.tz-cb-item.vk { background: #0077ff; }
.tz-cb-item.tg { background: #2aabee; }
.tz-cb-item.wa { background: #25d366; }
.tz-cb-item.ph { background: #d0021b; }
.tz-cb-item.cb { background: #5aa86a; font-size: 22px; }
.tz-cb-item.mx { background: linear-gradient(135deg, #44ccff, #5533ee 66%, #9933dd); }
.tz-cb-item.mx img { display: block; width: 28px; height: 28px; }
.tz-cb-main { width: 62px; height: 62px; border-radius: 50%; border: 0; background: #5aa86a; color: #fff; font-size: 30px; box-shadow: 0 3px 12px rgba(0,0,0,.3); cursor: pointer; position: relative; }
.tz-cb-main::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #5aa86a; z-index: -1; animation: tz-pulse 2.2s infinite; }
.tz-cb.open .tz-cb-main::before { animation: none; }
.tz-cb-main .tz-ic-close { display: none; }
.tz-cb.open .tz-ic-open { display: none; }
.tz-cb.open .tz-ic-close { display: inline; }
@keyframes tz-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 767px) { .tz-cb { right: 14px; bottom: 90px; } .tz-cb-main { width: 54px; height: 54px; font-size: 26px; } .tz-cb-item { width: 44px; height: 44px; } }

/* Видео в карточке товара: заставка */
li.videochr a, li.vidbol a { position: relative; display: block; }
li.videochr img, li.vidbol img { max-width: 100%; }

/* Шапка: рейтинг правее, чтобы не налезал на «Контакты» (только на широких экранах, где виден пункт «Контакты») */
@media (min-width: 1451px) {
	#menutwig #verhnb22 { margin: 0 -50px 0 50px; }
}

/* Телефоны: подвал на сайте центрируется на экранах до 576px, выравниваем свои блоки так же */
@media (max-width: 576px) {
	.tz-extra-links { text-align: center; }
	.tz-join-mobile { text-align: center; }
	.tz-join-mobile .tz-soc { justify-content: center; }
	a.tz-director-link { display: block; text-align: center; margin: 10px 0; }
	.tz-reviews { text-align: center; margin-top: 24px; }
	.tz-reviews-row { justify-content: center; }
	.tz-reviews-item iframe, a.tz-gcard { margin-left: auto; margin-right: auto; }
}
