/* =========================================================================
   TREKKING CLUB — ОТЗЫВЫ
   Раскладка и размеры — 1:1 с референсом; цвета — из брендовой темы.
   ========================================================================= */

.tccr-page {
	font-family: var(--tcc-font, "Open Sans", sans-serif);
	color: var(--tcc-ink, #202020);
	max-width: 1200px;
	margin: 0 auto;
	padding: 80px 20px;   /* отступы сверху/снизу ~80px */
	box-sizing: border-box;
}

/* Прячем огромный H1 «Отзывы» из шаблона страницы (только на /otzyvy/, page-id-33) */
.page-id-33 .page-header,
.page-id-33 .entry-title { display: none !important; }

/* ---- Хлебные крошки ---- */
.tccr-bc { font-size: 16px; color: var(--tcc-muted, #777); padding: 4px 0 20px; }
.tccr-bc a { color: var(--tcc-muted, #777); text-decoration: none; }
.tccr-bc a:hover { color: var(--tcc-blue, #015e9f); }
.tccr-bc__sep { margin: 0 8px; color: #aaa; }
.tccr-bc__current { color: var(--tcc-muted, #777); }

/* ---- Две колонки: отзывы | форма ---- */
.tccr-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 30px;
	align-items: start;
}

/* =========================================================================
   Вкладки
   ========================================================================= */
.tccr-tabs { display: flex; gap: 0; margin: 0 0 26px; flex-wrap: wrap; }
.tccr-tab {
	background: #f1f1f1;
	border: 0;
	color: var(--tcc-ink, #202020);
	font-family: inherit;
	font-weight: 600;
	font-size: 16px;
	text-transform: uppercase;
	padding: 15px 35px;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.tccr-tab:hover { background: var(--tcc-blue-dark, #004a7f) !important; color: #fff !important; }
.tccr-tab.is-active { background: var(--tcc-blue, #015e9f) !important; color: #fff !important; }

.tccr-panel { display: none; }
.tccr-panel.is-active { display: block; }

/* =========================================================================
   Строка отзыва: слева имя+дата, справа текст в рамке
   ========================================================================= */
.tccr-list { display: flex; flex-direction: column; }
.tccr-review {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 20px;
}
.tccr-review__side {
	flex: 0 0 130px;
	max-width: 130px;
	padding-right: 15px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.tccr-review__name { font-size: 16px; color: var(--tcc-muted, #777); }
.tccr-review__date { font-size: 16px; font-style: italic; color: var(--tcc-muted, #777); }
.tccr-review__box {
	flex: 1 1 auto;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 15px;
	background: #f9f9f9;
	font-size: 16px;
	line-height: 1.7;
	color: var(--tcc-muted, #777);
}
.tccr-review__box p { margin: 0 0 8px; }
.tccr-review__box p:last-child { margin-bottom: 0; }

.tccr-empty { color: var(--tcc-muted, #777); font-size: 16px; padding: 20px 0; }

/* =========================================================================
   Форма (серый блок справа)
   ========================================================================= */
.tccr-form-card {
	background: #bbbbbb;
	padding: 20px;
	box-sizing: border-box;
}
.tccr-form-card__title {
	font-size: 22px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--tcc-ink, #202020);
	margin: 0 0 10px;
}
.tccr-form-card__note {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .3px;
	color: #555;
	margin: 0 0 18px;
}
.tccr-form-card__warn { flex: 0 0 auto; color: #555; }

.tccr-form { display: flex; flex-direction: column; gap: 12px; }
.tccr-field { display: flex; flex-direction: column; gap: 5px; }
.tccr-field > span { font-size: 15px; font-weight: 600; color: var(--tcc-ink, #202020); }
.tccr-field em { color: #b00; font-style: normal; }
.tccr-field small { color: #555; font-weight: 400; }
.tccr-form input[type="text"],
.tccr-form input[type="email"],
.tccr-form textarea {
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #a3a3a3;
	border-radius: 3px;
	padding: 9px 12px;
	font-size: 16px;
	font-family: inherit;
	color: #171717;
}
.tccr-form textarea { resize: vertical; min-height: 110px; }
.tccr-form input:focus,
.tccr-form textarea:focus { border-color: var(--tcc-blue, #015e9f); outline: 0; }

/* Тумблер согласия */
.tccr-consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin: 4px 0 2px; }
.tccr-consent__cb { position: absolute; opacity: 0; width: 0; height: 0; }
.tccr-consent__switch {
	flex: 0 0 auto;
	position: relative;
	width: 40px;
	height: 22px;
	background: #8d8d8d;
	border-radius: 22px;
	transition: background .2s;
	margin-top: 2px;
}
.tccr-consent__switch::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s;
}
.tccr-consent__cb:checked + .tccr-consent__switch { background: var(--tcc-blue, #015e9f); }
.tccr-consent__cb:checked + .tccr-consent__switch::after { transform: translateX(18px); }
.tccr-consent__cb:focus-visible + .tccr-consent__switch { box-shadow: 0 0 0 3px rgba(1,94,159,.35); }
.tccr-consent__text { font-size: 14px; line-height: 1.4; color: #333; }

.tccr-form-card .tccr-submit {
	align-self: flex-start;
	background: var(--tcc-blue, #015e9f) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .3px;
	padding: 14px 36px;
	cursor: pointer;
	transition: background .2s;
	margin-top: 4px;
}
.tccr-form-card .tccr-submit:hover { background: var(--tcc-blue-dark, #014a7f) !important; }

.tccr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tccr-notice { border-radius: 4px; padding: 12px 14px; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.tccr-notice--ok { background: #e6f4ea; color: #1a7f37; }
.tccr-notice--err { background: #fde8e8; color: #c0392b; }

/* =========================================================================
   Карусель на главной (карточки .tcc-review из темы)
   ========================================================================= */
.tccr-carousel { position: relative; display: flex; align-items: center; gap: 14px; }
.tccr-carousel__viewport { overflow: hidden; width: 100%; }
.tccr-carousel__track { display: flex; gap: 26px; transition: transform .4s ease; will-change: transform; }
.tccr-carousel__slide { flex: 0 0 calc((100% - 52px) / 3); box-sizing: border-box; }
.tccr-carousel__slide .tcc-review { height: 100%; box-sizing: border-box; }

/* Стрелки — толстые галочки «❮ ❯» без рамки и фона, цвет бренда.
   !important — чтобы перебить розовый (#cc3366) и рамку из темы. */
.tccr-arrow {
	flex: 0 0 auto;
	width: auto !important;
	height: auto !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	color: var(--tcc-blue, #015e9f) !important;
	font-size: 0 !important;          /* прячем исходный тонкий глиф ‹ › */
	line-height: 1;
	padding: 0 8px !important;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: color .2s; z-index: 2;
}
.tccr-arrow::before {
	font-size: 46px;
	font-weight: 700;
	line-height: 1;
	color: inherit;
}
.tccr-arrow--prev::before { content: "\276E"; }   /* ❮ */
.tccr-arrow--next::before { content: "\276F"; }   /* ❯ */
.tccr-arrow:hover { background: none !important; color: var(--tcc-blue-dark, #004a7f) !important; }
.tccr-arrow:disabled { opacity: .3; cursor: default; background: none !important; color: var(--tcc-blue, #015e9f) !important; }

/* =========================================================================
   Адаптив
   ========================================================================= */
@media (max-width: 980px) {
	.tccr-layout { grid-template-columns: 1fr; }
	.tccr-aside { order: -1; max-width: 520px; }
	.tccr-carousel__slide { flex-basis: calc((100% - 26px) / 2); }
}
@media (max-width: 600px) {
	.tccr-tab { flex: 1 1 auto; padding: 13px 14px; font-size: 13px; text-align: center; }
	.tccr-review { flex-direction: column; gap: 4px; }
	.tccr-review__side { flex-basis: auto; max-width: none; flex-direction: row; gap: 10px; padding-right: 0; }
	.tccr-carousel__slide { flex-basis: 100%; }
}

/* Кнопка «Все отзывы» под каруселью на главной */
.tccr-home__more { text-align: center; margin-top: 40px; }


/* =========================================================================
   Фото/скан отзыва + лайтбокс
   ========================================================================= */
.tccr-review__scans {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}
.tccr-scan {
	display: block;
	width: 110px;
	height: 140px;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	cursor: zoom-in;
	transition: box-shadow .2s ease, transform .2s ease;
}
.tccr-scan:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	transform: translateY(-2px);
}
.tccr-scan .tccr-scan__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tccr-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 30px;
}
.tccr-lb.is-open {
	display: flex;
}
.tccr-lb__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .85);
}
.tccr-lb__img {
	position: relative;
	max-width: 92vw;
	max-height: 88vh;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.tccr-lb__close {
	position: absolute;
	top: 18px;
	right: 26px;
	z-index: 1;
	background: none;
	border: 0;
	color: #fff;
	font-size: 42px;
	line-height: 1;
	cursor: pointer;
}

/* Мини-превью сканов в метабоксе админки */
.tccr-scans__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0;
}
.tccr-scans__item {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 60px;
}
.tccr-scans__item img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 3px;
	border: 1px solid #ddd;
}
.tccr-scans__rm {
	position: absolute;
	top: -7px;
	right: -7px;
	width: 18px;
	height: 18px;
	line-height: 16px;
	text-align: center;
	background: #d63638;
	color: #fff;
	border-radius: 50%;
	text-decoration: none;
	font-size: 13px;
}
