/* ============================================================
   TCC Library — раздел «Библиотека» (дизайн 1:1 с Trekking Club)
   ============================================================ */

.tccl,
.tccl-single {
	--tccl-blue: #015e9f;
	--tccl-blue-dark: #004a7f;
	--tccl-side: #5c5d5c;
	--tccl-side-active: #7d7d7d;
	color: #2a2a2a;
	font-family: "Open Sans", Arial, sans-serif;
}

/* ---------- Хлебные крошки (1:1 со страницей Отзывов) ---------- */
.tccl-bc {
	background: transparent;
}
.tccl-bc__inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 80px 0 20px;
	font-size: 16px;
	color: #777;
}
.tccl-bc__inner a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #777;
	text-decoration: none;
	transition: color .2s;
}
.tccl-bc__inner a:hover { color: var(--tccl-blue); }
.tccl-bc__cur { color: #777; }
.tccl-bc__sep { color: #aaa; }
.tccl-bc-home { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Раскладка архива ---------- */
/* .tccl перед .tccl-layout — перебиваем тему (.tcc-container грузится позже) */
.tccl .tccl-layout {
	display: flex;
	align-items: flex-start;
	gap: 36px;
	padding: 0 20px 80px;
}

/* ---------- Сайдбар рубрик ---------- */
.tccl-sidebar {
	flex: 0 0 280px;
	max-width: 280px;
}
.tccl-cats ul {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--tccl-side);
	overflow: hidden;
}
.tccl-cats__item + .tccl-cats__item { border-top: 1px solid rgba(255,255,255,.10); }
.tccl-cats__item a {
	display: block;
	padding: 13px 22px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s;
}
.tccl-cats__item a:hover { background: var(--tccl-blue-dark); }
.tccl-cats__item.is-active a { background: var(--tccl-blue); }

/* ---------- Список статей ---------- */
.tccl-list { flex: 1 1 auto; min-width: 0; }
.tccl-list__title {
	margin: 0 0 28px;
	font-size: 30px;
	font-weight: 700;
	text-transform: uppercase;
	color: #1a1a1a;
}

.tccl-post {
	display: flex;
	gap: 26px;
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid #e7e7e7;
}
.tccl-post:last-child { border-bottom: 0; }
.tccl-post__media {
	flex: 0 0 300px;
	max-width: 300px;
	display: block;
	overflow: hidden;
	border-radius: 4px;
}
.tccl-post__media img {
	display: block;
	width: 100%;
	height: 215px;
	object-fit: cover;
	transition: transform .4s;
}
.tccl-post__media:hover img { transform: scale(1.05); }
.tccl-post__noimg {
	display: block;
	width: 100%;
	height: 215px;
	background: #e3e3e3;
}
.tccl-post__body { flex: 1 1 auto; min-width: 0; }
.tccl-post__title {
	margin: 4px 0 14px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
}
.tccl-post__title a { color: #1a1a1a; text-decoration: none; transition: color .2s; }
.tccl-post__title a:hover { color: var(--tccl-blue); }
.tccl-post__excerpt {
	margin: 0 0 16px;
	color: #5a5a5a;
	font-size: 15px;
	line-height: 1.65;
}
.tccl-post__more {
	color: var(--tccl-blue);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.tccl-post__more:hover { text-decoration: underline; }

/* ---------- Пагинация ---------- */
.tccl-pagination { margin-top: 36px; display: flex; }
.tccl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	margin-right: 8px;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	color: #444;
	text-decoration: none;
	font-size: 15px;
	transition: all .2s;
}
.tccl-pagination .page-numbers:hover,
.tccl-pagination .page-numbers.current {
	background: var(--tccl-blue);
	border-color: var(--tccl-blue);
	color: #fff;
}
.tccl-empty { color: #777; font-size: 16px; padding: 20px 0; }

/* ============================================================
   Страница статьи
   ============================================================ */
.tccl-banner {
	position: relative;
	min-height: 460px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 20px 90px;
	background-color: #2b2b2b;
	background-size: cover;
	background-position: center;
	border-radius: 0 0 50% 50% / 0 0 70px 70px;
	overflow: hidden;
	text-align: center;
}
.tccl-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 100%);
}
.tccl-banner__title {
	position: relative;
	z-index: 2;
	max-width: 1000px;
	margin: 0;
	color: #fff;
	font-size: clamp(30px, 5vw, 72px);
	font-weight: 600;
	line-height: 1.12;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.tccl-article {
	max-width: 1040px;
	margin: 0 auto;
	padding: 12px 20px 50px;
}
.tccl-article__body {
	font-size: 17px;
	line-height: 1.85;
	color: #333;
}
.tccl-article__body .tccl-lead {
	font-size: 19px;
	line-height: 1.7;
	color: #1a1a1a;
	font-weight: 500;
	margin: 0 0 26px;
}
.tccl-article__body h2 {
	font-size: 26px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 36px 0 14px;
}
.tccl-article__body h3 {
	font-size: 21px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 28px 0 12px;
}
.tccl-article__body p { margin: 0 0 18px; }
.tccl-article__body img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 8px 0;
}
.tccl-article__body ul,
.tccl-article__body ol { margin: 0 0 18px 22px; }
.tccl-article__body li { margin-bottom: 8px; }

.tccl-similar { padding-top: 30px; }

/* ---------- Похожие статьи: карточки (на одиночной странице тема не грузит home.css) ---------- */
.tccl-single .tcc-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.tccl-single .tcc-blog-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s, box-shadow .25s;
}
.tccl-single .tcc-blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15,23,42,.12); }
.tccl-single .tcc-blog-card__media { display: block; height: 200px; overflow: hidden; }
.tccl-single .tcc-blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tccl-single .tcc-blog-card:hover .tcc-blog-card__media img { transform: scale(1.06); }
.tccl-single .tcc-blog-card__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #d8e4ee, #eef2f5); }
.tccl-single .tcc-blog-card__body { padding: 18px; display: flex; flex-direction: column; flex-grow: 1; }
.tccl-single .tcc-blog-card__title { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0 0 10px; }
.tccl-single .tcc-blog-card__title a { color: #1a1a1a; text-decoration: none; }
.tccl-single .tcc-blog-card__title a:hover { color: var(--tccl-blue); }
.tccl-single .tcc-blog-card__excerpt { font-size: 14px; color: #6a6a6a; line-height: 1.5; margin: 0 0 14px; flex-grow: 1; }
.tccl-single .tcc-blog-card__more { font-weight: 700; color: var(--tccl-blue); margin-top: auto; text-decoration: none; }
.tccl-single .tcc-blog-card__more:hover { text-decoration: underline; }
@media (max-width: 900px) { .tccl-single .tcc-blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tccl-single .tcc-blog__grid { grid-template-columns: 1fr; } }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
	.tccl .tccl-layout { flex-direction: column; gap: 28px; padding: 0 16px 56px; }
	.tccl-sidebar { flex: 1 1 auto; max-width: 100%; width: 100%; }
}
@media (max-width: 640px) {
	.tccl-post { flex-direction: column; gap: 14px; }
	.tccl-post__media { flex: 1 1 auto; max-width: 100%; }
	.tccl-post__media img,
	.tccl-post__noimg { height: 200px; }
	.tccl-post__title { font-size: 19px; }
	.tccl-banner { min-height: 320px; border-radius: 0 0 50% 50% / 0 0 40px 40px; }
}

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

/* Стрелки — толстые галочки «❮ ❯» без рамки и фона, цвет бренда.
   !important — чтобы перебить возможные стили кнопок из темы. */
.tccl-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(--tccl-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;
}
.tccl-arrow::before { font-size: 46px; font-weight: 700; line-height: 1; color: inherit; }
.tccl-arrow--prev::before { content: "\276E"; }   /* ❮ */
.tccl-arrow--next::before { content: "\276F"; }   /* ❯ */
.tccl-arrow:hover { background: none !important; color: var(--tccl-blue-dark, #004a7f) !important; }
.tccl-arrow:disabled { opacity: .3; cursor: default; background: none !important; color: var(--tccl-blue, #015e9f) !important; }

@media (max-width: 1024px) { .tccl-carousel__slide { flex-basis: calc((100% - 26px) / 2); } }
@media (max-width: 680px)  { .tccl-carousel__slide { flex-basis: 100%; } }

/* Метки статьи */
.tccl-article__tags{margin:26px 0 0;font-size:15px;color:var(--tcc-muted,#7a8794);line-height:1.9}
.tccl-article__tags-label{font-weight:700;color:var(--tcc-ink,#1c2b39);margin-right:4px}
.tccl-article__tags a{display:inline-block;padding:3px 12px;margin:0 2px;background:var(--tcc-cream,#f6f4f0);border-radius:14px;color:var(--tcc-blue,#015e9f);text-decoration:none;font-size:14px;transition:background .2s,color .2s}
.tccl-article__tags a:hover{background:var(--tcc-blue,#015e9f);color:#fff}
