html {
	font-size: 30px;
}
body {
	margin: 0;
	color: #333;
	font-family: 'Alegreya Sans', sans-serif;
	background: #f7f7f7;
	cursor: default;
}
@media only screen and (min-width: 680px) {
	body {
		background: -22px 20px fixed url(img/bg.svg);
	}
}
h2 {
	font-size: 24px !important;
	margin: 2em 0 0.8em;
}
h2:first-child,
h1 + h2 {
	margin-top: 0;
}
p,
ul,
ol {
	margin: 1em 0;
}
ul,
ol {
	padding-left: 2em;
}
.text-page > *:last-child {
	margin-bottom: 0;
}
li {
	padding-left: 0.5em;
	padding-bottom: 0.5em;
}
p + ul,
p + ol {
	margin-top: -8px;
}
h1 + ol {
	padding-left: 1em;
	margin-top: 0;
}
.page {
	max-width: 820px;
	margin: auto;
	padding-bottom: 1rem;
	background: #f7f7f7;
	box-sizing: border-box;
}
.page:not(.page--index ) {
	min-height: 100vh;
}
.page--index {
	max-width: 1060px;
	padding-bottom: 0;
	border-radius: 1rem;
}
.page--index header {
	padding: 40px 0 10px;
}
main h1,
article h1 {
	margin: 0 0 32px;
	color: orange;
	font-size: 32px;
	font-weight: 500;
	text-align: center;
	letter-spacing: 1px;
	text-shadow: 0 1px rgba(0,0,0,0.25);
	cursor: default;
}
header {
	padding: 30px 0 36px;
	text-align: center;
	user-select: none;
}
header h1 {
	margin: 0;
	font-size: unset;
}
header .title {
	color: orange;
	font-size: 50px;
	font-weight: 500;
	filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.3));
	text-decoration: none;
}
header .title::before,
header .title::after {
	content: '';
	background: center/contain no-repeat url("data:image/svg+xml,%3Csvg width='100' height='106' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m44.8 89.5 13.1 16C57.3 69 100 56.9 100 56.9c-52.4 7.3-55.2 32.6-55.2 32.6ZM58 .8l-13.2 16s2.8 25.3 55.2 32.7c0 0-42.7-12.2-42-48.7ZM22.1 42.6 0 53.2l22.1 10.5 52.6-10.5L22 42.6Z' fill='%23ffa500'/%3E%3C/svg%3E%0A");
	display: inline-block;
	width: 20px;
	height: 28px;
}
header .title::before {
	margin-right: 22px;
}
header .title::after {
	transform: rotate(180deg);
	margin-left: 21px;
}
header .description {
	margin-bottom: 8px;
	color: #888;
	font-size: 23px;
	line-height: 1;
	font-weight: 300;
	letter-spacing: 1px;
	text-shadow: 0 0 1px #bbb;
}
header .description span:not(:last-child)::after {
	content: ' – ';
	padding: 0 10px;
}

/* Навигация */
nav {
	user-select: none;
}
.page--index nav {
	padding: 1rem;
}
.page--index nav .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	border-radius: .5rem;
	overflow: hidden;
}
.page--index nav a {
	width: 200px;
	text-decoration: none;
}
.page--index nav .link_image {
	height: 200px;
	background: center / 100% no-repeat;
	transition: background-size 1.5s;
}
.page--index nav a:hover .link_image {
	background-size: 110%;
}
.page--index nav a[href*="painting"] .link_image {
	background-image: url(img/index/painting.jpg);
}
.page--index nav a[href*="grafika"] .link_image {
	background-image: url(img/index/grafika.jpg);
}
.page--index nav a[href*="chekanka"] .link_image {
	background-image: url(img/index/chekanka.jpg);
}
.page--index nav a[href*="vystavki"] .link_image {
	background-image: url(img/index/vystavki.jpg);
}
.page--index nav a[href*="articles"] .link_image {
	background-image: url(img/index/articles.jpg);
}
.page--index nav a[href*="meropriyatiya"] .link_image {
	background-image: url(img/index/meropriyatiya.jpg);
}
.page--index nav a[href*="smi"] .link_image {
	background-image: url(img/index/smi.jpg);
}
.page--index nav a[href*="nagrady"] .link_image {
	background-image: url(img/index/nagrady.jpg);
}
.page--index nav a[href*="obo-mne"] .link_image {
	background-image: url(img/index/obo-mne.jpg);
}
.page--index nav a[href*="contact"] .link_image {
	background-image: url(img/index/contacts.jpg);
}
@media only screen and (min-width: 861px) {
	.page--index nav a[href*="contact"] .link_image {
		border-right: 1px solid #ddd;
	}
}
.page--index nav a[href*="contact"]:hover .link_image {
	background-size: 110%;
}
.page--index nav .link_text {
	width: 100%;
	line-height: 50px;
	text-align: center;
	color: #555;
	font-size: 22px;
	letter-spacing: 1px;
	text-shadow: 0 0 0.5px #888;
	box-shadow: 0 1px 1px 0 #fff;
	background: radial-gradient(#fff, #a9a9a9);
	transition: color .5s .05s;
}
.page--index nav a:hover .link_text {
	color: #151515;
}

/* Menu */
.menu {
	display: flex;
	flex-wrap: wrap;
	padding: 16px;
	background: #e1e1e1;
	border-top: 1px solid #d6d6d6;
	border-bottom: 1px solid #d6d6d6;
}
.menu a {
	position: relative;
	color: #777;
	font-size: 25px;
	font-weight: 300;
	padding: 0 30px;
	line-height: 46px;
	text-align: center;
	text-decoration: none;
	text-shadow: 0 0 1px #bbb;
	white-space: nowrap;
	transition: all .2s;
}
@media only screen and (min-width: 801px) {
	.menu a {
		flex: 1 1;
	}
}
.menu a.active {
	color: #616161;
	font-weight: 500;
	pointer-events: none;
}
@media only screen and (min-width: 431px) {
	.menu a.active {
		font-size: 24px;
	}
}
.menu a::after {
	content: '';
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 14px;
	right: 14px;
	border-radius: 8px;
	background-color: rgba(0, 0, 0, .05);
	box-shadow: inset 0 0 0 1px #ccc;
	opacity: 0;
	transition: opacity .3s;
}
.menu a.current::after,
.menu a.active::after {
	opacity: 1;
}
@media only screen and (min-width: 1000px) {
	.menu a:hover::after {
		opacity: .7;
	}
	.menu a.current:hover {
		color: #555;
	}
	.menu a.current:hover::after {
		opacity: 1;
	}
}

/* Страница */
.text-page {
	padding: 30px 80px;
	cursor: auto;
}
.text-page p {
	text-align: justify;
}
.list--contacts,
.text-page :not(h1),
article > :not(h1):not(h2) {
	font-family: 'Nunito', sans-serif;
	font-size: 18px;	
}
.text-page a {
	text-decoration: none;
	border-bottom: 1px solid;
	transition: border-color .4s;
}
.text-page a,
.text-page a:active  {
	color: #007fff;
}
.text-page a:visited {
	color: #855cd6;
}
.text-page a:hover {
	border-color: transparent;
}

.page--smi .text-page {
	padding-left: 50px;
	padding-right: 50px;
}
@media only screen and (max-width: 720px) {
	.page--smi {
		padding-bottom: 0;
	}
	.page--smi .text-page {
		padding-left: 0;
		padding-right: 0;
		padding-bottom: 0;
	}
}
.video-container {
	max-width: 720px;
	height: 60vw;
	max-height: 540px;
	min-height: 240px;
	overflow: hidden;
}
img#anatoly-yakovlev {
	height: 252px;
	width: auto;
	float: right;
	margin: 24px 0 30px 40px;
	border-radius: 12px;
}
.gallery > *:not(.gallery_container) {
	padding: 0 32px;	
}
.gallery h2 {
	font-weight: 500;
	margin-bottom: 24px;
}
.page--vystavki article + article {
	margin-top: 60px;
}
.page--vystavki h2 strong {
	display: block;
	margin-top: 10px;
	font-size: 18px;
}
.page--vystavki h2 {
	font-size: 20px !important;
	font-family: 'Nunito', sans-serif;
}
.page--vystavki h2 .nazvanie {
	display: block;
	margin: 8px 0;
	font-weight: 600;
}
.page--vystavki h2 .months,
.page--vystavki h2 .place {
	display: inline-block;
	font-size: 17px;
}
.page--vystavki h2.vystavka_belebey-2025 .place {
	max-width: 37em;
}

/* Публикация */
article h1 {
	font-size: 34px;
	margin: 1em 0;
	text-align: left;
}
article h3 {
	font-size: 20px !important;
}
article h3.books-list {
	margin: 7em 0 0;
	text-align: center;
}
article h3 + p {
	margin-top: 10px;
}
article address {
	margin-top: 50px;
}
article address .author {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 8px;
}
@media only screen and (min-width: 600px) {
	article .address-container {
		display: flex;
		justify-content: end;
	}
}
article .break-all {
	word-break: break-all;
}
ol#articles-list li {
	padding-bottom: 1em;
}

/* ТАБЛИЦА - Технологическая карта на изготовление ковша */
table#tehnologicheskaya-karta-kovsh {
	border-collapse: collapse;
}
table#tehnologicheskaya-karta-kovsh th {
	text-align: center;
}
table#tehnologicheskaya-karta-kovsh th:first-child {
	width: 48%;
}
table#tehnologicheskaya-karta-kovsh td {
	text-align: left;
	vertical-align: top;
}
table#tehnologicheskaya-karta-kovsh tr > * {
	padding: 10px 16px;
	border: 1px solid currentColor;
}

/* Контакты */
.page--contact main {
	padding: 0 80px;
}
.page--contact h1 {
	text-align: left;
}
.list--contacts {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: 6px;
	font-style: normal;
}
.list--contacts a.dimmed {
	opacity: 0.3;
}
.list--contacts a {
	position: relative;
	display: inline-block;
	padding: 9px 13px;
	padding-left: 41px;
	margin-bottom: 24px;
	box-shadow: 0 0 0 1px #ddd;
	border-radius: 12px;
	background: #f5f5f5 left center no-repeat;
	text-decoration: none;
	color: inherit;
	transition: opacity 1s;
}
.list--contacts a.email::before {
	font-size: 22px;
	content: '✉';
	color: #555;
	position: absolute;
	top: 5px;
	left: 11px;
}
.list--contacts a.tel::before {
	font-size: 16px;
	content: '📞';
	position: absolute;
	top: 9px;
	left: 12px;
}
.list--contacts a.tg {
	background-image: url(https://upload.wikimedia.org/wikipedia/commons/8/83/Telegram_2019_Logo.svg);
	background-size: 18px;
	background-position-x: 13px;
}
.list--contacts a.wa {
	background-image: url(https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg);
	background-size: 23px;
	background-position-x: 11px;
	}

/* Галерея */
.gallery_container {
	display: flex;
	flex-wrap: wrap;
}
@media only screen and (min-width: 801px) {
	.gallery_container {
		width: 784px;
		margin: auto;
	}
}
.gallery_container figure {
	width: 180px;
	margin: 8px;
	line-height: 0;
	user-select: none;
	color: #eee;
	position: relative;
}
.gallery_container figcaption {
	position: absolute;
	top: 20px;
	z-index: -1;
}
.gallery_container .img-thumbnail {
	object-fit: cover;
	width: 180px;
	height: 180px;
	box-shadow: 0 0 0px 0.5px #888;
}
@media only screen and (min-device-width : 1025px) {
	.gallery_container figure a::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		filter: drop-shadow(0 0 2px black);
		opacity: 0;
		transition: opacity .7s;
		background: center/50px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' viewBox='0 0 32 32'%3E%3Ccircle cx='14' cy='14' r='9' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='2'/%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='10' stroke-width='2' d='m27 27-6.634-6.634M14 10v8m-4-4h8'/%3E%3C/svg%3E");
	}
	.gallery_container figure a:hover::after {
		opacity: 0.7;
	}
}

/* Мероприятия */
.gallery.wide-img .gallery_container {
	width: 768px;
}
.gallery.wide-img .img-thumbnail,
.gallery.wide-img figure {
	width: 240px;
}

/* PhotoSwipe Lightbox */
.pswp__img {
	cursor: pointer !important;
}
.pswp__button--close,
.pswp--has_mouse .pswp__button--arrow {
  opacity: .7 !important;
}
.pswp__custom-caption {
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	text-align: center;
	color: #ddd;
	padding: 5px 0;
	font-size: 26px;
}


/* АДАПТИВность */
@media only screen and (max-width: 1076px) {
	.page--index {
		max-width: 860px;
		min-height: 100vh;
		border-radius: 0;
	}
	.page--index nav {
		width: 800px;
	}
	.page--index header {
		padding-bottom: 24px;
	}
}
@media only screen and (max-width: 1076px) and (min-width: 649px) {
	.page--index nav .wrap {
		box-shadow: none;
	}
}
@media only screen and (max-width: 860px) {
	html {
		font-size: 24px;
	}
	.page--index {
		max-width: 648px;
	}
	.page--index header {
		padding-top: 24px;
	}
	.page--index nav {
		width: 600px;
	}
}
@media only screen and (max-width: 800px) {
	.gallery:not(.wide-img) {
		width: 588px;
		margin: auto;
	}
	.gallery.wide-img .gallery_container {
		width: 512px;
	}
	.gallery.wide-img > *:not(.gallery_container) {
		padding: 0 4vw;
	}
	.menu {
		justify-content: space-between;
	}
	.menu a {
		padding: 0 14px;
	}
	.menu a::after {
		left: 0;
		right: 0;
	}
	.text-page {
		padding-left: 6vw;
		padding-right: 6vw;
	}
}
@media only screen and (max-width: 768px) {
	.gallery.wide-img .gallery_container.meropriyatiya {
		margin: auto;
	}
}
@media only screen and (max-height: 750px) {
	.page--index {
		min-height: 100vh;
		border-radius: 0;
	}
	.page--index header {
		padding-bottom: 24px;
	}
}
@media only screen and (min-height: 750px) and (min-width: 1077px) {
	.page--index {
		margin-top: calc((100vh - 750px)/2);
	}
}
@media only screen and (max-width: 648px) {
	html {
		font-size: 16px;
	}
	.page--index nav {
		width: 400px;
		margin: auto;
		padding: 30px 0;
	}
	.page--index nav .wrap {
		border-radius: .75rem;
	}
	.menu {
		justify-content: space-evenly;
	}
	.menu a {
		padding: 0 10px;
	}
	.pswp__custom-caption {
		font-size: 24px;
	}
}
@media only screen and (max-width: 600px) {
	.menu {
		padding: 8px 0;
	}
	.gallery:not(.wide-img) {
		width: 392px;
	}
}
@media only screen and (max-width: 545px) {
	img#anatoly-yakovlev {
		float: none;
		margin: 0 auto;
		display: block;
	}
}
@media only screen and (min-width: 535px) {
	.page--vystavki h2 {
		padding: 0 8px;
	}
}
@media only screen and (max-width: 534px) {
	.gallery.wide-img .gallery_container {
		width: 256px;
		margin: auto;
	}
}
@media only screen and (min-width: 491px) {
	main {
		padding-top: 60px !important;
	}
}
@media only screen and (max-width: 490px) {
	header {
		padding: 24px 0;
	}
	header .title::before,
	header .title::after {
		display: none;
	}
	.menu {
		margin: 16px 0;
	}
	.page--contact main {
		padding: 32px 60px;
	}
	.page--index nav {
		padding-top: 10px;
	}
	.page--index nav .link_text {
		font-size: 24px;
	}
	.page--text h2 {
		margin-bottom: 24px;
	}
	.page--text ul {
		padding-left: 18px;
	}
	.gallery {
		padding-top: 30px !important;
	}
	.gallery h1 {
		margin-bottom: 16px;
	}
	.pswp__button--arrow {
		visibility: hidden !important;
	}
}
@media only screen and (max-width: 430px) {
	header .title {
		font-size: 42px;
	}
	header .description {
		font-size: 20px;
	}
	header .description span:not(:last-child)::after {
		padding: 0 6px;
	}
	.page--index nav {
		width: auto;
		padding: 0;
	}
	.page--index nav .wrap {
		border-radius: 0;
		box-shadow: none;
	}
	.menu a {
		font-size: 23px;
	}
	.text-page {
		padding-left: 4.5vw;
		padding-right: 4.5vw;
	}
	.text-page h1 {
		font-size: 30px;
		margin-bottom: 20px;
	}
	.text-page h2 {
		margin: 30px 0 16px;
	}
	article h1 {
		text-align: center;
		margin-top: 0.5em;
	}
	.text-page ol {
		text-align: left;
	}
}
@media only screen and (max-width: 400px) {
	.menu {
		justify-content: center;
	}
	.page--index nav a {
		width: 50vw;
	}
	.page--index nav .link_image {
		height: 50vw;
	}
	.gallery:not(.wide-img) {
		max-width: 240px;
	}
	.gallery_container {
		width: 204px;
		margin: auto;
	}
	.gallery figure {
		margin: 12px;
	}
	.gallery:not(.wide-img) > h2 {
		padding: 0 16px;
		margin: 0 -14vw 24px;
	}
}
@media only screen and (max-width: 374px) {
	.menu a {
		font-size: 22px;
	}
}
@media only screen and (max-width: 360px) {
	.menu a {
		padding: 0 8px;
	}
}
@media only screen and (max-width: 359px) {
	header .title {
		font-size: 40px;
	}
	header .description span:not(:last-child)::after {
		padding: 0 3px;
	}
}
