/* Шрифты (ваши) */
@font-face {
    font-family: "AvenirThin";
    src: url(https://strangerdev.ru/styles/fonts/avenirnextcyr-thin.ttf) format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "AvenirRegular";
    src: url(https://strangerdev.ru/styles/fonts/avenirnextcyr-regular.ttf) format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "AvenirMedium";
    src: url(https://strangerdev.ru/styles/fonts/avenirnextcyr-medium.ttf) format("truetype");
    font-display: swap;
}

body 
{
    display: block;
    margin: 0px;
}

/* Основные стили */
.custom-hero {
    position: relative;
    min-height: 90vh;  /* Уменьшили высоту */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 40px 0;  /* Уменьшили отступы */
    background: radial-gradient(111.33% 72.97% at 15.78% 32.64%, #1f1c2a 0%, #211F20 100%);
    animation: gradientPulse 5s ease infinite alternate;
}

.custom-hero__parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Чтобы не перехватывал клики */
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(108, 92, 231, 0.3) 0%, 
        transparent 70%);
    will-change: transform; /* Для оптимизации */
    animation: breathEffect 8s ease-in-out infinite;
}

@keyframes breathEffect {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.custom-hero__parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.custom-hero__parallax-layer:nth-child(1) {
    background-image: 
        radial-gradient(circle at 20% 30%, 
            rgb(30, 0, 255) 0%, 
            transparent 30%);
    background-size: 150% 150%;
}

.custom-hero__parallax-layer:nth-child(2) {
    background-image: 
        radial-gradient(circle at 80% 70%, 
            rgba(255, 3, 3, 0.03) 0%, 
            transparent 40%);
    background-size: 200% 200%;
}

@keyframes gradientPulse {
    0% {
        background-size: 100% 100%;
    }
    50% {
        background-size: 120% 120%;
    }
    100% {
        background-size: 100% 100%;
    }
}

.custom-hero__container {
    display: flex;
    max-width: 1400px;
    width: 95%;  /* Увеличили заполнение */
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 40px;  /* Добавили отступ сверху */
}

.custom-hero__content {
    flex: 1;
    padding: 0 40px;
    max-width: 60%;
    margin-top: -30px;  /* Поднимаем контент выше */
}

.custom-hero__image-wrapper {
    position: relative;
    flex: 1;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-hero__gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
                rgba(108, 92, 231, 0.25) 0%, 
                rgba(108, 92, 231, 0) 70%);
    z-index: 1;
}

.custom-hero__logo {
    max-width: 80%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(108, 92, 231, 0.3));
}

/* Текстовая часть */
.custom-hero__title {
    font-family: "AvenirRegular", sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.3;
}

.custom-hero__text {
    font-family: "AvenirThin", sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.custom-hero__text p {
    margin-bottom: 15px;
}

/* Список навыков */
.custom-hero__skills {
    margin-top: 25px;
    padding-left: 0;
}

.custom-hero__skills li {
    font-family: "AvenirMedium", sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    position: relative;
    list-style-type: none;
    padding-left: 25px;
}

.custom-hero__skills li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: #6c5ce7;
    border-radius: 50%;
}

/* Кнопка */
.custom-hero__button {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #6c5ce7 0%, #5649c0 100%);
    color: white;
    font-family: "AvenirMedium", sans-serif;
    font-size: 18px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.custom-hero__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .custom-hero__content {
        max-width: 55%;
        padding: 0 40px;
    }
    
    .custom-hero__image-wrapper {
        min-height: 400px;
    }
}

@media (max-width: 992px) {
    .custom-hero__container {
        flex-direction: column;
    }
    
    .custom-hero__content {
        max-width: 100%;
        padding: 0 30px 60px;
    }
    
    .custom-hero__image-wrapper {
        min-height: 300px;
        width: 100%;
    }
    
    .custom-hero__logo {
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .custom-hero__title {
        font-size: 36px;
    }
    
    .custom-hero__text {
        font-size: 18px;
    }
    
    .custom-hero__skills li {
        font-size: 16px;
    }
    
    .custom-hero__button {
        padding: 12px 28px;
        font-size: 16px;
    }
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Фикс для якоря (чтобы контакты не скрывались под шапкой) */
#contacts {
    scroll-margin-top: 100px;
}

/* Стиль заголовка */
.BlockHeaderName {
    
    color: #DADADA;
    font-family: "AvenirRegular", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    padding: 1.5rem;
    margin: 0;
    position: relative;
}

.BlockHeaderName::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

/* Контейнер проектов */
.Block_Projects {
    background: radial-gradient(circle at center, #2d2a2b 0%, #1a1919 100%);
    padding: 4rem 2rem;
}

/* Список проектов */
.ProjectList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

/* Карточка проекта */
.ProjectBlock {
    background: rgba(30, 27, 28, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(108, 92, 231, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.ProjectBlock.new-item {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.ProjectBlock:hover {
    transform: translateY(-10px);
    border-color: rgba(108, 92, 231, 0.7);
    box-shadow: 0 12px 30px rgba(108, 92, 231, 0.15);
}

.ProjectImage {
    height: 200px;
    overflow: hidden;
}

.ProjectImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ProjectBlock:hover .ProjectImage img {
    transform: scale(1.05);
}

.ProjectInfo {
    padding: 1.5rem;
}

.ProjectName {
    font-family: "AvenirMedium", sans-serif;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.ProjectFooter {
    height: 4px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    margin-top: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ProjectBlock:hover .ProjectFooter {
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .ProjectList {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .BlockHeaderName {
        font-size: 2rem;
    }
}
/* ////////////////////// */
/* ////////////////////// */
/* ////////////////////// */
/* ////////////////////// */
/* ////////////////////// */
/* Основной блок */
.Block_Peoples {
    background: radial-gradient(circle at center, #2d2a2b 0%, #1a1919 100%);
    padding: 4rem 0;
    position: relative;
}


/* Заголовок (сохраняем единый стиль) */
.Block_Peoples .BlockHeaderName {
    
    color: #DADADA;
    font-family: "AvenirRegular", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    padding: 1.5rem;
    margin: 0;
    position: relative;
}

.Block_Peoples .BlockHeaderName::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

/* Список компаний */
.PeopleList {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 2rem;
    justify-items: center;
}

/* Карточка компании */
.CompanyBlock {
    background: rgba(30, 27, 28, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 92, 231, 0.2);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.CompanyBlock:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 92, 231, 0.5);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.15);
}

.CompanyBlock img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
}

.CompanyBlock:hover img {
    transform: scale(1.05);
}

.CompanyName {
    font-family: "AvenirMedium", sans-serif;
    color: #fff;
    font-size: 1.2rem;
    margin-top: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.CompanyName::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    transition: width 0.3s ease;
}

.CompanyBlock:hover .CompanyName::after {
    width: 60%;
}

/* Анимация появления */
.CompanyBlock {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержки для анимации */
.CompanyBlock:nth-child(1) { animation-delay: 0.1s; }
.CompanyBlock:nth-child(2) { animation-delay: 0.2s; }
.CompanyBlock:nth-child(3) { animation-delay: 0.3s; }
.CompanyBlock:nth-child(4) { animation-delay: 0.4s; }
.CompanyBlock:nth-child(5) { animation-delay: 0.5s; }
.CompanyBlock:nth-child(6) { animation-delay: 0.6s; }
.CompanyBlock:nth-child(7) { animation-delay: 0.7s; }
.CompanyBlock:nth-child(8) { animation-delay: 0.8s; }

/* Адаптивность */
@media (max-width: 992px) {
    .PeopleList {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .PeopleList {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .Block_Peoples .BlockHeaderName {
        font-size: 2rem;
    }
    
    .CompanyBlock {
        min-height: 220px; /* Меньшая высота на мобильных */
    }
    
    .CompanyBlock img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .PeopleList {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ////////////////////// */
/* ////////////////////// */
/* ////////////////////// */
/* ////////////////////// */
/* ////////////////////// */

/* Основной блок */
.Block_Price {
    background: radial-gradient(circle at center, #2d2a2b 0%, #1a1919 100%);
    padding: 4rem 2rem;
    position: relative;
}

/* Список цен - теперь всегда 4 в ряд */
.PriceList {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1800px;
    margin: 3rem auto 0;
    padding: 0 2rem;
    flex-wrap: wrap;
}

/* Карточка цены - увеличенные размеры */
.PriceBlock {
    background: rgba(30, 27, 28, 0.8);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(108, 92, 231, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 280px;
    height: 420px; /* Фиксированная высота */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Увеличенные изображения */
.PriceBlock img {
    width: 246px;
    height: 205px;
    border-radius: 4px;
    object-fit: contain;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(108, 92, 231, 0.3));
}

/* Текст */
.PriceName {
    font-family: "AvenirMedium", sans-serif;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.PriceRub {
    font-family: "AvenirRegular", sans-serif;
    color: #a29bfe;
    font-size: 2rem;
    font-weight: 700;
    margin-top: auto;
    padding: 1rem 2rem;
    background: rgba(108, 92, 231, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(108, 92, 231, 0.4);
    transition: all 0.3s ease;
}

/* Адаптивность */
@media (max-width: 1280px) {
    .PriceBlock {
        width: 240px;
        height: 380px;
        padding: 2rem;
    }
    .PriceBlock img {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 1024px) {
    .PriceList {
        grid-template-columns: repeat(2, 1fr);
    }
    .PriceBlock {
        width: 100%;
        height: auto;
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .PriceList {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}



/* Основной блок */
.Block_Contact {
    background: radial-gradient(circle at center, #2d2a2b 0%, #1a1919 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Заголовок */
.Block_Contact .BlockHeaderName {
    
    color: #DADADA;
    font-family: "AvenirRegular", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    padding: 1.5rem;
    margin: 0;
    position: relative;
}

.Block_Contact .BlockHeaderName::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

/* Центральная часть с контактами */
.ContactCenter {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
}

/* Блок контакта */
.ContactBlock {
    display: flex;
    align-items: center;
    background: rgba(30, 27, 28, 0.8);
    border-radius: 50px;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 92, 231, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.ContactBlock:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 92, 231, 0.5);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.15);
    background: rgba(108, 92, 231, 0.1);
    cursor: pointer;
    text-decoration: none !important;
}

.ContactBlock img {
    width: 32px;
    height: 32px;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.ContactBlock:hover img {
    transform: scale(1.1);
}

.ContactName {
    font-family: "AvenirMedium", sans-serif;
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.ContactBlock:hover .ContactName {
    color: #a29bfe;
}

/* Футер */
.footer {
    text-align: center;
    font-family: "AvenirThin", sans-serif;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-top: 3rem;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer a {
    color: #a29bfe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #6c5ce7;
    text-decoration: underline;
}

/* Анимация */
.ContactBlock {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.ContactBlock:nth-child(1) { animation-delay: 0.2s; }
.ContactBlock:nth-child(2) { animation-delay: 0.4s; }
.ContactBlock:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .ContactCenter {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .Block_Contact .BlockHeaderName {
        font-size: 2rem;
    }
    
    .footer {
        font-size: 0.9rem;
        padding: 1.5rem;
    }
}

/* ////////////////////// */
/* ////////////////////// */
/* ////////////////////// */
/* ////////////////////// */
/* ////////////////////// */

/* Основное меню */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(33, 31, 32, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-family: "AvenirMedium", sans-serif;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #a29bfe;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    transition: width 0.3s ease;
}

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

.nav-button {
    background: linear-gradient(135deg, #6c5ce7 0%, #5649c0 100%);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-family: "AvenirMedium", sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(108, 92, 231, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #6c5ce7;
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* Адаптивность */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #211F20;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal__container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #211F20;
    border-radius: 12px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal__close svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.modal__content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 4rem);
    display: flex;
    flex-direction: column;
}

/* Видео контейнер */
.video-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-title {
    order: 2; /* Помещаем заголовок после видео */
    text-align: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.4rem;
    font-family: "AvenirMedium", sans-serif;
    color: #fff;
    font-size: 1.3rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-slide {
    animation: fadeIn 0.5s ease;
}
/* Галерея */
.gallery-container {
    display: none;
    flex-direction: column;
    height: 100%;
    gap: 3rem; /* Добавляем отступ между элементами */
}

.gallery-title {
    text-align: center;
    color: white;
    font-size: 1.4rem;
    margin: 0;
    order: 1; /* Фиксируем порядок - заголовок первый */
    font-family: "AvenirMedium", sans-serif;
    font-size: 1.3rem;
}

.gallery-slides {
    flex: 1;
    position: relative;
    min-height: 400px;
    order: 2; /* Слайды идут вторыми */
    margin: 0;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

.gallery-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    order: 3; /* Навигация идёт последней */
    margin-top: auto; /* Прижимаем к низу */
    position: relative;
    z-index: 2; /* Поднимаем над слайдами */
}

.gallery-slides {
    margin-bottom: 1rem;
}

.gallery-nav button {
    background: rgba(108, 92, 231, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.gallery-nav button:hover {
    background: #6c5ce7;
    transform: scale(1.1);
}

.gallery-counter {
    font-family: "AvenirRegular", sans-serif;
    color: white;
    margin: 0 1rem;
    min-width: 50px;
    text-align: center;
}

/* Модальное окно на мобильных */
@media (max-width: 768px) {
    .modal__container {
        width: 95%;
        height: 90vh;
        max-height: none;
        display: flex;
        flex-direction: column;
    }
    
    .modal__content {
        flex: 1;
        padding: 1rem;
        max-height: none;
        display: flex;
        flex-direction: column;
    }
    
    /* Видео контейнер */
    .video-container {
        flex: 1;
        min-height: 200px;
        position: relative;
        padding-bottom: 0;
        height: auto;
    }
    
    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .modal__content {
        padding: 1rem;
    }
    
    .gallery-slides {
        min-height: 300px;
    }
    
    .gallery-image {
        max-height: 60vh;
    }
    
    .gallery-nav {
        padding: 0.5rem;
    }
    
    .gallery-nav button {
        width: 36px;
        height: 36px;
    }
    
    .video-title, .gallery-title {
        font-size: 1.2rem;
    }
}

.load-more-btn {
    display: none; /* Скрыта по умолчанию */
    margin: 2rem auto 0;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #6c5ce7 0%, #5649c0 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: "AvenirMedium", sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}