.calendar-title {
	font-size: 24pt;
	font-family: crooker;
	color: white;
	padding: 20px 0px 10px 0px;
	margin: 10px;
}

.calendar-title2 {
	font-size: 14pt;
	font-family: crooker;
	color: white;
	margin: 10px;
}

.calendar-title3 {
	font-size: 18pt;
	font-family: crooker;
	color: white;
}

.calendar-title4 {
	font-size: 16pt;
	font-family: crooker;
	color: #61a093;
	padding-bottom: 10px;
}

.calendar-title5 {
	font-size: 12pt;
	font-family: Verdana;
	color: #6f5da6;
}

.calendar-title-day {
	font-size: 80pt;
	font-family: crooker;
	color: #ffc10e;
	margin: 0px;
	text-shadow: 
	-1px -1px 0 #612a8a,  
	1px -1px 0 #612a8a,
	-1px 1px 0 #612a8a,
	1px 1px 0 #612a8a;
	line-height: 0.9;
}


.calendar-name {
	width: 100%;
	height: 50px;
	background-color: #fff;
	color: #6f5da6;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
	font-family: crooker;
	font-size: 16pt;
	white-space: nowrap;
}

.calendar-name-first {
	font-size: 24pt;
	color: #6f5da6;
	font-family: crooker;
}

.calendar-title-month {
	font-size: 20pt;
	font-family: crooker;
	color: #612a8a;
}

.calendar-container {
	position: relative;
	max-width: 1000px;
	min-width: 300px;
	height: 650px;
	margin: 10px;
	overflow: hidden;
	border: 0px solid #333;
	border-radius: 20px;
}

.calendar-day {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/*padding: 20px;*/
	box-sizing: border-box;
	/*background: white;*/
	transition: transform 0.5s ease, opacity 0.5s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateX(100%);
}

.calendar-day.active {
	opacity: 1;
	transform: translateX(0);
}

.calendar-day.slide-left {
	transform: translateX(-100%);
	opacity: 0;
}

.calendar-day.slide-right {
	transform: translateX(100%);
	opacity: 0;
}

.navigation {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	gap: 20px;
}

.nav-btn {
	padding: 10px 20px;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
	transition: background 0.3s ease;
}

.nav-btn:hover {
	background: #0056b3;
}

.nav-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}


/* Основной контейнер */
.container {
	display: flex;
	width: 100%;
	height: 100%;
}

/* Левый блок 60% */
.block-60 {
	width: 60%;
	display: flex;
	flex-direction: column;
}

/* Правый блок 40% */
.block-40 {
	width: 40%;
	background-color: #fff;
	padding: 20px;
	margin: 0px 0px 0px 5px;
	color: #6f5da6;
}

/* Верхний блок (третий) - 400px */
.inner-top {
	height: 400px;
	display: flex;

}

/* Нижний блок (четвертый) - занимает оставшееся пространство */
.inner-bottom {
	flex: 1;
	padding: 20px;
	margin-top: 5px;
	color: white;
	background: url('img/girls.png') no-repeat 100% 100%, #8b6dd4;
}

/* Пятый и шестой блоки (внутри третьего) */
.block-50 {
	width: 50%;
	display: flex;
	flex-direction: column;
	justify-content: end;
}

.block-50:first-child {
	
}

.block-50:last-child {
	background-color: #ffccff;
	margin-left: 5px;
}

/* Блоки внутри пятого (7 и 8) */
.sub-block {
	flex: 1;
	padding: 15px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.sub-block:first-child {
	/*background-color: #fff;*/			
	background: url('img/calendar.png');
	background-position: center center; /* Центрирование */
	background-repeat: no-repeat;
	background-attachment: fixed; /* Фиксированный фон */
	align-items: center;
}

.sub-block:last-child {
	/*background-color: #ccccff;*/
	gap: 20px; /* Расстояние между блоками */
	align-items: center;
	margin-top: 5px;
	flex-direction: row;
	font-size: 40pt;
	font-family: crooker;
	color: #ffc10e;
	margin: 0px;
	text-shadow: 
	-1px -1px 0 #612a8a,  
	1px -1px 0 #612a8a,
	-1px 1px 0 #612a8a,
	1px 1px 0 #612a8a;
	line-height: 0.9;
}

@media (max-width: 900px) {
	.container {
		flex-direction: column;
	}
	
	.block-60 {
		width: 100%;
	}
	
	.block-40 {
		width: 100%;
		height: 100%;
		order: 2;
		margin: 5px 0px 0px 0px;
		box-sizing: border-box; 
	}
	
	.inner-top {
		flex-direction: row;
		height: 400px;
	}
	
	.block-50 {
		width: 50%;
	}
	
	.calendar-container {
		min-height: 1000px;
		height: auto;
		box-sizing: border-box; 
	}
	
	.sub-block:last-child {
		/*display: none;*/
	}
}

@media (max-width: 700px) {
		.calendar-container {
				min-height: 1100px;
				height: auto;
				box-sizing: border-box; 
			}
}

@media (max-width: 600px) {
		.calendar-container {
				min-height: 1200px;
				height: auto;
				box-sizing: border-box; 
			}
}

@media (max-width: 500px) {
		.calendar-container {
				min-height: 1300px;
				height: auto;
				box-sizing: border-box; 
			}
}
		
.div-with-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden; /* обрезает выходящие за пределы части */
}

.div-with-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* заполняет блок с обрезкой */
    object-position: center; /* центрирует картинку */
}

.nav-but-prev, .nav-but-next{
	background: url('img/calendar-prev.png') no-repeat 100% 50%;
	width: 60px;
	height: 100%;	
	min-height: 60px;
	font-size: 30pt;
	font-family: crooker;
	color: #fff;
	margin: 0px;
	text-shadow: 
	-1px -1px 0 #612a8a,  
	1px -1px 0 #612a8a,
	-1px 1px 0 #612a8a,
	1px 1px 0 #612a8a;
	display: flex;
	justify-content: center;
}

.nav-but-next{
	background: url('img/calendar-next.png') no-repeat 0% 50%;
	text-align: left;
	padding-left: 10px;
}

/* Альтернативная верстка календаря */
		
		* {
			margin: 0;
			padding: 0;
			box-sizing: border-box; /* ← это решает проблему! */
		}

        .october-container {
            width: 100%;
			height: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
		
		.october-row {
            display: flex;
            width: 100%;
            margin-bottom: 20px;
			border-radius: 10px;
			overflow: hidden;
			position: relative;
        }

        .october-block {
            /*padding: 20px;*/
            color: white;
            font-size: 18px;			
        }

        /* Первый ряд */
        .october-first-row .october-block-1 {
            /*width: 40%;*/
            height: 200px;
            display: flex;
			flex-direction: row;
			/*align-items: center;*/
			justify-content: center;
        }

		.october-calendar {
			width: 220px; 
			/*background: url('img/calendar2.png');
			background-position: center center;
			background-repeat: no-repeat;
			background-attachment: fixed; */	
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
		}
        .october-first-row .october-block-2 {
            width: 60%;
            background: url('img/girls.png') no-repeat 100% 100%, #8b6dd4;
            height: 200px;
            display: flex;
			flex-direction: column;
            align-items: center;
            justify-content: center;
			padding: 20px;
			border-radius: 10px;
			font-size: clamp(12px, 3vw, 16px);
        }

        /* Второй ряд */
        .october-second-row .october-block-1 {
            width: 30%;
			min-height: 400px;
            display: flex;
			flex-direction: column;
			justify-content: end;
        }

        .october-second-row .october-block-2 {
            width: 70%;
            background-color: #FFF;
			padding: 20px;
			color: #6f5da6;
			box-sizing: border-box;
			font-size: clamp(9pt, 2vw, 10pt);
        }

        /* Адаптивность для экранов до 900px */
        @media (max-width: 900px) {
            .october-row {
                flex-direction: column;
				margin-bottom: 0px;
            }
            
            .october-first-row .october-block-1,
            .october-first-row .october-block-2,
            .october-second-row .october-block-1,
            .october-second-row .october-block-2 {
                width: 100%;
                margin-bottom: 15px;
                /*height: auto;
                min-height: 150px;*/
				border-radius: 10px;
				overflow: hidden;
				position: relative;
            }
			
			.october-second-row .october-block-2 {
				height: 100%;
				box-sizing: border-box;
			}
			
			.calendar-container {
				min-height: 1400px;
			}
        }
