/* ============================================
   ОБЪЕДИНЁННЫЙ ФАЙЛ СТИЛЕЙ
   (header + index, все правки сохранены)
   ============================================ */

/* --- 1. БАЗОВЫЕ СТИЛИ СТРАНИЦЫ --- */
body {
	margin: 0;
	padding: 0;
	background: #ffffff;
}

.page-wrapper {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 15px;
	background: #ffffff;
}

/* --- 2. ШАПКА (ХЕДЕР) --- */
.holder {
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	overflow: hidden;
}
/* --- ПЛАШКА ПОД ЛОГОТИПОМ (ТОЛЬКО НЕЁ КРАСИМ) --- */
#logo {
	float: left;
	width: 220px;
	background: #555;
	border-radius: 0 0 4px 4px;
	padding: 10px 20px 8px;
}

#logo a {
	color: #fff !important;
	text-decoration: none !important;
	font-size: 22px;
	font-weight: bold;
	white-space: nowrap;
}

#logo h5 {
	color: #c0c0c0;
	margin: 0;
	font-weight: normal;
	font-size: 12px;
	white-space: nowrap;
}
#logo {
	float: left;
	width: 220px;
}

#logo a {
	color: #fff !important;
	text-decoration: none !important;
	font-size: 22px;
	font-weight: bold;
	white-space: nowrap;
}

#logo h5 {
	color: #c0c0c0;
	margin: 0;
	font-weight: normal;
	font-size: 12px;
	white-space: nowrap;
}

#heading {
	float: left;
	width: calc(100% - 240px);
	padding-left: 20px;
}

#user-options {
	text-align: right;
	font-size: 12px;
	color: #c0c0c0;
}

#user-options a {
	color: #c0c0c0;
	text-decoration: none;
}

#user-options a:hover {
	color: #fff;
}

.main-menu {
	color: #c0c0c0;
	text-decoration: none;
	font-size: 13px;
}

.main-menu:hover {
	color: #fff;
}

/* --- 3. КАРТОЧКИ СТУДИЙ --- */
.main-page-preview-box {
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e8e8e8;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0 !important;
	width: 100% !important;
	position: relative;
}

.main-page-preview-box:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.main-page-preview-box a {
	text-decoration: none;
	color: #222;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.main-page-preview-box .img-wrap {
	position: relative;
	padding-top: 100%;
	background: #f0f0f0;
	overflow: hidden;
	flex-shrink: 0;
}

.main-page-preview-box .img-wrap img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.main-page-preview-box:hover .img-wrap img {
	transform: scale(1.03);
}

.main-page-preview-box .info {
	padding: 12px 14px 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	background: #fff;
}

.main-page-preview-box .info .name {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
	letter-spacing: -0.2px;
	margin-bottom: 1px;
}

.main-page-preview-box .info .city {
	font-size: 13px;
	color: #888;
	margin-bottom: 4px;
	font-weight: 400;
}

.main-page-preview-box .info .details {
	font-size: 12px;
	color: #555;
	padding-top: 6px;
	border-top: 1px solid #f0f0f0;
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin-top: 2px;
}

.main-page-preview-box .info .details .price {
	font-weight: 600;
	color: #2c3e50;
}

.main-page-preview-box .info .short-desc {
	font-size: 12px;
	color: #aaa;
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-style: italic;
}

.main-page-preview-box .info .hover-block {
	display: none !important;
}

/* --- 4. СЕТКА КАРТОЧЕК --- */
.studios-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 20px 0;
}

/* --- 5. КАРТОЧКА "ВСЕ СТУДИИ" --- */
.all-link-card {
	background: transparent !important;
	border: 1px dashed #ccc !important;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 200px;
	border-radius: 8px;
}

.all-link-card a {
	font-size: 16px;
	font-weight: 600;
	color: #555;
	padding: 15px;
	transition: color 0.2s;
}

.all-link-card a:hover {
	color: #000;
	box-shadow: none;
}

.all-link-card .info {
	display: none !important;
}

/* --- 6. ЧЕКБОКСЫ НА БАННЕРЕ --- */
.banner-info .search-group input[type="checkbox"] {
	display: none;
}

.banner-info .search-group label {
	display: inline-block;
	padding: 0 0 0 28px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 400;
	color: #4F9BC8;
	background: url('/static/images/nocheck.png') left bottom no-repeat;
	background-size: 20px 20px;
	min-height: 20px;
	line-height: 20px;
	height: 20px;
	vertical-align: bottom;
}

.banner-info .search-group input[type="checkbox"]:checked + label {
	background-image: url('/static/images/check.png');
	color: #4F9BC8;
}

.banner-info .search-group li {
	margin-bottom: 4px;
	list-style: none;
}

/* --- 7. ОБЩИЕ ПРАВКИ --- */
.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

.main-banner h1 {
	font-size: 22px;
	font-weight: normal;
	margin-bottom: 15px;
}

/* ============================================
   АДАПТАЦИЯ (ПЛАНШЕТЫ И МОБИЛЬНЫЕ)
   ============================================ */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
	.holder {
		padding: 10px 15px 8px;
	}
	
	.studios-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}
}

/* Телефоны (до 767px) */
@media (max-width: 767px) {
	/* --- ОБЩИЕ --- */
	.page-wrapper {
		padding: 0 8px;
	}
	
	.main-banner h1 {
		font-size: 17px;
	}
	
	/* --- ХЕДЕР --- */
	.holder {
		padding: 8px 10px 6px;
		border-radius: 0 0 6px 6px;
	}
	
	#logo {
		float: none;
		width: 100%;
		text-align: center;
		padding-bottom: 6px;
	}
	
	#logo a {
		font-size: 20px;
		white-space: normal;
	}
	
	#logo h5 {
		font-size: 11px;
		white-space: normal;
	}
	
	#heading {
		float: none;
		width: 100%;
		padding-left: 0;
		text-align: center;
	}
	
	#user-options {
		text-align: center;
		font-size: 12px;
	}
	
	#user-options a {
		font-size: 12px;
	}
	
	.holder > div[style*="margin-left: 40px;"] {
		margin-left: 0 !important;
		text-align: center;
	}
	
	.holder > div[style*="margin-left: 40px;"] > div {
		margin-left: 0 !important;
		text-align: center;
	}
	
	.main-menu {
		font-size: 13px;
	}
	
	.holder > hr.dotted {
		margin: 6px 0;
	}
	
	/* --- КАРТОЧКИ --- */
	.studios-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
	
	.main-page-preview-box .info {
		padding: 8px 10px 10px;
		gap: 2px;
	}
	
	.main-page-preview-box .info .name {
		font-size: 12px;
		font-weight: 700;
		line-height: 1.2;
	}
	
	.main-page-preview-box .info .city {
		font-size: 11px;
		margin-bottom: 2px;
	}
	
	.main-page-preview-box .info .details {
		font-size: 10px;
		padding-top: 4px;
		gap: 0;
	}
	
	.main-page-preview-box .info .short-desc {
		font-size: 10px;
		margin-top: 2px;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		max-height: 24px;
		line-height: 1.2;
	}
	
	/* --- КАРТОЧКА "ВСЕ СТУДИИ" --- */
	.all-link-card {
		min-height: 150px;
	}
	
	.all-link-card a {
		font-size: 13px;
		padding: 10px;
	}
	
	/* --- БАННЕР С ЧЕКБОКСАМИ --- */
	#main-page-options-bar .banner-info > div[style*="float: left"] {
		float: none !important;
		width: 100% !important;
		display: block;
		margin-bottom: 6px;
	}
	
	#main-page-options-bar .search-group {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1px 8px;
	}
	
	#main-page-options-bar .search-group label {
		font-size: 12px;
		padding: 0 0 0 24px;
		background-size: 16px 16px;
		min-height: 16px;
		line-height: 16px;
		height: 16px;
	}
	
	#main-page-options-bar .styled-clear {
		height: 2px;
	}
	
	#main-page-options-bar .search-group .styled-clear {
		display: none;
	}
}

/* Очень маленькие телефоны (до 480px) */
@media (max-width: 480px) {
	.holder {
		padding: 6px 6px 4px;
	}
	
	#logo a {
		font-size: 17px;
	}
	
	#user-options {
		font-size: 11px;
	}
	
	#user-options a {
		font-size: 11px;
	}
	
	.main-menu {
		font-size: 11px;
	}
	
	.studios-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
	
	.main-page-preview-box .info {
		padding: 6px 8px 8px;
	}
	
	.main-page-preview-box .info .name {
		font-size: 10px;
	}
	
	.main-page-preview-box .info .city {
		font-size: 9px;
	}
	
	.main-page-preview-box .info .details {
		font-size: 9px;
		padding-top: 3px;
	}
	
	.main-page-preview-box .info .short-desc {
		display: none;
	}
}