/* fonts */

@font-face {
	font-family: 'Tesseract Light';
	src: url('../fonts/Tesseract-Light-Web.woff2') format('woff2'), url('../fonts/Tesseract-Light-Web.woff') format('woff'), url('../fonts/Tesseract-Light-Web.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Stratos ExtraLight';
	src: url('../fonts/Stratos-ExtraLight-Web.woff2') format('woff2'), url('../fonts/Stratos-ExtraLight-Web.woff') format('woff'), url('../fonts/Stratos-ExtraLight-Web.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'Stratos';
	src: url('../fonts/Stratos-Regular-Web.woff2') format('woff2'), url('../fonts/Stratos-Regular-Web.woff') format('woff'), url('../fonts/Stratos-Regular-Web.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'Stratos Medium';
	src: url('../fonts/Stratos-Medium-Web.woff2') format('woff2'), url('../fonts/Stratos-Medium-Web.woff') format('woff'), url('../fonts/Stratos-Medium-Web.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

/* base */

body {
	background-color: #eee;
	font-family: 'Stratos';
	font-optical-sizing: auto;
	font-style: normal;
}

h1.page-title,
h2.other-title {
	font-size: 44px;
    line-height: 44px;
    font-weight: 500;
}

.text-formatted a {
	color: inherit;
}

.caption > * {
    height: auto;
}

/* header */

.site-header {
	padding: 50px 50px 20px 50px;
}

@media only screen and (max-width: 980px) {
	.site-header {
		padding: 50px 20px 20px 20px;
	}
}

@media only screen and (max-width: 600px) {
	.site-header {
		padding: 20px;
	}
}

.site-header .header-logo {
	display: block;
	max-width: 1179px;
	width: 100%;
	margin: 0 auto;
}

.site-header .header-logo img {
	width: 100%;
}

.site-header .header-logo .desktop {
	display: block;
}

.site-header .header-logo .mobile {
	display: none;
}

.site-header .header-logo .subtitle {
	margin-top: 12px;
}

.footer-logo .subtitle {
	display: block;
	margin-top: 12px;
}

@media only screen and (max-width: 600px) {
	.site-header .header-logo .desktop {
		display: none;
	}
	.site-header .header-logo .mobile {
		display: block;
	}
}

/* main mneu */ 

.menu--main {
	border-top: 1px solid #343434;
	border-bottom: 1px solid #343434;
	padding: 20px 50px;
}

.menu--main ul.menu {
	max-width: 1179px;
	margin: 0 auto;
}

.menu--main ul.menu li {
	display: inline-block;
    margin: 0;
    padding: 0;
}

.menu--main ul.menu li a {
	font-size: 16px;
	font-weight: normal;
	line-height: 16px;
	color: #343434;
	border: solid 1px #343434;
	padding: 8px;
	margin-right: 8px;
	display: inline-block;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.menu--main ul.menu li a:hover {
	opacity: 0.55;
}

.menu--main ul.menu li a.is-active:after,
.menu--main ul.menu li.menu-item--active-trail a:after,
.bundle-article .menu--main ul.menu a[href="/longreads"]:after {
	/*content: url(X.svg);*/
	content: url(main-menu-active.svg);
	width: 15px;
	height: 15px;
	display: inline-block;
	margin-left: 7px;
	margin-top: -2px;
	vertical-align: middle;
}

.menu--main ul.menu li.menu-item--active-trail a:after

@media only screen and (max-width: 600px) {
	.menu--main ul.menu li a {
		margin-bottom: 8px;
	}
	.menu--main {
		padding: 20px 20px 14px 20px;
	}
}

.menu--main ul.menu li a[href="/about"] {
	border: solid 1px #eee;
}

.menu--main ul.menu li a[href="/about"]:after {
	display: none;
	content: '';
}
@media only screen and (min-width: 980px) {
	.menu--main ul.menu li:last-child {
		float: right;
	}
}

/* burger menu */

.burger-btn {
	width: 24px;
	line-height: 24px;
	border: solid 1px #000;
	cursor: pointer;
	position: fixed;
	z-index: 3;
	top: 12px;
	right: 12px;
	padding: 8px;
	display: block;
}

@media only screen and (min-width: 980px) {
	.burger-btn {
		display: none;
	}
}

.burger-btn.is-active {
	border: solid 0px #eee;
	padding: 9px;
}

.burger-btn img.list {
	display: block;
}

.burger-btn img.close {
	display: none;
}

.burger-btn.is-active img.list {
	display: none;
}

.burger-btn.is-active img.close {
	display: block;
}

.burger-btn:hover {
	cursor: pointer;
}

.navigation-opened {
	overflow: hidden;
}

@media only screen and (max-width: 980px) {
	.menu--main {
		display: none;
	}

	.navigation-opened .menu--main {
		display: block;
		border-top: 1px solid #343434;
    	border-bottom: 1px solid #343434;
    	position: fixed;
    	z-index: 2;
    	background-color: #eee;
    	top: 0;
    	left: 0;
    	right: 0;
    	bottom: 0;
    	padding-top: 100px;
	}

	.menu--main ul.menu {
		text-align: center;
	}

	.menu--main ul.menu li {
		display: block;
	}

	.menu--main ul.menu li a {
		width: 124px;
		text-align: center;
		height: 50px;
		padding-top: 17px;
		padding-bottom: 17px;
		line-height: 16px;
		height: 16px;
		margin: 0 auto;
		margin-bottom: 8px;
	}

	.menu--main ul.menu li a[href="/about"] {
		margin-left: 0;
		margin-top: 35px;
	}

	.menu--main ul.menu li a.is-active:after, 
	.menu--main ul.menu li.menu-item--active-trail a:after {
		display: none;
	}

	.menu--main ul.menu li a.is-active {
		font-weight: bold;
	}
}

/* main-menu stycky */
@media only screen and (min-width: 980px) {
	.menu--main.sticky {
		position: fixed;
	    right: 0;
	    left: 0;
	    background-color: #eee;
	    z-index: 2;
	    top: 0;
	}
}


/* layout */

main {
	min-height: 300px;
}

html main {
	margin: 0 auto;
}

html.bundle-front main {
	max-width: 1280px;	
}

html.bundle-book main {
	max-width: 924px;
}

html.pagetype-text main,
html.pagetype-news main {
	max-width: 778px;
}

html.pagetype-interview main,
html.pagetype-longreads main,
html.pagetype-review main,
html.pagetype-events main,
html.pagetype-books main,
html.pagetype-video main,
html.bundle-video main,
html.pagetype-user main {
	max-width: 1180px;
}

html.pagetype-text main .view-content,
html.pagetype-news main .view-content {
	margin-top: 24px;
}

html.pagetype-text main .view-content .views-row,
html.pagetype-news main .view-content .views-row {
	margin-bottom: 24px;
}

/* unpublished */

.node--unpublished {
	background-color: inherit !important;
	border-top: solid 1px red;
}

.node--unpublished:before {
	content: 'unpublish';
	display: inline-block;
	color: red;
	padding-top: 10px;
	padding-bottom: 10px;
}

/* page-title */

.block-page-title-block {
	max-width: 1179px;
	margin: 0 auto;
	padding: 20px 50px;
}

@media only screen and (max-width: 980px) {
	.block-page-title-block {
		padding: 20px 0;
	}
}

@media only screen and (max-width: 600px) {
	.block-page-title-block {
		padding: 0;
	}
}


/* footer */

footer {
	border-top: 1px solid rgba(52, 52, 52, 0.1);
}

.footer-wrap {
	max-width: 1179px;
	margin: 0 auto;
	padding: 32px 50px;
}

.footer-logo {
	margin-bottom: 32px;
	display: block;
}

@media only screen and (min-width: 600px) {
	.footer-wrap {
		display: flex;
	    justify-content: space-between;
	}
	.footer-links {
		display: flex;
	    justify-content: space-between;
	    width: 350px;
	}
	.footer-logo {
		padding-right: 50px;
	}
}

@media only screen and (max-width: 980px) {
	.footer-wrap {
		padding: 32px 20px;
	}
}

@media only screen and (max-width: 600px) {
	.footer-wrap {
		padding: 20px;
	}
	.footer-logo img {
		width: 100%;
	}
}

.footer-links a {
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	text-decoration: none;
	color: #343434;
	display: block;
    margin-bottom: 15px;
}

.footer-links a:hover {
	text-decoration: underline;
}

/* system */

.block-local-tasks-block {
	background-color: rgba(52, 52, 52, 0.4);
}
 
.block-local-tasks-block .tabs {	
	max-width: 1179px;
	margin: 0 auto;
	padding: 5px 0px;
}
.block-local-tasks-block .tabs a {
	color: #343434;
}

/* images */

.field--name-field-image img,
.field--name-field-cover img {
	max-width: 100%;
}




/* front page - layout */

.first-line-materials {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 50px 30px 50px;
}

.pinned-materials {
	border: solid 1px rgba(0, 0, 0, 1);
	padding: 24px;
}
/*
.other-materials {
	max-width: 1280px;
	margin: 0 auto;
	padding: 30px 50px;
}
*/
.other-materials {
	max-width: 1260px;
	margin: 0 auto;
	padding: 30px 0px;
}

@media only screen and (min-width: 600px) {
	.first-line-materials,
	.pinned-materials,
	.other-materials {
		display: flex;
	}

	.other-materials {
		display: flex;
		flex-wrap: wrap;
	}
}

.first-line-materials .teaser-wrap {
	margin-right: 24px;
}

.first-line-materials .teaser-wrap:last-child {
	margin-right: 0;
}

/* front page - news block */

.block-views-blocknews-to-front-block-1 {
	margin: 30px 27px;
	border: solid 1px #000;
	position: relative;
}

.block-views-blocknews-to-front-block-1 h2 {
	color: #343434;
	font-family: Stratos;
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	padding: 8px 10px;
	border:solid 1px #343434;
	margin-left: 24px;
	margin-right: 24px;
	background-color: #eee;
	width: 64px;
    margin: 0 auto;
    display: block;
    margin-top: -18px;
}
.block-views-blocknews-to-front-block-1 h2:before,
.block-views-blocknews-to-front-block-1 h2:after {
	content: '';
    display: block;
    width: 24px;
    height: 16px;
    background-color: #eee;
    position: absolute;
    top: -10px;
}

.block-views-blocknews-to-front-block-1 h2:before {
	margin-left: -35px;
}

.block-views-blocknews-to-front-block-1 h2:after {
	margin-left: 75px;
}

.block-views-blocknews-to-front-block-1 .view-content {
	padding: 24px;
	display: flex;
}

.block-views-blocknews-to-front-block-1 .view-content .views-row {
	border: solid 1px #3434341A;
	padding: 24px;
	max-width: 328px;
	border-radius: 4px;
    margin-right: 20px;
    flex: none;
}

.block-views-blocknews-to-front-block-1 .view-content .views-row .views-field-field-date-time {
	font-family: Stratos;
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	text-align: right;
	color: #3434348C;
	padding-bottom: 16px;
}

.block-views-blocknews-to-front-block-1 .view-content .views-row .views-field-title {
	font-family: Stratos;
	font-size: 24px;
	font-weight: 500;
	line-height: 26.4px;
	letter-spacing: -0.02em;
	text-align: left;
}

.block-views-blocknews-to-front-block-1 .view-content .views-row .views-field-title a {
	color: #343434;
	text-decoration: none;
}

.block-views-blocknews-to-front-block-1 .view-content .views-row .views-field-title a:hover {
	/*text-decoration: underline;*/
	/*border-bottom: solid 1px;*/
}

/* type-and-date-wrap */

.type-and-date-wrap {
	margin-top: 50px;
	margin-bottom: 35px;
}

.type-and-date-wrap > span,
.type-wrap .type-is {
	border: 1px solid #343434;
	font-family: Stratos;
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	text-align: left;
	padding: 8px 11px;
	display: inline-block;
}

.type-wrap {
	text-align: center;
}

.type-and-date-wrap > div {
	float: right;
	color: rgba(52, 52, 52, 0.55);
}

.type-and-date-wrap:after {
	clear: both;
	display: block;
	content: '';
}

.date-is,
.type-and-date-wrap > div {
	padding-top: 8px;
}

/* location */

.type-and-location-wrap {
	margin: 0 auto;
    max-width: 1180px;
    padding-top: 50px;
    padding-bottom: 35px;
}

.type-and-location-wrap > span {
	border: 1px solid #343434;
	font-family: Stratos;
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	text-align: left;
	padding: 8px 11px;
	display: inline-block;
}

.type-and-location-wrap > div {
	float: right;
	color: rgba(52, 52, 52, 0.55);
}

.bundle-event .type-and-location-wrap > div {
	color: inherit;
}

.type-and-location-wrap:after {
	clear: both;
	display: block;
	content: '';
}

.type-and-location-wrap .location {
	padding: 8px 0;
    margin-top: 1px;
}

/* base typography styles */

.field--name-field-img-desc {
	margin-bottom: 35px;
	color: rgba(52, 52, 52, 0.55);
}

.base-wrap {
	max-width: 924px;
	margin: 0 auto;
}

.base-wrap:after {
	clear: both;
	display: block;
	content: '';
}

.base-wrap h1 {
	margin-bottom: 35px;
	margin-top: 0;
	font-family: Stratos;
	font-size: 74px;
	font-weight: 500;
	line-height: 65px;
	letter-spacing: -0.02em;
}

.base-text {
	max-width: 700px;
}

@media only screen and (min-width: 990px) {
	.base-text {
		float: right;
	}
}

.base-text,
.base-text p,
.base-text li,
.base-text td {
	font-size: 20px;
	font-weight: 400;
	line-height: 28px;
}

.text-formatted p {
	margin-bottom: 20px;
}

.text-formatted p.inset {
	font-size: 32px;
	line-height: 35px;
	font-weight: 300;
	border-top: solid 1px #343434;
	border-bottom: solid 1px #343434;
	margin: 20px 0;
	padding: 20px 0;
}

.text-formatted p.lead {
	font-size: 32px;
	font-weight: 500;
	line-height: 38.4px;
}

.text-formatted blockquote {
	padding: 20px 0 !important;
	font-family: 'Tesseract Light';
	font-size: 22px;
	font-weight: 300;
	line-height: 32px;
	font-style: normal;
	color: #343434;
	margin-left: 0;
}

.text-formatted blockquote:before {
	display: inline-block;
	content: '«';
	font-family: 'Tesseract Light';
	font-size: 74px;
	font-weight: 400;
	line-height: 59px;
	text-align: left;
	color: #3434341A;
	position: inherit;
	background-color: inherit;
}

.field--name-field-subtitle {
	font-size: 42px;
	font-weight: 500;
	line-height: 38.4px;
}

html.bundle-review .field--name-field-subtitle {
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	max-width: 400px;
}

/* cover-and-title */

.cover-and-title {
	display: flex;
}

.cover-and-title .field--name-field-cover img {
	margin-right: 32px;
}

.cover-and-title .title-author .field--name-field-header {
	font-family: 'Tesseract Light';
	font-size: 74px;
	font-weight: 300;
	line-height: 65px;
	letter-spacing: -0.02em;
	margin-bottom: 48px;
}

.cover-and-title .title-author .field--name-field-author-text {
	font-family: 'Tesseract Light';
	font-size: 32px;
	font-weight: 500;
	line-height: 38.4px;
}

.cover-and-desc {
	margin-right: 32px;
}
.cover-and-desc img {
	margin-bottom: 24px;
}

.cover-and-title h1 {
	max-width: 700px;
	width: 100%;
	flex: none;
}

.bundle-review h1 {
	max-width: 700px;
	width: 100%;
}

@media only screen and (min-width: 990px) {

	.bundle-review h1 {
		float: right;
	}

	.bundle-review .cover-and-title {
		display: block;
	    float: left;
	    width: 220px;
	    margin-right: 0;
	    padding-right: 0;
	}
}

.bundle-review .cover-and-desc {

}


/* teaser */

.view-wrap,
.view-teaser {
	border: solid 1px rgba(52, 52, 52, 0.1);
	padding: 24px;
	border-radius: 4px;
}

.view-wrap .type-and-date-wrap,
.view-teaser .type-and-date-wrap {
	margin-top: 0;
	margin-bottom: 16px;
}

/* teaser -- text */

.first-line-materials .view-teaser-type-text {
	max-width: 62%;
}

html.pagetype-node .view-teaser-type-text,
html.pagetype-node .view-teaser-type-video {
	width: 731px;
	flex: none;
}

.view-teaser .text-fragment {
	font-family: 'Tesseract Light';
	font-size: 44px;
	font-weight: 300;
	line-height: 44px;
	margin-bottom: 24px;
}

.view-teaser .text-fragment a {
	color: rgba(52, 52, 52, 1);
	text-decoration: none;
}

.view-teaser .text-fragment a:hover {
	/*text-decoration: underline;*/
	/*border-bottom: solid 1px;*/
}

.view-teaser.view-teaser-type-text .text-header,
.view-teaser.view-teaser-type-text .text-author {
	font-family: Stratos;
	font-size: 16px;
	font-weight: 400;
	line-height: 19.2px;
	color: rgba(52, 52, 52, 0.55);
}

/* teaser -- news */

.view-teaser.view-teaser-type-news .cover-and-title h2 {
	margin: 0;
	font-family: Stratos;
	font-size: 44px;
	font-weight: 500;
	line-height: 44px;
	letter-spacing: -0.02em;
}

.view-teaser.view-teaser-type-news .cover-and-title h2 a {
	color: rgba(52, 52, 52, 1);
	text-decoration: none;
}

.view-teaser.view-teaser-type-news .cover-and-title h2 a:hover {
	/* border-bottom: solid 1px; */
}

.view-teaser.view-teaser-type-news .cover-and-title .field--name-field-image { flex:none; }

.view-teaser.view-teaser-type-news .cover-and-title img {
	margin-right: 24px;
}

/* teaser -- books */

.view-teaser-type-book {
	width: 328px;
}

.book-details-wrap .cover {
	margin-bottom: 16px;
}

.book-details-wrap .cover img {
	display: block;
	margin: 0 auto;
}

.book-details-wrap .name {
	margin-bottom: 8px;
	text-align: center;
}

.book-details-wrap .name a {
	font-size: 24px;
	font-weight: 500;
	line-height: 26.4px;
	letter-spacing: -0.02em;
	color: rgba(52, 52, 52, 1);
	text-decoration: none;
}

.book-details-wrap .name a:hover {
	border-bottom: solid 1px;
}

.book-details-wrap .author,
.book-details-wrap .translator {
	font-size: 16px;
	font-weight: 400;
	line-height: 19.2px;
	text-align: center;
	color: rgba(52, 52, 52, 0.55);
}

.book-details-wrap .link-to-book {	
	display: block;
    width: 103px;
    background: rgba(52, 52, 52, 1);
    margin: 0 auto;
    margin-top: 16px;
    color: rgba(238, 238, 238, 1);
    font-family: Stratos;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
    text-decoration: none;
    padding: 12px 0;
    border: solid 1px rgba(52, 52, 52, 1);
}

.book-details-wrap .link-to-book:hover {
	color: rgba(52, 52, 52, 1);
	background-color: rgba(238, 238, 238, 1);
}


/* lead */

.field--name-field-lead {
	font-size: 32px;
	font-weight: 500;
	line-height: 38.4px;
	margin-bottom: -5px;
}

.field--name-field-lead p {
	margin-top: 0;
}

.bundle-review .field--name-field-lead {
	max-width: 700px;
}

@media only screen and (min-width: 990px) {
	.bundle-review .field--name-field-lead {
		float: right;
	}
}

/* authors-wrap */

.authors-wrap {
	margin-bottom: 35px;
	color: rgba(52, 52, 52, 0.55);
}

.authors-wrap a {
	color: rgba(52,52,52,0.55);
}

.authors-wrap .field__label {
	font-weight: normal;
}

/* author-and-imagetitle-wrap */

.author-and-imagetitle-wrap {
	display: flex;
	gap: 24px;
}

.author-and-imagetitle-wrap .field--name-field-author-media,
.author-and-imagetitle-wrap .field--name-field-img-desc {
	display: flex;
}

.bundle-interview .author-and-imagetitle-wrap .authors-wrap {
	/* flex: 1; */
	display: flex;
	gap: 23px;
}

.author-and-imagetitle-wrap .field--name-field-img-desc {
	/* flex: 3; */
}

.author-and-imagetitle-wrap .text-formatted.field--name-field-img-desc p {
	margin: 0;
}

.field--name-field-img-desc .field__label {
	font-weight: normal;
}

.field--label-inline .field__label {
	padding-right: 3px !important;
}

.field--label-inline.field--name-field-author-media > .field__item,
.field--label-inline.field--name-field-img-desc > .field__item {
	padding-right: 0;
}

/* bundle -- event */

.event-wrap {
	max-width: 700px;
	margin: 0 auto;
	padding-top: 50px;
}

.event-wrap h1 {
	font-size: 74px;
	font-weight: 500;
	line-height: 65px;
	letter-spacing: -0.02em;
	margin-bottom: 35px;
}


.event-wrap  .text-formatted,
.event-wrap  .text-formatted p,
.event-wrap  .text-formatted li,
.event-wrap  .text-formatted td {
	font-size: 20px;
	font-weight: 400;
	line-height: 28px;
}


html.bundle-event .field--name-field-date {
	font-size: 74px;
	font-weight: 500;
	line-height: 64px;
	letter-spacing: -0.02em;
	text-align: center;
	margin-bottom: 35px;
}


/* bundle -- book */

html.bundle-book .field--name-field-cover {
	background: rgba(52, 52, 52, 0.1);
	width: 450px;
	height: 450px;
	margin-right: 24px;
}

html.bundle-book .field--name-field-cover img {
	display: block;
	margin: 0 auto;
	padding-top: 81px;
}

html.pagetype-books .view-teaser-type-book {
    width: 328px;
    min-height: 364px;
}

.book-header {
	display: flex;
}

.book-meta {
	height: 450px;
	position: relative;
}

.book-meta .field--name-field-name,
.book-meta .field--name-field-author {
	font-family: 'Tesseract Light';
	font-size: 44px;
	font-weight: 300;
	line-height: 42px;
}

.book-meta .field--name-field-author {
	margin-bottom: 20px;
}

.book-meta .link-to-book {
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	text-align: center;
	color: rgba(238, 238, 238, 1);
	background: rgba(52, 52, 52, 1);
	margin-top: 24px;
	padding: 22px;
	display: block;
}

.pagetype-books main .view-content {
	display: flex;
	flex-wrap: wrap;
	margin-right: -28px;
    margin-top: 24px;
}

.pagetype-books main .view-content .views-row {
	flex: none;
	margin-right: 24px;
	margin-bottom: 24px;
}

/* bundle -- video */

.content-wrap-video .video-wrap {
	max-width: 750px;
}

.content-wrap.content-wrap-video {
	padding: 24px;
	border: solid 1px  rgba(52, 52, 52, 0.1);
	margin-top: 24px;
	margin-bottom: 24px;
}

.content-wrap.content-wrap-video figure {
	margin: 0;
}

@media only screen and (min-width: 990px) {
	.content-wrap.content-wrap-video {
		display: flex;
	}
	.content-wrap-video .video-wrap {
		flex: none;
		width: 750px;
		margin-right: 24px;
	}
}

.view-teaser-type-video figure {
	margin: 0;
}

html.pagetype-node .view-teaser-type-video {
	width: 728px;
}

html.pagetype-node .view-teaser-type-video .video-wrap {
	max-width: 730px;
}


.video-details {
	display: flex;
	justify-content: space-between;
}

@media only screen and (max-width: 990px) {
	.video-details {
		margin: 16px 0;
	}
}

.video-details .content-duration * {
	display: inline-block;
}

.video-details .content-duration .field__label {
	font-weight: normal;
}

.content-duration .field--label-inline .field__label::after {
    margin-left: -3px;
}

/* teaser -- events */

html.bundle-front .view-teaser-type-event {
	width: 328px;
}

.content-wrap-video .content-date,
.view-teaser-type-video .field--name-field-date {
	margin-bottom: 16px;
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	color: rgba(52, 52, 52, 0.55);
}

.view-teaser-type-video .field--name-field-date {
	margin-top: 24px;
}

.content-wrap-video h2.content-title,
.view-teaser-type-video h2.content-title {
	font-size: 44px;
	font-weight: 500;
	line-height: 44px;
	letter-spacing: -0.02em;
	margin: 0 0 16px 0;
}

.view-teaser-type-video h2.content-title a {
	color: rgba(52, 52, 52, 1);
	text-decoration: none;
}

.view-teaser-type-video h2.content-title a:hover {
	/*border-bottom: solid 1px;*/
}

.view-teaser-type-video .content-text,
.content-wrap-video .content-text {
	color: rgba(52, 52, 52, 0.55);
	font-size: 16px;
	font-weight: 400;
	line-height: 19.2px;
}

/* teaser -- events */

html.pagetype-events main .view-content {
	display: flex;
	flex-wrap: wrap;
	margin-right: -28px;
    margin-top: 24px;
}

html.pagetype-events main .view-content .views-row {
	flex: none;
	margin-right: 24px;
	margin-bottom: 24px;
}

html.pagetype-events .view-teaser-type-event {
    width: 328px;
    min-height: 364px;
}

.event-place {
	margin-top: 68px;
	margin-bottom: 24px;
	text-align: center;
}

.event-place .location:before {
	content: '';
	width: 16px;
	height: 16px;
	display: inline-block;
	background-image: url(/themes/custom/slovavne_theme/images/location.svg);
	background-repeat: no-repeat;
	margin-right: 8px;
}


.type-and-location-wrap .location {
	font-size: 24px;
	display: inline-flex;
  	align-items: center;
}
.type-and-location-wrap .location:before {
	content: '';
	width: 32px;
	height: 32px;
	display: inline-block;
	background-image: url(/themes/custom/slovavne_theme/css/loc.svg);
	background-repeat: no-repeat;
	margin-right: 8px;
}

.event-date {
	margin-bottom: 64px;
}

.event-date .day,
.event-date .month {
	font-size: 44px;
	font-weight: 500;
	line-height: 44px;
	letter-spacing: -0.02em;
	text-align: center;
	color: rgba(52, 52, 52, 1);
}

h2.event-title {
	margin: 0;
	text-align: center;
}

.event-title a {
	font-size: 24px;
	font-weight: 500;
	line-height: 26.4px;
	letter-spacing: -0.02em;
	text-align: center;
	color: rgba(52, 52, 52, 1);
	text-decoration: none;
}

.event-title a:hover {
	/*border-bottom: solid 1px;*/
}

/* teaser -- article -- interview -- review  */

.teaser-article,
.teaser-interview,
.teaser-review {
	width: 328px;
	flex: none;
}

.pinned-materials .view-teaser-type-text,
.other-materials .view-teaser-type-text {
	width: 731px;
	flex: none;
}

.pinned-materials {
	position: relative;
}

.pinned-materials:before {
	content: 'Важное';
	display: block;
	background-color: #eee;
	padding: 10px;
	position: absolute;
	top: -27px;
	left: 50%;
	width: 87px;
	transform: translateX(-50%);
	font-family: 'Stratos';
	font-weight: 500;
	font-size: 24px;
	text-align: center;
}

.teaser-article h2.content-title,
.teaser-interview h2.content-title,
.teaser-review h2.content-title {
	margin: 16px 0;
}


.teaser-article .content-title a,
.teaser-interview .content-title a,
.teaser-review .content-title a {
	color: rgba(52, 52, 52, 1);
	font-size: 24px;
	font-weight: 500;
	line-height: 26.4px;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.teaser-article .content-title a:hover,
.teaser-interview .content-title a:hover,
.teaser-review .content-title a:hover {
	/*border-bottom: solid 1px;*/
}

.teaser-article .content-text,
.teaser-interview .content-text,
.teaser-review .content-subtitle {
	color: rgba(52, 52, 52, 0.55);
	font-size: 16px;
	font-weight: 400;
	line-height: 22.4px;
}

.other-materials .teaser-article,
.other-materials .teaser-interview,
.other-materials .teaser-review,
.other-materials .view-teaser-type-event {
	min-height: 364px;
}

html.bundle-front .field--name-field-subtitle,
html.pagetype-review .field--name-field-subtitle {
	font-size: inherit;
	line-height: inherit;
}


html.pagetype-review main .view-content,
html.pagetype-longreads main .view-content,
html.pagetype-interview main .view-content {
    display: flex;
    flex-wrap: wrap;
    margin-right: -28px;
    margin-top: 24px;
}

html.pagetype-review .view-teaser,
html.pagetype-longreads .view-teaser,
html.pagetype-interview .view-teaser {
    width: 328px;
    min-height: 364px;
}

html.pagetype-review main .view-content .views-row,
html.pagetype-longreads main .view-content .views-row,
html.pagetype-interview main .view-content .views-row {
	flex: none;
    margin-right: 24px;
    margin-bottom: 24px;
}

/* layout front */

.pinned-materials {
	padding: 24px;
    margin: 0px 24px;
}

.pinned-materials > div {
	margin-right: 24px;
}
.pinned-materials > div:last-child {
	margin-right: 0;
}

.other-materials {
	margin-right: -28px;
}

.other-materials > div {
	margin-right: 24px;
	margin-bottom: 24px;
}

html.bundle-review .field--name-field-image img,
html.bundle-review .field--name-field-cover img,
html.bundle-news .field--name-field-image img, 
html.bundle-news .field--name-field-cover img,
html.bundle-text .field--name-field-image img, 
html.bundle-text .field--name-field-cover img,
html.bundle-interview .field--name-field-image img, 
html.bundle-interview .field--name-field-cover img,
html.bundle-article .field--name-field-image img, 
html.bundle-article .field--name-field-cover img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* book rebuild */

html.bundle-book .book-header {
	height: 450px;
	margin-bottom: 35px;

}

html.bundle-book .book-header .cover {
	width: 450px;
	background: rgba(52, 52, 52, 0.1);
}

html.bundle-book .book-header .cover img {
	text-align: center;
	display: block;
	margin: 0 auto;
	margin-top: 74px;
}

html.bundle-book .book-header .book-meta {
	margin-left: 24px;
	width: 450px;
}

html.bundle-book .book-header .book-meta .name,
html.bundle-book .book-header .book-meta .author {
	font-size: 44px;
	font-weight: 300;
	line-height: 42px;
}

html.bundle-book .book-header .book-meta .author {
	margin-bottom: 21px;
}

html.bundle-book .field--name-body {
	font-size: 20px;
	font-weight: 400;
	line-height: 28px;
	margin-bottom: 24px;
}

html.bundle-book .link-to-book {
	text-decoration: none;
	border: solid 1px rgba(52, 52, 52, 1);
}

html.bundle-book .link-to-book:hover {
	color: rgba(52, 52, 52, 1);
	background-color: rgba(238, 238, 238, 1);
}

.book-header .book-meta .name,
.book-header .book-meta .author {
	font-family: 'Tesseract Light';
	font-weight: 300;
	font-size: 44px;
	line-height: 42px;
	letter-spacing: 0%;
	vertical-align: middle;
}

.book-header .book-meta .field {
	display: flex;
	margin-bottom: 8px;
}

.book-header .book-meta .field:last-child {
	margin-bottom: 0;
}

.book-header .book-meta .field.field--name-field-year-number {
	display: block;
	margin-left: 206px;
	color: rgba(52, 52, 52, 0.55);
}

.book-header .book-meta .field .field__label {
	width: 194px;
	margin-right: 12px;
	flex: none;
	font-weight: normal;
}

.book-header .book-meta .field .field__label,
.book-header .book-meta .field .field__items,
.book-header .book-meta .field .field__item {
	padding-right: 0;
	padding-bottom: 0;
	color: rgba(52, 52, 52, 0.55);
}

/* simple page*/

html.bundle-page .block-system-main-block {
	max-width: 1179px;
    margin: 0 auto;
    padding: 20px 50px 0 50px;
} 

html.bundle-page h1.page-title,
html.bundle-page h2.other-title {
    margin-bottom: 0;
    padding-bottom: 0;
}

.field--name-field-components .field__item:after {
	clear: both;
	content: '';
	display: block;
}

.paragraph--type--margin-text,
.paragraph--type--margin-text p {
        text-align: left;
        max-width: 700px;
}

@media only screen and (min-width: 990px) {
	.paragraph--type--margin-text,
	.paragraph--type--margin-text p {
		float: right;
		min-width: 700px;
	}
}

.paragraph--type--margin-text p {
	font-size: 20px;
	line-height: 28px;
}

.paragraph--type--margin-text h3 {
	font-size: 26px;
	line-height: 38px;
	font-weight: 500;
}

/* base mobile */

@media only screen and (max-width: 990px) {
	
	main {
		padding: 0 20px;
	}
	
	h1,
	.base-wrap h1,
	.event-wrap h1,
	h1.page-title,
	h2.other-title {
	    font-size: 32px;
	    line-height: 100%;
	    margin-bottom: 35px;
	}

	h2,
	.view-teaser .text-fragment,
	.content-wrap-video h2.content-title, 
	.view-teaser-type-video h2.content-title,
	.view-teaser.view-teaser-type-news .cover-and-title h2 {
	    font-size: 22px;
	    line-height: 22px;
	}


	.block-views-blocknews-to-front-block-1 .view-content {
		display: block;
	}

	.block-views-blocknews-to-front-block-1 .view-content .views-row {
		margin-right: 0;
		margin-bottom: 20px;
	}

	.block-views-blocknews-to-front-block-1 .view-content .views-row:last-child,
	.teaser-wrap:last-child {
		margin-bottom: 0;
	}

	.teaser-wrap,
	.view-teaser {
		margin-right: 0;
		margin-bottom: 24px;
		width: inherit;
	}


	.first-line-materials {
		padding-left: 0;
		padding-right: 0;
	}

	.pinned-materials {
		margin: 0;
	}

	.other-materials {
		margin: 0;
		padding: 24px 0;
	}

	.first-line-materials .teaser-wrap,
	.pinned-materials > div,
	.other-materials > div {
		margin-right: 0;
	}

	.first-line-materials .view-teaser-type-text {
		max-width: inherit;
	}

	.block-views-blocknews-to-front-block-1 {
		margin: 24px 0;
	}

	html.bundle-front .view-teaser-type-event,
	.view-teaser-type-book,
	.pinned-materials .view-teaser-type-text, .other-materials .view-teaser-type-text {
		width: inherit;
	}

	.cover-and-title {
		display: block;
	}

	/* dev ex -- .bundle-review  -- start */

	.cover-and-desc {
		display: flex;
		margin-right: 0;
		margin-bottom: 12px;
	}

	.cover-and-desc .field--name-field-img-desc p {
		margin-top: 0;
		Body/Size Medium
	}

	.cover-and-desc .field--name-field-image {
		margin-right: 12px;
		flex: none;
	}

	.cover-and-title .field--name-field-image img {
		width: 130px;
		height: auto;
	}

	/* dev ex -- .bundle-review  -- end */

	.view-teaser.view-teaser-type-news .cover-and-title img {
		margin-right: 0;
		margin-bottom: 16px;
	}

	.field--name-field-lead, .base-text, 
	.base-text p, 
	.base-text li, 
	.base-text td, 
	.paragraph--type--margin-text p,
	.event-wrap .text-formatted, 
	.event-wrap .text-formatted p, 
	.event-wrap .text-formatted li, 
	.event-wrap .text-formatted td,
	html.bundle-book .field--name-body,
	.text-formatted p.inset {
	    font-size: 16px;
	    line-height: 120%;
	}

	html.bundle-book .field--name-body {
		letter-spacing: 0%;
		vertical-align: middle;
	}

	html.pagetype-events main .view-content,
	.pagetype-books main .view-content,
	html.pagetype-review main .view-content, html.pagetype-longreads main .view-content, html.pagetype-interview main .view-content {
		display: block;
		margin-right: 0;
	    margin-top: 24px;
	}

	html.pagetype-events .view-teaser-type-event,
	html.pagetype-books .view-teaser-type-book,
	html.pagetype-review .view-teaser, html.pagetype-longreads .view-teaser, html.pagetype-interview .view-teaser {
	    width: inherit;
	    min-height: inherit;
	}

	html.pagetype-events main .view-content .views-row,
	.pagetype-books main .view-content .views-row,
	html.pagetype-review main .view-content .views-row, html.pagetype-longreads main .view-content .views-row, html.pagetype-interview main .view-content .views-row {
		margin-right: 0;
	}

	.base-text {
		float: none;
	}

	.text-formatted blockquote {
		padding: 0 !important;
	}

	html.bundle-book .book-header {
		display: block;
		height: inherit;
	}

	html.bundle-book .book-header .cover {
		width: inherit;
	}

	html.bundle-book .book-header .book-meta {
	    margin-left: 0;
	    width: inherit;
	}

	html.bundle-book .book-header {
		line-height: inherit;
	}

	html.bundle-page .block-system-main-block {
	    padding: 20px 0;
	}

	.paragraph--type--margin-text {
		width: 100%;
		float: inherit;
	}

	/* book */

	.book-meta {
		height: inherit;
	}

	.book-header .cover {
		margin-bottom: 12px;
	}

	.book-header .cover img {
		height: 203px;
	    padding-top: 50px;
	    padding-bottom: 67px;
	}

	.book-header .book-meta .name,
	.book-header .book-meta .author {
		font-size: 32px;
		line-height: 32px;
	}

	.book-header .book-meta .field .field__label {
		width: 142px;
	}

	.book-header .book-meta .field.field--name-field-year-number {
		margin-left: 152px;
	}

	.bundle-review .field--name-field-subtitle p {
		margin-top: 0;
	}
	.bundle-review .field--name-field-img-desc {
		margin-bottom: 0;
	}

}

/* nav.pager */

nav.pager {
	border-top: 1px solid rgba(52, 52, 52, 0.1);
    padding-top: 1em;
    margin-top: 1em;
    margin-bottom: 2em;
}
nav.pager ul.pager__items {}
nav.pager ul.pager__items li {}
nav.pager ul.pager__items li a {
	font-size: 12px;
    line-height: 12px;
    font-weight: 400;
    color: #343434;
    border: solid 1px #343434;
    padding: 8px;
    display: inline-block;
    text-decoration: none;
    min-width: 12px;
}

nav.pager ul.pager__items li.pager__item--first a,
nav.pager ul.pager__items li.pager__item--previous a,
nav.pager ul.pager__items li.pager__item--next a,
nav.pager ul.pager__items li.pager__item--last a {
	border: solid 1px #eee;
}


nav.pager ul.pager__items li.is-active a {
	border: solid 1px rgba(52, 52, 52, 0.1);
	background-color: rgba(52, 52, 52, 0.1);
}


/* infinity scroll */

.views-infinite-scroll-content-wrapper {
	display: flex;
	flex-wrap: wrap;
	margin-right: -28px;
    margin-top: 24px;
}

.views-infinite-scroll-content-wrapper .views-row {
	flex: none;
	margin-right: 24px;
	margin-bottom: 24px;
}


.autoscroll .js-pager__items li {
	text-align: center;
    margin: 0 auto;
    display: block;
}

.autoscroll .js-pager__items a {
	display: inline-block;
	background-color: rgba(52, 52, 52, 1);
	color: #eee;
	text-align: center;
	text-decoration: none;
	padding: 12px;
	margin: 1em 0;
}

.autoscroll .js-pager__items a:hover {
	background-color: rgba(52, 52, 52, 0.8);
}

/* text page */

.bundle-text .cover-and-desc {
	width:192px;
	margin-right: 32px;
	flex: none;
}

.bundle-text .cover-and-desc img {
	width: 192px;
	height: auto;
}

.bundle-text .title-author {
	flex: auto;
}

.bundle-text .title-author .author-wrap {
	margin: 48px 0;
	/*float: right;*/
	text-align: right;
}

.bundle-text .title-author .author-wrap:before {
	clear: both;
	content: '';
	display: block;
}

@media only screen and (min-width: 990px) {

	.bundle-text .title-author {
		margin-bottom: 35px;
		margin-top: 0;
		font-family: 'Tesseract Light';
		font-size: 58px;
		font-weight: 500;
		line-height: 48px;
		letter-spacing: -0.02em;
	}

	.bundle-text .author:before {
		content: '';
		display: block;
		clear: both;
	}

	.bundle-text .author {
		max-width: 50%;
		text-align: right;
		float: right;
		display: inline-block;
		margin-top: 48px;
		padding-top: 48px;
	}

}

@media only screen and (max-width: 990px) {
	.bundle-text .cover-and-desc {
		width: inherit;
		margin-right: 0;
		display: block;
	}

	.bundle-text .cover-and-desc .cover {
		background-color: rgba(52, 52, 52, 0.1);
		padding: 46px 0;
		margin-bottom: 12px;

	}
	.bundle-text .cover-and-desc .cover img {
		text-align: center;
		display: block;
		width: auto;
		height: 230px;
		margin: 0 auto;
	}

	.bundle-text .cover-and-title .title-author {
		font-family: 'Tesseract Light';
		font-weight: 300;
		font-size: 32px;
		line-height: 32px;
		letter-spacing: 0%;
		vertical-align: middle;
	}

	.bundle-text .title-author .author-wrap {
		margin: 16px 0;
	}	
}

/* image rebuid quality */

.image-style-h160 {
	width: auto;
	height: 160px;
    /* real 320 */
}

.image-style-h264 {
	width: auto;
	height: 264px;
    /* real 528 */
}

.image-style-h279 {
	width: auto;
	height: 279px;    
    /* real 558 */
}

.image-style-h294 {
	width: auto;
	height: 294px;
    /* real 588 */
}

.image-style-h296 {
	width: auto;
	height: 296px;
    /* real 592 */
}

.image-style-_29x160 {
	width: 329px;
	height: 160px;    
    /* real 658 x 320 */
}

.image-style-_280x421 {
	/*max-width: 1280px !important;*/
    height: auto;
    width: 100%;
    /* real 2560 x 842 */
}

@media only screen and (max-width: 700px) {
	.image-style-_29x160 {
		max-width: 100%;
		height: auto;
	}
}


/* share buttons */

.social-share {
	max-width: 924px;
	margin: 0 auto;
	margin-top: 50px;
	margin-bottom: 50px;
	display: flex;
	justify-content: space-between;
}

@media only screen and (min-width: 980px) {
	html.bundle-page .social-share {
		padding: 0 50px;
	}
}

html.bundle-page .social-share {
    max-width: 1179px;
}

.social-share h3,
.social-share a {
	font-family: 'Stratos';
	font-weight: normal;
	font-size: 16px;
	line-height: 100%;
	color: rgba(52, 52, 52, 0.55);
}

.social-share a {
	margin: 0 17px;
}

.social-share h3 {
	margin: 0;
}

.social-share-items {
	display: flex;
	justify-content: space-between;
}

@media only screen and (max-width: 500px) {
	.social-share,
	.social-share-items {
		display: block;
	}
	.social-share a {
		display: block;
    	margin: 17px 0;
	}
}


.bundle-text .title-author .field--name-field-year-number {
	max-width: 700px;
}

.bundle-text .title-author .field--name-field-year-number:before {
	display: block;
	content: '';
	clear: both;
}

.bundle-text .title-author .field--name-field-year-number:after {
	display: block;
	content: '';
}


@media only screen and (min-width: 500px) {
	.bundle-text .title-author .field--name-field-year-number:before {
		padding-top: 48px;
	}
}


.paragraph--type--margin-text h3 {
	font-size: 24px;
}


/* cover images */
@media only screen and (max-width: 990px) {
	.cover-wrap {
		margin-right: -20px;
		margin-left: -20px;
	}
}

.cover-wrap .field--name-field-image,
.cover-wrap .field--name-field-cover {
	width: 100%;
	height: 500px;
	overflow: hidden;
}

.cover-wrap .field--name-field-image img,
.cover-wrap .field--name-field-cover img,
html.bundle-interview .field--name-field-image img {
	max-width: 100%;
	width: 100%;
	height: 500px !important;
  	object-fit: cover;
}


/* table */

.table {

}

.table {

}
.table td,
.table th {

}

.table thead {

}
.table thead td,
.table thead th {

}
.table tfoot {

}
.table tfoot td,
.table tfoot th {

}
.table tbody {

}
.table tbody tr:last-child td,
.table tbody tr:last-child th {

}

.table.is-bordered {
	border-collapse: collapse;
}

.table.is-bordered td,
.table.is-bordered th {
  border-width: 1px;
  border-color: rgb(214, 217, 224);
  border-style: solid;
}
.table.is-bordered tr:last-child td,
.table.is-bordered tr:last-child th {
  border-bottom-width: 1px;
}
.table.is-fullwidth {
  width: 100%;
}
.table.is-hoverable tbody tr:not(.is-selected):hover {

}
.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover {

}
.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover:nth-child(even) {

}
.table.is-narrow td,
.table.is-narrow th {
  padding: 0.25em 0.5em;
}

.table td, 
.table th {
    background-color: inherit;    
    padding: 0.5em 0.75em 0.75em 0.75em;
    vertical-align: top;
}

.poem-table.table td {
	padding-left: 0;
	padding-top: 0;
	padding-bottom: 0;
}



.table.is-striped tbody tr:not(.is-selected):nth-child(even) {

}

.table-container {
  -webkit-overflow-scrolling: touch;
  overflow: auto;
  overflow-y: hidden;
  max-width: 100%;
}


/* SEARCH */

#edit-lang-fieldset {
  display: none;
}

.entity-search #block-slovavne-theme-content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: inherit;
}


.search-form .container-inline {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 15px;
}

.search-form .form-item-keys {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.search-form .form-item-keys label {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #333;
  text-transform: lowercase; /* В стиле заголовков сайта */
}

/* Стили полей ввода (текст и поиск) */
.search-form .form-search,
.search-form .form-text {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #000;
  background: transparent;
  font-size: 1.1rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-form .form-search:focus,
.search-form .form-text:focus {
  border-bottom-width: 2px;
}

/* Кнопка отправки */
.search-form .form-submit {
  background: transparent;
  border: 1px solid #000;
  padding: 10px 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: lowercase;
}

.search-form .form-submit:hover {
  background: #000;
  color: #fff;
}

/* Ссылка на помощь */
.search-help-link {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 0.85rem;
  color: #666;
  text-decoration: underline;
}

/* Блок расширенного поиска (details) */
.search-advanced {
  border: none;
  margin-top: 20px;
}

.search-advanced summary {
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: normal;
  border-bottom: 1px dashed #000;
  display: inline-block;
  padding-bottom: 2px;
  margin-bottom: 25px;
}

.search-advanced summary::-webkit-details-marker {
  display: none;
}

/* Группы полей (fieldset) */
.search-advanced fieldset {
  border: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.search-advanced legend {
  font-size: 1.1rem;
  font-weight: normal;
  margin-bottom: 15px;
  padding: 0;
  text-transform: lowercase;
}

/* Скрываем дублирующие внутренние легенды Drupal */
.search-advanced .criterion legend {
  display: none;
}

/* Сетка для дополнительных текстовых полей */
#edit-keywords-fieldset .fieldset-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#edit-keywords-fieldset .form-item {
  display: flex;
  flex-direction: column;
}

#edit-keywords-fieldset label {
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: #555;
}

/* Сетка для чекбоксов (Типы и Языки) */
.form-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

/* Стилизация чекбоксов */
.form-type-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-type-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #000;
  border-radius: 0;
  outline: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.form-type-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: #000;
}

.form-type-checkbox label.option {
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}







/* Контейнер списка результатов */
.item-list .search-results {
  list-style: none;
  padding: 0;
  margin: 50px auto;
  max-width: 1200px;
}

/* Элемент списка (каждая находка) */
.search-results li {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e5e5e5; /* Очень тонкая, ненавязчивая линия */
  max-width: 800px; /* Ограничиваем ширину для удобства чтения текста */
}

.search-results li:last-child {
  border-bottom: none;
}

/* Заголовок результата */
.search-result__title {
  margin: 0 0 12px 0;
  font-family: inherit; /* Наследует вашу антикву/сериф */
  font-size: 1.35rem;
  font-weight: normal;
  line-height: 1.4;
}

.search-result__title a {
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.search-result__title a:hover {
  opacity: 0.6; /* Мягкое затухание при наведении в духе минимализма */
}

/* Контейнер сниппета */
.search-result__snippet-info {
  margin: 0;
}

/* Текст отрывка (сниппет) */
.search-result__snippet {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* Выделение искомого слова (тег strong внутри Drupal-сниппета) */
.search-result__snippet strong {
  font-weight: 600;
  color: #000;
  background-color: rgba(0, 0, 0, 0.05); /* Едва заметная плашка */
  padding: 1px 4px;
}


/* ========================================== */
/* АДАПТИВНОСТЬ И МОБИЛЬНАЯ ВЕРСИЯ (Менее 768px) */
/* ========================================== */
@media screen and (max-width: 768px) {
  /* Форма поиска из предыдущего шага */
  .search-form .container-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .search-form .form-submit {
    width: 100%;
    padding: 14px; /* Увеличиваем область нажатия на смартфонах */
  }

  .form-checkboxes {
    grid-template-columns: 1fr 1fr; /* Чекбоксы встают в 2 колонки */
    gap: 16px;
  }

  /* Список результатов на мобильных */
  .item-list .search-results {
    margin: 30px auto;
  }

  .search-results li {
    margin-bottom: 30px;
    padding-bottom: 25px;
  }

  .search-result__title {
    font-size: 1.15rem; /* Немного уменьшаем заголовки для экранов телефонов */
    line-height: 1.35;
  }

  .search-result__snippet {
    font-size: 0.95rem;
  }
}

/* Для совсем маленьких экранов (менее 480px) */
@media screen and (max-width: 480px) {
  .form-checkboxes {
    grid-template-columns: 1fr; /* Чекбоксы в одну колонку */
  }
}
