/* ============================================================
   БЛОК «Каталоги PDF» (lux-docs).
   Грид карток: картинка + назва + кнопки «Переглянути» (поп-ап
   із превью PDF) і «Завантажити». Десктоп 4/3/2 колонки (клас
   --2/--3/--4), мобільний — завжди 2. Типографіка через clamp.
   Лінія зліва — глобальна (.lux-docs::before у style.css).
   ============================================================ */

.lux-docs {
	position: relative;
	color: var(--lux-dark, #111);
	padding: clamp(60px, 6vw, 90px) 0;
}

.lux-docs__title {
	font-family: 'Unbounded', sans-serif;
	font-weight: 400;
	font-size: clamp(24px, 3vw, 44px);
	line-height: 1.2;
	color: var(--lux-dark, #111);
	margin: 0 0 clamp(10px, 1.2vw, 18px);
}

.lux-docs__subtitle {
	font-size: clamp(13px, 1.1vw, 15px);
	line-height: 1.5;
	color: rgba(17, 17, 17, .6);
	margin: 0 0 clamp(24px, 3vw, 44px);
	max-width: 560px;
}

/* ---------- грид ---------- */
.lux-docs__grid {
	display: grid;
	gap: clamp(14px, 2vw, 30px);
}
.lux-docs__grid--4 { grid-template-columns: repeat(4, 1fr); }
.lux-docs__grid--3 { grid-template-columns: repeat(3, 1fr); }
.lux-docs__grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- картка ---------- */
.lux-docs__card {
	background: #fff;
	border-radius: 10px;
	padding: clamp(8px, 0.8vw, 12px);
	box-shadow: 0 12px 34px rgba(17, 17, 17, .08);
	display: flex;
	flex-direction: column;
}

.lux-docs__img-btn {
	display: block;
	width: 100%;
	padding: 0;
	height: 200px;
	border: none;
	background: #f4efe9;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
}
.lux-docs__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .4s ease;
}
.lux-docs__img-btn:hover .lux-docs__img {
	transform: scale(1.04);
}
.lux-docs__img--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-family: 'Unbounded', sans-serif;
	font-size: 22px;
	color: rgba(17, 17, 17, .25);
}

.lux-docs__name {
	font-size: clamp(14px, 1.1vw, 16px);
	font-weight: 600;
	line-height: 1.35;
	color: var(--lux-dark, #111);
	margin: clamp(10px, 1vw, 16px) 0 clamp(10px, 1vw, 14px);
}

/* ---------- кнопки ---------- */
.lux-docs__actions {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: clamp(6px, 0.6vw, 10px);
}
.lux-docs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: clamp(8px, 0.8vw, 12px) 14px;
	border-radius: 100px;
	border: 1px solid var(--lux-dark, #111);
	font-size: clamp(12px, 1vw, 14px);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .25s ease, color .25s ease;
}
.lux-docs__btn--view {
	background: var(--lux-dark, #111);
	color: #fff;
}
.lux-docs__btn--view:hover {
	background: #2c2c2c;
}
.lux-docs__btn--download {
	background: #fff;
	color: var(--lux-dark, #111);
}
.lux-docs__btn--download:hover {
	background: var(--lux-dark, #111);
	color: #fff;
}

/* ---------- поп-ап превью ---------- */
.lux-docs-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
}
.lux-docs-popup.is-open {
	display: flex;
}
.lux-docs-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, .72);
}
.lux-docs-popup__dialog {
	position: relative;
	width: min(1100px, 94vw);
	height: min(86vh, 900px);
	background: #fff;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.lux-docs-popup__header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(17, 17, 17, .1);
}
.lux-docs-popup__title {
	font-weight: 600;
	font-size: 15px;
	color: var(--lux-dark, #111);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lux-docs-popup__counter {
	margin-left: auto;
	font-size: 13px;
	color: rgba(17, 17, 17, .5);
	white-space: nowrap;
}
.lux-docs-popup__close {
	margin-left: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: #f4efe9;
	color: var(--lux-dark, #111);
	cursor: pointer;
}
.lux-docs-popup__close:hover {
	background: var(--lux-dark, #111);
	color: #fff;
}
.lux-docs-popup__body {
	flex: 1;
	background: #525659;
}
.lux-docs-popup__body iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: none;
}
.lux-docs-popup__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--lux-dark, #111);
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(17, 17, 17, .25);
}
.lux-docs-popup__arrow:hover {
	background: var(--lux-dark, #111);
	color: #fff;
}
.lux-docs-popup__arrow--prev { left: 12px; }
.lux-docs-popup__arrow--next { right: 12px; }

/* ---------- адаптив ---------- */
@media (max-width: 991px) {
	.lux-docs__grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	/* на мобільному завжди 2 в ряду */
	.lux-docs__grid--4,
	.lux-docs__grid--3,
	.lux-docs__grid--2 { grid-template-columns: repeat(2, 1fr); }

	.lux-docs-popup__dialog {
		width: 100vw;
		height: 100vh;
		border-radius: 0;
	}
	.lux-docs-popup__arrow {
		width: 38px;
		height: 38px;
	}
}
@media (max-width: 380px) {
	.lux-docs__name {
		font-size: 13px;
	}
	.lux-docs__btn {
		padding-left: 8px;
		padding-right: 8px;
		gap: 5px;
	}
}
