@font-face {
	font-family: 'Inter'; 
	src: url(../fonts/Inter/Inter-Variable.ttf); 
}
 
/* Жирный */
@font-face {
	font-family: 'Sofia'; 
	src: url(../fonts/Sofia_Sans_Extra_Condensed/SofiaSansExtraCondensed-Variable.ttf); 
}
 
@font-face {
	font-family: 'Source4'; 
	src: url(../fonts/Source_Serif_4/SourceSerif4-Variable.ttf); 
}


body{
    --primary-color: ;
    --accent-color: #FAC065;
}
.home{
	position: fixed;
	width: 100%;
}
header{
    height: 48px;
    margin: 16px auto -64px;
    z-index: 2;
    position: relative;
	top: 0;
	left: 0;
	

}
img.logo{
	width: 48px;
	height: auto;
}
.title{
    font-family: "Sofia", serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 50.4px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}
.sub-title{
    font-family: "Inter", serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16.8px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}

#historical-index {
    background: linear-gradient(180deg, rgba(135, 91, 63, 0.1) 0%, #2C160D 100%), url(../img/fon-horse.webp) center center / cover no-repeat;
    background-size: cover;
    position: relative;
    width: 100%;
    z-index: 1;
    padding: 140px 15px 50px;
    height: 100vh;
	max-height: 100%;
    min-height: 400px;
	position: fixed;
	top: 0;
	left: 0;
}
.btn-index .btn{
    height: 32px;
    min-width: 84px;
    font-family: "Source4", serif;
    font-size: 12px;
    font-weight: 400;
    border-radius: 10px;
    line-height: 15px;
    
}

.btn-index{
    max-width: 570px;
    margin: 0 auto;
}
.historical-period{
    padding: 24px 16px;
}

.title-period{
    font-family: "Sofia", serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 40px;
    color: #fff;
    display: flex;

}
.title-period::before{
    display: block;
    content: '';
    width: 5px;
    height: 40px;
    background-color: var( --accent-color);
    margin-right: 8px;
}
.text-period p{
    font-family: "Inter", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2em;
    color: #fff;
	text-align: justify;
}

.section-title{
    font-family: "Sofia", serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2em;
    color: #fff;
}
.image-preview{
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
}
.video-popup {
    display: block;
    width: fit-content;
    height: fit-content;
    position: absolute;
    top: calc((100% - 65px) / 2);
    left: calc((100% - 65px) / 2);
    overflow: hidden;
}
.video-view{
    position: relative;
}
.langs {
    display: flex;
    margin: 0px;
    padding: 4px;
    background: #fff;
    border-radius: 10px;
	list-style: none;
}
li.lang-item {
    padding: 5px;
    border-radius: 6px;
    display: flex;
	aspect-ratio: 1 / 1;
}

.lang-item a{
	font-family: 'Source4', serif;
	text-decoration: none;
	color: #000;
	font-size: 20px;
	text-transform: uppercase;
}
.lang-item.current-lang{
	background: #75402D;
}
.lang-item.current-lang a{
	color: #fff;
}
.back-link{
	font-family: 'Source4', serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.4em;
	color: #fff;
	margin-left: 8px;
	text-decoration: none;
}
.left-header a{
	text-decoration: none;
}
.periods-header svg{
	width: 24px;
	height: 24px;
}
header.periods-header {
    margin: 16px auto;
}
.periods-header .left-header {
    display: flex;
    align-items: center;
}
.no-scroll{
    overflow: hidden;
}

.modal {
    display: block;
	filter: opacity(0);
    z-index: -2;
	transition: z-index 0s, filter .3s;
}
.modal.active {
	filter: opacity(1);
    z-index: 2;
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
	transform: scale .8;
	transition: transform .3s
}
.modal.active{
	transform: scale 1;
}
.modal-content iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 1280 / 720;
}
.modal-header{
	border: none;
}
.close-button span{
	font-family: 'Source4', serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 16.45px;
	margin-left: 8px;
	color: #fff;
    text-transform: uppercase;
}
.btn-top{
	width: 50px;
    height: 50px;
    background: #fff;
    position: fixed;
    bottom: 20px;
    right: 20px;
	border-radius: 10px;
	filter: opacity(0.7);
}
.btn-top svg {
    fill: #75402d;
	padding: 10px;
}