@import url('https://fonts.googleapis.com/css2?family=Libertinus+Math&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libertinus+Math&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


html {
scroll-behavior: smooth;
}

/* Header refresh */
header{
position: relative;
}

nav{
left: 50%;
top: 20px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
width: min(1180px, calc(100% - 32px));
padding: 12px 14px;
margin-top: 0;
transform: translateX(-50%);
background: linear-gradient(135deg, rgba(255, 248, 241, 0.9), rgba(247, 241, 234, 0.84));
border: 1px solid rgba(255, 255, 255, 0.38);
border-radius: 28px;
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
box-shadow: 0 20px 60px rgba(48, 33, 19, 0.16);
transition: transform 0.4s ease, box-shadow 0.3s ease;
}

nav::before{
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
padding: 1px;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(138, 120, 107, 0.08));
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
pointer-events: none;
}

nav.hidden{
transform: translate(-50%, -130%);
}

.nav-primary{
display: flex;
align-items: center;
gap: 10px;
padding: 0;
margin: 0;
}

.nav-primary li{
list-style: none;
padding-bottom: 0;
}

.nav-primary li::after{
display: none;
}

.nav-primary li a{
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 56px;
padding: 0 16px;
border-radius: 18px;
font-size: 16px;
font-weight: 500;
color: #2d221a;
transition: background-color 0.2s ease, color 0.2s ease;
position: relative;
}

.nav-primary li a:hover{
background: rgba(138, 120, 107, 0.1);
color: #000;
}

.nav-primary li a::after{
content: "";
position: absolute;
left: 16px;
right: 16px;
bottom: 10px;
height: 2px;
border-radius: 999px;
background: rgba(138, 120, 107, 0.18);
transform: scaleX(0);
transform-origin: center;
transition: transform 0.2s ease;
}

.nav-primary li a:hover::after{
transform: scaleX(1);
}

.nav-actions{
display: flex;
align-items: center;
gap: 10px;
margin-left: auto;
}

.nav-mobile-note{
display: none;
}

.nav-dropdown{
position: relative;
}

.more_slides,
.lang{
position: static;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
min-height: 56px;
padding: 0 16px;
border: 1px solid rgba(86, 68, 54, 0.14);
border-radius: 18px;
background: rgba(255, 255, 255, 0.52);
font-family: roboto;
font-size: 16px;
font-weight: 500;
color: #2d221a;
box-shadow: 0 10px 24px rgba(48, 33, 19, 0.08);
transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.more_slides{
width: auto;
padding: 0 18px;
}

.more_slides:hover,
.lang:hover{
transform: translateY(-1px);
background: rgba(255, 255, 255, 0.76);
border-color: rgba(138, 120, 107, 0.22);
box-shadow: 0 14px 28px rgba(48, 33, 19, 0.1);
}

.more_slides.active,
.lang.active{
background: #ffffff;
border-color: rgba(138, 120, 107, 0.26);
}

.slides_Button,
.flag{
width: 16px;
height: 16px;
transition: transform 0.25s ease;
}

.more_slides.active .slides_Button,
.lang.active .flag{
transform: rotate(180deg);
}

.flag_img{
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
}

.view_min{
display: inline;
white-space: nowrap;
}

.lang_label{
font-size: 15px;
font-weight: 600;
letter-spacing: 0.04em;
}

.more_slides_cont,
.choise{
position: absolute;
top: calc(100% + 10px);
right: 0;
display: flex;
flex-direction: column;
gap: 8px;
padding: 14px;
width: 250px;
background: rgba(255, 252, 248, 0.97);
border: 1px solid rgba(255, 255, 255, 0.5);
border-radius: 20px;
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
box-shadow: 0 22px 46px rgba(48, 33, 19, 0.15);
z-index: 1001;
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translateY(-6px);
transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.more_slides_cont::before,
.choise::before{
content: "";
position: absolute;
top: -7px;
right: 22px;
width: 14px;
height: 14px;
background: rgba(255, 252, 248, 0.97);
border-top: 1px solid rgba(255, 255, 255, 0.5);
border-left: 1px solid rgba(255, 255, 255, 0.5);
transform: rotate(45deg);
}

.more_slides_cont.active,
.choise.active{
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateY(0);
}

.more_slides_cont ul{
display: flex;
flex-direction: column;
gap: 6px;
padding: 0;
margin: 0;
}

.more_slides_cont li{
display: block;
list-style: none;
}

.more_slides_cont li::after{
display: none;
}

.more_slides_cont li a{
display: flex;
align-items: center;
justify-content: flex-start;
padding: 10px 12px;
border-radius: 14px;
font-size: 15px;
font-weight: 500;
color: #2d221a;
transition: background-color 0.2s ease, color 0.2s ease;
line-height: 1.35;
}

.more_slides_cont li a:hover{
background: rgba(138, 120, 107, 0.1);
color: #000;
}

.lang_option{
display: grid;
grid-template-columns: 24px 1fr auto;
align-items: center;
gap: 12px;
width: 100%;
padding: 10px 12px;
border: none;
border-radius: 14px;
background: transparent;
font-family: roboto;
font-size: 16px;
font-weight: 400;
color: #2d221a;
text-align: left;
cursor: default;
}

.lang_option img{
width: 24px;
height: 24px;
border-radius: 50%;
}

.lang_option:disabled{
opacity: 1;
}

.lang_option:not(:last-child){
border-bottom: 1px solid rgba(86, 68, 54, 0.06);
}

.lang_state{
font-size: 13px;
font-weight: 500;
color: #8a786b;
}

@media screen and (max-width: 900px) {
    nav{
        gap: 12px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .nav-primary{
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-primary li{
        display: block;
    }

    .nav-primary li a{
        min-height: 48px;
        padding: 0 14px;
        font-size: 15px;
    }

    .nav-actions{
        width: 100%;
        justify-content: space-between;
    }
}

@media screen and (max-width: 500px) {
    nav{
        width: calc(100% - 20px);
        top: 12px;
        padding: 8px;
        gap: 8px;
        align-items: center;
        flex-wrap: nowrap;
        border-radius: 22px;
    }

    .nav-primary{
        display: none;
    }

    .nav-primary li{
        display: block;
    }

    .nav-primary li a{
        min-height: 42px;
        padding: 0 12px;
        font-size: 14px;
    }

    .nav-actions{
        width: 100%;
        gap: 8px;
        margin-left: 0;
        justify-content: space-between;
    }

    .more_slides,
    .lang{
        min-height: 40px;
        font-size: 13px;
        padding: 0 10px;
        border-radius: 14px;
    }

    .more_slides_cont,
    .choise{
        width: min(280px, calc(100vw - 32px));
        right: 0;
    }

    .view_min{
        font-size: 14px;
    }
}

/* Hero refresh */
.hello{
position: relative;
min-height: 100vh;
padding: 150px 72px 72px;
display: grid;
grid-template-columns: minmax(320px, 520px) minmax(320px, 640px);
justify-content: center;
align-items: center;
gap: 56px;
overflow: hidden;
isolation: isolate;
}

.hello::before{
content: "";
position: absolute;
inset: 0;
background:
linear-gradient(105deg, rgba(25, 19, 16, 0.08) 0%, rgba(25, 19, 16, 0.02) 36%, rgba(25, 19, 16, 0.3) 100%),
radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0) 42%);
z-index: -1;
}

.hello::after{
content: "";
position: absolute;
left: 50%;
bottom: 24px;
width: min(1160px, calc(100% - 48px));
height: 1px;
transform: translateX(-50%);
background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 244, 236, 0.55), rgba(255, 255, 255, 0));
z-index: -1;
}

.hello_visual{
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 18px;
}

.hello_visual::before{
content: "";
position: absolute;
width: min(420px, 80%);
aspect-ratio: 1;
border-radius: 50%;
background: radial-gradient(circle, rgba(255, 245, 236, 0.56) 0%, rgba(255, 245, 236, 0.18) 42%, rgba(255, 245, 236, 0) 72%);
filter: blur(6px);
z-index: -1;
}

.hello_portrait_shell{
position: relative;
width: min(500px, 100%);
padding: 28px 24px 16px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 44px;
background: linear-gradient(145deg, rgba(255, 251, 246, 0.16), rgba(255, 251, 246, 0.04));
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 26px 70px rgba(34, 22, 13, 0.16);
}

.hello_portrait_shell::before{
content: "";
position: absolute;
inset: 18px 22px auto;
height: 1px;
background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 244, 236, 0.8), rgba(255, 255, 255, 0));
}

.hello_bait{
width: min(460px, 100%);
max-width: 100%;
display: block;
filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.14));
}

.hello_signature{
display: inline-flex;
align-items: center;
gap: 10px;
padding: 10px 16px;
border-radius: 999px;
background: rgba(255, 249, 242, 0.58);
border: 1px solid rgba(255, 255, 255, 0.3);
color: rgba(43, 30, 23, 0.82);
font-family: "Noto Serif", serif;
font-size: 16px;
letter-spacing: 0.03em;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}

.hello_signature::before,
.hello_signature::after{
content: "";
width: 26px;
height: 1px;
background: rgba(98, 79, 64, 0.4);
}

.hello_right{
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 22px;
padding: 42px;
border-radius: 34px;
background: linear-gradient(140deg, rgba(72, 53, 40, 0.22), rgba(255, 246, 238, 0.08));
border: 1px solid rgba(255, 255, 255, 0.24);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
box-shadow: 0 26px 80px rgba(27, 18, 11, 0.2);
max-width: 680px;
}

.hello_right::before{
content: "";
position: absolute;
inset: 18px 20px auto;
height: 1px;
background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}

.hello_kicker{
display: inline-flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
border-radius: 999px;
background: rgba(255, 251, 246, 0.14);
border: 1px solid rgba(255, 255, 255, 0.22);
font-family: roboto;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
color: rgba(255, 250, 244, 0.86);
}

.hello_kicker::before{
content: "";
width: 8px;
height: 8px;
border-radius: 50%;
background: #d8c1a4;
box-shadow: 0 0 0 6px rgba(216, 193, 164, 0.12);
}

.hello_right p{
margin: 0;
max-width: 680px;
font-family: "Noto Serif", serif;
font-weight: 500;
font-size: clamp(38px, 4.1vw, 64px);
line-height: 1.08;
color: rgba(255, 248, 241, 0.96);
text-shadow: 0 8px 28px rgba(24, 16, 9, 0.24);
}

.hello_lead{
max-width: 560px;
font-family: roboto;
font-size: 19px;
line-height: 1.6;
color: rgba(255, 245, 236, 0.84);
}

.hello_meta{
display: flex;
flex-wrap: wrap;
gap: 10px;
}

.hello_meta span{
display: inline-flex;
align-items: center;
min-height: 40px;
padding: 0 14px;
border-radius: 999px;
background: rgba(255, 249, 242, 0.1);
border: 1px solid rgba(255, 255, 255, 0.18);
font-family: roboto;
font-size: 14px;
font-weight: 500;
color: rgba(255, 245, 236, 0.84);
}

.exposition_button{
position: relative;
margin-top: 8px;
padding: 0 28px;
min-width: 290px;
min-height: 76px;
justify-content: space-between;
gap: 18px;
background: linear-gradient(135deg, rgba(167, 145, 126, 0.96), rgba(125, 98, 77, 0.96));
border: 1px solid rgba(255, 255, 255, 0.18);
font-size: 17px;
font-weight: 400;
letter-spacing: 0.01em;
text-transform: lowercase;
box-shadow: 0 22px 46px rgba(54, 35, 20, 0.22);
}

.exposition_button::before{
content: "";
position: absolute;
inset: 1px;
border-radius: inherit;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
pointer-events: none;
}

.exposition_button:hover{
transform: translateY(-2px);
box-shadow: 0 26px 52px rgba(54, 35, 20, 0.26);
}

.exposition_button img{
position: relative;
z-index: 1;
}

@media screen and (max-width: 1100px) {
    .hello{
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 150px 32px 56px;
    }

    .hello_visual{
        order: 2;
    }

    .hello_right{
        order: 1;
        max-width: 760px;
        width: 100%;
        justify-self: center;
    }
}

@media screen and (max-width: 700px) {
    .hello{
        padding: 132px 18px 40px;
        min-height: auto;
    }

    .hello_portrait_shell{
        padding: 18px 14px 10px;
        border-radius: 30px;
    }

    .hello_right{
        padding: 24px 18px;
        gap: 16px;
        border-radius: 24px;
    }

    .hello_right p{
        font-size: clamp(28px, 8vw, 40px);
    }

    .hello_lead{
        font-size: 16px;
    }

    .hello_signature{
        font-size: 13px;
        text-align: center;
    }

    .hello_signature::before,
    .hello_signature::after{
        width: 16px;
    }

    .hello_meta span{
        min-height: 34px;
        font-size: 12px;
        padding: 0 10px;
    }

    .exposition_button{
        width: 100%;
        min-width: 0;
        min-height: 64px;
        padding: 0 20px;
        font-size: 15px;
    }
}

body{
margin: 0;
padding: 0;
background: #F9F7F4;
overflow-x: hidden;
position: relative;
box-sizing: border-box;
color: #1f1a17;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}

*,
*::before,
*::after{
box-sizing: inherit;
}


.fade-in {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
opacity: 1;
transform: translateY(0);
}

nav{
position: fixed;
justify-self: center;
display: flex;
justify-content: center;
align-items: center;
gap: 60px;
width: min(1000px, calc(100% - 80px));
background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(157, 157, 157, 0));
border-radius: 30px;                  /* скругление углов */
padding: 15px;                        /* внутренние отступы */
border: 1px solid rgba(255, 255, 255, 0.3); /* полупрозрачная рамка */
backdrop-filter: blur(100px);         /* размытие заднего фона */
-webkit-backdrop-filter: blur(10px); /* для Safari */
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* тень */
z-index: 999;
margin-top: 20px;
transition: transform 0.4s ease;

}

nav ul{
display: flex;
gap: 60px;
flex-wrap: wrap;
justify-content: center;
}

nav.hidden {
transform: translateY(-100%);
}

nav li{
list-style-type: none;
position: relative;
display: inline-block;
padding-bottom: 5px;
}

nav li:after{
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: -5px;
width: 90px;
height: 1px;
background-color: #000000;
transition: 0.3s;
}

nav li:hover::after{
width: 100px;
}

nav li a{
font-family: roboto;
font-size: 20px;
color: #000000cd;
text-decoration: none;
}

.view_min{
    display: none;
}

.hello{
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: url(../Media/other/hello.png) no-repeat center center/cover;
}

.hello_right p{
    font-family: "Noto Serif", serif;
font-weight: 400;
font-size: 35px;
color: rgba(255, 255, 255, 0.808);
max-width: 900px;
line-height: 1.35;
}

.qr_code{
width: 200px;
}


.empty{
    display: none;
background: url(../Media/other/empty.png) no-repeat center center/cover;
height: 50px;
}

.map{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: url(../Media/other/banner.jpg) no-repeat center center/cover;
height:100vh ;
margin-top: 120px;
position: relative;
overflow: hidden;
isolation: isolate;
}

.map::before{
content: "";
position: absolute;
inset: 0;
background:
linear-gradient(180deg, rgba(17, 28, 35, 0.24) 0%, rgba(17, 28, 35, 0.1) 34%, rgba(17, 28, 35, 0.3) 100%),
radial-gradient(circle at 50% 42%, rgba(229, 239, 243, 0.2), transparent 42%);
z-index: 0;
pointer-events: none;
}

.map::after{
content: "";
position: absolute;
inset: 0;
background: linear-gradient(90deg, rgba(8, 14, 18, 0.12), transparent 18%, transparent 82%, rgba(8, 14, 18, 0.14));
z-index: 0;
pointer-events: none;
}

.block_map{
position: relative;
border-radius: 25px;
margin-top: 150px;
z-index: 1;
}

.block_map::before{
content: "";
position: absolute;
inset: 6% 8% 4%;
border-radius: 42px;
background: radial-gradient(circle at 50% 50%, rgba(214, 230, 236, 0.26), rgba(214, 230, 236, 0));
filter: blur(26px);
z-index: -1;
pointer-events: none;
}

.map_maps{
display: block;
width: min(980px, 78vw);
height: auto;
filter: drop-shadow(0 18px 40px rgba(5, 16, 21, 0.28));
}

.block_life_orenburg,
.block_life_kostanay,
.block_life_actobe,
.block_life_almata,
.block_life_born{
overflow: hidden;
background: linear-gradient(155deg, rgba(227, 236, 240, 0.24), rgba(175, 194, 202, 0.08));
border: 1px solid rgba(255, 255, 255, 0.34);
box-shadow:
0 18px 40px rgba(8, 20, 28, 0.16),
inset 0 1px 0 rgba(255, 255, 255, 0.28);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
z-index: 2;
}

.block_life_orenburg:hover,
.block_life_kostanay:hover,
.block_life_actobe:hover,
.block_life_almata:hover,
.block_life_born:hover{
transform: translateY(-6px) scale(1.03);
box-shadow:
0 24px 52px rgba(8, 20, 28, 0.22),
inset 0 1px 0 rgba(255, 255, 255, 0.34);
border-color: rgba(255, 255, 255, 0.48);
}

.block_life_orenburg .block_info::before,
.block_life_kostanay .block_info::before,
.block_life_actobe .block_info::before,
.block_life_almata .block_info::before,
.block_life_born .block_info::before{
content: "";
position: absolute;
top: 14px;
left: 0;
width: 42px;
height: 2px;
border-radius: 999px;
background: linear-gradient(90deg, rgba(245, 236, 224, 0.8), rgba(245, 236, 224, 0));
}

.block_life_orenburg .block_info::after,
.block_life_kostanay .block_info::after,
.block_life_actobe .block_info::after,
.block_life_almata .block_info::after,
.block_life_born .block_info::after{
content: "";
position: absolute;
inset: 0;
border-radius: 18px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
pointer-events: none;
}

.block_life_orenburg{
position: absolute;
top: 15px;
left: 40px;
display: flex;
width: 204px;
height: 135px;
border-radius: 20px;
cursor: pointer;
}
.block_life_orenburg:hover{
transform: translateY(-6px) scale(1.03);
}

.block_life_orenburg::before{
position: absolute;
content: "";
height: 18px;
width: 18px;
background: rgba(255, 255, 255, 0.693);
border-radius: 30px;
bottom: -17px;
right: -17px;
}

.block_info{
margin: 0;
padding: 0;
margin-left: 20px;
padding: 12px 18px 14px 0;
position: relative;
z-index: 1;
}

.block_info h2{
margin: 0;
margin-top: 10px;
font-family: "Noto Serif", serif;
font-weight: 500;
font-size: 20px;
line-height: 1.1;
letter-spacing: 0.01em;
color: rgba(248, 251, 252, 0.96);
text-shadow: 0 4px 12px rgba(19, 31, 40, 0.18);
}

.block_info h3{
margin: 0;
font-family: "Noto Serif", serif;
font-weight: 500;
font-size: 17px;
line-height: 1.25;
color: rgba(244, 248, 250, 0.88);
}
.block_info p{
margin: 0;
margin-top: 6px;
margin-left: 12px;
font-family: "Noto Serif", serif;
font-weight: 500;
font-size: 12px;
line-height: 1.45;
position: relative;
color: rgba(236, 243, 245, 0.8);
}

.block_info p::before{
position: absolute;
content: "";
top: 5px;
left: -10px;
height: 4px;
width: 4px;
border-radius:30px ;
background: #8A786B;
}


.block_life_kostanay{
position: absolute;
top: -26px;
left: 495px;
display: flex;
width: 204px;
height: 135px;
border-radius: 20px;
cursor: pointer;
}

.block_life_kostanay:hover{
transform: translateY(-6px) scale(1.03);
}

.block_life_kostanay::before{
position: absolute;
content: "";
height: 18px;
width: 18px;
background: rgba(255, 255, 255, 0.693);
border-radius: 30px;
bottom: -10px;
left: -30px;
}


.block_life_actobe{
position: absolute;
top: 225px;
left: 110px;
display: flex;
width: 204px;
height: 135px;
border-radius: 25px;
border-radius: 20px;
cursor: pointer;
}

.block_life_actobe:hover{
transform: translateY(-6px) scale(1.03);
}

.block_life_actobe::before{
position: absolute;
content: "";
height: 18px;
width: 18px;
background: rgba(255, 255, 255, 0.693);
border-radius: 30px;
top: -20px;
right: -15px;
}


.block_life_almata{
position: absolute;
top: 360px;
right: 260px;
display: flex;
width: 204px;
height: 135px;
border-radius: 25px;
border-radius: 20px;
cursor: pointer;
}

.block_life_almata:hover{
transform: translateY(-6px) scale(1.03);
}

.block_life_almata::before{
position: absolute;
content: "";
height: 18px;
width: 18px;
background: rgba(255, 255, 255, 0.693);
border-radius: 30px;
bottom: -20px;
right: -15px;
}


.block_life_born{
position: absolute;
top: 150px;
right: 440px;
display: flex;
width: 204px;
height: 135px;
border-radius: 25px;
border-radius: 20px;
cursor: pointer;
}

.block_life_born:hover{
transform: translateY(-6px) scale(1.03);
}

.block_life_born::before{
position: absolute;
content: "";
height: 18px;
width: 18px;
background: rgba(255, 255, 255, 0.693);
border-radius: 30px;
bottom: -20px;
left: -15px;
}

.logo{
position: absolute;
top: 1px;
left: 20px;
z-index: 1;
}

#banner{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 50px;
}


.banner_after{
width: 800px;
display: flex;
justify-content: center;
text-align: center;
line-height: 1.5;
margin-top: 70px;
color: #000000;
}

.centered-text{
font-family: "Noto Serif", serif;
font-weight: 400;
font-size: 24px;
}

.exposition_button{
display: flex;
justify-content: center;
align-items: center;
height: 70px;
width: 260px;
font-family: roboto;
background: linear-gradient(135deg, rgb(138, 120, 107, 1), rgba(138,120,107,1));
font-weight: 200;
color: #fff;
text-decoration: none;
transition: 0.3s;
margin-top: 62px;
padding-left: 10px;
border-radius: 25px;
box-shadow: 0 18px 35px rgba(77, 53, 37, 0.18);
}
.exposition_button img{
transition: 0.3s;
}

.exposition_button:hover{
transform: scale(1.05);
}

.exposition_button:hover img{
    transform: translateX(7px);
}

.timeline{
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
position: relative;
margin-top: 100px;
}

.timeline_content{
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
width: 1200px;
position: relative;
margin-bottom: 100px;
}

.timeline_content::before {
content: "";
position: absolute;
top: 50px;
bottom: 0;
left: 20px;
width: 1px;
background-color: black; 
z-index: 0;
height: 95%;
}

.timeline_title_main{
width: 1200px;
margin-top: 60px;
}

.beige{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 2000px;
overflow: hidden;
background: #e9e7e5;
box-sizing: border-box;
padding: 0 0 60px 0;


}


.timeline_title{
font-size: 40px;
font-family: "Noto Serif", serif;
font-weight: 600;
margin: 0;
}

.timeline_subtitle{
font-family: roboto;
font-size: 25px;
font-weight: 300;
margin: 0;
margin-top: 7px;
}

.timeline_content_born{
max-width: 1050px;
display: flex;
flex-direction: column;
margin-top: 100px;

}

.timeline_year{
font-size: 40px;
font-family: "Noto Serif", serif;
font-weight: 500;
margin: 0;
position: relative;
}

.timeline_year::before {
content: "";
position: absolute;
left: -61px;
top: 23px;
width: 12px;
height: 12px;
background-color: black;
border-radius: 50%;
z-index: 1;
}

.timeline_event_title{
font-size: 30px;
font-family: "Noto Serif", serif;
font-weight: 400;
margin-top: 10px;
margin-bottom: 20px;
}

.timeline_description{
font-family: roboto;
font-size: 20px;
font-weight: 300;
text-align: justify;
margin: 0;
}

.player{
width: 200px;
margin-top: 20px;
margin-bottom: 20px;
}

.timeline_content_voice{
max-width: 1050px;
display: flex;
flex-direction: column;
margin-top: 60px; 
margin-bottom: 60px; 
}

.timeline_description_main{
display: flex;
gap: 15px;
margin-top: 20px;
}

.timeline_description_main img{
border-radius: 25px;
}

.player_white{
width: 200px;
margin-top: 20px;
}

.timeline_content_banishment{
max-width: 1050px;
display: flex;
flex-direction: column;
margin-top: 37px;  
position: relative;
}

.info-section{
display: flex;
align-items: center;
flex-direction: column;
height: 1600px;
background: url(../Media/other/block_who.png) center center/cover;
}

.info-section a{
text-decoration: none;
color: white;
}

.info_title{
width: 1200px;
margin-top: 60px;
color: white;
margin-bottom: 70px;
}

.info-card{
display: flex;
width: 1100px;
height: 358px;
background: #fafafa;
border-radius: 25px;
margin-top: 40px;
transition: 0.3s;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255,255,255,0));               
border: 1px solid rgba(255, 255, 255, 0.3); /* полупрозрачная рамка */
backdrop-filter: blur(10px);         /* размытие заднего фона */
-webkit-backdrop-filter: blur(10px); /* для Safari */
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* тень */
}

.info-card:hover{
transform: scale(1.04);
box-shadow: 1px 2px 10px rgb(117, 117, 117);
}


.info-image img{
border-radius: 25px 0 0 25px;
}

.info-image2 img{
border-radius: 0 25px 25px 0;
}

.info-content{
margin-left: 70px;
margin-top: 20px;
display: flex;
flex-direction: column;
width: 100%;
color: #fafafa;    
}

.info-title{
font-size: 35px;
font-family: "Noto Serif", serif;
font-weight: 500;
}

.info-list{
display: flex;
flex-direction: column;
margin: 0;
padding: 0 19px;
width: 450px;
gap: 15px;
height: 120px;
}

.info-list li{
font-family: roboto;
font-weight: 300;
font-size: 20px;  
}

.info-list li::marker{
color: #8A786B;
}

.info_button{
align-self: flex-end;
display: flex;
justify-content: center;
align-items: center;
height: 58px;
width: 250px;
font-family: roboto;
font-weight: 200;
color: #fff;
text-decoration: none;
transition: 0.3s;
padding-left: 25px;
margin-right: 40px;
margin-top: 20px;
background: linear-gradient(135deg, rgb(138, 120, 107, 0.6), rgba(255,255,255,0));
border-radius: 30px;                               
border: 1px solid rgba(255, 255, 255, 0.3); 
backdrop-filter: blur(10px);      
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.info_button img{
transition: 0.3s;
}

.info_button:hover{
transform: scale(1.05);
}

.info_button:hover img{
    transform: translateX(7px);
}

.museum{
display: flex;
align-items: center;
flex-direction: column;
background: url(../Media/other/shanyrak.jpg) center center/cover;
position: relative;
}

.museum::before {
content: '';
position: absolute;
inset: 0;
backdrop-filter: blur(3px); /* <-- блюр */
background-color: rgba(255, 255, 255, 0); /* прозрачный белый фильтр */
z-index: 1;
}

.museum_title{
font-size: 40px;
font-family: "Noto Serif", serif;
font-weight: 600;
margin: 0;
color: #fafafa;
z-index: 100;
}

.museum_subtitle{
font-family: roboto;
font-size: 25px;
font-weight: 300;
margin: 0;
margin-top: 7px;
color: #fafafa;
z-index: 100;
}

.images{
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
flex-wrap: wrap;
padding: 70px 0;
width: 1150px;
margin-top: 100px;
background: #f8f4ec;
color: #000000 ;
z-index: 1000;
border-radius: 25px;
margin-bottom: 100px;
}

.who_title{
width: 1200px;
margin-top: 60px;
z-index: 100;
}

.block_main{
display: flex;
justify-content: space-between;
width: 1010px;
gap: 10px;
}

.block_image:hover img{
transform: scale(1.03);
box-shadow: 1px 2px 10px rgb(117, 117, 117);
}

.block_image{
display: flex;
justify-content: flex-start;
align-items: center;
flex-direction: column;
transition: 0.3s;
}

.block_image img{
border-radius: 25px;
transition: 0.3s;
}

.block_image h3{
font-family: roboto;
font-weight: 200;
font-size: 15px;
margin-top:20px;
max-width: 340px;
text-align: center;
}

.reference{
width: 236px;
height: 334px;
}

.reduce{
width: 200px;
display: flex;
justify-content: center;
text-align: center;
}

.museum_button{
display: flex;
justify-content: center;
align-items: center;
height: 58px;
width: 250px;
font-family: roboto;
font-weight: 200;
color: #fff;
text-decoration: none;
transition: 0.3s;
padding-left: 25px;
margin-top: 40px;
background: linear-gradient(135deg, rgb(138, 120, 107, 0.9), rgba(138,120,107,0.6));
border-radius: 30px;                               
border: 1px solid rgba(255, 255, 255, 0.3); 
backdrop-filter: blur(10px);      
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.museum_button img{
transition: 0.3s;
}

.museum_button:hover{
transform: scale(1.05);
}

.museum_button:hover img{
    transform: translateX(7px);
}

.video{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: #eceae8;
}

.video_title{
font-size: 40px;
font-family: "Noto Serif", serif;
font-weight: 600;
margin: 0;
color: #000000;
z-index: 100;

}

.video_subtitle{
font-family: roboto;
font-size: 25px;
font-weight: 300;
margin: 0;
margin-top: 7px;
color: #000000;
z-index: 100;
}

.main_video{
height: 508px;
width: 1010px;
background: #000000;
margin-top: 70px;
border-radius: 25px;
position: relative;
overflow: hidden;
transition: 0.3s;
}

.main_video:hover{
transform: scale(1.02);
}

video {
width: 100%;
display: block;
}

.video-header {
position: absolute;
top: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(4px);
color: white;
padding: 20px 15px;
font-size: 16px;
z-index: 15;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}

.video-header.visible {
opacity: 1;
pointer-events: auto;
}

.video-title{
font-size: 17px;
font-family: roboto;
font-weight: 300;
margin-left: 15px;
}

/* Видео */
.main_video video {
display: block;
width: 100%;
height: auto;
object-fit: cover;
cursor: pointer;
}

/* Контролы (панель управления) */
.controls {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(6px);
padding: 15px 20px;
display: flex;
flex-direction: column;
align-items: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
z-index: 10;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
}

/* Когда нужно отобразить */
.controls.visible {
opacity: 1;
pointer-events: auto;
}

/* Прогресс-бар */
#progress {
width: 100%;
appearance: none;
height: 6px;
background: #ffffff;
border-radius: 5px;
outline: none;
margin-bottom: 10px;
}

#progress::-webkit-slider-thumb {
appearance: none;
width: 14px;
height: 14px;
background: #e5e5e5;
border-radius: 50%;
cursor: pointer;
}

#progress::-moz-range-thumb {
width: 14px;
height: 14px;
background: #444;
border: none;
border-radius: 50%;
cursor: pointer;
}

#toggle{
background: none;
border: none;
color: #e4e2dd;
}

#toggle-icon{
width: 40px;
}

.controls {
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}

.controls.visible {
opacity: 1;
pointer-events: auto;
}

#fullscreenBtn,#fullscreenBtn2,#fullscreenBtn3{
width: 30px;
align-self: flex-end;
margin-right: 20px;
border: none;
background: none;
}

.full_screen{
width: 30px;
transition: 0.3s;
}
.full_screen:hover{
transform: scale(1.07);
}

.mini_video{
height: 316px;
width: 612px;
background: #000000;
border-radius: 25px;
position: relative;
overflow: hidden;
transition: 0.3s;
}

.mini_video:hover{
transform: scale(1.02);
}


/* Прогресс-бар */
#progress2, #progress3{
width: 100%;
appearance: none;
height: 6px;
background: #fafafa;
border-radius: 5px;
outline: none;
margin-bottom: 10px;
}

#progress2::-webkit-slider-thumb, #progress3::-webkit-slider-thumb {
appearance: none;
width: 10px;
height: 10px;
background: #cecece;
border-radius: 50%;
cursor: pointer;
}

#progress2::-moz-range-thumb, #progress3::-moz-range-thumb {
width: 10px;
height: 10px;
background: #444;
border: none;
border-radius: 50%;
cursor: pointer;
}



.center-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: opacity 0.3s ease;
pointer-events: none;
z-index: 12;
}

.center-icon img {
width: 60px;
}

.mini_players{
display: flex;
justify-content: space-between;
width: 1010px;
margin-top: 30px;
}


.mini_audio{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: #fafafa;
height: 316px;
width: 367px;
border-radius: 25px;
transition: 0.3s;
box-shadow: 1px 1px 10px #cecece;
}

.mini_audio:hover{
transform: scale(1.02);
}


.mini_audio p{
margin-bottom: 100px;
font-family: "Noto Serif", serif;
font-weight: 400;
font-size: 20px;
width: 310px;
}

.bottom{
margin-bottom: 70px;
}


.intresting{
display: flex;
align-items: center;
flex-direction: column;
background: url(../Media/other/intresting.jpg) no-repeat center center/cover;
height: 100vh;
}

.main_intresting{
display: flex;
width: 1000px;
flex-wrap: wrap;
gap: 27px;
margin-top: 100px;

}

.block_intresting_little{
display: flex;
flex-direction: column;
width: 422px;
height: 191px;
box-sizing: border-box;
background: #fafafa;
border-radius: 25px;
margin-top: 40px;
transition: 0.3s;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255,255,255,0));               
border: 1px solid rgba(255, 255, 255, 0.3); /* полупрозрачная рамка */
backdrop-filter: blur(10px);         /* размытие заднего фона */
-webkit-backdrop-filter: blur(10px); /* для Safari */
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* тень */
gap: 10px;
margin: 0;
}

.block_intresting_little:hover{
transform: scale(1.03);
}

.block_intresting_little p{
font-size: 25px;
font-family: roboto;
font-weight: 300;
color: white;
margin: 30px 30px 15px 30px;
}

.litte_text{
width: 250px;
}

.large_text{
    width: 350px;
}

.block_intresting_little button{
align-self: flex-end;
font-size: 18px;
font-family: roboto;
font-weight: 200;
color: white;
width: 191px;
height: 58px;
border-radius: 25px;
    background: linear-gradient(135deg, rgb(138, 120, 107, 0.9), rgba(138,120,107,0.6));
border-radius: 30px;                               
border: 1px solid rgba(255, 255, 255, 0.3); 
backdrop-filter: blur(10px);      
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
margin-right: 30px;
}


.block_intresting_large{
display: flex;
flex-direction: column;
width: 543px;
height: 191px;
box-sizing: border-box;
background: #fafafa;
border-radius: 25px;
margin-top: 40px;
transition: 0.3s;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255,255,255,0));               
border: 1px solid rgba(255, 255, 255, 0.3); /* полупрозрачная рамка */
backdrop-filter: blur(10px);         /* размытие заднего фона */
-webkit-backdrop-filter: blur(10px); /* для Safari */
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* тень */
margin: 0;
}

.block_intresting_large:hover{
transform: scale(1.03);
}



.block_intresting_large p{
font-size: 25px;
font-family: roboto;
font-weight: 300;
color: white;
margin: 30px 30px 15px 30px;
}

.block_intresting_large p:last-child{
font-size: 18px;
font-family: roboto;
font-weight: 300;
color: white;
margin: 20px 30px 15px 30px;
}

.block_intresting_large button{
align-self: flex-end;
font-size: 18px;
font-family: roboto;
font-weight: 200;
color: white;
width: 191px;
height: 58px;
border-radius: 25px;
background: linear-gradient(135deg, rgb(138, 120, 107, 0.9), rgba(138,120,107,0.6));
border-radius: 30px;                               
border: 1px solid rgba(255, 255, 255, 0.3); 
backdrop-filter: blur(10px);      
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
margin-right: 30px;
}

.books{
    height: 100vh;
    background: url(../Media/other/mountain.png) no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main_books{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 69px;
    width: 1718px;
    height: 919px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255,255,255,0));               
    border: 1px solid rgba(255, 255, 255, 0.3); /* полупрозрачная рамка */
    backdrop-filter: blur(10px);         /* размытие заднего фона */
    -webkit-backdrop-filter: blur(10px); /* для Safari */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* тень */
}

.main_books_cont{
    display: flex;
    gap: 69px;
    margin-top: 50px;
}

.block_book{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.862);
    font-family: "Noto Serif", serif;
    font-weight: 400;
    font-size: 16px;
    transition: 0.3s;
}

.block_book:hover{
    transform: scale(1.03);
}

.airport{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url(../Media/other/pexels-marina-hinic-199169-730778.jpg) no-repeat center center/cover;
}

.air{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:78px ;
    width: 1700px;
    height: 684px;
    padding: 60px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255,255,255,0));               
    border: 1px solid rgba(255, 255, 255, 0.3); /* полупрозрачная рамка */
    backdrop-filter: blur(10px);         /* размытие заднего фона */
    -webkit-backdrop-filter: blur(10px); /* для Safari */
    box-shadow: 1px 4px 30px rgba(0, 0, 0, 0.195); /* тень */
}

.air h1{
    font-family: "Noto Serif", serif;
    font-weight: 600;
    font-size: 37px;
}

.air p{
    font-family: roboto;
    line-height: 30px;
    font-weight: 300;
    font-size: 20px;
}

.air_button{
    align-self: flex-end;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 58px;
    width: 250px;
    font-family: roboto;
    font-weight: 200;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    padding-left: 25px;
    margin-right: 40px;
    margin-top: 20px;
    background: linear-gradient(135deg, rgb(138, 120, 107, 0.6), rgba(138, 120, 107, 0.6));
    border-radius: 30px;                               
    border: 1px solid rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(10px);      
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.air_button img{
transition: 0.3s;
}
.air_button:hover{
    transform: scale(1.05);
}

.air_button:hover img{
    transform: translateX(7px);
}

.university{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: "Noto Serif", serif;
    font-weight: 300;
    font-size: 20px;
    height: 100vh;
    background: url(../Media/other/univers\ 1.png) no-repeat center center/cover ;
}

.university_block{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 650px;
    gap: 30px;
}

.uni_button{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 58px;
    width: 250px;
    font-family: roboto;
    font-size: 16px;
    font-weight: 200;
    color: rgb(255, 255, 255);
    padding-left: 25px;
    backdrop-filter: blur(10px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 30px;
    text-decoration: none;
    transition: 0.3s;
    background: linear-gradient(135deg, rgba(138, 120, 107, 0.6), rgba(138, 120, 107, 0.6));
    border-radius: 30px;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.3);
    border-image: initial;
}

.uni_button img{
    transition: 0.3s;
    }
.uni_button:hover{
    transform: scale(1.05);
}

.uni_button:hover img{
    transform: translateX(7px);
}


.creator{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
font-family: "Noto Serif", serif;
font-weight: 400;
font-size: 20px;
height: 100vh;
text-align: center;
padding: 0 400px;
}

.top_cr{
    font-weight: 600;
}



.history_persone {
    min-height: 100vh;
    background: url(../Media/Photo/backgroung_history.png) no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 220px max(60px, calc((100vw - 1200px) / 2)) 80px;
    width: 100%;
}

.history_title_mobile {
    display: none;
}

.history_main {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    width: 100%;
}

.history_main a {
    text-decoration: none;
    cursor: pointer;
    flex: 1 1 300px;
    max-width: 360px;
    display: block;
}

.block_persone {
    height: 420px;
    width: 100%;
    border-radius: 25px;
    display: flex;
    align-items: end;
    box-sizing: border-box;
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.block_persone:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.marj{
     background: url(../Media/Photo/marj.png) no-repeat center center/cover;
}

.saken{
     background: url(../Media/Photo/saken.png) no-repeat center center/cover;
}

.muhtar{
     background: url(../Media/Photo/muhtar.png) no-repeat center center/cover;
}

.title_persone{
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-family: "Noto Serif", serif;
    font-weight: 300;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.786);
}










.learn_more{
display: flex;
justify-content: center;
gap: 40px;
padding: 150px;
}

.learn_left h2{
font-family: "Noto Serif", serif;
font-weight: 500;
font-size: 35px;
}

.learn_left a{
display: block;
font-family: roboto;
font-weight: 300;
font-size: 24px;
color: black;
text-decoration: none;
margin-top: 20px;
margin-left: 40px;
position: relative;
transition: 0.3s;

}

.learn_left a:hover{
transform: scale(1.05);
}

.learn_left a::before{
position: absolute;
content: "";
width: 10px;
height: 10px;
background: #8A786B;
border-radius: 30px;
top: 11px;
left: -25px;
}


.block_bottom{
display: flex;
justify-content: center;
align-self: center;
gap: 30px;
position: relative;
margin-bottom: 150px;
}

.contact{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}

.contact h2{
font-family: roboto;
font-weight: 300;
font-size: 25px;
}


.block_bottom::before{
position: absolute;
content: "";
height: 1px;
width: 1300px;
background:#8A786B;
bottom: 35px;
}

.contact_bottom{
display: flex;
justify-content: center;
align-items: center;
gap: 50px;
}

.block_bottom a{
font-family: roboto;
font-size: 20px;
font-weight: 300;
color: #000000;
text-decoration: none;
transition: 0.3s;
}

.block_bottom a:hover{
transform: scale(1.05);
}


.copyrights{
display: flex;
justify-content: center;
align-self: center;
font-family: roboto;
font-size: 15px;
font-weight: 300;
margin-bottom: 10px;
}


#scrollTopBtn {
display: none; /* Скрыта по умолчанию */
position: fixed;
bottom: 40px;
right: 40px;
z-index: 99;
width: 60px; /* подгони под размер изображения */
height: 60px;
cursor: pointer;
transition: 0.3s;
}


#scrollTopBtn:hover{
transform: scale(1.06);
}




.modal_who {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(6px);
justify-content: center;
align-items: center;
z-index: 1000;
}

.modal_who.active {
display: flex;
justify-content: center;
align-items: center;
}

.content{
display: flex;
justify-content: center;
align-items: center;
gap: 80px;
width: min(1500px, calc(100% - 80px));
}

.right_modal h2{
color: #ffffffea;
font-family: noto-serif;
font-size: 35px;
font-weight: 600;
text-align: justify;
}

.content p{
margin-bottom: 15px;
line-height: 1.6;
color: #ffffffea;
font-family: roboto;
font-size: 20px;
font-weight: 300;
text-align: justify;
}

.content img{
height: 600px;
}

.modal-content {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
border-radius: 12px;
max-height: 100vh; /* или сколько тебе нужно */
overflow-y: auto;
padding-right: 10px; /* чтобы не обрезался скроллбар */
}



.close-modal{
font-size: 20px;
display: flex;
justify-content: center;
align-items: center;
align-self: center;
height: 70px;
width: 260px;
font-family: roboto;
background: linear-gradient(135deg, rgb(138, 120, 107, 0.9), rgba(138,120,107,0.4));
font-weight: 200;
color: #fff;
text-decoration: none;
transition: 0.3s;
margin-top: 60px;
padding-left: 10px;
border-radius: 25px;
border: none;
cursor: pointer;
}



/* галерея */
.lightbox {
position: fixed;
inset: 0;
background: rgba(96, 96, 96, 0.4);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
display: none;
justify-content: center;
align-items: center;
z-index: 1000;

}

.lightbox-inner {
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
padding: 20px;
max-width: 90%;
}

#lightbox-img {
border-radius: 10px;
transition: all 0.3s ease;
max-width: 80vw;
max-height: 80vh;
object-fit: contain;
border-radius: 10px;
}

.lightbox-inner h3 {
margin-top: 15px;
color: white;
font-size: 20px;
font-family: roboto;
font-weight: 300;
}

/* Кнопка закрытия */
.close-btn img{
position: absolute;
top: -25px;
right: -60px;
width: 50px;
}

/* Основная оболочка */
#lightbox-map {
display: none;
display: flex;
position: fixed;
flex-direction: column;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: none;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.5); /* затемнение */
backdrop-filter: blur(8px);     /* 💡 размытие заднего фона */
z-index: 9999;
}

/* Контейнер модалки */
.lightbox-map-content {
width: 80vw;
height: 80vh;
border-radius: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
}

/* Основной контент в 2 колонки */
.lightbox-map-body {
display: flex;
justify-content: center;
align-items: center;
flex: 1;
overflow: hidden;
}

/* Левая колонка — изображение */
.lightbox-map-image {
flex: 1;
max-width: 50%;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}

.lightbox-map-image img {
width: 60vh;  
object-fit: contain;
border-radius: 8px;
box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* Правая колонка — текст */
.lightbox-map-text {
flex: 1;
padding: 30px 25px;
text-align: justify;
overflow-y: auto;
scroll-behavior: smooth;
}

#lightbox-map-title {
margin: 0;
font-size: 35px;
font-family: "Noto Serif", serif;
font-weight: 400;
font-size: 39px;
color: #ffffffea;
}

#lightbox-map-subtitle {
margin-top: 8px;
font-size: 26px;
font-family: "Noto Serif", serif;
font-weight: 400;
color: #ffffffea;
}

#lightbox-map-description {
margin-top: 20px;
}

#lightbox-map-description p {
margin-bottom: 15px;
line-height: 1.6;
color: #ffffffea;
font-family: roboto;
font-size: 20px;
font-weight: 300;
}

.modal-close-button{
font-size: 20px;
display: flex;
justify-content: center;
align-items: center;
height: 70px;
width: 260px;
font-family: roboto;
background: linear-gradient(135deg, rgb(138, 120, 107, 0.9), rgba(138,120,107,0.4));
font-weight: 200;
color: #fff;
text-decoration: none;
transition: 0.3s;
margin-top: 62px;
padding-left: 10px;
border-radius: 25px;
border: none;
cursor: pointer;
}

.modal-close-button:hover{
transform: scale(1.03);
}



/* Модальное окно галереи - музея*/
.modal_museum {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
left: 0;
background: rgba(0,0,0,0.6);
backdrop-filter: blur(3px);
display: none;
justify-content: center;
align-items: start;
overflow-y: auto;
z-index: 1000;
inset: 0;


}

.modal_content {
border-radius: 20px;
max-width: 1200px;
width: 100%;
padding: 40px 20px;
position: relative;
}


.close_modal:hover{
transform: scale(1.05);
}






@media screen and (max-width: 500px) {
    body{
        width: 100%;
    }

    .empty{
        height: 30px;
    }

    .lang img{
        width: 25px;
    }

    nav{
        display: flex;
        width: 350px;

    }

    nav ul li{
        display: none;
    }

    .more_slides{
        position: absolute;
        top: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        left: 70px;
    }

    .slides_Button{
        width: 25px;
    }

    .more_slides_cont{
        top: 100px;
    }

    .lang{
        top: 20px;
    }

    .choise {
        top: 100px;
        right: 10px;
    }


    .view_min{
        display: block;
}


    .hello{
        flex-direction: column;
        height: 100vh;
    }

    .hello_bait{
        width: 300px;
    }

    .hello_right{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .hello_right p{
        width: 300px;
        font-size: 20px;
        text-align: center;
        color: rgba(255, 255, 255, 0.839);
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }

    .exposition_button{
        width: 230px;
    }

    .creator{
        box-sizing: border-box;
        padding: 20px;
        font-size: 15px;
        height: 100vh;
        margin-top: 40px;
    }

    .creator img{
        width: 140px;
        margin-top: 40px;
    }

    .logo{
        width: 300px;
        margin-top: 20px;
    }

    .map_maps{
        width: 370px;
    }

    .block_info h2{
        font-size: 15px;
        
    }   
    .block_info h3{
        font-size: 12px;
    }

    .block_info p{
        font-size: 10px;
        margin: 10px 0;
    }




    .block_life_orenburg{
        width: 115px;
        top: -110px;
        left: -10px;

    }

    .block_life_orenburg::before{
        bottom: -30px;
        right: 17px;
        height: 10px;
        width: 10px;
    }

    .block_life_kostanay{
        width: 115px;
        left: 160px;
        top: -105px;

    }
    .block_life_kostanay::before{
        width: 10px;
        height: 10px;
        left: -10px;
    }

    .block_life_actobe{
        width: 115px;
        top: 80px;
        left: -10px;
    }



    .block_life_actobe::before{
        height: 10px;
        width: 10px;
        top: -15px;
        right: 0px;
    }


    .block_life_almata{
        right: -18px;
        top: 180px;
        width: 115px;
    }

    .block_life_almata::before{
        height: 10px;
        width: 10px;
        top: -20px;
        left: 8px;
    }


    .block_life_born{
        width: 115px;
        right: 108px;
        top: 110px;
    }

    .block_life_born::before{
        height: 10px;
        width: 10px;
        top: -20px;
        left: 8px;
    }

    .timeline_content{
        width: 100%;
    }



    .beige{
        width: 100%;
        padding: 0 0 30px 0;

    }



    .timeline img{
        width: 320px;
        border-radius: 10px;
    }

    .timeline_title_main{
        width: 100%;
        margin-left: 40px;
    }

    .timeline_title{
        font-size: 25px;
        z-index: 1000;
    }
    .timeline_subtitle{
        font-size: 20px;
    }

    .timeline_year{
        font-size: 25px;
    }

    .timeline_event_title{
        font-size: 19px;
        margin-top: 5px;
    }

    .timeline_description{
        font-size: 15px;
        width: 320px;
        margin: 0;
    }

    .timeline_description_main{
        flex-direction: column;
        margin: 0;
    }


    .timeline_year::before {
        top: 16px;
        left: -31px;
        width: 7px;
        height: 7px;
    }

    .timeline_content::before {
        display: none;
    }

    .audio-player{
        display: none;
        margin: 0;
        margin-top: 20px;
        padding: 20px 0;
    }

    .play-btn{
        width: 30px;
        height: 30px;
    }

    .info-section{
        height: 1000px;
        box-sizing: border-box;
    }

    .info_title{
        width: 90%;
        box-sizing: border-box;
        margin-left: 30px;
    }

    .info-card{
        width: 380px;
        height: 200px;
        margin-top: 20px;
    }

    .info-image img{
        height: 200px;
        width: 130px;
        object-fit: cover;
    }

    .info-image2 img{
        height: 200px;
        width: 130px;
        object-fit: cover;
    }

    .info-title{
        font-size: 18px;
        font-family: "Noto Serif", serif;
        font-weight: 500;
        margin-top: 20px;
    }

    .info-content{
        margin-left: 10px;
        margin-top: 5px;
        display: flex;
        flex-direction: column;
        width: 100%;
        color: #fafafa;    
    }   

    .info-list{
        margin-top: 10px;
        width: 200px;
    }

    .info-list li{
        font-family: roboto;
        font-weight: 300;
        font-size: 12px;  
    }

    .info_button{
        display: none;
    }

    .who_title{
        width: 100%;
    }

    .images{
        width: 390px;
        padding: 40px 0px;
        margin: 40px 0;
    }

    .block_main{
        width: 360px;
        flex-wrap: wrap;
    }

    .block_image img{
        border-radius: 14px;
    }

    .block_image h3{
        width: 150px;
        font-size: 14px;
    }

    .first_img{
        height: 104px;
    }
    .second_img{
        height: 104px;
    }

    .reference{
        width: 175px;
        height: 240px;
    }

    .three{
        width: 360px;
    }

    .four_img{
        height: 118px;
    }
    .five_img{
        height: 118px;
    }

    .six_img{
        height: 105px;
    }
    .seven_img{
        height: 105px;
    }
    .eight_img{
        height: 141px;
    }
    .nine_img{
        height: 141px;
    }
    .ten{
        display: none;
    }
    .eleven_img{
        height: 103px;
    }
    .twelve_img{
        height: 103px;
    }

    .modal_content{
        display: flex;
        justify-content: center;
        box-sizing: border-box;
        max-width: 400px;
    }

    .who_title{
        margin-top: 50px;
    }

    .close_modal { 
        position: none; 
        display: flex;
        justify-content: center;
    }


    .who_title{
        width: 360px;

    }

    .museum_title{
        font-size: 25px;
    }
    .museum_subtitle{
        font-size: 20px;
    }


    #lightbox-img{
        max-width: 80vw;
        max-height: 50vh;
    }

    .close-btn img{
        right: 20px;
        top: -50px;
    }

    .video_title {
        font-size: 25px;
    }
    .video_subtitle {
        font-size: 20px;
    }
        

    .main_video {
        width: 390px;
        height: 220px;

    }
    .video-header {
        padding: 10px 20px;
    }

    .video-title{
        font-size: 12px;
        margin: 0;
    }
    .controls.visible {
        padding: 10px;
    }

    .mini_audio{
        display: none;
    }
    .mini_players {
        width: 385px;
    }
    .mini_video{
        height: 215px;
    }

    .main_intresting{
        width: 100%;
        gap: 10px;
        display: flex;
        justify-content: center;
    }

    .block_intresting_large {
        width: 230px;
    }

    .block_intresting_large p {
        font-size: 16px;
        margin: 20px;
    }

    .block_intresting_little {
        width: 150px;   
    }

    .block_intresting_little p {
        font-size: 16px;
        margin: 20px;
    }

    .block_intresting_large p:last-child {
        font-size: 13px;
        margin: 20px;
    }

    .books {
        height: 115vh;
    }

    .main_books{
        height: 110vh;
    }

    .main_books_cont {
        width: 100%;
        flex-wrap: wrap;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-top: 0;
    }

    .block_book{
        width: 160px;
        height: 300px;
    }

    .block_book img {
        width: 150px;
        height: 230px;
    }

    .block_book p{
        height: 30px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .airport{
        height: 130vh;
    }

    .air{
        box-sizing: border-box;
        width: 390px;
        height: 120vh;
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

    .air p{
        font-size: 17px;
        font-weight: 400;
    }

    .air_left{
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .air h1{
        font-size: 20px;
        margin: 0;
    }

    .banner_air{
        width: 350px;
    }

    .university_block{
        width: 100%;
    }

    .university_img{
        width: 200px;
    }

    .university_block p{
        font-size: 17px;
        width: 370px;
    }

    .learn_more{
        justify-content: center;
        align-items: center;
        padding: 20px;
        margin-top: 50px;
    }

    .learn_more img{
        width: 130px;
    }

    .learn_left h2{
        font-size: 20px;
    }

    .learn_left a{
        font-size: 17px;
    }

    .block_bottom{
        margin-top: 100px;
        margin-bottom: 70px;
    }

    .contact_bottom{
        display: flex;
        flex-direction: column;
        margin-top: 20px;
        gap: 20px;
    }

    .contact_bottom a{
        font-size: 17px;
    }


    .block_bottom::before {
        width: 90%;
        top: 60px;
    }


    .copyrights {
        margin-top: 10px;
        font-size: 10px;
    }






    .lightbox-map-body{
        flex-direction: column;
    }

    .lightbox-map-text{
        padding: 0;
    }

    #lightbox-map-description p{
        font-size: 15px;
    }

    #lightbox-map-title{
        font-size: 26px;
    }

    #lightbox-map-subtitle{
        font-size: 23px;
    }



/* -----------------------------
   ФОН МОДАЛКИ
------------------------------ */
.modal_who {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(56, 56, 56, 0.313);
    backdrop-filter: blur(6px);
    z-index: 1000;
    overflow-y: auto;              /* 🔥 основной скролл */
}

.modal_who.active {
    display: block;                /* 🔥 flex не нужен — он ломает высоту */
}

/* -----------------------------
   САМО ОКНО
------------------------------ */
.modal-content {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    border-radius: 16px;

    max-width: 900px;
    margin: 0 auto;                /* 🔥 центрируем */
    padding: 30px 25px;

    max-height: none;              /* 🔥 окно растёт естественно */
    overflow: visible;             /* внутренний скролл отключаем */

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* -----------------------------
   КОНТЕНТ: картинка + текст
------------------------------ */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 750px;              /* 🔥 ограничение ширины текста */
    gap: 25px;
}

/* Картинка */
.content img {
    width: 300px;
    max-width: 90%;
    max-height: 40vh;              /* 🔥 всегда помещается на экране */
    object-fit: contain;
    border-radius: 10px;
}

/* Заголовок */
.right_modal h2 {
    color: #ffffffea;
    font-family: "Noto Serif";
    font-size: 34px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* Текст */
.content p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #ffffffea;
    font-family: roboto;
    font-size: 16px;
    font-weight: 300;
    text-align: justify;
}

.close-modal {
    font-size: 20px;
    height: 65px;
    width: 230px;
    font-family: roboto;
    background: linear-gradient(135deg, rgba(138,120,107,0.9), rgba(138,120,107,0.4));
    color: #fff;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: .3s;
    margin-top: 10px;
}

.close-modal:hover {
    transform: scale(1.05);
}


 
}

/* Header refresh override */
header{
position: relative;
}

nav{
left: 50%;
top: 20px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
width: min(1180px, calc(100% - 32px));
padding: 12px 14px;
margin-top: 0;
transform: translateX(-50%);
background: rgba(255, 248, 241, 0.88);
border: 1px solid rgba(86, 68, 54, 0.12);
border-radius: 28px;
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
box-shadow: 0 16px 45px rgba(48, 33, 19, 0.12);
transition: transform 0.4s ease, box-shadow 0.3s ease;
}

nav.hidden{
transform: translate(-50%, -130%);
}

.nav-primary{
display: flex;
align-items: center;
gap: 10px;
padding: 0;
margin: 0;
}

.nav-primary li{
display: block;
list-style: none;
padding-bottom: 0;
}

.nav-primary li::after{
display: none;
}

.nav-primary li a{
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 56px;
padding: 0 16px;
border-radius: 18px;
font-size: 16px;
font-weight: 500;
color: #2d221a;
transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-primary li a:hover{
background: rgba(138, 120, 107, 0.12);
color: #000;
}

.nav-actions{
display: flex;
align-items: center;
gap: 10px;
margin-left: auto;
}

.nav-dropdown{
position: relative;
}

.more_slides,
.lang{
position: static;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
min-height: 56px;
padding: 0 16px;
border: 1px solid rgba(86, 68, 54, 0.14);
border-radius: 18px;
background: rgba(255, 250, 244, 0.9);
font-family: roboto;
font-size: 16px;
font-weight: 500;
color: #2d221a;
box-shadow: 0 10px 28px rgba(48, 33, 19, 0.08);
transition: transform 0.2s ease, background-color 0.2s ease;
}

.more_slides{
width: auto;
}

.more_slides:hover,
.lang:hover{
transform: translateY(-1px);
background: #ffffff;
}

.slides_Button,
.flag{
width: 16px;
height: 16px;
transition: transform 0.25s ease;
}

.more_slides.active .slides_Button,
.lang.active .flag{
transform: rotate(180deg);
}

.flag_img{
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
}

.view_min{
display: inline;
white-space: nowrap;
}

.lang_label{
font-size: 15px;
font-weight: 600;
letter-spacing: 0.04em;
}

.more_slides_cont,
.choise{
position: absolute;
top: calc(100% + 12px);
right: 0;
display: flex;
flex-direction: column;
gap: 8px;
padding: 14px;
width: 280px;
background: rgba(255, 250, 244, 0.96);
border: 1px solid rgba(86, 68, 54, 0.14);
border-radius: 22px;
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
box-shadow: 0 18px 45px rgba(48, 33, 19, 0.12);
z-index: 1001;
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translateY(-6px);
transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.more_slides_cont.active,
.choise.active{
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateY(0);
}

.more_slides_cont ul{
display: flex;
flex-direction: column;
gap: 6px;
padding: 0;
margin: 0;
}

.more_slides_cont li{
display: block;
list-style: none;
}

.more_slides_cont li a{
display: flex;
align-items: center;
padding: 12px 14px;
border-radius: 14px;
font-size: 16px;
color: #2d221a;
transition: background-color 0.2s ease, color 0.2s ease;
}

.more_slides_cont li a:hover{
background: rgba(138, 120, 107, 0.12);
color: #000;
}

.lang_option{
display: grid;
grid-template-columns: 24px 1fr auto;
align-items: center;
gap: 12px;
width: 100%;
padding: 12px 14px;
border: none;
border-radius: 14px;
background: transparent;
font-family: roboto;
font-size: 16px;
font-weight: 400;
color: #2d221a;
text-align: left;
cursor: default;
}

.lang_option img{
width: 24px;
height: 24px;
border-radius: 50%;
}

.lang_option:disabled{
opacity: 1;
}

.lang_option:not(:last-child){
border-bottom: 1px solid rgba(86, 68, 54, 0.08);
}

.lang_state{
font-size: 13px;
font-weight: 500;
color: #8a786b;
}

@media screen and (max-width: 900px) {
    nav{
        gap: 12px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .nav-primary{
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-primary li{
        display: block;
    }

    .nav-primary li a{
        min-height: 48px;
        padding: 0 14px;
        font-size: 15px;
    }

    .nav-actions{
        width: 100%;
        justify-content: space-between;
    }
}

@media screen and (max-width: 500px) {
    nav{
        width: calc(100% - 24px);
        max-width: 360px;
        padding: 10px 12px;
        gap: 10px;
        align-items: center;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .nav-primary{
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-primary::-webkit-scrollbar{
        display: none;
    }

    .nav-primary li{
        display: block;
        flex: 0 0 auto;
    }

    .nav-primary li a{
        min-height: 42px;
        padding: 0 12px;
        font-size: 14px;
    }

    .nav-actions{
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        gap: 8px;
        margin-left: auto;
        justify-content: flex-end;
    }

    .more_slides,
    .lang{
        min-height: 46px;
        font-size: 14px;
        padding: 0 12px;
    }

    .more_slides_cont,
    .choise{
        width: min(280px, calc(100vw - 32px));
        right: 0;
    }

    .view_min{
        font-size: 13px;
    }

    .lang_label{
        font-size: 13px;
    }

    .flag_img{
        width: 20px;
        height: 20px;
    }
}

/* Creator refresh */
.creator{
position: relative;
display: grid;
grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 420px);
gap: 32px;
align-items: stretch;
width: 100%;
min-height: 100vh;
margin: 0;
padding: 128px max(24px, calc((100vw - 1240px) / 2)) 56px;
font-family: "Noto Serif", serif;
font-weight: 400;
font-size: 20px;
text-align: left;
background:
radial-gradient(circle at top right, rgba(201, 183, 162, 0.18), rgba(201, 183, 162, 0) 38%),
linear-gradient(145deg, #f8f4ef, #efe7de);
border: 1px solid rgba(145, 120, 96, 0.12);
border-radius: 40px;
box-shadow: 0 28px 70px rgba(45, 28, 16, 0.08);
overflow: hidden;
}

.creator::before{
content: "";
position: absolute;
inset: 0;
background:
linear-gradient(120deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0) 42%),
linear-gradient(90deg, rgba(138, 120, 107, 0.06) 0, rgba(138, 120, 107, 0.06) 1px, transparent 1px, transparent 120px);
opacity: 0.45;
pointer-events: none;
}

.creator_intro,
.creator_feedback{
position: relative;
z-index: 1;
}

.creator_intro{
display: flex;
flex-direction: column;
justify-content: center;
gap: 22px;
padding-right: 12px;
}

.creator_mark{
display: inline-flex;
align-items: center;
gap: 14px;
width: fit-content;
padding: 12px 18px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.58);
border: 1px solid rgba(145, 120, 96, 0.14);
font-family: roboto;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #6c5646;
}

.creator_mark img{
width: 42px;
height: 42px;
object-fit: contain;
}

.top_cr{
margin: 0;
font-size: clamp(34px, 3.2vw, 52px);
line-height: 1.08;
font-weight: 600;
color: #2b211b;
}

.creator_lead{
margin: 0;
max-width: 760px;
font-family: roboto;
font-size: 20px;
line-height: 1.75;
font-weight: 300;
color: #493b32;
}

.creator_quote{
position: relative;
margin-top: 4px;
padding: 24px 26px 24px 30px;
border-radius: 28px;
background: rgba(255, 255, 255, 0.56);
border: 1px solid rgba(145, 120, 96, 0.12);
font-family: roboto;
font-size: 18px;
line-height: 1.7;
color: #56463b;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.creator_quote::before{
content: "";
position: absolute;
left: 0;
top: 24px;
bottom: 24px;
width: 4px;
border-radius: 999px;
background: linear-gradient(180deg, #a38a76, #d0baa6);
}

.creator_footer_note{
display: inline-flex;
align-items: center;
gap: 12px;
font-size: 28px;
font-weight: 500;
color: #2b211b;
align-self: center;
justify-content: center;
text-align: center;
}

.creator_footer_note::before,
.creator_footer_note::after{
content: "";
width: 44px;
height: 1px;
background: rgba(108, 86, 70, 0.35);
}

.creator_feedback{
display: flex;
align-items: center;
}

.creator_feedback_card{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 30px 28px;
border-radius: 32px;
background: linear-gradient(160deg, rgba(109, 83, 61, 0.96), rgba(74, 55, 41, 0.96));
color: rgba(255, 247, 238, 0.96);
box-shadow: 0 24px 48px rgba(55, 35, 21, 0.2);
}

.creator_feedback_label{
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 34px;
padding: 0 12px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.12);
font-family: roboto;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
}

.creator_feedback_card h3{
margin: 16px 0 10px;
font-family: "Noto Serif", serif;
font-size: 34px;
line-height: 1.12;
font-weight: 500;
}

.creator_feedback_card p{
margin: 0 0 22px;
font-family: roboto;
font-size: 16px;
line-height: 1.7;
color: rgba(255, 244, 234, 0.8);
}

.creator_qr_link{
display: flex;
align-items: center;
justify-content: center;
padding: 14px;
border-radius: 24px;
background: rgba(255, 255, 255, 0.94);
box-shadow: 0 16px 28px rgba(19, 11, 7, 0.18);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.creator_qr_link:hover{
transform: translateY(-2px);
box-shadow: 0 22px 32px rgba(19, 11, 7, 0.22);
}

.qr_code{
width: 180px;
height: auto;
display: block;
}

.creator_feedback_hint{
margin-top: 16px;
font-family: roboto;
font-size: 13px;
font-weight: 500;
letter-spacing: 0.04em;
color: rgba(255, 244, 234, 0.72);
}

@media screen and (max-width: 950px) {
    .creator{
        grid-template-columns: 1fr;
        width: 100%;
        padding: 28px 20px;
        gap: 24px;
        height: auto;
        min-height: auto;
        margin: 0;
    }

    .creator_intro{
        padding-right: 0;
        align-items: center;
    }

    .creator_mark{
        width: 100%;
        max-width: 560px;
        justify-content: center;
        padding: 14px 18px;
        border-radius: 32px;
        gap: 12px;
    }

    .creator_lead{
        font-size: 17px;
    }

    .creator_quote{
        font-size: 16px;
    }

    .creator_feedback_card{
        padding: 24px 20px;
    }

    .creator_feedback_card h3{
        font-size: 28px;
    }
}

@media screen and (max-width: 500px) {
    .creator_mark{
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 14px 16px;
        border-radius: 26px;
        text-align: center;
    }

    .creator_mark img{
        width: 36px;
        height: 36px;
    }

    .creator_mark span{
        display: block;
        font-size: 11px;
        line-height: 1.35;
        letter-spacing: 0.09em;
    }
}

@media screen and (max-width: 700px) {
    .hello{
        padding: 118px 14px 28px;
        height: auto;
        min-height: calc(100svh + 120px);
        gap: 18px;
    }

    .hello_visual{
        order: 2;
        width: 100%;
    }

    .hello_portrait_shell{
        width: min(360px, 100%);
        margin: 0 auto;
        padding: 14px 12px 8px;
        border-radius: 26px;
    }

    .hello_bait{
        width: min(240px, 100%);
    }

    .hello_signature{
        width: min(100%, 360px);
        justify-content: center;
        font-size: 11px;
        line-height: 1.35;
        text-align: center;
        padding: 10px 14px;
        white-space: normal;
    }

    .hello_signature::before,
    .hello_signature::after{
        width: 12px;
        flex: 0 0 12px;
    }

    .hello_right{
        order: 1;
        width: 100%;
        max-width: none;
        padding: 18px 14px;
        gap: 12px;
        border-radius: 20px;
    }

    .hello_right::before{
        inset: 12px 14px auto;
    }

    .hello_kicker{
        padding: 8px 10px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .hello_right p{
        font-size: clamp(24px, 7.4vw, 34px);
        line-height: 1.14;
    }

    .hello_lead{
        font-size: 14px;
        line-height: 1.5;
    }

    .hello_meta{
        gap: 6px;
    }

    .hello_meta span{
        min-height: 28px;
        padding: 0 9px;
        font-size: 10px;
    }

    .exposition_button{
        width: 100%;
        min-width: 0;
        min-height: 54px;
        margin-top: 2px;
        padding: 0 16px;
        font-size: 13px;
        gap: 12px;
    }
}

@media screen and (max-width: 500px) {
    .hello{
        height: auto;
        min-height: calc(100svh + 170px);
        padding-top: 176px;
        padding-bottom: 56px;
    }

    .hello_portrait_shell{
        width: 100%;
    }

    .hello_signature{
        width: 100%;
        max-width: none;
        font-size: 10px;
        padding: 10px 12px;
    }

    .hello_signature::before,
    .hello_signature::after{
        width: 10px;
        flex: 0 0 10px;
    }
}

@media screen and (max-width: 500px) {
    nav{
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        transform: none;
        padding: 10px;
        gap: 10px;
        align-items: center;
        flex-wrap: wrap;
        box-sizing: border-box;
        border-radius: 24px;
    }

    nav.hidden{
        transform: translateY(-130%);
    }

    .nav-primary{
        display: flex;
        width: 100%;
        min-width: 0;
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: space-between;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-primary::-webkit-scrollbar{
        display: none;
    }

    .nav-primary li{
        flex: 0 0 auto;
    }

    .nav-primary li a{
        min-height: 36px;
        padding: 0 8px;
        font-size: 11px;
    }

    .nav-actions{
        width: 100%;
        flex: 1 1 auto;
        min-width: 0;
        gap: 6px;
        justify-content: space-between;
    }

    .nav-dropdown{
        flex: 1 1 auto;
    }

    .nav-dropdown-language{
        flex: 0 0 auto;
    }

    .more_slides,
    .lang{
        min-height: 40px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 14px;
    }

    .more_slides{
        width: 100%;
        justify-content: space-between;
    }

    .more_slides_cont,
    .choise{
        right: 0;
        max-width: calc(100vw - 24px);
    }

    .view_min,
    .lang_label{
        font-size: 13px;
    }

    .flag_img{
        width: 20px;
        height: 20px;
    }

    .hello{
        padding-top: 176px;
    }
}

@media screen and (max-width: 900px) {
    .history_persone {
        min-height: auto;
        height: auto;
        padding: 60px 24px;
        align-items: center;
        background-position: 80% center;
    }

    .history_title_mobile {
        display: block;
        font-family: "Noto Serif", serif;
        font-size: 32px;
        font-weight: 600;
        color: #2d221a;
        text-align: center;
        margin-bottom: 40px;
        text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
    }

    .history_main {
        justify-content: center;
        gap: 28px;
    }

    .history_main a {
        flex: 0 1 320px;
        width: auto;
    }

    .block_persone {
        height: 400px;
        border-radius: 22px;
        padding: 20px;
    }
}

@media screen and (max-width: 600px) {
    .history_persone {
        padding: 48px 16px;
    }

    .history_title_mobile {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .history_main {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .history_main a {
        width: 100%;
        max-width: 300px;
        flex: none;
    }

    .block_persone {
        height: 380px;
    }

    .title_persone {
        font-size: 16px;
    }
}

/* --- Branding Logo & Header Styling Enhancements --- */
.nav-logo {
    font-family: "Noto Serif", serif;
    font-size: 21px;
    font-weight: 700;
    color: #2d221a;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
}

.nav-logo:hover {
    opacity: 0.8;
    transform: translateY(-0.5px);
}

@media screen and (max-width: 900px) {
    .nav-logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 6px;
    }
}

@media screen and (max-width: 500px) {
    .nav-logo {
        width: 100%;
        justify-content: center;
        font-size: 17px;
        margin-bottom: 4px;
    }
}

/* --- Interactive Books Section Enhancements --- */
.books {
    overflow: hidden;
}

.book-card-interactive {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.book-card-interactive:hover {
    transform: translateY(-8px) scale(1.03) rotate(2deg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

/* Modal styling for Book Details */
.modal_book {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(45, 34, 26, 0.7);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal_book.active {
    display: flex;
    opacity: 1;
}

.book-modal-container {
    background: #fdfaf7;
    border: 8px solid #2d221a;
    border-radius: 12px;
    width: min(900px, 100%);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    padding: 48px;
    box-sizing: border-box;
    transform: scale(0.9) rotateY(15deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    perspective: 1000px;
}

.modal_book.active .book-modal-container {
    transform: scale(1) rotateY(0deg);
}

.book-modal-pages {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.book-page-left {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.book-cover-container {
    background: #f5efe8;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15), -2px 0 5px rgba(0, 0, 0, 0.05);
    border-radius: 4px 12px 12px 4px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    position: relative;
}

.book-cover-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.15), transparent);
    z-index: 2;
}

.book-cover-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px 8px 8px 2px;
}

.book-meta-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Roboto', sans-serif;
}

.book-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8c7667;
    font-weight: 600;
}

.meta-value {
    font-size: 16px;
    color: #2d221a;
    font-weight: 500;
}

.book-page-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.book-page-right h2 {
    font-family: 'Noto Serif', serif;
    font-size: 32px;
    color: #2d221a;
    margin: 0;
    font-weight: 700;
}

.book-divider {
    height: 3px;
    background: #8c7667;
    width: 80px;
    border-radius: 2px;
}

.book-description {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4a3c31;
    font-weight: 400;
    margin: 0;
}

.book-quote-box {
    background: #f5efe8;
    border-left: 4px solid #8c7667;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 10px;
    position: relative;
}

.book-quote-text {
    font-family: 'Noto Serif', serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.5;
    color: #5c4a3c;
    margin: 0;
}

.close-book-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #8c7667;
    cursor: pointer;
    transition: color 0.3s;
}

.close-book-modal:hover {
    color: #2d221a;
}

/* Responsive adjustments for book modal */
@media screen and (max-width: 768px) {
    .book-modal-container {
        padding: 32px 24px;
    }

    .book-modal-pages {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .book-page-left {
        flex: none;
        width: 100%;
        max-width: 240px;
        align-items: center;
        text-align: center;
    }

    .book-meta-info {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }

    .book-page-right {
        align-items: center;
        text-align: center;
    }

    .book-page-right h2 {
        font-size: 24px;
    }

    .book-divider {
        margin: 0 auto;
    }

    .book-description {
        font-size: 14px;
    }
}
