@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
	box-sizing: border-box;
}

html {
	height: 100%;
}

body { 
	font-family: 'Open Sans';
	margin: 0; 
	padding: 0;
	background: #F8F8F8;
	height: 100%;
    display: flex;
    flex-direction: column;
}

.container {
  max-width: 1070px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.header {
        width: 100%;
        position: relative;
        text-align: left;
        font-size: 14px;
        color: #fff;
        margin-bottom: 30px;
    }
    .top-bar {
        background-color: #0e5398;
        width: 100%;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .top-bar .logo a, .footer .logo a {
    	text-decoration: none;
    }
    .top-bar .logo a img, .footer .logo a img {
    	max-width: 268px;
    }
    .top-bar .row {
    	align-items: center;
    	justify-content: space-between;
    }
.search-box {
    display: flex;
    align-items: center;
}

.search-box svg {
    width: 24px;
    height: 24px;
}

.search-text {
    margin-left: 10px;
    font-size: 16px;
    color: #333;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-field {
    border: 1px solid transparent;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.05);
    margin-left: 10px;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Сделаем плейсхолдер полупрозрачным */
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

    .navigation-wrapper {
        width: 100%;
        background: #fff;
        border-bottom: 1px solid #E6E8EA;
    }
    .navigation {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .nav-items {
        display: flex;
        gap: 20px;
    }
    .nav-link {
        text-decoration: none;
        color: #1b1b1b;
        font-size: 15px;
        padding: 10px;
    }

.main-block {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 16px;
}

.main-block .main {
	width: calc(50% - 8px);
	margin: 0;
}

.main-block .main .article-list .article-list-item {
	width: 100%;
}

.main-block .sub-main {
	width: calc(50% - 8px);
	margin: 0;
}

.main-block .sub-main .article-list {
	flex-wrap: wrap;
	gap: 16px;
}

.main-block .sub-main .article-list .article-list-item {
	width: calc(50% - 8px);
}

.main-block .bottom-main {
	margin: 0;
	padding-top: 30px;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ads-head {
	margin: 20px 0 0;
}

.sidebar .ads-head {
	margin: 20px 0;
}

.article {
    position: relative;
    width: calc(100% - 390px);
}

.article-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 15px;
}

.article-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article .post-date {
	margin-top: 30px;
	color: #5A5A5A;
	font-family: Inter;
	font-size: 14px;
	line-height: 145%;
}

.article-content {
    margin-top: 30px;
    line-height: 145%;
    color: #1B1B1B;
    font-family: Inter;
}

.article-content a {
	color: #1B1B1B;
	text-decoration: underline;
}

.article-content .wp-block-quote {
	margin: 25px 0;
}

.article-content .wp-block-quote p {
	margin: 0;
	border-top: 1px solid #0E5398;
	border-bottom: 1px solid #0E5398;
	padding: 25px 0;	
	font-size: 26px;
	line-height: 42px;
}

.article-content figure.wp-block-image {
	margin: 40px auto;
	width: 80%;
}

.article-content figure.wp-block-image :where(figcaption) {
	margin: 10px 0 0;
	font-size: 14px;
	padding-left: 18px;
	border-left: 1px solid #0E5398;
}

.sidebar {
	width: 350px;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    padding: 30px 20px;
    background: #fff;
}

.sidebar .article-list {
	flex-direction: column;
}

.sidebar .article-list-item {
	flex-direction: row;
	gap: 20px;
	width: 100%;
}

.sidebar .article-list-item img {
	width: 114px;
	object-fit: cover;
}

.sidebar .article-list-item-title {
	margin: 0 0 5px;
}

.sidebar h3 {
	margin: 0 0 15px;
	color: #1B1B1B;
	font-size: 20px;
	font-weight: 700;
}

.title-h2 {
	color: #1B1B1B;
	font-size: 24px;
	font-weight: 700;
}

.article-list-container {
	width: 100%;
	margin: 70px auto;
}

.article-list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.article-list-header .title-h2 {
	margin: 0;
}

.article-list-header .link {
	color: #1B1B1B;
	font-family: Inter;
	font-size: 16px;
	display: flex;
	align-items: center;
	gap: 20px;
	text-decoration: none;
}

.article-list {
	display: flex;
	gap: 20px;
}

.archive-content .article-list {
	flex-wrap: wrap;
	margin-bottom: 50px;
}

body:not(.post-type-archive-afisha) .archive-content .article-list .article-list-item img {
	height: 160px;
	object-fit: cover;
}

.news .article-list .article-list-item img, .popular .article-list .article-list-item img, .sub-main .article-list .article-list-item img {
	height: 160px;
	object-fit: cover;
}

.article-list-item {
    display: flex;
    flex-direction: column;
    width: calc(25% - 15px);
    color: #1B1B1B;
    text-decoration: none;
}

.article-list-item-content {
    display: flex;
    flex-direction: column;
}

.article-list-item-title {
    font-weight: 700;
    line-height: 125%;
    margin: 17px 0 11px;
    font-size: 15px;
}

.article-list-item-exceprt {
	font-size: 14px;
	line-height: 18px;
	color: #141414;
}


.article-list-item-exceprt p {
	margin: 0 0 10px;
}

.article-list-item-time {
    font-size: 14px;
    line-height: 1.45;
    font-family: Inter;
    color: #5A5A5A;
}

.search .article-list {
	flex-wrap: wrap;
}

.search .article-list-container {
	margin: 10px 0 30px;
}

.burger-menu {
    display: none;
    position: relative;
    z-index: 100;
}

.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.footer {
	background: #1B1B1B;
	padding: 65px 0 25px;
	margin-top: auto;
}

.footer .footer-content {
	margin-left: auto;
	color: #fff;
	font-size: 16px;
	line-height: 13px;
}

.footer .footer-content a {
	color: #fff;
	text-decoration: none;
}

.footer .footer-content p {
	display: flex;
	gap: 20px;
}

.footer .social-media {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer .social-icon {
    width: 30px;
    height: 30px;
    margin: 0 15px;
    object-fit: contain;
}

.footer .footer-copyright {
	width: 100%;
	padding-top: 12px;
	margin-top: 70px;
	border-top: 1px solid rgba(255, 255, 255, 0.20);
	color: rgba(255, 255, 255, 0.40);
	text-align: center;
	font-size: 14.18px;
}

#load-more {
	width: 250px;
	height: 60px;
	background: #0E5398;
	color: #FFF;
	font-size: 16px;
	font-weight: 600;
	margin: 10px auto 70px;
	outline: none;
	border: none;
	display: block;
	cursor: pointer;
}

.sidebar .sidebar-ads {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 1px;
    width: auto;
    overflow: visible;
    visibility: visible;
    height: auto;
}

.single-dosye .post-thumbnail img {
	width: 180px;
	height: 180px;
	display: block;
	margin: 0 auto;
}

@media(min-width: 768px){
	.main-block .sub-main .article-list .article-list-item:nth-child(n+5), .main-block .bottom-main .article-list .article-list-item:nth-child(n+5) {
	    display: none;
	}
}

@media(max-width: 767px){
	.main-block {
		flex-direction: column;
		gap: 50px;
	}
	.main-block .main {
		display: none;
	}
	.main-block .sub-main {
		width: 100%;
	}
	.main-block .sub-main .article-list .article-list-item, .archive-content .article-list .article-list-item {
		width: 100%;
		flex-direction: row;
	}
	.main-block .sub-main .article-list .article-list-item img, .archive-content .article-list .article-list-item img {
		width: 30%;
		margin-right: 20px;
	}
	.main-block .sub-main .article-list .article-list-item .article-list-item-title, .archive-content .article-list .article-list-item .article-list-item-title {
		margin-top: 0;
	}
	.main-block .bottom-main .article-list {
		flex-wrap: wrap;
	}
	.main-block .bottom-main .article-list .article-list-item {
		width: 100%;
	}
	.article {
		width: 100%;
	}
	.article-title {
		font-size: 24px;
		margin-bottom: 25px;
	}
body:not(.post-type-archive-afisha) .archive-content .article-list .article-list-item img, .sub-main .article-list .article-list-item img
	 {
	height: auto;
}   
.news .article-list .article-list-item img, .popular .article-list .article-list-item img {
	height: 170px;
}
	.article .post-date, .article-content {
		margin-top: 25px;
	}
	.article-content .wp-block-quote p {
		line-height: 145%;
		padding: 23px 0 18px;
	}
	.article-content figure.wp-block-image {
		margin: 10px auto;
		width: 100%;
	}
	.article-list-container {
		margin: 50px auto;
	}
	.sidebar {
		width: 100%;
	}
	.sidebar-ads {
		display: none;
	}
	.single-post .article {
		order: 1;
	}
	.single-post .article-list-container {
		order: 2;
	}
	.single-post .sidebar {
		order: 3;
		margin-bottom: 40px;
	}
	.swiper-container {
        overflow: hidden;
    }
    .search-container {
    	margin-left: auto;
    	margin-right: 10px;
    }
    .search-form {
    	display: none;
    	position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: #0e5398;
    text-align: center;
    padding: 20px 0;
    z-index: 2;
    transition: top 0.3s ease-in-out;
    }
    .search-field {
    	width: 100%;
    	margin: 0 20px;
    }
    .search-box.open .search-form {
        display: flex;
        top: 64px;
    }
    .search-submit {
    	display: none;
    }
    /* Навигация */
.navigation {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    text-align: center;
    padding: 20px 0;
    z-index: 2;
    transition: top 0.3s ease-in-out;
}

.navigation .nav-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 auto;
}

.navigation .nav-link {
    text-decoration: none;
    padding: 15px;
    font-size: 18px;
    display: block;
}

.navigation.active {
    top: 64px;
}
.burger-menu {
        display: block;
    }
	.footer {
		padding: 40px 0 20px;
	}
	.footer .logo {
		width: 100%;
		text-align: center;
	}
	.footer .footer-content {
		display: flex;
		flex-direction: column;
		margin: 0 auto;
	}
	.footer .footer-content p {
		display: flex;
		flex-direction: column;
		text-align: center;
		margin: 30px 0 20px;
	}
	.footer .footer-copyright {
		margin-top: 40px;
	}
}

@media(max-width: 420px){
	.top-bar .logo a img, .footer .logo a img {
		max-width: 200px;
	}
}