@font-face {
    font-family: 'Skaryna 2017 Title';
    src: url('../fonts/Skaryna2017Title.eot');
    src: local('Skaryna 2017 Title'), local('Skaryna2017Title'),
        url('../fonts/Skaryna2017Title.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Skaryna2017Title.woff2') format('woff2'),
        url('../fonts/Skaryna2017Title.woff') format('woff'),
        url('../fonts/Skaryna2017Title.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'Onest';
    src: url('../fonts/onest/Onest-VariableFont_wght.ttf');
}


html{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

a{
    color: inherit;
    text-decoration: none;
}

ul{
    margin: 0;
    padding: 0;
}

li{
    list-style: none;
}

h1, h2, h3, p{
    margin: 0;
}

body{
    font-family: 'Onest';
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.navbar-collapse {
    flex-grow: 0;
}
.header__logo{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: left;
}
.logo-text{
    font-family: 'Skaryna 2017 Title', Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 26px;
    letter-spacing: -1%;
    line-height: 23px;
    color: var(--red);
}

:root {
    --bg-color: #F7F5E9;
    --red: #A60000;
    --dark-txt: #373737;
    --dark: black;
    --light-grey: #f3f3f3;
    --grey: #bebebe;
    --white: white;

    --menu-padding-x: 1.2rem;
    --menu-padding-y: 1.5rem;
}

.title{
    text-align: center;
    font-family: 'Skaryna 2017 Title', Arial, Helvetica, sans-serif;
    font-size: 80px;
    line-height: 100%;
    color: var(--dark-txt);
}
.subtitle{
    font-family: 'Skaryna 2017 Title', Arial, Helvetica, sans-serif;
    font-size: 70px;
    line-height: 100%;
    color: var(--dark-txt);
}
.subtitle-2, .subtitle-3{
    font-family: 'Skaryna 2017 Title', Arial, Helvetica, sans-serif;
    font-size: 50px;
    line-height: 100%;
    color: var(--dark-txt);
}
.subtitle-3{
    font-size: 35px;
}
.category-name-tale{
    font-size: 85px;
}
.pt{
    padding-top: 23vh;
}
.pt-h{
    padding-top: 7rem;
}
.bg-body-tertiary {
    background-color: rgb(255, 255, 255) !important;
}

.navbar {
    width: 100%;
    position: fixed;
    z-index: 5;
    --bs-navbar-padding-y: 1.5rem;
}
.navbar-nav {
    padding: var(--menu-padding-y) 0;
    background-color: rgb(255, 255, 255) !important;
}

p{
    font-size: 20px;
    color: var(--dark-txt);
}
footer{
    background-color: #f3f3f3;
}
footer a{
    width: fit-content;
}
footer p{
    font-size: 17px;
}
.footer-liltext{
    font-size: 13px;
}
.line{
    background-color: #acacac;
}
.fix-images-bibl{
    position: absolute;
    z-index: -5;
}
.fix-images-bibl.sticky{
    position: fixed;
    top: 0;
}
@media (min-width: 576px) {
    .title{
        font-size: 95px;
    }
    .pt{
        padding-top: 110px;
    }
    .category-name-tale{
        font-size: 100px;
    }
    .footer-liltext{
        font-size: 17px;
    }
    .subtitle-3{
        font-size: 55px;
    }
}

@media (min-width: 768px) {
    .title{
        font-size: 103px;
    }
    .pt{
        padding-top: 17vh;
    }
    footer p{
        font-size: 20px;
    }
    .subtitle-3{
        font-size: 65px;
    }
    .subtitle{
        font-size: 80px;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: var(--bs-navbar-nav-link-padding-x);
        padding-left: var(--menu-padding-x);
        text-align: center;
        font-size: 20px;
    }
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
        align-items: center;
    }
    .navbar {
        --bs-navbar-padding-y: 0rem;
    }
    .title{
        font-size: 123px;
    }
    .subtitle{
        font-size: 90px;
    }
    .pt{
        padding-top: 160px;
    }
}
@media (min-width: 1400px) {
    .bg-body-tertiary {
        background-color: transparent !important;
    }
    .light-grey{
        color: var(--light-grey);
    }
}
.mt{
    margin-top: 3rem;
}
.red{
    color: var(--red);
}
.bg-b{
    background-color: var(--dark);
    height: 100vh;
}
.bold{
    font-weight: 700;
}
.active{
    font-weight: 700;
    color: var(--red) !important;
}

.col-3 {
    width: 27%;
}
.col-4 {
    width: 30%;
}
.col-8{
    width: 100%;
}
.left-side{
    display: none;
    position: fixed;
    z-index: -2;
}
@media (min-width: 992px) {
    .left-side{
        display: block;
    }
    .col-8{
        width: 66.666666667%;
    }
}

.link-arrow{
    font-size: 23px;
    font-weight: 600;
}



.text-container {
    position: relative;
}

.text-collapsed {
    max-height: 5.6em;
    overflow: hidden;
    transition: max-height 0.3s ease;
    text-overflow: ellipsis;
}

.toggle-btn {
    color: var(--red);
    font-weight: bold;
    cursor: pointer;
}

.toggle-div{
    position: absolute;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    gap:7px;
}
.toggle-btn:hover {
    text-decoration: underline;
}


.instruments-manage{
    flex-direction: column;
    gap: 20px;
}
.input-with-icon {
    position: relative; 
    height: 3.5rem;
    width: 100%;
    background-color: var(--light-grey);
}
.input-with-icon input {
    background: none;
    border: none;
    padding: 0 40px 0 10px; 
    width: 100%; 
}
.input-with-icon .icon-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); 
    pointer-events: none; 
}
.instruments-drp{
    width: 100%;
}
.dropdown button{
    height: 3.5rem;
    width: 10rem;
    background-color: var(--light-grey) !important;
    border-radius: 0;
}

.fairy-frame{
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px;
    justify-content: space-between;
    justify-self: end;
    position: relative;
    width: 100%;
}
.fairy{
    padding: 15px;
    background: var(--light-grey);
    width: 100%;
    height: 120px;
    display: none;
    gap: 10px;
    transition: transform 0.3s ease;
}
.tale-title{
    font-weight: 600;
    margin: 5px 0;
    line-height: 1.2;
}
.text-read{
    font-size: 18px;
    font-weight: 600;
    color: var(--red);
}
@media (min-width: 576px) {
    .dropdown button{
        width: 15.2rem;
    }
}
@media (min-width: 768px) {
    .fairy{
        width: 48%;
    }
    .instruments-manage{
        flex-direction: row;
    }
    .input-with-icon, .instruments-drp {
        width: 48%;
    }
    .dropdown button{
        width: 10rem;
    }
    .tale-title{
        margin-top: 0;
        font-size: 17px;
    }
    .text-read{
        font-size: 16px;
    }
}
@media (min-width: 992px) {
    .dropdown button{
        width: 9.1rem;
    }
}
@media (min-width: 1200px) {
    .dropdown button{
        width: 10.5rem;
    }
}
@media (min-width: 1400px) {
    .dropdown button{
        width: 12rem;
    }
    .tale-title{
        margin-top: 5px;
        font-size: 20px;
    }
    .text-read{
        font-size: 18px;
    }
}

.paginator {
    line-height: 140%;
}
.paginator > button {
    border: none;
    border-radius: 11px;
    background: none;
    padding: 12px 18px;
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
}
.paginator_active {
    background: var(--dark) !important;
    font-weight: 600;
    color: var(--white);
}



.player-photo{
    display: none !important;
}
@media (min-width: 1200px) {
    .player-photo{
        display: flex !important;
    }
}
.custom-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--light-grey);
    padding: 13px 13px;
    width: 100%;
}
.icon-player{
    font-size: 35px !important;
    color: var(--dark-txt)
}
.player-btn {
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}
.player-btn:hover {
    padding: 0;
    background: none;
}
.time-display {
    font-size: 14px;
    color: #000;
    width: 28vw;
}
@media (min-width: 415px) {
    .time-display {
        width: 36vw;
    }
}
@media (min-width: 992px) {
    .time-display {
        width: 30vw;
    }
}
@media (min-width: 1200px) {
    .time-display {
        width: 20vw;
    }
}
/* Заливка прогресс-бара */
.progress-container {
    flex-grow: 1;
    position: relative;
    height: 8px;
    background: #c9c9c9;
    border-radius: 10px;
}
.progressBar {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    background: transparent;
    z-index: 0;
    margin: 0;
    top: 0;
    left: 0;
    appearance: none;
    cursor: pointer;
}
.progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--red);
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
}
.progressBar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--red);
    border-radius: 50%;
    cursor: pointer;
}
/* Залитый прогресс (псевдоэлемент) */
.progress-container::before {
    content: '';
    left: 0;
    top: 0;
    position: absolute;
    width: var(--progress, 0%);
    height: 100%;
    background: var(--red);
    border-radius: 10px;
    transition: none;
}
/* Меню скорости */
#menuBtn{
    height: fit-content;
    width: fit-content;
}
/* Стилизация регулятора громкости */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Контейнер для volume (аналогично progress) */
.volume-container {
    position: relative;
    width: 80px;
    height: 4px;
    background: #ddd; /* Цвет фона */
    border-radius: 3px;
}
/* Скрываем стандартный track */
.volume {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    z-index: 0;
    margin: 0;
    top: 0;
    left: 0;
    cursor: pointer;
}
/* Залитая часть volume */
.volume-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--volume, 100%); /* Начинается с 100% (громкость на максимуме) */
    height: 100%;
    background: #555; /* Цвет заливки (серый) */
    border-radius: 3px;
    transition: none;
}
/* Ползунок volume (WebKit) */
.volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
}

/* Ползунок volume (Firefox) */
.volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
}


.passport {
    display: flex;
    background-color: var(--light-grey);
    padding: 13px 13px;
    width: 100%;
}
.passport-info-title{
    font-size: 17px;
    letter-spacing: 1.1px;
    color: #979797;
}
.passport-info{
    font-size: 19px;
}




.card {
    position: absolute;
    width: 25%;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    background: #fff;
    min-height: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    border-radius: 8px; 
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #212121;
    --bs-btn-border-color: #000000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #414141;
    --bs-btn-hover-border-color: #000000;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #000000;
    --bs-btn-active-border-color: #000000;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #8e8e8e;
    --bs-btn-disabled-border-color: #c8c8c8;
}