/*
 * TZ-1 stylesheet — все правки из ТЗ-1 живут здесь, чтобы их легко было
 * найти и при необходимости откатить. Подключается из чанка head.tpl
 * после styles.css, так что переопределяет.
 */

/* TZ-1 п.1 (NAV-01): smooth-scroll к "Списку программ" не уезжает под sticky-header.
 * Header height ~82px (см. main { padding-top: 82px } в styles.css).
 * Добавляем scroll-padding-top для запаса.
 */
html {
	scroll-padding-top: 100px;
}

/* TZ-1 п.5 (BUG-01) исправлен в данных (TV `whom` для resource id=37) — CSS не нужен. */

/* TZ-1 п.9a (SLD-03): FOUC-guard для slick-слайдеров.
 * До тех пор пока slick не повесил класс .slick-initialized, скрываем
 * все слайды кроме первого — иначе при загрузке/refresh видна "двоящаяся"
 * раскладка из всех слайдов сразу.
 * Pattern: official Slick recommendation + WCAG-friendly (visibility instead of display:none
 * чтобы adaptiveHeight calc не ломался). */
.main_slider:not(.slick-initialized) > .main_items:not(:first-child),
.main_slider:not(.slick-initialized) > .slick-slide:not(:first-child),
.about_slider:not(.slick-initialized) > div:not(:first-child),
.about_slider_my:not(.slick-initialized) > div:not(:first-child),
.team_slider:not(.slick-initialized) > div:not(:nth-child(-n+4)),
.partners_slider:not(.slick-initialized) > div:not(:nth-child(-n+4)),
.video_reviews__slider:not(.slick-initialized) > div:not(:nth-child(-n+3)) {
	display: none;
}

/* TZ-1 п.7 (SLD-02): respect prefers-reduced-motion — отключаем автопереключение
 * и transition-анимации для пользователей с motion-sensitivity. */
@media (prefers-reduced-motion: reduce) {
	.slick-slider .slick-track,
	.slick-slider .slick-list {
		transition: none !important;
	}
}

/* TZ-1 п.4 (FAQ-01): открытый FAQ-ответ обрезался на max-height: 500px (styles.css:1905).
 * Поднимаем до 100vh — любой реалистичный длинный ответ влезает,
 * без необходимости менять transition-логику (CSS-transition остаётся валидной). */
.faq_item.active .faq_answer {
	max-height: 100vh;
}

/* TZ-1 п.9b (VID-03): видео в FAQ phone-frame — интерактивное,
 * пользователь может остановить/запустить через controls.
 * Браузер скрывает controls при autoplay — принудительно показываем при наведении. */
.phone_bg:hover video::-webkit-media-controls-panel {
	opacity: 1 !important;
	transition: opacity 0.2s ease;
}

.phone_bg video::-webkit-media-controls-panel {
	transition: opacity 0.3s ease;
}

/* =============================================
 * TZ-2 правки (из файла Правки.md)
 * ============================================= */

/* TZ-2 п.7 (FAQ-02): при раскрытии FAQ-вопроса текст вопроса оставался чёрным
 * на синем фоне (var(--main-color)). Делаем белым для читаемости.
 * Исключение: .accordion-item — там active = светлый фон, текст должен быть тёмным. */
.faq_item:not(.accordion-item).active .faq_question {
	color: white;
}

.faq_item.active .faq_header .faq_toggle svg path {
	stroke: white;
}

/* TZ-2 п.5 (VID-01): видео в #info > .info_item.video должно заполнять рамку
 * контейнера с border-radius, а не торчать за пределы. */
.info_item.video {
	overflow: hidden;
	border-radius: var(--border-radius);
}

.info_item.video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--border-radius);
	display: block;
}

/* TZ-2 п.2 (ABOUT-01): слайдер about_slider_my на всю высоту grid-ячейки.
 * Слайды используют background-image — нужна конкретная px-высота.
 * JS (main.js window.load) выставляет px на все элементы. */

/* TZ-2 п.10 (SLD-04): усиление FOUC-guard — скрываем контент до slick init
 * с плавным появлением после инициализации. */
.main_slider:not(.slick-initialized),
.about_slider_my:not(.slick-initialized) {
	opacity: 0.01;
	transition: opacity 0.3s ease;
}

.main_slider.slick-initialized,
.about_slider_my.slick-initialized {
	opacity: 1;
}

/* TZ-2 п.4 (LAYOUT-01): на страницах услуг (template 3) текст слева,
 * слайдер справа — горизонтальная раскладка. */
.wrapper.main .main_items {
	flex-wrap: nowrap !important;
}

.wrapper.main .main_items > .main_item {
	flex: 1 1 0% !important;
	min-width: 0;
	max-width: 670px;
}

.wrapper.main .main_items > .main_slider-container {
	flex: 0 0 auto !important;
	max-width: 560px;
	width: 100%;
}

.wrapper.main .main_slider {
	max-width: 560px;
}

/* TZ-2 п.9 (VID-02): видео в phone_bg (FAQ секция).
 * Не переопределяем width/height — видео использует HTML-атрибуты (334×585),
 * подогнанные под рамку телефона. */
.phone_bg video {
	border-radius: 30px;
}

/* TZ-2 п.6 (VID-POSTER): видео poster должно отображаться до нажатия play.
 * object-fit: cover заполняет контейнер без чёрных полос. */
.info_item.video video[poster] {
	object-fit: cover;
}

/* =============================================
 * TZ-3 правки
 * ============================================= */

/* TZ-3 п.3: убрать рамку вокруг видео в info_item.video.
 * styles.css даёт padding + background-color на :nth-child(2) — видео
 * получает синий фон и отступы, создавая рамку вокруг video-элемента.
 * Видео должно заполнять ячейку без padding. */
.info_item.video {
	padding: 0 !important;
	background-color: transparent !important;
	background: none !important;
}

/* Убираем дублирующий border-radius у самого video — контейнер уже даёт
 * overflow: hidden + border-radius, поэтому отдельный radius не нужен. */
.info_item.video video {
	border-radius: 0;
}

/* TZ-3 п.4: видео в телефоне FAQ использует HTML-атрибуты (334×585)
 * для точного позиционирования внутри рамки. CSS не перебивает. */

/* TZ-3 п.5: левая часть блока FAQ-вопросов должна практически касаться
 * телефона. phone_bg = 390px × scale(0.8) = 312px визуальная ширина.
 * Добавляем padding-left на faq_wrapper чтобы контент (faq_items) начинался
 * сразу после телефона; убираем margin-left: auto у faq_items чтобы
 * блок растянулся от телефона до правого края. */
.faq_wrapper {
	padding-left: 318px; /* ≈ phone visual width + small gap */
}

.faq_items {
	margin-left: 0;      /* было auto — прижимало вправо */
	max-width: 100%;     /* заполняем всю оставшуюся ширину */
}

/* На планшете/мобильном (≤991.98px) faq_wrapper — column. Возвращаем телефон
 * в поток: абсолютный слой иначе перекрывает FAQ и перехватывает клики. */
@media (max-width: 991.98px) {
	.faq_wrapper {
		padding-left: 0;
	}
	.faq_wrapper .phone_bg {
		position: relative;
		inset: auto;
		align-self: center;
		transform-origin: top center;
		margin-bottom: -156px; /* 20% от исходной высоты 778px после scale(.8) */
	}
	.faq_items {
		max-width: 100%;
		margin-left: 0;
	}
}

/* TZ-3 п.1 (SLD-05): исправить сломанный слайдер на мобильных.
 * tz1.css задал .wrapper.main .main_slider { max-width: 760px } без
 * медиа-запроса; его специфичность (3 класса) перебивает mobile-правило
 * styles.css (.wrapper .main_slider { max-width: 300px }, 2 класса).
 * На мобильных возвращаем разумный max-width. */
@media (max-width: 767.98px) {
	.wrapper.main .main_slider {
		max-width: 320px;
	}
}

/* TZ-1 п.10 (REF-01): program-title — заголовок программы в левом блоке,
 * вынесен из [[*content]] в [[*pagetitle]] для возможности вставить
 * чанк tz1.afterTitle между заголовком и описанием. */
.program-title {
	color: var(--font-color);
	font-size: 38px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0;
}

/* Скрываем дубликат заголовка из [[*content]] — он уже показан
 * через .program-title выше. Все ресурсы template=4 начинают content
 * с <p> содержащим font-size:140% + <strong> (заголовок). */
.program-content > p:first-child {
	display: none;
}

/* =============================================
 * Phase 7: Quick UX Fixes (ТЗ-2)
 * ============================================= */

/* HOME-01/02: иконки в catalog_item на главной.
 * 3D стеклянные квадратные иконки (1080×1080).
 * Показываем целиком в правом нижнем углу карточки. */
.catalog_item {
	background-position: calc(100% + 10px) calc(100% + 30px);
	background-size: 80%;
	overflow: hidden;
}

/* UX-03: скрыть дублирующийся заголовок программы в левом блоке.
 * Название уже есть в правой карточке (.main_card h1).
 * !important нужен чтобы перебить правило на строке ~206 выше. */
.program-title {
	display: none !important;
}

/* UX-01: отступ между заголовком «Полезная информация» и аккордеоном */
h2.title.margin-top + section.accordion {
	margin-top: 24px;
}

/* UX-02: стили для success message с соцсетями */
.popup_thanks .success-socials {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 0;
	margin-bottom: 16px;
}

.popup_thanks .success-socials span {
	color: #fff;
}

.popup_thanks .success-socials__links {
	display: flex;
	gap: 16px;
}

.popup_thanks p:last-of-type {
	margin-bottom: 4px;
}

.success-social {
	display: inline-block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.2s ease;
}

.success-social:hover {
	transform: scale(1.1);
}

.success-social--tg {
	background-image: url('/assets/img/icons/social-telegram.svg');
}

.success-social--vk {
	background-image: url('/assets/img/icons/social-vk.svg');
}

/* SOCIAL-03: Дзен icon on success popup */
.success-social--dzen {
	background-image: url('/assets/img/icons/social-dzen.svg?v=2');
}

/* HIDDEN:HIDE-03 — text1 TV leaks into demo block on service pages, hide visually */
.demonstration .text > h2:not(.title),
.demonstration .text > p:not(.tz1-demo-text p),
.demonstration .text > ol,
.demonstration .text > ul:not(.tz1-demo-text ul) {
	display: none !important;
}

/* HIDDEN:HIDE-02 — prices hidden per client request, remove to restore */
.programs_item > div > span,
.main_prices > .main_price:first-child {
	display: none !important;
}

/* HIDDEN:HIDE-04 — скрыть зеленую плашку AjaxForm (дублирует popup_thanks) */
.jGrowl {
	display: none !important;
}

/* ================================================================
   Phase 8: Reusable Components (COMP-01 through COMP-05)
   ================================================================ */

/* COMP-01: Блок преимуществ — Phase 11 Redesign
 * Premium card layout with gradient icons, scroll animation, elevated cards.
 * Replaces the flat table-grid with independent shadow cards. */

/* Scroll-triggered entrance animation removed — caused FOUC (cards started
   at opacity:0, appearing as empty blocks during load). */

/* Section wrapper — remove border, add subtle gradient background */
.tz2-advantages__wrapper {
	background: linear-gradient(170deg, rgba(35, 140, 169, 0.04) 0%, rgba(245, 249, 250, 0.6) 50%, transparent 100%);
	border: none;
	border-radius: var(--border-radius);
	padding: 8px 0 12px;
}

/* Centered heading with decorative underline */
.tz2-advantages__heading {
	font-size: 30px;
	font-weight: 700;
	color: var(--font-color);
	text-align: center;
	padding: 20px 32px 0;
	margin: 0 0 32px;
	position: relative;
}
.tz2-advantages__heading::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, var(--main-color), #35aaca);
	border-radius: 3px;
	margin: 14px auto 0;
}

/* 2-column card grid with gap */
.tz2-advantages__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	padding: 0 8px 8px;
}

/* Individual elevated card */
.tz2-advantage,
.tz2-advantages__item {
	padding: 28px 32px;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 20px;
	position: relative;
	background: #fff;
	border-radius: 16px;
	border: none;
	box-shadow:
		0 1px 3px rgba(38, 49, 65, 0.06),
		0 4px 12px rgba(38, 49, 65, 0.04);
	transition:
		transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}


/* Remove all old divider borders */
.tz2-advantages__item:nth-child(odd) { border-right: none; }
.tz2-advantages__item:not(:nth-last-child(-n+2)) { border-bottom: none; }
.tz2-advantages__item:nth-last-child(1):nth-child(odd) { border-right: none; }
.tz2-advantages__item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.tz2-advantages__item:nth-last-child(1):nth-child(even) { border-bottom: none; }

/* Hover — card lifts with deeper shadow */
.tz2-advantages__item:hover {
	transform: translateY(-4px);
	box-shadow:
		0 4px 8px rgba(38, 49, 65, 0.08),
		0 12px 28px rgba(35, 140, 169, 0.12);
}

/* Odd item in last row (when total is odd) — center it */
.tz2-advantages__item:nth-last-child(1):nth-child(odd) {
	grid-column: 1 / -1;
	max-width: calc(50% - 10px);
	margin: 0 auto;
}

/* Icon circle — gradient + glow */
.tz2-advantage__icon,
.tz2-advantages__icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #238ca9, #1a6f87);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(35, 140, 169, 0.28);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.tz2-advantages__item:hover .tz2-advantages__icon,
.tz2-advantages__item:hover .tz2-advantage__icon {
	transform: scale(1.1);
	box-shadow: 0 6px 22px rgba(35, 140, 169, 0.38);
}

/* SVG icons inside circle */
.tz2-advantage__icon svg,
.tz2-advantages__icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
/* IMG icons inside circle */
.tz2-advantage__icon img,
.tz2-advantages__icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

/* Text block */
.tz2-advantages__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding-top: 2px;
}
/* Title — proper case, not ALL CAPS */
.tz2-advantage__title,
.tz2-advantages__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--font-color);
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.35;
	margin: 0;
}
/* Description */
.tz2-advantage__text p,
.tz2-advantages__text p {
	font-size: 14px;
	color: var(--second-font-color);
	line-height: 1.6;
	margin: 0;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.tz2-advantage,
	.tz2-advantages__item {
		animation: none;
		transition: box-shadow 0.2s ease;
	}
	.tz2-advantages__item:hover {
		transform: none;
	}
	.tz2-advantage__icon,
	.tz2-advantages__icon {
		transition: none;
	}
}

/* COMP-02: Мини-заявка — Compact CTA Bar */
.tz2-mini-form__inner {
	background: #f5f9fa;
	border-radius: var(--border-radius);
	padding: 20px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.tz2-mini-form__text {
	font-size: 20px;
	font-weight: 600;
	color: var(--font-color);
	margin: 0;
	line-height: 1.3;
}
.tz2-mini-form__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--main-color);
	color: #fff;
	border: none;
	border-radius: 500px;
	padding: 12px 32px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	text-decoration: none;
	transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.tz2-mini-form__btn:hover {
	background: #1d7a94;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	transform: translateY(-1px);
}

/* COMP-03: Текстовый блок */
.tz2-text-block__content,
.tz2-text-content {
	background: var(--second-color);
	border-radius: var(--border-radius);
	padding: 32px 40px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--second-font-color);
}
.tz2-text-block__content h3,
.tz2-text-content h3 {
	font-size: 20px;
	font-weight: 600;
	color: var(--font-color);
	margin-bottom: 16px;
}
.tz2-text-block__content ul,
.tz2-text-content ul {
	list-style: none;
	padding: 0;
}
.tz2-text-block__content ul li,
.tz2-text-content ul li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 10px;
}
.tz2-text-block__content ul li::before,
.tz2-text-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	width: 20px;
	height: 20px;
	background: var(--main-color);
	border-radius: 50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
	background-size: 14px;
	background-repeat: no-repeat;
	background-position: center;
}

/* COMP-04: Блок этапов */
.tz2-steps__grid {
	display: flex;
	gap: 20px;
	counter-reset: step-counter;
}
.tz2-step,
.tz2-steps__item {
	flex: 1;
	background: var(--second-color);
	border-radius: var(--border-radius);
	padding: var(--padding);
	display: flex;
	flex-direction: column;
	gap: 12px;
	counter-increment: step-counter;
}
.tz2-step__badge,
.tz2-steps__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--main-color);
	color: #fff;
	border-radius: 30px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 600;
	width: fit-content;
	text-transform: uppercase;
}
.tz2-step__badge:empty::before,
.tz2-steps__number:empty::before {
	content: "Шаг " counter(step-counter, decimal-leading-zero);
}
.tz2-step__title,
.tz2-steps__title {
	font-size: 17px;
	font-weight: 600;
	color: var(--font-color);
}
.tz2-step__text,
.tz2-steps__text {
	font-size: 14px;
	color: var(--second-font-color);
	line-height: 1.5;
}
.tz2-step__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: calc(var(--border-radius) / 2);
	order: -1;
}

/* COMP-05: Текст + фото (redesigned with laptop mockup) */
.tz2-textphoto__inner,
.tz2-textphoto__wrapper {
	display: flex;
	align-items: center;
	gap: 48px;
	background: var(--second-color);
	border-radius: var(--border-radius);
	overflow: hidden;
	padding: 48px;
}
.tz2-textphoto__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

/* — Label above title — */
.tz2-textphoto__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--main-color);
	margin-bottom: 12px;
}
.tz2-textphoto__label::before {
	content: '';
	width: 24px;
	height: 2px;
	background: var(--main-color);
}

/* — Title with accent — */
.tz2-textphoto__title {
	font-size: 32px;
	font-weight: 700;
	color: var(--font-color);
	margin-bottom: 20px;
	line-height: 1.25;
	position: relative;
}

/* — Description text — */
.tz2-textphoto__text {
	font-size: 15px;
	color: var(--second-font-color);
	line-height: 1.75;
}
.tz2-textphoto__text p {
	margin-bottom: 20px;
	font-size: 16px;
	color: #555;
}

/* — Feature list as mini-cards — */
.tz2-textphoto__text ul {
	list-style: none;
	padding: 0;
	margin: 4px 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tz2-textphoto__text ul li {
	position: relative;
	padding: 14px 16px 14px 48px;
	margin: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 500;
	color: var(--font-color);
	background: #fff;
	border-radius: 10px;
	border-left: 3px solid var(--main-color);
	box-shadow: 0 1px 4px rgba(0,0,0,0.04);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	line-height: 1.5;
}
.tz2-textphoto__text ul li:hover {
	box-shadow: 0 4px 12px rgba(35,140,169,0.1);
	transform: translateX(4px);
}
.tz2-textphoto__text ul li::before {
	content: '';
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	background: var(--main-color);
	border-radius: 50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
	background-size: 14px;
	background-repeat: no-repeat;
	background-position: center;
}

/* — Laptop visual (image-based) — */
.tz2-textphoto__visual {
	flex: 0 0 48%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tz2-textphoto__laptop-img {
	width: 100%;
	max-width: 520px;
	height: auto;
	transition: transform 0.4s ease;
}
.tz2-textphoto__laptop-img:hover {
	transform: scale(1.02);
}

/* — Legacy image support — */
.tz2-textphoto__image {
	flex: 0 0 45%;
	min-height: 300px;
}
.tz2-textphoto__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Phase 8: Mobile breakpoints */
@media (max-width: 768px) {
	.tz2-advantages__heading {
		font-size: 24px;
		padding: 16px 16px 0;
		margin-bottom: 24px;
	}
	.tz2-advantages__heading::after {
		width: 48px;
		margin-top: 10px;
	}
	.tz2-advantages__grid {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 0 4px 4px;
	}
	.tz2-advantages__item {
		padding: 22px 20px;
	}
	/* On mobile, odd-last-child should not be constrained */
	.tz2-advantages__item:nth-last-child(1):nth-child(odd) {
		max-width: 100%;
		grid-column: auto;
	}
	.tz2-mini-form__inner {
		flex-direction: column;
		text-align: center;
		padding: 20px 20px;
		gap: 16px;
	}
	.tz2-mini-form__text {
		font-size: 17px;
	}
	.tz2-mini-form__btn {
		width: 100%;
	}
	.tz2-text-block__content,
	.tz2-text-content {
		padding: 20px 24px;
	}
	.tz2-steps__grid {
		flex-direction: column;
	}
	.tz2-textphoto__inner,
	.tz2-textphoto__wrapper {
		flex-direction: column;
		padding: 24px;
		gap: 24px;
	}
	.tz2-textphoto__content {
		padding: 0;
	}
	.tz2-textphoto__title {
		font-size: 24px;
	}
	.tz2-textphoto__visual {
		flex: none;
		width: 100%;
	}
	.tz2-textphoto__image {
		flex: none;
		min-height: 200px;
	}
}

/* ================================================================
   COMP-06: Информационные блоки-аккордеоны (tz2-info-block)
   Design matches .accordion-item / .faq_item pattern from styles.css:
   Closed = teal pill, Open = light bg with dark text.
   ================================================================ */

/* Container for all info blocks */
.tz2-info-blocks {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* --- CLOSED STATE (default) — teal pill card --- */
.tz2-info-block {
	background-color: var(--main-color);
	border-radius: var(--border-radius);
	padding: 0;
	overflow: hidden;
	transition: background-color 0.35s ease, box-shadow 0.3s ease;
}

.tz2-info-block:hover {
	box-shadow: 0 4px 20px rgba(35, 140, 169, 0.25);
}

/* Accordion header — clickable */
.tz2-info-block__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 28px;
	cursor: pointer;
	user-select: none;
	gap: 16px;
}

/* Title — white on teal (closed) */
.tz2-info-block__title {
	font-size: 20px;
	font-weight: 500;
	color: #fff;
	line-height: 1.3;
	margin: 0;
	flex: 1;
	transition: color 0.3s ease;
}

/* Toggle button — "Смотреть" pill (matches .faq_toggle::after) */
.tz2-info-block__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	background-color: #fff;
	color: var(--main-color);
	font-size: 15px;
	font-weight: 500;
	border-radius: 500px;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	border: 1px solid transparent;
}

.tz2-info-block:hover .tz2-info-block__toggle {
	background-color: #e8f4f7;
}

/* --- OPEN STATE (.active) — light bg, dark text --- */
.tz2-info-block.active {
	background-color: var(--second-color);
	box-shadow: 0 2px 12px rgba(35, 140, 169, 0.08);
}

.tz2-info-block.active .tz2-info-block__title {
	color: var(--font-color);
}

.tz2-info-block.active .tz2-info-block__toggle {
	background-color: var(--main-color);
	color: #fff;
	border: 1px solid var(--main-color);
}

.tz2-info-block.active:hover .tz2-info-block__toggle {
	background-color: #1d7a94;
	border-color: #1d7a94;
}

/* Collapsible content area */
.tz2-info-block__body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
	            padding 0.3s ease;
}

.tz2-info-block.active .tz2-info-block__body {
	max-height: none;
}

/* Inner content padding */
.tz2-info-block__content {
	padding: 0 28px 28px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--second-font-color);
}

/* Divider between header and body content */
.tz2-info-block__content::before {
	content: '';
	display: block;
	height: 1px;
	background: rgba(35, 140, 169, 0.2);
	margin-bottom: 20px;
	border-radius: 1px;
}

.tz2-info-block__content h3 {
	font-size: 17px;
	font-weight: 600;
	color: var(--font-color);
	margin: 0 0 12px;
}

.tz2-info-block__content p {
	margin: 0 0 12px;
}

.tz2-info-block__content p:last-child {
	margin-bottom: 0;
}

/* Checkmark list items — matching .demonstration_items ul li::before */
.tz2-info-block__content ul {
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
}

.tz2-info-block__content ul:last-child {
	margin-bottom: 0;
}

.tz2-info-block__content ul li {
	position: relative;
	padding-left: 42px;
	margin-bottom: 12px;
	line-height: 1.6;
}

.tz2-info-block__content ul li:last-child {
	margin-bottom: 0;
}

/* Teal circle with white checkmark — same SVG as demonstration section */
.tz2-info-block__content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 28px;
	height: 28px;
	background-image: url('data:image/svg+xml;utf8,<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="30" rx="15" fill="%23238CA9"/><path d="M23.5723 10.9893L12.8604 21.5781L6.42676 15.2188L9.02441 12.6504L12.6494 16.2334L12.8604 16.4414L13.0713 16.2334L20.9746 8.4209L23.5723 10.9893Z" fill="white" stroke="%23238CA9" stroke-width="0.6"/></svg>');
	background-size: contain;
	background-repeat: no-repeat;
}

/* Numbered/ordered lists inside */
.tz2-info-block__content ol {
	padding-left: 24px;
	margin: 0 0 12px;
}

.tz2-info-block__content ol li {
	margin-bottom: 8px;
	padding-left: 8px;
}

/* Bold list headers */
.tz2-info-block__content strong {
	color: var(--font-color);
}

/* Removed entrance animation (infoBlockFadeIn) — it caused blocks to appear as
   empty/invisible during page load. CSS-only opacity:0 animations create FOUC.
   Blocks now render immediately visible. */

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.tz2-info-block {

		animation: none;
	}
	.tz2-info-block__body {
		transition: none;
	}
}

/* Mobile responsive */
@media (max-width: 768px) {
	.tz2-info-blocks {
		gap: 14px;
	}
	.tz2-info-block__header {
		padding: 18px 20px;
		gap: 12px;
	}
	.tz2-info-block__title {
		font-size: 16px;
	}
	.tz2-info-block__toggle {
		padding: 8px 18px;
		font-size: 13px;
	}
	.tz2-info-block__content {
		padding: 0 20px 20px;
	}
	.tz2-info-block__content ul li {
		padding-left: 36px;
	}
	.tz2-info-block__content ul li::before {
		width: 24px;
		height: 24px;
	}
}

/* ================================================================
   Phase 9: Комплексная подготовка (tz2-complex-prep)
   Bold stepper layout — oversized numbered circles, generous spacing,
   connecting progress line, staggered entrance animation.
   ================================================================ */

/* Entrance animation for stage circles */
@keyframes stepperCircleIn {
	from {
		opacity: 0;
		transform: scale(0.6);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
@keyframes stepperTextIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Section wrapper — subtle branded gradient background */
.tz2-complex-prep__inner {
	background: linear-gradient(170deg, rgba(35, 140, 169, 0.05) 0%, rgba(245, 249, 250, 0.7) 40%, rgba(255,255,255,0.4) 100%);
	border-radius: var(--border-radius);
	padding: 12px 0 16px;
	position: relative;
}

/* Remove old accent top bar */
.tz2-complex-prep__inner::before {
	display: none;
}

/* Bold centered title with decorative underline */
.tz2-complex-prep__title {
	font-size: 28px;
	font-weight: 700;
	color: var(--font-color);
	text-align: center;
	padding: 28px 40px 0;
	margin: 0 0 16px;
	line-height: 1.3;
	position: relative;
}
.tz2-complex-prep__title::after {
	content: '';
	display: block;
	width: 64px;
	height: 3px;
	background: linear-gradient(90deg, var(--main-color), #35aaca);
	border-radius: 3px;
	margin: 16px auto 0;
}

/* Stages row — generous padding, positioned for the connecting line */
.tz2-complex-prep__stages {
	display: flex;
	align-items: flex-start;
	padding: 40px 32px 36px;
	position: relative;
}

/* Connecting progress line between circles — thicker, more visible */
.tz2-complex-prep__stages::before {
	content: '';
	position: absolute;
	top: 76px; /* center of 72px circle = 40px padding + 36px */
	left: calc(16.66% + 32px);
	right: calc(16.66% + 32px);
	height: 3px;
	background: linear-gradient(90deg, var(--main-color), #2ea8c8, var(--main-color));
	opacity: 0.30;
	border-radius: 2px;
	z-index: 0;
}

/* Each stage — centered column */
.tz2-complex-prep__stage {
	flex: 1;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	text-align: center;
	position: relative;
	z-index: 1;
}

.tz2-complex-prep__stage:first-child {
	padding-left: 8px;
}

.tz2-complex-prep__stage:last-child {
	padding-right: 8px;
}

/* Hide the old divider elements */
.tz2-complex-prep__divider {
	display: none;
}

/* Numbered circle — bold 72px with gradient, glow, entrance animation */
.tz2-complex-prep__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, #238ca9 0%, #1a6f87 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.3px;
	white-space: nowrap;
	margin-bottom: 20px;
	box-shadow:
		0 4px 16px rgba(35, 140, 169, 0.30),
		0 1px 3px rgba(35, 140, 169, 0.15);
	flex-shrink: 0;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
	animation: stepperCircleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tz2-complex-prep__stage:nth-child(1) .tz2-complex-prep__number { animation-delay: 0.05s; }
.tz2-complex-prep__stage:nth-child(3) .tz2-complex-prep__number { animation-delay: 0.15s; }
.tz2-complex-prep__stage:nth-child(5) .tz2-complex-prep__number { animation-delay: 0.25s; }

/* Hover — circle scales up with intensified glow */
.tz2-complex-prep__stage:hover .tz2-complex-prep__number {
	transform: scale(1.12);
	box-shadow:
		0 8px 28px rgba(35, 140, 169, 0.35),
		0 2px 6px rgba(35, 140, 169, 0.18);
}

/* Stage description text — larger, more readable */
.tz2-complex-prep__text {
	font-size: 15px;
	color: var(--second-font-color);
	line-height: 1.65;
	margin: 0;
	max-width: 300px;
	animation: stepperTextIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tz2-complex-prep__stage:nth-child(1) .tz2-complex-prep__text { animation-delay: 0.12s; }
.tz2-complex-prep__stage:nth-child(3) .tz2-complex-prep__text { animation-delay: 0.22s; }
.tz2-complex-prep__stage:nth-child(5) .tz2-complex-prep__text { animation-delay: 0.32s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.tz2-complex-prep__number,
	.tz2-complex-prep__text {
		animation: none;
	}
	.tz2-complex-prep__stage:hover .tz2-complex-prep__number {
		transform: none;
	}
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
	.tz2-complex-prep__title {
		font-size: 22px;
		padding: 20px 20px 0;
		margin-bottom: 10px;
	}
	.tz2-complex-prep__title::after {
		width: 52px;
		margin-top: 12px;
	}
	.tz2-complex-prep__stages {
		flex-direction: column;
		gap: 0;
		padding: 28px 20px 24px;
		align-items: stretch;
	}
	/* Vertical connecting line on mobile */
	.tz2-complex-prep__stages::before {
		top: 56px;
		bottom: 52px;
		left: 47px; /* center of 56px circle at 20px padding-left = 20+28-1 */
		right: auto;
		width: 3px;
		height: auto;
	}
	.tz2-complex-prep__stage {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		padding: 0;
		gap: 18px;
		margin-bottom: 24px;
	}
	.tz2-complex-prep__stage:last-child {
		margin-bottom: 0;
	}
	.tz2-complex-prep__stage:first-child,
	.tz2-complex-prep__stage:last-child {
		padding: 0;
	}
	.tz2-complex-prep__number {
		margin-bottom: 0;
		width: 56px;
		height: 56px;
		font-size: 14px;
	}
	.tz2-complex-prep__text {
		max-width: none;
		padding-top: 14px;
		font-size: 14px;
	}
	.tz2-complex-prep__divider {
		display: none;
	}
}

/* ================================================================
   Hero block checkmark lists — colored circles with ✓ for ul/li
   in the main hero section (.wrapper.main .main_item)
   TZ requirement: checkmarks in hero text lists
   ================================================================ */
.wrapper.main .main_item ul {
	list-style: none;
	padding: 0;
	margin: 16px 0;
}
.wrapper.main .main_item ul li {
	position: relative;
	padding-left: 36px;
	margin-bottom: 10px;
	line-height: 1.6;
}
.wrapper.main .main_item ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 24px;
	height: 24px;
	background-image: url('data:image/svg+xml;utf8,<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="30" rx="15" fill="%23238CA9"/><path d="M23.5723 10.9893L12.8604 21.5781L6.42676 15.2188L9.02441 12.6504L12.6494 16.2334L12.8604 16.4414L13.0713 16.2334L20.9746 8.4209L23.5723 10.9893Z" fill="white" stroke="%23238CA9" stroke-width="0.6"/></svg>');
	background-size: contain;
	background-repeat: no-repeat;
}
/* Услуги по охране труда: пятый блок по ТЗ остаётся текстовым, без фотографий. */
.tz2-text-block + .tz2-advantages + .why .why_item-inner {
    background-image: none !important;
}
