body {
    background-color: #fff;
    color: #003;
    text-align: justify
}

@media (max-width: 576px) {


    .background-logo-link {
        display: none !important
    }

    .skeleton-img {
        width: 100%;
        height: 300px !important;
        margin-bottom: 1rem
    }

    .rounded-4 {
        text-align: left !important
    }
}

.carousel-item .row {
    margin-top: -1rem;
    margin-bottom: -1rem
}

.carousel-inner {
    padding: 0
}

.btn-primary {
    min-width: 180px
}

#directorModal .modal-content {
    background-color: #fff;
    color: #000
}

@media (min-width: 768px) {
    .btn[data-bs-toggle=collapse] {
        display: none !important
    }
}

.navbar .nav-link {
    color: #fff !important;
}

.national-projects {
    background-image: url(http://94.181.22.25:5000/static/img/background-geometricks1.png);
    background-repeat: no-repeat;
    background-size: 200px auto;
    background-position: right center;
    background-attachment: fixed;
    pointer-events: none
}

.background-logo-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 0
}

.background-logo-img {
    width: 180px;
    opacity: .9;
    transition: opacity .3s
}

.background-logo-link:hover .background-logo-img {
    opacity: .4
}

.skeleton {
    background: linear-gradient(90deg, #ccc 25%, #ddd 37%, #ccc 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.2s ease-in-out infinite;
    border-radius: .5rem
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 0
    }
    100% {
        background-position: 0 0
    }
}

.skeleton-img {
    width: 100%;
    height: 600px;
    margin-bottom: 1rem
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin: 0 auto 1rem
}

.rounded-4 {
    text-align: justify
}

body {
    background-color: #fff;
    color: #003
}

.contacts-section h1 {
    color: #003;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: none
}

.contacts-card {
    background-color: rgba(255, 255, 255, .95);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem
}

.contacts-card .school-contacts {
    flex: 1 1 300px
}

.contacts-card h4 {
    font-size: 1.25rem;
    margin-bottom: .75rem;
    color: #333
}

.contacts-card .school-contacts p {
    margin-bottom: .5rem;
    color: #003;
    line-height: 1.4
}

.icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    stroke: #333;
    margin-top: 3px
}

.navbar .nav-link {
    color: #fff !important
}

p {
    color: #003
}

.custom-navbar {
    background: linear-gradient(90deg, #082567, #4b6cb7);
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    transition: all .3s ease
}

.custom-navbar .navbar-brand span {
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 0 0 4px rgba(255, 255, 255, .5)
}

.custom-navbar .nav-link {
    position: relative;
    color: #e0e0e0 !important;
    margin: 0 .75rem;
    font-weight: 500;
    transition: all .3s ease
}

.custom-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #fff;
    transition: .3s ease
}

.custom-navbar .nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 5px #fff, 0 0 15px #00e0ff
}

.custom-navbar .nav-link:hover::after {
    width: 100%
}

.custom-navbar .nav-link.active {
    color: #fff !important;
    font-weight: 600
}

.navbar-toggler {
    background: rgba(255, 255, 255, .1);
    border: none
}

.navbar-toggler-icon {
    filter: invert(1)
}

@media (max-width: 768px) {
    .custom-navbar .nav-link {
        padding: .75rem 1rem;
        margin: 0;
        display: block;
        text-align: center
    }
}

@media (max-width: 768px) {
    .hero-section {
        position: relative;
        width: 100%;
        min-height: 85vh !important;
        overflow: hidden;
        text-align: center
    }
    .navbar .nav-link {
        min-width: 180px !important;
    }
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    text-align: center
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url(/static/img/school.jpg) center/cover no-repeat;
    z-index: 0
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .3);
    z-index: 1
}

.hero-content {
    background-color: rgba(0, 0, 0, .4);
    backdrop-filter: blur(2px);
    max-width: 800px;
    z-index: 2
}

.hero-content h1 {
    text-shadow: 0 0 15px rgba(255, 255, 255, .75);
    letter-spacing: 2px
}

.hero-content h2, .hero-content p {
    color: #f1f1f1;
    text-shadow: 0 0 5px rgba(0, 0, 0, .5)
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    background-size: 100% 100%
}

.carousel-custom-container {
    display: flex;
    align-items: center;
    position: relative;
    gap: 10px
}

.carousel-nav {
    background: #007bff;
    color: #fff;
    font-size: 24px;
    padding: 10px 15px;
    border: none;
    border-radius: 50%;
    cursor: pointer
}

.carousel-nav:disabled {
    opacity: .3;
    cursor: not-allowed
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative
}

.carousel-nav {
    background: #007bff;
    color: #fff;
    font-size: 24px;
    padding: 10px 15px;
    border: none;
    border-radius: 50%;
    cursor: pointer
}

.skeleton-img {
    height: 900px
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: #e4e8ea;
    border-radius: .4rem
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 100%);
    animation: skeleton-wave 1.2s infinite
}

@keyframes skeleton-wave {
    0% {
        transform: translateX(-100%)
    }
    100% {
        transform: translateX(100%)
    }
}

.skeleton-img {
    width: 340px;
    height: 150%;
    object-fit: cover;
    background: #ccc
}

.skeleton {
    position: relative;
    background: #e4e8ea;
    border-radius: .4rem;
    overflow: hidden
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    animation: skeleton-wave 1.2s infinite
}

@keyframes skeleton-wave {
    0% {
        transform: translateX(-100%)
    }
    100% {
        transform: translateX(100%)
    }
}

.skeleton-title {
    height: 26px;
    width: 60%
}

.skeleton-text {
    height: 14px
}

.skeleton-badge {
    height: 24px;
    width: 120px
}

.skeleton-img {
    width: 380px;
    height: 100%;
    object-fit: cover;
    background: #ccc;
    border-radius: 0
}

.bg-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0))
}

h2 {
    font-family: Roboto, sans-serif;
    font-size: 2rem;
    color: #007bff
}

.carousel-control-next, .carousel-control-prev {
    background-color: rgba(0, 0, 0, .5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%)
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    background-color: #fff
}

.carousel-control-next:hover, .carousel-control-prev:hover {
    background-color: #007bff
}

.gradient-text {
    background: linear-gradient(to right, #007bff, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s ease-out
}

.reveal.active {
    opacity: 1;
    transform: translateY(0)
}

.rotate-left {
    transform: perspective(1000px) rotateY(10deg);
    transition: transform .5s ease
}

.rotate-right {
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform .5s ease
}

.profile-card:hover {
    transform: perspective(1000px) rotateY(0) scale(1.03);
    z-index: 10
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s ease-out
}

.reveal.active {
    opacity: 1;
    transform: translateY(0)
}

.profile-card {
    transition: transform .4s ease, box-shadow .4s ease;
    background-color: #fff;
    border-radius: 20px
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12)
}

.profile-card {
    background: linear-gradient(to right, #2196f3, #21cbf3);
    color: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(33, 150, 243, .2);
    transition: transform .3s ease, box-shadow .3s ease
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(33, 150, 243, .3)
}

.profile-img {
    width: 90%;
    max-width: 240px;
    height: auto;
    border-radius: 16px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    object-fit: cover;
    aspect-ratio: 4/5
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease-out
}

.reveal.active {
    opacity: 1;
    transform: translateY(0)
}

.skeleton {
    background: linear-gradient(90deg, #bab6b6 25%, #e0e0e0 50%, #bab6b6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px
}

@keyframes shimmer {
    0% {
        background-position: 200% 0
    }
    100% {
        background-position: -200% 0
    }
}

.text-muted {
    white-space: normal
}

@media (max-width: 991.98px) {
    .navbar-nav {
        align-items: center
    }

    .navbar-nav .nav-link {
        text-align: left;
        width: 100%;
        max-width: 280px
    }
}

.text-glow {
    text-shadow: 0 0 5px rgba(255, 255, 255, .7), 0 0 10px rgba(255, 255, 255, .5)
}

.skeleton {
    animation: shimmer 1.2s infinite linear;
    background: linear-gradient(to right, #bab6b6 8%, #ddd 18%, #bab6b6 33%);
    background-size: 1000px 100%
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0
    }
    100% {
        background-position: 1000px 0
    }
}

.ms-6 {
    margin-left: 5rem;
}
.ms-7 {
    margin-left: 7rem;
}

@media (min-width: 992px) {
    .ms-lg-7 {
        margin-left: 7rem; /* или сколько нужно */
    }
}

.school-info-section {
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.school-info-section .bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: 0;
}

.wiki:link {
    outline: none;
}

.carousel-item > .row {
    display: flex;
    gap: 1rem;
    width: 400px !important;
}

.carousel-card {
    flex: 1 1 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.carousel-card img {
    height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 100%;
    }
}

#eventSlider .card {
    transition: transform 0.3s ease;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

#eventSlider .card:hover {
    transform: scale(1.03);
}

#eventSlider .card-body {
    background-color: #212529;
}

.owl-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.owl-nav button {
    background-color: white !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    font-size: 20px !important;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.owl-dots {
    text-align: center;
    margin-top: 15px;
}

.owl-dots .owl-dot span {
    background: white;
}

.owl-dots .owl-dot.active span {
    background: #0d6efd;
}

.owl-carousel .owl-item img {
    display: block;
    width: 100% !important;
}

.event-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5); /* полупрозрачный чёрный фон */
    color: white;
    z-index: 2;
}

.event-caption h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.event-caption p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #dddddd;
}

.event-slide {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}
html, body {
    overflow-x: hidden;
}
@media (max-width: 1425px) {
    .navbar-nav {
        flex-wrap: wrap !important;
        white-space: normal !important;
        justify-content: center; /* по желанию */
    }
}

