/* Кастомные стили для сайта храма - совместимость с Bootstrap */

:root {
	--sky-50: #f0f9ff;
	--sky-100: #e0f2fe;
	--sky-200: #bae6fd;
	--sky-300: #7dd3fc;
	--sky-400: #38bdf8;
	--sky-500: #0ea5e9;
	--sky-600: #0284c7;
	--sky-700: #0369a1;
	--sky-800: #075985;
	--sky-900: #0c4a6e;
	
	--blue-50: #eff6ff;
	--blue-100: #dbeafe;
	--blue-200: #bfdbfe;
	--blue-300: #93c5fd;
	--blue-400: #60a5fa;
	--blue-500: #3b82f6;
	--blue-600: #2563eb;
	--blue-700: #1d4ed8;
	--blue-800: #1e40af;
	--blue-900: #1e3a8a;
	
	--amber-500: #f59e0b;
	--amber-600: #d97706;
}

/* Утилиты для object-fit */
.object-fit-cover {
	object-fit: cover;
}

/* Фоновые градиенты */
.bg-gradient-sky {
	background: linear-gradient(to bottom, var(--sky-50), var(--blue-50), var(--sky-100));
}

.bg-gradient-sky-blue {
	background: linear-gradient(to bottom, var(--sky-50), var(--blue-50));
}

.bg-gradient-header {
	background: linear-gradient(to right, #ffffff, #f4f9ff, #8ed2f3);
}

.bg-gradient-card {
	background: linear-gradient(to bottom right, var(--sky-50), var(--blue-50));
}

/* Кнопки */
.btn-amber {
	background-color: var(--amber-500);
	border-color: var(--amber-500);
	color: #111827;
}

.btn-amber:hover {
	background-color: var(--amber-600);
	border-color: var(--amber-600);
	color: #111827;
}

/* Hero секция */
.hero-section {
	min-height: 100vh;
	background-size: cover;
	background-position: center;
	position: relative;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: transparent;
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 50%;
}

.hero-title-wrapper {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
}

.hero-title-gold {
	text-size-adjust: 100%;
	font-style: normal;
	font-weight: 400;
	font-family: 'Roboto Slab', serif;
	box-sizing: border-box;
	line-height: 2.875rem;
	padding-left: 3px;
	font-size: 1.875rem;
	margin-bottom: 30px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	background: linear-gradient(93.59deg, #FFD700 3.49%, #D4AF37 101.32%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	transition: 0.24s;
}

.hero-title-white {
	text-size-adjust: 100%;
	font-style: normal;
	font-weight: 400;
	color: var(--color__text, #1E2839);
	font-family: 'Roboto Slab', serif;
	box-sizing: border-box;
	font-size: 3.75rem;
	line-height: 4.375rem;
}

/* Карточки */
.card-custom {
	border: 2px solid var(--sky-200);
	transition: all 0.3s ease;
}

.card-custom:hover {
	border-color: var(--amber-400);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

/* Секции */
.section-padding {
	padding: 2rem 0;
}

/* Текст */
.text-shadow {
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Галерея */
.gallery-item {
	margin-bottom: 1rem;
	break-inside: avoid;
}

.gallery-item img {
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

/* Номера в фоне для проектов */
.bg-number {
	font-size: 400px;
	line-height: 0.7;
	color: var(--sky-100);
	user-select: none;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

@media (max-width: 768px) {
	.bg-number {
		font-size: 200px;
	}
}

/* Адаптивные размеры текста */
@media (max-width: 768px) {
	.hero-title {
		font-size: 2rem;
	}
	
	.hero-subtitle {
		font-size: 1.125rem;
	}
}

/* Ссылки */
a.text-amber,
.text-amber {
	color: var(--amber-500) !important;
}

a.text-amber:hover {
	color: var(--amber-600) !important;
}

/* Ссылки в футере */
footer a {
	transition: color 0.3s ease;
}

footer a:hover {
	color: var(--amber-500) !important;
}

/* Иконки в футере */
footer a img {
	transition: opacity 0.3s ease, transform 0.3s ease;
}

footer a:hover img {
	opacity: 0.7;
	transform: scale(1.1);
}

/* Навигация */
.header__logo {
	text-size-adjust: 100%;
	font-family: 'Open Sans', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.362rem;
	color: var(--color__text, #1E2839);
	box-sizing: border-box;
	padding-right: 0px;
}

.logo {
	display: flex;
	align-items: center;
}

.flex {
	display: flex;
}

.--align-center {
	align-items: center;
}

.logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--color__text, #1E2839);
	background: linear-gradient(93.59deg, #FFD700 3.49%, #D4AF37 101.32%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-family: 'Roboto Slab', serif;
	font-weight: 700;
	text-transform: uppercase;
	white-space: pre-line;
}

.logo-icon {
	text-size-adjust: 100%;
	font-family: 'Open Sans', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.362rem;
	box-sizing: border-box;
	border-style: none;
	max-width: 100%;
	background: none;
	-webkit-background-clip: unset;
	background-clip: unset;
	-webkit-text-fill-color: unset;
	color: var(--color__text, #1E2839);
	margin-right: 0.5rem;
}

.logo-text {
	white-space: pre-line;
}

.navbar-brand {
	display: none;
}

.navbar-nav .nav-link {
	font-family: 'Roboto Slab', serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.navbar-nav .nav-link:hover {
	color: var(--amber-600) !important;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.hero-title, .hero-subtitle {
	font-family: 'Roboto Slab', serif;
}

/* Стили для основных заголовков секций */
h2.display-5,
.clergy-main-title,
h2.display-4 {
	text-size-adjust: 100%;
	font-style: normal;
	color: var(--color__text, #1E2839);
	box-sizing: border-box;
	font-family: 'Roboto Slab', serif;
	text-align: center;
	text-transform: uppercase;
	position: relative;
	font-weight: normal;
	padding-bottom: 46px;
	margin-bottom: 30px;
	font-size: 2.25rem;
	line-height: 2.968rem;
}

/* Декоративный элемент monogram под заголовками */
.h2::after,
h2::after,
h2.display-5::after,
.clergy-main-title::after,
h2.display-4::after {
	content: "";
	position: absolute;
	left: 0px;
	right: 0px;
	bottom: 0px;
	margin: auto;
	background-image: url('/media/monogram.svg');
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	width: 283px;
	height: 23px;
}

/* Адаптивные размеры для заголовков */
@media (max-width: 768px) {
	h2.display-5,
	.clergy-main-title,
	h2.display-4 {
		font-size: 1.75rem;
		line-height: 2.25rem;
		padding-bottom: 36px;
		margin-bottom: 24px;
	}
}

/* Границы */
.border-sky {
	border-color: var(--sky-200) !important;
}

.border-amber {
	border-color: var(--amber-400) !important;
}

/* Badge */
.badge.bg-amber {
	background-color: var(--amber-500) !important;
	color: #111827 !important;
}

/* Священнослужители */
.clergy-section-header {
	padding: 60px 0 40px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-number {
	font-size: 18px;
	color: #6c757d;
	letter-spacing: 2px;
	margin-bottom: 20px;
}

.section-divider {
	width: 70px;
	height: 1px;
	background: #6c757d;
	display: inline-block;
	margin: 0 15px;
	vertical-align: middle;
}

.section-title {
	font-size: 18px;
	color: #6c757d;
	letter-spacing: 1px;
}

.clergy-main-title {
	font-family: 'Roboto Slab', serif;
	font-size: 40px;
	font-weight: 700;
	color: #212529;
	margin-bottom: 60px;
	text-transform: uppercase;
}

.clergy-card {
	margin-bottom: 40px;
}

.clergy-image {
	width: 100%;
	height: 400px;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.clergy-name {
	font-family: 'Roboto Slab', serif;
	font-size: 36px;
	font-weight: 700;
	color: #212529;
	margin: 30px 0 20px;
	text-transform: uppercase;
}

.clergy-description {
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1.7;
	color: #555;
}

.clergy-description p {
	margin-bottom: 1rem;
}

@media (max-width: 768px) {
	.clergy-main-title {
		font-size: 30px;
	}
	
	.clergy-name {
		font-size: 28px;
	}
	
	.clergy-image {
		height: 300px;
	}
	
	.clergy-description {
		font-size: 14px;
	}
}

@media (max-width: 576px) {
	.clergy-image {
		height: 250px;
	}
}

/* Стили для блока расписания на главной странице */
.schedule-section {
	padding: 60px 0;
}

.schedule-wrapper {
	margin-top: 30px;
}

.schedule-container {
	overflow: hidden;
}

.schedule-scroll {
	display: flex;
	gap: 20px;
	transition: transform 0.4s ease;
}

.schedule-card {
	background: #fff;
	padding: 30px;
	border-left: 4px solid var(--amber-500);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	flex: 0 0 calc(33.333% - 14px);
	min-width: 300px;
	transition: all 0.3s ease;
}

.schedule-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.schedule-day {
	font-size: 18px;
	font-weight: 600;
	color: var(--amber-600);
	margin-bottom: 5px;
	font-family: 'Roboto Slab', serif;
}

.schedule-date {
	font-size: 14px;
	color: #666;
	margin-bottom: 15px;
}

.schedule-event {
	font-size: 14px;
	color: #333;
	margin-bottom: 8px;
	padding-left: 8px;
	border-left: 2px solid var(--sky-300);
}

.schedule-event:last-child {
	margin-bottom: 0;
}

.schedule-nav-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-top: 2rem;
}

.schedule-nav {
	background: linear-gradient(to bottom, var(--sky-100), var(--blue-100));
	border: 2px solid var(--amber-500);
	color: var(--amber-600);
	width: 50px;
	height: 50px;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}

.schedule-nav:hover:not(:disabled) {
	background: linear-gradient(to bottom, var(--amber-500), var(--amber-600));
	color: #fff;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
	transform: translateY(-2px);
}

.schedule-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.schedule-nav:disabled:hover {
	background: linear-gradient(to bottom, var(--sky-100), var(--blue-100));
	color: var(--amber-600);
	box-shadow: none;
	transform: none;
}

@media (max-width: 768px) {
	.schedule-card {
		min-width: 280px;
		flex: 0 0 calc(50% - 10px);
	}
	
	.schedule-nav-wrapper {
		flex-wrap: wrap;
	}
}

@media (max-width: 576px) {
	.schedule-card {
		min-width: 250px;
		flex: 0 0 100%;
	}
	
	.schedule-nav {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
	
	.schedule-nav-wrapper .btn {
		width: 100%;
		margin: 0.5rem 0;
	}
}
