/* Основные стили */

/* Добавляем новый шрифт Sweet Mavka */
@font-face {
    font-family: 'Sweet Mavka';
    src: url('fonts/ofont.ru_Sweet_Mavka.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Banff';
    src: url('fonts/ofont.ru_Banff.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lintel XB1';
    src: url('fonts/LintelXB1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body, html {
    height: 100%;
    width: 100%;
    font-family: 'Lintel XB1', sans-serif;
    color: #fff;
    position: relative;
}

/* Фиксированный фон через псевдоэлемент - работает лучше на мобильных */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('fon2.gif') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

/* Основной контент */
.content {
    text-align: center;
    margin: 50px 0;
    position: relative;
    z-index: 1;
}

.otstup {
    margin-top: 60px;
}
.otstup2 {
    margin-bottom: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}


.menu {
    top: 20px;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
}

.menu ul {
    list-style: none;
    display: flex;
}

.menu li {
    margin-right: 25px;
}

.menu a {
    text-decoration: none;
    color: white;
    font-size: 22px;
    font-family: 'Sweet Mavka', sans-serif; /* Применяем новый шрифт */
    transition: 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.menu a:hover {
    color: #ffcc00;
}

.menu a.active {
    text-decoration: underline; /* Подчеркивание активной страницы */
    color: #ffcc00; /* Изменил цвет активной страницы на #ffcc00 */
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    justify-items: center;
    padding-bottom: 0px;
}

.scam-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 изображения в ряд */
    gap: 20px;
    padding: 20px;
    justify-items: center;
    margin-bottom: 40px; /* Отступ между секциями букв */
}

.scam-gallery {
    justify-content: flex-start;
}

.scam-image-box {
    flex: 0 0 calc(16.666% - 20px);
    max-width: calc(16.666% - 20px);
    margin-bottom: 20px;
}

.scam-image-with-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: #f5f5f5;
}

.scam-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.scam-name {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.content-img, .scam-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* position: absolute; временно убран */
    top: 0;
    left: 0;
    z-index: 1;
}

.image-box {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
}

.scam-image-box {
    width: 100%;
    max-width: 300px; /* Уменьшаем ширину для 3:4 формата */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-with-frame {
    position: relative;
    width: 100%;
    height: 219px;
    box-shadow: 0 6px 8px rgb(0 0 0 / 66%); /* Небольшая тень */
    transition: transform 0.3s ease; /* Плавное увеличение при наведении */
    margin: 0 auto;
    margin-bottom: 10px;
}

.scam-image-with-frame {
    position: relative;
    width: 100%;
    height: 342px; /* 3:4 формат (300x400) */
    box-shadow: 0 6px 8px rgb(0 0 0 / 66%); /* Небольшая тень */
    transition: transform 0.3s ease; /* Плавное увеличение при наведении */
    margin: 0 auto;
}

.scam-image-with-frame:hover {
    transform: none !important; /* Убираем увеличение при наведении на странице СкамАрхив */
}

/* Сохраняем увеличение для других страниц (например, Предлагай и поддерживай) */
.image-with-frame:hover {
    transform: scale(1.05); /* Увеличение на 5% при наведении */
}

.content-img {
    width: 92%;
    height: 100%;
    object-fit: contain;
    top: 0;
    left: 0;
    z-index: 1;
}

.content-img {
    width: 92%;
    height: 100%;
    object-fit: contain;
    top: 0;
    left: 0;
    z-index: 1;
    filter: grayscale(100%); /* Добавляем черно-белый фильтр */
    transition: filter 0.3s ease; /* Плавный переход к цвету */
}

/* При наведении изображение становится цветным */
.image-with-frame:hover .content-img {
    filter: none; /* Убираем фильтр при наведении */
}

.oproimg img, .oproimg video {
    filter: none !important; /* Важный приоритет для отмены grayscale */
}

.scam-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Используем cover, чтобы сохранить 3:4 пропорции */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: grayscale(100%); /* Черно-белое изображение по умолчанию */
    transition: filter 0.3s ease; /* Плавный переход к цвету */
}

.scam-img:hover {
    filter: none; /* Цветное изображение при наведении */
}

.frame-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.support-btn {
    display: inline-block;
    margin: 10px 0;
    padding: 0;
    background-color: transparent;
    color: #ffcc00;
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-size: 20px;
    font-family: 'Banff', sans-serif;
    transition: transform 0.3s ease; /* Плавное увеличение при наведении */
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.7);
}
.highlight-green {
    color: #04f504;
    font-weight: bold;
    font-size: 18px;
}

.support-btn:hover {
    transform: scale(1.05); /* Увеличение на 5% при наведении */
    background-color: transparent;
    color: #ffcc00;
    text-shadow: 0 8px 8px rgba(0, 0, 0, 0.9);
}

.support-btn.disabled {
    color: #808080; /* Серый цвет */
    pointer-events: none; /* Отключает кликабельность */
    text-shadow: none; /* Убирает тень текста */
}

.support-btn.disabled:hover {
    transform: none; /* Отключает увеличение при наведении */
    color: #808080; /* Остается серым при наведении */
    text-shadow: none; /* Тень не появляется */
}

.progress-bar {
    width: 90%;
    height: 21px; /* Увеличил высоту с 16px до 21px */
    border: 1px solid #444; /* Заменил серый фон на серый бордер */
    border-radius: 5px;
    margin: 5px 0;
    overflow: hidden;
    position: relative;
    background-color: transparent; /* Убрал фон */
}

.progress {
    height: 100%;
    background-color: #ffcc00;
    width: 0%;
    transition: width 0.3s ease-in-out;
    position: relative;
}

.progress-value {
    position: absolute; /* Add this line */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 10px;
    font-family: 'Lintel XB1', sans-serif;
    white-space: nowrap;
    text-align: center;
    padding: 0 2px;
}

.balance-text {
    display: none;
}

.scam-name {
    font-size: 16px;
    color: #fff;
    font-family: 'Sweet Mavka', sans-serif; /* Шрифт для имени персонажа */
    margin-top: 15px;
    text-align: center;
}

.scam-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.7);
}

.scam-name a:hover {
    color: #ffcc00; /* Цвет при наведении на имя */
}

.pod-zag {
    text-align: left;
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcc0082;
    color: #dadada;
    font-family: 'Sweet Mavka', sans-serif; /* Применяем новый шрифт */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-title, .section-title2 {
    font-size: 24px;
    text-align: left;
    color: white;
    margin-top: 20px;
    margin-bottom: 8px;
    font-family: 'Sweet Mavka', sans-serif; /* Применяем новый шрифт */
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid #ffcc00;
}

.opro {
    text-align: left;
    font-size: 20px;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgb(0 0 0);
}
.opro a {
    color: #ffcc00;
}
.oproimg img {
    width: 30%;
}

.oproimg video {
    width: 30%;
}
.fond {
    text-align: left;
    line-height: 22px;
    text-shadow: 0 4px 4px rgb(0 0 0);
}
.fond ul {
    margin-top: 12px;
}
.fond li {
    margin-bottom: 10px;
}
.fond p {
    margin-bottom: 20px;
    text-align: center;
}
.fond-subtitle {
    margin-bottom: 20px;
    font-size: 18px;
}
.nf {
    font-size: 18px;
}

.nf a {
    color: #ffcc00;
    font-size: 20px;
}

/* Стили для футера */
.footer {
    width: 100%;
    padding-top: 18px;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    left: 0;
    border-top: 1px solid #cccccc40; /* Тонкая серая линия сверху */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Расстояние между иконками */
    padding: 0 20px;
}

.footer-icon {
    display: inline-block;
    transition: transform 0.3s ease; /* Плавное увеличение при наведении */
}

.footer-icon img {
    width: 32px; /* Размер иконок */
    height: 32px;
    object-fit: contain;
    opacity: 50%;
}

.footer-icon img:hover {
    opacity: 100%;
}

.footer-icon:hover {
    transform: scale(1.1); /* Увеличение на 10% при наведении */
}

/* Стили для фиксированной кнопки */
#fixed-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    color: #ffcc00;
    padding: 10px 20px;
    border: 1px solid #ffcc00;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Sweet Mavka', sans-serif;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

#fixed-btn:hover {
    transition: 0.4s;
    background-color: #ffcc00;
    color: #000;
    opacity: 1;
}

/* Встроенная кнопка доната перед "Всем профита и всех благ!" */
.donate-inline-btn {
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    color: #1cf210;
    padding: 10px 40px;
    border: 1px solid #1cf210;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Sweet Mavka', sans-serif;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
    opacity: 0.7;
    margin-bottom: 20px;
}

.donate-inline-btn:hover {
    transition: 0.4s;
    background-color: #1cf210 !important;
    color: #000;
    opacity: 1;
}


/* Стили для поп-ап окна */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

.popup-content {
    position: relative;
    color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 400px;
    font-family: 'Lintel XB1', sans-serif;
    text-align: left;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.7);
    background-color: #00000075;
}


.popup-content p {
    line-height: 20px;
    padding-bottom: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #000;
    font-size: 24px;
    cursor: pointer;
}

.wallet-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

#wallet-address {
    font-size: 14px;
    word-break: break-all;
    margin-right: 10px;
    color: #05b005;
}

a.syuda {
    font-size: 14px;
    color: #05b005;
}

.copy-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.copy-icon:hover {
    transform: scale(1.1);
}

.custom-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
    padding: 20px;
    justify-items: center;
}

.custom-frame {
    width: 100%;
    max-width: 556px;
    aspect-ratio: 5 / 3;
    border: 3px solid transparent;
    border-radius: 15px;
    background: linear-gradient(45deg, #b99402, #8b3902); /* Градиентная обводка */
    padding: 2px; /* Отступ для создания эффекта рамки */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.custom-frame:hover {
    transform: scale(1.05); /* Увеличение на 5% при наведении */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
    background: linear-gradient(45deg, #ffcc00); /* Градиентная обводка */
}

.custom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px; /* Закругление углов изображения внутри рамки */
    display: block;
}
    .opro p{
        line-height: 30px;
    }
.video-title,
.video-duration {
    font-size: 16px; /* Меньше, чем 20px в .opro */
    color: #dadada; /* Серый цвет, как в .pod-zag */
    line-height: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
}
.video-duration {
    font-size: 14px;
    color: #999696;
}
/* ===== Отзывы учеников ===== */

.reviews-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.review-item {
    position: relative;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    border-radius: 6px;
}

.review-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-number {
    position: absolute;
    top: 27px;
    left: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffcc00;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Sweet Mavka', sans-serif;
    z-index: 2;
}

#review-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

#review-modal img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

#review-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #ffcc00;
    cursor: pointer;
    user-select: none;
}
   .review-item,
    .review-item img {
        cursor: pointer;
    }
	    .review-item:hover {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }
	.review-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #ffcc00;
    cursor: pointer;
    user-select: none;
    padding: 10px 18px;
    background: rgba(0,0,0,0.4);
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.review-arrow:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

#review-prev {
    left: 20px;
}

#review-next {
    right: 20px;
}


/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .gallery, .scam-gallery {
        grid-template-columns: 1fr;
    }
    .menu ul {
        display: block;
    }
    .footer-container {
        gap: 15px; /* Уменьшаем расстояние между иконками на маленьких экранах */
    }
    
    .oproimg img {
        width: 60%;
    }

    .oproimg video {
        width: 60%;
    }

    .footer-icon img {
        width: 24px; /* Уменьшаем размер иконок на мобильных */
        height: 24px;
    }

    #fixed-btn {
        bottom: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 14px;
    }

    .popup-content {
        margin: 20% auto;
        width: 85%;
    }
        .custom-gallery {
        grid-template-columns: 1fr;
    }
    .video-duration {
    margin-bottom: 20px;
}
    .reviews-gallery {
        grid-template-columns: 1fr;
    }
	.review-item {
    box-shadow: none;
}

.review-number {
	top: 6px;
    left: 40px;
}
    #review-modal {
        display: none !important;
    }
    
    /* Исправления для мобильных устройств, чтобы предотвратить растягивание фона */
    body::before {
        background-attachment: fixed; /* Важно! */
        background-position: center center;
    }
}

@media (min-width: 769px) {

    .reviews-gallery {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .review-item img {
        width: 100%;
        margin: 0;
    }

    .review-item,
    .review-item img {
        cursor: pointer;
    }

    .review-arrow {
        display: block;
    }
}