:root {
   --dark-red: rgb(139, 14, 31);
    --light-pink: rgb(228, 114, 117);
    --dark-pink: rgb(215, 24, 61);
    --brown: rgb(50, 14, 18);
    --light-gray: rgb(242, 242, 242);
}

@font-face {
    font-family: 'Titillium';
    src: url('../assets/fonts/TitilliumWeb-Regular.ttf') format('truetype');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    position: relative;
    font-family: 'Titillium';
}

.btn-custom-red {
    width: 100px;
    outline: none;
    border: none;
    border-radius: 25px;
    background-color: var(--dark-red);
    color: #fff;
    padding: 8px 15px;
    text-align: center;
}

.btn-close, .btn-close:focus, .btn-close:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

a:hover {
    color: var(--dark-red ) !important;
    transition: .3s;
}

.title {
    display: inline-block;
    position: relative;
    letter-spacing: 6px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 20px;
    margin-bottom: 50px;
}

.pills-tab {
    margin-bottom: 100px;
}

.pills-tab .nav-link {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 6px;
}

.pills-tab .nav-item {
    position: relative;
}

.pills-tab .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 85%;
    background-color: var(--dark-red);
}

.pills-tab .nav-link.active::before {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background-color: var(--dark-red);
    clip-path: inset(0 0 20% 0);
}

.pills-list .pills-list-item:not(:last-child) {
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 2px solid #000;
}

.pills-list-item-header {
    cursor: pointer;
}

/* HEADER */
header {
    position: relative;
    padding-left: 7em;
    padding-bottom: 35px;
}

#radio {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 7em;
    background-color: var(--dark-red);
    border-radius: 50% 0 0 50%;
    z-index: 99999;
    padding-left: 15px;
}

#radio span {
    display: block;
    color: #fff;
    transform: rotate(90deg);
}

header .navbar {
    padding: 0;
    margin-right: 12em;
}

header .nav-link {
    padding-bottom: 0;
}

header .down {
    position: absolute;
    bottom: 0;
}

#menu {
    position: relative;
}

header .social-media > a,
header .search-wrap > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #000;
    border-radius: 50%;
}

header .social-media > a:hover {
    transition: 1s;
    transform: scale(1.1);
}

.search-wrap > input:focus {
    outline: none;
    color: var(--dark-red);
    border-color: var(--dark-red);
    box-shadow: none;
}

.navbar-nav .nav-link.active {
    position: relative;
    color: var(--dark-red);
}

.navbar-nav .nav-link.active::after {
    content: "";
    width: 20px;
    height: 20px;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    position: absolute;
    background-color: var(--dark-red);
    border-radius: 50%;
    z-index: -1;

}

.dropdown-menu {
    border: 0;
    border-radius: 0;
    background-color: var(--dark-red);
    transform-origin: top;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scaleY(0);
    display: block;
    opacity: 0;
}

.dropdown-menu.show {
    transform: scaleY(1);
    opacity: 1;
}

.dropdown-item {
    color: #fff;
}

.navbar-toggler, .navbar-toggler:focus, .navbar-toggler, .navbar-toggler:active {
    border: 0;
    outline: none;
    box-shadow: none;
}

.navbar-toggler {
    width: 50px;
    height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    cursor: pointer;
}

.navbar-toggler span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--dark-red);
    border-radius: 2px;
    transition: transform 0.4s ease, opacity 0.4s ease, background 0.4s ease;
    transform-origin: center;
}

.navbar-toggler.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* SECTION */
.baner-slider {
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.baner-slider > img {
    width: 100%;
    min-height: 60vh;
    object-fit: cover;
}

.hero-baner {
    content: url('/img/slider/nakladka-slider.png');
    position: absolute;
    width: 100%;
    height: 100%;
}

.baner-slider h3 {
    position: relative;
    display: inline-block;
    margin-top: 150px;
    margin-left: -100px;
    color: #fff;
    transform: rotate(270deg);
    letter-spacing: 5px;
    font-weight: 800;
}


.baner-slider h3::after {
    content: "";
    position: absolute;
    width: 110%;
    height: 2px;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
}

.news-content {
    margin-top: -150px;
    margin-left: 75px;
}

.baner-slider h1 {
    white-space: pre-line;
    color: #fff;
    font-weight: 800;
}

.btn-more {
    display: inline-block;
    margin-top: 25px;
    padding: 5px 30px;
    border-radius: 15px;
    font-size: 26px;
    letter-spacing: 5px;
    background-color: var(--dark-red);
    color: #fff;
}

.btn-more:hover {
    color: #fff !important;
}

.btn-more-outline {
    position: relative;
    display: inline-block;
    margin-top: 50px;
    padding: 5px 30px;
    border-radius: 20px;
    font-size: 26px;
    letter-spacing: 5px;
    color: #000;
    border: 2px solid #000;
}

.btn-more-outline:hover {
    color: #000 !important;
}

.swiper-slider-button-prev::after {
    content: url("../img/icons/arrow-left.png");
    font-size: 16px;
    margin-left: 350px;
    margin-top: 350px;
}

.swiper-slider-button-next::after {
    content: url("../img/icons/arrow-right.png");
    font-size: 16px;
    margin-right: 350px;
    margin-top: 350px;
}

/* SECTION shortcuts */
#shortcuts > .box {
    position: relative;
    text-align: center;
    padding: 50px 30px 30px 30px;
    height: 275px;
    width: calc(100% / 3);
    z-index: 1;
}

#shortcuts > .box:nth-child(1) > h4 {
    background: #fff;
    color: var(--dark-red);
}

#shortcuts > .box > h4 {
    display: inline-block;
    text-align: center;
    color: #fff;
    border-radius: 25px;
    border: 1px solid #fff;
    padding: 5px 15px;
    margin-bottom: 25px;
}

#shortcuts > .box > p:nth-of-type(1) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    padding: 0 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

#shortcuts > .box > .author > p {
    height: 20%;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 0 15px;
}


#shortcuts > .box img {
    object-fit: contain;
}

#shortcuts .box:nth-child(1){
    background-color: var(--dark-red);
}

#shortcuts .box:nth-child(2){
    background-color: var(--dark-pink);
}

#shortcuts .box:nth-child(3){
    background-color: #000;
}

#shortcuts > .box {
    transition: transform 0.3s ease, z-index 0.3s ease;
}

#shortcuts > .box:hover {
    transform: scale(1.1);
    z-index: 1000;
}


/* SECTION news */
#news {
    margin-top: 100px;
    margin-bottom: 100px;
}

#news .title, #nowosci .title {
    display: inline-block;
    position: relative;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 20px;
    margin-bottom: 100px;
}

#news .title::after, #nowosci .title::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    left: 0;
    bottom: -15px;
    background: #000;
}

#news .content > h5 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    padding: 20px 20px 0 20px;
    margin-bottom: 20px;
    height: 80px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

#news .content > h5 > span {
    text-transform: none;
}

#news .content > p {
    font-size: 14px;
    color: #000;
    padding: 0 20px;
    max-height: 100px;
    min-height: 100px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#news .content > .date-hours p {
    font-size: 14px;
    color: #000;
    padding: 20px 20px;
    max-height: 30px;
    min-height: 30px;
    font-weight: 800;
}


#news .content {
    position: relative;
    padding-bottom: 15px;
    border-bottom: 5px solid var(--dark-red);
}

#news .content::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 2px;
    height: 25%;
    background-color: rgba(0, 0, 0, 0.2);
}

#news .content::after {
    content: "";
    position: absolute;
    top: -1px;
    right: 0;
    width: 2px;
    height: 25%;
    background-color: rgba(0, 0, 0, 0.2);
}

#news .content .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--dark-red);
    transition: height .3s ease;
    z-index: -1;
}

#news .news-box:hover img {
    filter: grayscale(75%);
    transition: .3s ease;
}

#news .news-box:hover .content > h5,
#news .news-box:hover .content > p,
#news .news-box:hover .content > .date-hours p {
    transition: .3s ease;
    color: #fff;
}

#news .news-box:hover .line {
    height: 100%;
}

#news .btn-more-outline::after {
    content: url("../img/icons/arrow-down.png");
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: -75px;
}

#blog img,
#news .news-box img {
    height: 237px; 
    object-fit: cover;
}

/* SECTION nowosci */
#nowosci {
    padding: 100px 0;
}

#nowosci .box {
    background-color: #fff;
    padding: 50px 25px;
    min-height: 400px;
}

#nowosci .box h5 {
    font-size: 16px;
    font-weight: 800;
    padding-bottom: 10px;
}

#nowosci .box h5, #nowosci .box p {
    color: #000;
}

#nowosci .box p{
    font-size: 14px;
    white-space: pre-line;
}

#nowosci .btn-more {
    font-size: 16px;
    margin-top: 25px;
    padding: 5px 20px;
}

#nowosci .btn-more-outline, #nowosci .btn-more-outline:hover {
    color: #fff !important;
    background-color: #000;
}

/* SECTION partners */
#partners {
    padding: 100px 0;
}

#partners h3, #partners h3 {
    display: inline-block;
    position: relative;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 20px;
    margin-bottom: 100px;
}

#partners h3::after, #partners h3::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    left: 0;
    bottom: -15px;
    background: #000;
}

.swiper.partners {
    position: relative;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
}

.partners .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partners-next::after {
    content: url("../img/icons/arrow-right.png");
    font-size: 16px;
}

.partners-prev::after {
    content: url("../img/icons/arrow-left.png");
    font-size: 16px;
}


#blog .blog-box {
    background-color: #fff;
    margin-top: 25px;
    min-height: 350px;
}

#blog h3 {
    letter-spacing: 8px;
}

#blog .blog-box > img {
    margin-top: -10px;
}

#blog .blog-desc > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin: 0;
}

#blog .btn-more-outline-red {
    display: inline-block;
    margin-top: 25px;
    padding: 5px 30px;
    border-radius: 20px;
    font-size: 24px;
    letter-spacing: 5px;
    color: var(--dark-red);
    border: 1px solid var(--dark-red);
}

/* SECTION about */
.about-left {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.about-left__thumbs {
    width: calc(100% - 40%);
    max-height: 490px;
    overflow: hidden;
}

.about-left__thumbs img {
    width: 100%;
    max-height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.about-left__thumbs img:nth-child(2) {
    position: absolute;
    max-width: 75%;
    height: auto;
    right: 0;
    top: 0;
    border-left: 40px solid var(--dark-red);;
    border-bottom: 40px solid var(--dark-red);;
    border-radius: 0 0 0 10px;
}

.about-24 {
    width: 40%;
}

.about-24__text {
    background-color: #DF0E0E;
    width: 100%;
    padding: 10px;
    margin-bottom: 0;
    border-left: 40px solid var(--dark-red);
    text-align: center;
    align-self: flex-end;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    font-size: 92px;
    font-weight: 600;
    color: #fff;
}

#people h3 {
    font-size: 22px;
}

#people .modal h3 {
    color: var(--dark-red);
}

#people .modal .modal-header {
    border-color: var(--dark-red);
}


/* FOOTER */
footer .up {
    padding: 100px 0;
    background-color: var(--light-gray);
}

footer .up p {
    color: #000;
    padding-bottom: 8px;
}

footer .up ul {
    list-style: none;
    padding-left: 10px;
}

footer .up ul a, a {
    color: #000;
    text-decoration: none;
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: auto;
    gap: 8px;
    justify-items: center;
    align-items: start;
}

.footer-menu .about {
    grid-row: span 3;
}

.footer-menu .library {
    grid-row: span 2;
}

.footer-menu .libraries {
    grid-row: span 4;
}

.footer-menu .oferts {
    grid-row: span 2;
}

.footer-menu .e-lib {
    grid-row: span 1;
}


footer .down {
    background-color: black;
}

footer .down a, footer .down p, footer .down h5 {
    color: #fff;
    text-decoration: none;
    margin: 0;
}

footer .social-media img{
    object-fit: contain;
}

@media screen and (max-width: 1400px) {
    #shortcuts > .box {
        text-align: center;
        width: calc(100% / 3);
        height: 275px;
    }

    #shortcuts > .box > h4 {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 1200px) {
    #pills-tab .nav-link.active {
        color: var(--dark-red);
    }
    #pills-tab .nav-link.active::after,
    #pills-tab .nav-link.active::before {
        display: none;
    }
}

@media screen and (max-width: 996px) {
    header {
        padding-left: 2em;
    }

    header .navbar {
        margin-right: 5em;
    }

    #shortcuts > .box:nth-child(3) {
        display: none;
    }

    #shortcuts > .box > p:nth-of-type(1) {
        padding: 0;
    }

    #shortcuts > .box > p:nth-of-type(2) {
         padding: 0;
     }

    #shortcuts > .box {
        text-align: center;
        width: calc(100% / 2);
        height: 275px;
    }


    .footer-menu {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: auto;
        justify-items: start;
    }
    .footer-menu > div {
        grid-row: auto;
    }

    .about-img {
        width: 200px !important;
    }
}

@media screen and (min-width: 567px) {
    .header-title {
        padding-top: 100px !important;
    }
 }

@media screen and (max-width: 567px) {
    #pills-tab .nav-link, .ramowka-day {
        font-size: 14px;
    }

    .pills-list-item h4 {
        font-size: 16px;
    }

    .pills-list-item p {
        font-size: 14px;
    }

    .pills-list-item .btn-custom-red {
        width: 75%;
        padding: 4px 7px;
        font-size: 16px;
    }

    .pills-list-item > .collapse {
        padding: 0;
    }

    .baner-slider h1 {
        font-size: 20px;
    }

    .up {
        margin-top: 0;
    }

    .footer-menu {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }

    #shortcuts > .box {
        padding: 35px 15px 25px 15px;
        text-align: center;
        width: 85% !important;
        height: 250px;
    }

    #shortcuts > .box > .author > p {
        font-size: 0.9rem;
        height: 20%;
        font-weight: 600;
        color: #fff;
        margin: 0;
    }

    .baner-slider h3 {
        margin-left: -75px;
    }

    .about-img {
        width: 150px !important;
    }

    #blog img, 
    #news .news-box img {
        object-fit: cover;
    }

}

@media screen and (max-width: 767px) {
    header .navbar {
        margin-right: 0 !important;
    }

    #shortcuts > .box {
        padding: 35px 15px 25px 15px;
        text-align: center;
        width: calc(100% / 2);
        height: 250px;
    }


    #shortcuts > .box > h4 {
        font-size: 1rem;
    }

    #menu {
        position: static;
    }

    header .down {
        position: absolute;
        right: 0;
        bottom: 35px;
        padding: 0;
    }

    .mobile-show {
        position: absolute;
        top: 120%;
        width: 100%;
        left: 0;
        margin-top: 25px;
        background-color: #fff;
        z-index: 99999;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

    .navbar-nav .nav-link {
        font-size: 30px;
    }

    .dropdown-menu {
        display: none;
    }

    .dropdown-item:active, .dropdown-item:focus {
        color: #fff;
        background: white;
    }

    .swiper-slider-button-prev,
    .swiper-slider-button-next {
        display: none;
    }
}

@media screen and (min-width: 767px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
    }

    .dropdown-item:active, .dropdown-item:focus {
        color: var(--dark-red);
        background: white;
    }

}


