#masthead,
#masthead .inner-wrap,
#colophon,
#colophon .inner-wrap {
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	max-width: none;
	width: auto;
}
#masthead { position: sticky; top: 0; z-index: 90; }
#masthead::after, #colophon::after { content: none; }

.rdh {
	background: #FFFFFF;
	border-bottom: 1px solid #EAE2D8;
	font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.rdh-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 9px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}
.rdh-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	color: #26211D;
	flex: none;
}
.rdh-brand:hover { color: #26211D; }
.rdh-logo { flex: none; }
.rdh-name { font-family: Lora, Georgia, serif; font-size: 20px; font-weight: 700; line-height: 1; }
.rdh-sub {
	font-size: 11px;
	color: #75695F;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-left: 1px solid #EAE2D8;
	padding-left: 12px;
	line-height: 1.2;
}
.rdh-nav { display: flex; align-items: center; gap: 16px; }
.rdh-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; flex: none; margin-left: auto; }
.rdh-actions > * { flex: none; }

.rdh-actions { height: 44px; }
.rdh-inner { min-height: 44px; align-items: center; }
.rdh-nav { margin-left: 0; }
.rdh-menu {
	display: flex;
	align-items: center;
	gap: 15px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.rdh-menu li { position: relative; margin: 0; }
.rdh-menu a {
	font-size: 14px;
	font-weight: 600;
	color: #75695F;
	text-decoration: none;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	display: block;
}
.rdh-menu a:hover { color: #26211D; }
.rdh-menu .current-menu-item > a,
.rdh-menu .current_page_item > a,
.rdh-menu .current-menu-ancestor > a { color: #8E2F4A; border-bottom-color: #8E2F4A; }

.rdh-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -14px;
	min-width: 210px;
	background: #FFFFFF;
	border: 1px solid #EAE2D8;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(94, 62, 45, .1);
	padding: 8px 0;
	margin-top: 10px;
	list-style: none;
	display: none;
	z-index: 5;
}
.rdh-menu li:hover > .sub-menu, .rdh-menu li:focus-within > .sub-menu { display: block; }

.rdh-menu > .menu-item-has-children::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 12px;
}
.rdh-menu .sub-menu a { padding: 7px 16px; border: 0; white-space: normal; }
.rdh-menu .sub-menu a:hover { background: #FAF7F1; color: #8E2F4A; }

.rdh-cta {
	background: #8E2F4A;
	color: #FFFFFF !important;
	font-weight: 800;
	font-size: 14px;
	padding: 9px 18px;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	min-height: 39px;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 6px 16px rgba(142, 47, 74, .22);
}
.rdh-cta:hover { background: #7A2740; }

.rdh-burger {
	display: none;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
	flex-direction: column;
	gap: 4px;
	min-height: 44px;
	min-width: 44px;
	align-items: center;
	justify-content: center;
}
.rdh-burger span { display: block; width: 20px; height: 2px; background: #26211D; border-radius: 2px; }

@media (max-width: 1360px) { .rdh-menu { gap: 12px; } .rdh-menu a { font-size: 13.5px; } .rdh-nav { gap: 13px; } }
@media (max-width: 1300px) { .rdh-sub { display: none; } }
@media (max-width: 1240px) {
	.rdh-burger { display: flex; }
	.rdh-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: #FFFFFF;
		border-bottom: 1px solid #EAE2D8;
		box-shadow: 0 12px 24px rgba(94, 62, 45, .1);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 24px 16px;
	}
	.rdh-nav.is-open { display: flex; }
	.rdh { position: relative; }
	.rdh-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.rdh-menu > li > a { padding: 12px 0; border-bottom: 1px solid #F2ECE3; }
	
	.rdh-menu .sub-menu { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 6px 14px; margin: 0; min-width: 0; }
	.rdh-menu .menu-item-has-children.is-open > .sub-menu { display: block; }
	.rdh-menu > .menu-item-has-children::after { content: none; }
	.rdh-menu .menu-item-has-children > a::after { content: ' ▾'; font-size: 11px; color: #75695F; }
	.rdh-menu .menu-item-has-children.is-open > a::after { content: ' ▴'; }
	
	.rdh-burger { display: flex; }
	.rdh-cta { font-size: 13px; padding: 9px 14px; }
}
@media (max-width: 560px) {
	.rdh-inner { padding: 8px 14px; gap: 10px; }
	.rdh-cta { font-size: 12.5px; padding: 8px 12px; }
	.rdh-name { font-size: 18px; }
}

.rdf {
	background: #26211D;
	color: #E9E1D7;
	font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 13.5px;
	line-height: 1.6;
}
.rdf-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 34px 24px 22px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr 0.9fr;
	gap: 30px;
}
@media (max-width: 1200px) { .rdf-inner { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) { .rdf-inner { grid-template-columns: 1fr; gap: 22px; } }
.rdf-title {
	font-family: Lora, Georgia, serif;
	font-size: 19px;
	font-weight: 700;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 10px;
}
.rdf-title .rdh-logo path { stroke: #E9A8BC; }
.rdf-title .rdh-logo ellipse:first-of-type { fill: #E9A8BC; }
.rdf p { margin: 0 0 8px; color: #BEB3A6; max-width: 46ch; }
.rdf-mail a { color: #F0D7DF; }
.rdf-col b { display: block; color: #FFFFFF; margin-bottom: 10px; font-size: 14px; }
.rdf-col ul { list-style: none; margin: 0; padding: 0; }
.rdf-col li { margin-bottom: 7px; }
.rdf a { color: #E9E1D7; text-decoration: none; border-bottom: 1px solid rgba(233, 225, 215, .3); }
.rdf a:hover { color: #FFFFFF; border-bottom-color: #C99227; }
.rdf-bottom {
	max-width: 1240px;
	margin: 0 auto;
	padding: 14px 24px 30px;
	border-top: 1px solid rgba(233, 225, 215, .14);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
	font-size: 12.5px;
	color: #A3988B;
}

.rd-up {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 40;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #EAE2D8;
	background: #FFFFFF;
	color: #8E2F4A;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(94, 62, 45, .16);
}
.rd-up:hover { border-color: #8E2F4A }
.rd-up[hidden] { display: none }
@media (max-width: 1000px) { .rd-up { bottom: 84px } }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: #8E2F4A;
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 10px 0;
	font: 700 14px Manrope, system-ui, sans-serif;
	text-decoration: none;
}
.skip-link:focus { left: 0 }

.rd .visit {
	margin: 16px 0 0;
	padding: 14px 18px 15px 17px;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--brand);
	border-radius: 4px 16px 16px 4px;
}
.rd .visit > *:last-child { margin-bottom: 0 }

.rd .visit-t {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brand);
	border: 1px solid var(--brand);
	border-radius: 999px;
	padding: 4px 11px;
	margin: 0 0 10px;
	line-height: 1.2;
}
.rd .visit-t::before { content: 'Редакция была здесь' }

.rd .visit-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--muted);
	margin: 0 0 10px;
}
.rd .visit-meta time { color: var(--ink); font-weight: 700 }
.rd .visit-meta a { color: var(--brand); font-weight: 700 }

.rd .visit-sep { color: var(--line2) }
.rd .visit-teacher::before { content: 'занятие вёл педагог: ' }

.rd .visit-notes {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: #4E463F;
}
.rd .visit-notes li { position: relative; margin: 0 0 6px; padding-left: 17px }
.rd .visit-notes li:last-child { margin-bottom: 0 }
.rd .visit-notes li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--brand);
	opacity: .5;
}

.rd .visit-minus {
	font-size: 13px;
	line-height: 1.55;
	color: var(--alert-ink);
	background: var(--alert-tint);
	border-radius: 10px;
	padding: 9px 12px;
	margin: 0 0 10px;
}
.rd .visit-minus-t { color: var(--ink); font-weight: 800 }
.rd .visit-minus-t::before { content: 'Минус с визита: ' }

.rd .visit-photos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 10px;
	margin: 0;
}
.rd .visit-photos figure {
	margin: 0;
	border: 1px solid var(--rule);
	border-radius: 12px;
	overflow: hidden;
	background: var(--surface);
}
.rd .visit-photos img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.rd .visit-photos figcaption {
	font-size: 11.5px;
	line-height: 1.35;
	color: var(--muted);
	padding: 7px 10px 8px;
}
@media (max-width: 560px) {
	.rd .visit { padding: 12px 14px 13px 13px }
	.rd .visit-photos { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)) }
}
