/* 7096: календарь событий — /calendar/, страница события, блок на главной */

.calendar-link {
	display: inline-block;
	font-size: 14px;
	line-height: 15px;
	font-weight: 500;
	text-transform: uppercase;
	text-decoration: none;
	color: #0060FF;
	white-space: nowrap;
}

.calendar-link::before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	width: 54px;
	height: 1px;
	margin: 0 11px 2px 0;
	background: #0060FF;
	transition: width 0.3s ease;
}

.calendar-link:hover::before {
	width: 70px;
}

/* ---------- Список ---------- */

.calendar-page {
	padding-bottom: 80px;
}

.calendar-page__title {
	margin: 40px 0 0 0;
	font-size: 56px;
	line-height: 1;
	font-weight: 800;
	text-transform: uppercase;
	color: #121212;
}

.calendar-page__intro {
	max-width: 760px;
	margin: 20px 0 0 0;
	font-size: 16px;
	line-height: 26px;
	color: #333333;
}

.calendar-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 16px;
	margin: 22px 0 0 0;
}

.calendar-filters .filter {
	margin-right: 0;
}

.calendar-filters__select {
	width: 190px;
}

.calendar-filters__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}

/* Как теги фильтра портфолио (.filter.tag a в styles.css) */
.calendar-filters__tags a {
	display: inline-block;
	padding: 11px 16px;
	border: solid 1px #FFFFFF;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 14px;
	line-height: 15px;
	font-weight: 500;
	color: #0060FF;
	text-decoration: none;
	transition: all 0.3s ease;
}

.calendar-filters__tags a:hover {
	border-color: #F3F4F4;
	text-decoration: none;
}

.calendar-filters__tags a.active {
	background: #F3F4F4;
}

.calendar-filters__submit {
	margin: 18px 0 0 0;
	padding: 9px 18px;
	border: 0;
	border-radius: 4px;
	background: #0060FF;
	color: #FFFFFF;
	font: inherit;
	cursor: pointer;
}

.calendar-list {
	transition: opacity 0.2s ease;
}

.is-loading .calendar-list {
	opacity: 0.4;
	pointer-events: none;
}

.calendar-rows {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 40px;
	margin: 36px 0 0 0;
}

.calendar-empty {
	margin: 50px 0 0 0;
	padding: 50px 30px;
	background: #F3F4F4;
	text-align: center;
}

.calendar-empty__title {
	font-size: 22px;
	line-height: 1.2;
	font-weight: 800;
	text-transform: uppercase;
	color: #121212;
}

.calendar-empty__text {
	max-width: 560px;
	margin: 14px auto 24px auto;
	font-size: 16px;
	line-height: 26px;
	color: #333333;
}

/* ---------- Строка события ---------- */

.calendar-row {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) 200px 12px;
	align-items: center;
	column-gap: 20px;
	padding: 22px 0;
	border-top: solid 1px #E8EAEE;
	color: #121212;
	text-decoration: none;
}

.calendar-row__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 50%;
	border: solid 1px #E8EAEE;
	background: #FFFFFF;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
}

.calendar-row__logo img {
	display: block;
	max-width: 74%;
	max-height: 74%;
	object-fit: contain;
}

.calendar-row__noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #0060FF;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	color: #FFFFFF;
}

.calendar-row__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.calendar-row__place {
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	text-transform: uppercase;
	color: #7C7C7C;
}

.calendar-row__tag {
	margin-right: 8px;
	color: #0060FF;
}

.calendar-row__title {
	margin: 6px 0 0 0;
	font-size: 20px;
	line-height: 1.15;
	font-weight: 800;
	text-transform: uppercase;
	overflow-wrap: anywhere;
	transition: color 0.3s ease;
}

.calendar-row__date {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

/* Число в коробке постоянной ширины: месяц и год во всех строках начинаются с одной вертикали */
.calendar-row__day {
	flex: 0 0 64px;
	font-size: 44px;
	line-height: 1;
	font-weight: 800;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.calendar-row__month {
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	text-transform: uppercase;
}

.calendar-row__year,
.calendar-row__until {
	font-weight: 400;
	text-transform: none;
	color: #7C7C7C;
}

.calendar-row__arrow {
	width: 10px;
	height: 10px;
	border-top: solid 2px #A4A5A8;
	border-right: solid 2px #A4A5A8;
	transform: rotate(45deg);
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.calendar-row:hover,
.calendar-row:hover * {
	text-decoration: none;
}

.calendar-row:hover .calendar-row__title {
	color: #0060FF;
}

.calendar-row:hover .calendar-row__logo {
	border-color: #0060FF;
}

.calendar-row:hover .calendar-row__arrow {
	border-color: #0060FF;
	transform: translateX(4px) rotate(45deg);
}

/* ---------- Страница события ---------- */

.calendar-event .top_img img {
	height: 80vh;
	min-height: 420px;
}

.calendar-event__past {
	margin: 0 0 30px 0;
	padding: 14px 18px;
	border-left: solid 3px #0060FF;
	background: #F3F4F4;
	font-size: 14px;
	line-height: 22px;
}

.calendar-event__past a,
.calendar-venue a {
	color: #0060FF;
}

.calendar-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 30px;
	margin: 0 0 48px 0;
}

.calendar-facts dt {
	margin: 0 0 6px 0;
	font-size: 12px;
	line-height: 12px;
	font-weight: 500;
	text-transform: uppercase;
	color: #7C7C7C;
}

.calendar-facts dd {
	margin: 0;
	font-size: 18px;
	line-height: 24px;
	font-weight: 500;
	color: #121212;
}

.calendar-event__lead {
	margin: 0 0 16px 0;
	font-size: 18px;
	line-height: 28px;
	color: #121212;
}

.calendar-venue__name {
	font-size: 22px;
	line-height: 1.2;
	font-weight: 800;
	text-transform: uppercase;
	color: #121212;
}

.calendar-venue__address {
	margin: 10px 0 0 0;
}

.calendar-venue__map {
	margin-left: 10px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.calendar-venue__text {
	margin: 16px 0 0 0;
}

.calendar-event__all {
	padding: 50px 20px 70px 20px;
	text-align: center;
}

/* ---------- Блок на главной ---------- */

.calendar-main {
	padding: 10px 0 80px 0;
}

.calendar-main .calendar-rows {
	margin: 0;
}

.calendar-main__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 20px 0;
}

.calendar-main__title {
	margin: 0;
	font-size: 16px;
	line-height: 16px;
	font-weight: 800;
	text-transform: uppercase;
	color: #121212;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
	.calendar-rows {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 768px) {
	.calendar-page {
		padding-bottom: 50px;
	}

	.calendar-page__title {
		margin-top: 24px;
		font-size: 34px;
	}

	.calendar-page__intro {
		font-size: 14px;
		line-height: 22px;
	}

	.calendar-filters {
		column-gap: 10px;
	}

	.calendar-filters__tags {
		width: 100%;
		gap: 10px 12px;
	}

	.calendar-filters__tags a {
		border-color: #E8EAEE;
	}

	.calendar-filters__select {
		width: calc(50% - 5px);
	}

	.calendar-rows {
		margin-top: 26px;
	}

	.calendar-row {
		grid-template-columns: 56px minmax(0, 1fr) 112px;
		column-gap: 12px;
		padding: 16px 0;
	}

	.calendar-row__logo {
		width: 56px;
		height: 56px;
	}

	.calendar-row__noimg {
		font-size: 10px;
	}

	.calendar-row__place {
		font-size: 11px;
		line-height: 14px;
	}

	.calendar-row__title {
		font-size: 15px;
	}

	.calendar-row__date {
		gap: 6px;
	}

	.calendar-row__day {
		flex-basis: 42px;
		font-size: 30px;
	}

	.calendar-row__month {
		font-size: 11px;
		line-height: 14px;
	}

	.calendar-row__until {
		display: none;
	}

	.calendar-row__arrow {
		display: none;
	}

	.calendar-empty {
		padding: 36px 20px;
	}

	.calendar-empty__title {
		font-size: 18px;
	}

	.calendar-event .top_img img {
		height: 70vh;
		min-height: 360px;
	}

	.calendar-facts {
		gap: 18px 20px;
		margin-bottom: 36px;
	}

	.calendar-facts dd {
		font-size: 16px;
		line-height: 22px;
	}

	.calendar-event__lead {
		font-size: 16px;
		line-height: 24px;
	}

	.calendar-main {
		padding-bottom: 50px;
	}

	.calendar-main .calendar-link::before {
		width: 24px;
	}
}
