/* Original Donor Style Replication for nadein.rf */
@import url('https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

:root {
    --primary-color: #2c98f0;
    --text-dark: rgba(0, 0, 0, 0.8);
    --text-muted: rgba(0, 0, 0, 0.7);
    --border-color: #f2f3f7;
    --sidebar-width: 300px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Quicksand", Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #000;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 400;
    margin: 0 0 20px 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
}
a:hover {
    color: #127edb;
    text-decoration: underline;
}

#colorlib-page {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.container-wrap {
    max-width: 1170px;
    margin: 0 auto;
}

/* SIDEBAR */
#colorlib-aside {
    padding: 60px 30px 40px;
    width: var(--sidebar-width);
    position: fixed;
    bottom: 0;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1001;
    background: #f2f3f7;
    transition: 0.5s;
    text-align: center;
}

#colorlib-aside .author-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

#colorlib-logo {
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.3;
}
#colorlib-logo a {
    color: #000;
    text-decoration: none;
}

#colorlib-main-menu ul {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}
#colorlib-main-menu ul li {
    margin-bottom: 10px;
}
#colorlib-main-menu ul li a {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
    position: relative;
    padding: 8px 10px;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
}
#colorlib-main-menu ul li a:hover,
#colorlib-main-menu ul li.active a {
    color: var(--primary-color);
}
#colorlib-main-menu ul li a:after {
    content: "";
    position: absolute;
    height: 1px;
    bottom: 5px;
    left: 10px;
    right: 10px;
    background-color: var(--primary-color);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out 0s;
}
#colorlib-main-menu ul li.active a:after,
#colorlib-main-menu ul li a:hover:after {
    visibility: visible;
    transform: scaleX(1);
}

/* Sidebar Social & Partners */
.sidebar-social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}
.sidebar-social-row a {
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sidebar-social-row a:hover {
    color: var(--primary-color);
}
.sidebar-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}
.sidebar-logos-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: 0.3s;
}
.sidebar-logos-grid a:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
.sidebar-logos-grid img {
    max-width: 100%;
    height: auto;
    max-height: 45px;
    object-fit: contain;
}

/* MAIN CONTENT */
#colorlib-main {
    width: calc(100% - var(--sidebar-width));
    float: right;
    transition: 0.5s;
    background: #fff;
}

.colorlib-narrow-content {
    padding: 60px 40px;
}

.heading-meta {
    margin-bottom: 15px;
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #999999;
    font-weight: 500;
    letter-spacing: 5px;
}
.colorlib-heading {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.4;
    color: #000;
}

/* ==========================================================
   ТОЧНЫЙ ПЕРВЫЙ ЭКРАН (НАДЕИН.РФ)
   ========================================================== */

#colorlib-hero {
    min-height: 100vh;
    height: 100vh;
    background-size: cover;
    background-position: right center; /* Фото Надеина А.Е. справа видно полностью */
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* Полное отсутствие общего затемнения фото */
#colorlib-hero .hero-overlay {
    display: none;
}

/* Ограничивающий контейнер */
.hero-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
	justify-content: center;
    padding-bottom: 40px;
    box-sizing: border-box;
}

/* Текстовая колонка: строго менее половины экрана (42-45%) */
.hero-text-col {
    width: 90%;
    max-width: 1200px;
    min-width: 320px;
    z-index: 5;
}

/* Белая карточка под текстом для идеальной читаемости поверх фото */
#colorlib-hero .desc {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 35px 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translate3d(0, 45px, 0);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Активация анимации плавного всплытия снизу */
#colorlib-hero.hero-loaded .desc,
#colorlib-hero .desc.animated {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

#colorlib-hero .greeting-heading {
    font-size: 19px;
    line-height: 1.4;
    color: #111;
    margin-bottom: 14px;
    font-weight: 700;
}

#colorlib-hero .greeting-body,
#colorlib-hero .greeting-body p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

/* Мобильная адаптация */
@media screen and (max-width: 991px) {
    #colorlib-hero {
        height: auto;
        min-height: 520px;
        padding: 50px 20px;
        background-position: center center;
    }

    .hero-content-wrapper {
        padding-left: 0;
    }

    .hero-text-col {
        width: 100%;
        max-width: 100%;
    }

    #colorlib-hero .desc {
        background: rgba(255, 255, 255, 0.92);
        padding: 25px;
    }
}

/* ==========================================================
   Оригинальная анимация появления текста первого экрана (Colorlib)
   ========================================================== */

#colorlib-hero .desc {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 40px, 0);
    transition: none;
}

/* Класс активации анимации fadeInUp */
#colorlib-hero .desc.animated,
#colorlib-hero.hero-loaded .desc {
    visibility: visible;
    animation-name: heroFadeInUp;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Раздельный тайминг для заголовка и основного текста */
#colorlib-hero.hero-loaded .greeting-heading {
    animation-name: heroFadeInUp;
    animation-duration: 0.9s;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

#colorlib-hero.hero-loaded .greeting-body {
    animation-name: heroFadeInUp;
    animation-duration: 1.1s;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

/* Ключевые кадры оригинального эффекта fadeInUp */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ABOUT SECTION */
.about-desc p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
}
.about-desc ul {
    margin: 15px 0 25px 25px;
}
.about-desc ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* OKRUG SECTION */
.okrug-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}
.okrug-text p {
    font-size: 16px;
    line-height: 2;
}
.okrug-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* GALLERY (SWIPER / FOTORAMA REPLACEMENT) */
.gallery-swiper {
    position: relative;
    padding-bottom: 40px;
}
.gallery-swiper .swiper-slide {
    text-align: center;
    border-radius: 6px;
    overflow: hidden;
    background: #f7fafc;
}
.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: 0.3s;
}
.gallery-swiper .swiper-slide:hover img {
    transform: scale(1.02);
}

/* CONTACTS SECTION */
.colorlib-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}
.colorlib-icon {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.colorlib-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.colorlib-text p {
    font-size: 15px;
    margin: 0;
    line-height: 1.7;
}

/* Mobile Toggle */
.colorlib-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    cursor: pointer;
    background: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.colorlib-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #000;
    margin: 4px 0;
    transition: 0.3s;
}

/* RESPONSIVE */
@media screen and (max-width: 991px) {
    .colorlib-nav-toggle { display: block; }
    #colorlib-aside {
        transform: translateX(-100%);
    }
    #colorlib-aside.active {
        transform: translateX(0);
    }
    #colorlib-main {
        width: 100%;
        float: none;
    }
    .colorlib-narrow-content { padding: 40px 20px; }
    .okrug-wrapper { grid-template-columns: 1fr; }
    #colorlib-hero .hero-inner { padding: 60px 20px; }
}


/* ==========================================================
   СЛАЙДЕР С ЭФФЕКТОМ УВЕЛИЧЕНИЯ (LIGHTBOX)
   ========================================================== */

.gallery-slider-wrap {
    position: relative;
    padding-bottom: 30px;
}

.gallery-photo-link {
    display: block;
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #f7f7f7;
}

.gallery-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-photo-link:hover img {
    transform: scale(1.05);
}

/* Иконка лупы при наведении */
.gallery-photo-link .zoom-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(44, 152, 240, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-size: 16px;
}

.gallery-photo-link:hover .zoom-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Окно полноэкранного просмотра */
.nadein-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nadein-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.nadein-lightbox .lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.nadein-lightbox .lightbox-dialog {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nadein-lightbox .lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.nadein-lightbox.active .lightbox-image {
    transform: scale(1);
}

/* Кнопка закрытия (крестик) */
.nadein-lightbox .lightbox-close {
    position: absolute;
    top: -45px;
    right: -10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nadein-lightbox .lightbox-close:hover {
    color: var(--primary-color, #2c98f0);
    transform: scale(1.15);
}

@media screen and (max-width: 768px) {
    .gallery-photo-link {
        height: 280px;
    }
    .nadein-lightbox .lightbox-close {
        top: -40px;
        right: 0;
    }
}