body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Widgets and Highlights  */
.widget {
    border: 2px solid gray;
    padding: 2px 2px 0 2px;
    border-radius: 5px;
    width: calc(100% - 4px);
    margin: 0 2px;
    position: relative;
}

.widget-content {
    padding: 15px 0;
    text-align: center;
    overflow: hidden;
    position: relative;
    background-size: cover;
}

.widget-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: currentColor;
}

.widget-content[data-overlay='0.7']::before {
    background-color: rgba(0, 0, 0, 0.7);
}

.widget-content[data-overlay='0.6']::before {
    background-color: rgba(0, 0, 0, 0.6);
}

.widget-content h2 {
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    font-weight: 750 !important;
    font-size: 36px;
    line-height: 33px;
    color: #ffffff;
    text-align: center;
}

@media screen and (max-width: 770px) {
    .widget-content h2 {
        font-weight: 750 !important;
        font-size: 28px;
        line-height: 23px;
    }
}

.widget-content p {
    margin: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 2;
    font-size: 19px;
    line-height: 20px;
    color: #ffffff;
    text-align: justify;
    padding-top: -17px;
}

@media screen and (max-width: 770px) {
    .widget-content p {
        font-weight: 450 !important;
        font-size: 18px;
        line-height: 17px;
    }
}

.highlights-container3 {
    display: flex;
    overflow-x: scroll;
    position: relative;
    scrollbar-width: none;
}

.highlights-container3::-webkit-scrollbar {
    display: none;
}

.highlight {
    width: 120px;
    height: 120px;
    flex: 0 0 auto;
    background-color: #FF5733;
    margin: 6px;
    border: 1px solid gray;
    padding: 0px;
    border-radius: 23px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 2px white, 0 0 0 3px gray;
}

@media screen and (max-width: 770px) {
    .highlight {
        width: 90px;
        height: 90px;
    }
}

.highlight a {
    display: block;
    width: 100%;
    height: 100%;
}

.highlight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 23px;
}

.highlight h3 {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    text-align: center;
    margin: 0;
    z-index: 2;
    /* white-space: normal; */
    /* overflow-wrap: break-word; */
    /* word-break: break-all; */
    font-weight: 550 !important;
    font-size: 13px;
    line-height: 13px;
    color: #ffffff;
    text-shadow:
        1px 1px 0 #3F51B5,
        -1px 1px 0 #3F51B5,
        1px -1px 0 #3F51B5,
        -1px -1px 0 #3F51B5;
}

@media screen and (max-width: 770px) {
    .highlight h3 {
        font-weight: 350 !important;
        font-size: 13px;
        line-height: 10px;
        color: white;
        text-shadow:
            1px 1px 0 #3F51B5,
            -1px 1px 0 #3F51B5,
            1px -1px 0 #3F51B5,
            -1px -1px 0 #3F51B5;
    }
}

.arrow {
    position: absolute;
    bottom: 30px;
    transform: translateY(-50%);
    width: 26px;
    height: 40px;
    background-color: white;
    border: 1px solid gray;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.arrow-left {
    left: 0;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.arrow-right {
    right: 0;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.highlights-container3:hover .arrow {
    opacity: 1;
}

@media (max-width: 768px) {
    .widget {
        width: 100%;
        margin: 0 0 10px 0;
    }

    .arrow {
        display: none;
    }
}

.hidden {
    display: none;
}

.button-container {
    text-align: left;
    margin-left: 10px;
    margin-bottom: -5px;
}

.widget-button {
    display: inline-block;
    padding: 0px 14px;
    background-color: blue;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    background-image: linear-gradient(to top, blue, darkblue);
    margin-top: 10px;
    position: relative;
    z-index: 10;
}

.widget-button:hover {
    background-color: darkblue;
    background-image: linear-gradient(to top, darkblue, blue);
    color: white;
}


.listingsmain {
    margin-top: 10px;
    margin-bottom: 10px;
}

@media screen and (max-width: 770px) {
    .listingsmain {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

.maintext {
    padding: 15px 30px 10px;
    outline: none;
    background-color: rgb(255, 255, 255);
    max-width: 860px;
    width: 100%;
    /* Это уже обеспечивает 100% ширину */
    margin: 0 auto 10px;
    -webkit-box-shadow: 0 1px 5px rgb(0 0 0 / 60%);
    -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
    box-shadow: 0 1px 5px rgb(0 0 0 / 60%);
}

@media screen and (max-width: 770px) {
    .maintext {
        width: 100vw;
        /* Использует 100% ширины viewport [[4]] */
        margin-left: 0;
        margin-right: 0;
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 3px;
        box-sizing: border-box;
        /* Включает padding в общую ширину [[3]] */
    }
}

.maintext p,
.maintext li {
    font-size: 21px;
    line-height: 1.5;
    /* Улучшает читаемость */
    color: #4b4d55;
    text-align: justify;
}

.tagblock {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 0px;
    outline: none;
    background-color: rgb(255, 255, 255);
    max-width: 1140px;
    width: 100%;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5px;
    margin-bottom: 8px;
    -webkit-box-shadow: 0 1px 5px rgb(0 0 0 / 60%);
    -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
    box-shadow: 0 1px 5px rgb(0 0 0 / 60%);
    border-radius: 10px;
    background-color: #f9f9f9;
}

@media screen and (max-width: 770px) {
    .tagblock {
        margin-left: 10px;
        margin-right: 10px;
    }
}

.tagblock h3 {
    text-align: center;
    font-weight: 450;
    font-size: 26px;
    line-height: 33px;
    color: #4a4646;
}

@media screen and (max-width: 770px) {
    .tagblock h3 {
        font-weight: 630 !important;
        font-size: 19px;
        line-height: 18px;
    }
}

.tagblock a {
    display: inline-block;
    padding: 0.3rem 0.4rem 0.2rem 0.4rem;
    font-size: 0.7125rem;
    font-family: RalewayX, arial, sans-serif;
    line-height: 1.2846153846153846;
    border-radius: 0.45rem;
    color: hsl(0deg 0% 41.38%);
    background-color: hsl(0deg 0% 100%);
    box-shadow: 0 0 0 1px hsl(239deg 29% 54%) inset;
    margin: 0.2rem;
    box-shadow: 0 3px 5px rgb(225 219 219);
    border: 1px solid #a09e9e;
}

@media screen and (max-width: 770px) {
    .tagblock a {
        font-size: 0.6125rem;
        margin: 0.0321rem;
    }
}


.hero-bg {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding: 10px 10px; */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    min-height: 160px;
    padding: 10px 0;
    margin-bottom: 10px;
}

@media screen and (max-width: 770px) {
    .hero-bg {
        min-height: 90px;
        margin-bottom: 10px;
    }
}

.hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgb(255 255 255 / 50%); */
    background-image: linear-gradient(#c2d4ff24, #1c1c1c99);
    z-index: 1;
}

.hero-fg {
    text-align: center;
    align-items: center;
    z-index: 2;
    color: #ffffff;
}

.hero-fg h1 {
    font-weight: 900;
    font-size: 56px;
    line-height: 46px;
}

@media screen and (max-width: 770px) {
    .hero-fg h1 {
        font-weight: 950;
        font-size: 35px;
        line-height: 33px;
    }
}

.h1-groupings p {
    margin: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 2;
    font-size: 19px;
    line-height: 20px;
    color: #ffffff;
    text-align: center;
    margin-top: 23px;
}

@media screen and (max-width: 770px) {
    .h1-groupings p {
        font-weight: 450 !important;
        font-size: 18px;
        line-height: 17px;
        margin-top: 12px;
    }
}

.header-gl {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

.stickers-gl {
    margin-left: auto !important;
    margin-right: auto !important;
}

.stickers-gl p {
    color: #707383;
}

.stikers-img img {
    border-radius: 30%;
    overflow: hidden;
    object-fit: cover;
}





.home-page-header {
    min-height: 100vh;
    /* Изменено с height на min-height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    /* Добавлено */
}

.home-page-header img.fon {
    position: absolute;
    top: auto;
    /* Изменено с 0 на auto */
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    /* Приглушение цвета */
    z-index: -1;
    /* Слой под содержимым */
}

.home-page-header .header-content {
    text-align: center;
    color: white;
    z-index: 1;
    /* Слой над изображением */
}
@media (max-width: 768px) {
    .home-page-header .header-content {
        padding-top: 45px; 
    }}

.home-page-header .header-content h1 {
    font-weight: 900;
    font-size: 56px;
    line-height: 46px;
    margin: 10px 0;
}

@media screen and (max-width: 770px) {
    .home-page-header .header-content h1 {
        font-weight: 950;
        font-size: 35px;
        line-height: 33px;
    }
}

.home-page-header .header-content h2 {
    text-align: center;
    font-weight: 950;
    font-size: 38px;
    line-height: 48px;
    margin: 10px 0;
    color: #eaebef;
}

@media screen and (max-width: 770px) {
    .home-page-header .header-content h2 {
        font-weight: 850;
        font-size: 30px;
        line-height: 30px;
    }
}

.home-page-header .header-content p {
    text-align: center;
    font-weight: 850;
    font-size: 27px;
    line-height: 28px;
}

@media screen and (max-width: 770px) {
    .home-page-header .header-content p {
        font-weight: 450;
        font-size: 23px;
        line-height: 23px;
    }
}

/* Новый стиль для элементов над шапкой */
.above-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    /* Выше, чем у .header-content */
}




.site-footer {
    width: 100%;
    font-family: Arial, sans-serif;
}

.footer-top {
    background-color: #f9f9f9;
    padding: 30px 0;
    border-top: 2px solid #eaebef;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.footer-block {
    flex: 1;
    margin: 0 15px;
}

.logo {
    width: 110px;
    height: auto;
    margin: 0 0 15px;
    display: block;
}

.footer-block h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-block ul {
    list-style-type: none;
    padding: 0;
}

.footer-block li {
    margin-bottom: 8px;
}

.projects-block {
    flex: 2;
}

.projects-columns {
    display: flex;
    flex-wrap: wrap;
}

.projects-columns ul {
    flex: 1;
    min-width: 200px;
    margin-right: 20px;
}

.projects-columns ul:last-child {
    margin-right: 0;
}

.telegram-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #0088cc;
    text-decoration: none;
}

.analytics p {
    margin: 5px 0;
}

.footer-bottom {
    background-color: #eaebef;
    padding: 20px 0;
    width: 100%;
}

.footer-bottom .footer-container {
    flex-direction: column;
    align-items: center;
}

.copyright-legal {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    width: 100%;
    margin: 20px 0;
}

.disclaimer {
    font-size: 12px;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .footer-container {
        flex-wrap: wrap;
    }

    .footer-block {
        flex-basis: 50%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-block {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .projects-columns {
        flex-direction: column;
    }

    .projects-columns ul {
        margin-right: 0;
    }

    .copyright-legal {
        flex-direction: column;
        align-items: center;
    }
}
@media (max-width: 768px) {
    .footer-bottom {
        padding-bottom: 50px!important; 
    }

    .disclaimer {
        padding-bottom: 10px!important;
    }
    .copyright-legal {
     margin-bottom: -10px;}

}




/* Контейнеры для виджетов главной */
.snipety-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 15px auto;
    max-width: 1195px;
    /* 2 * 580px + 35px */
    padding: 0;
    /* Убираем отступы по умолчанию */
}

.snipety-glavnoi {
    width: 560px;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .snipety-container {
        gap: 0px;
        /* Отступ между виджетами */
        padding: 0 5px;
        margin-right: 8px;
        /* Отступы по краям */
    }

    .snipety-glavnoi {
        width: 100%;
        /* Ширина на мобильных устройствах */
        box-sizing: border-box;
        /* Учитываем отступы */
    }
}




/* Stickers */
:root {
    --mobile-arrow-width: 10%; 
    --mobile-sticker-width: 80%;
    --mobile-container-padding: 0;
}
/* Общие стили */
*, *::before, *::after {
    box-sizing: border-box;
}
.container {
    padding: var(--section-padding-top, 30px) var(--mobile-container-padding) var(--section-padding-bottom, 30px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    flex-direction: column;
	max-width: 1200px; /* Добавляем максимальную ширину */
    margin: 0 auto; /* Центрируем контейнер */
}

/* Стикеры */
.stickers {
    display: grid;
    grid-template-columns: repeat(var(--columns, 4), 1fr);
    gap: var(--sticker-gap-vertical, 20px) var(--sticker-gap-horizontal, 15px);
    width: 100%;
}

.sticker {
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
}

.sticker img {
    width: 60%;
    height: 110px;
    object-fit: cover;
    border-radius: 20px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .container {
        padding: 20px var(--mobile-container-padding);
        flex-direction: row;
        align-items: center;
    }

    /* Стрелки и стикеры внутри контейнера */
    .scroll-arrow, .stickers {
        flex-shrink: 0;
    }

    /* Применяем заданные ширины стрелок и стикеров */
    .scroll-arrow {
        width: var(--mobile-arrow-width);
        text-align: center;
    }

    .stickers {
        flex-basis: var(--mobile-sticker-width);
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }

    .sticker {
        flex: 0 0 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin: 0; /* Убираем отступы */
    }

    /* Скрываем скроллбар */
    .stickers::-webkit-scrollbar {
        display: none;
    }

    .stickers {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* Настройка стрелок */
    .scroll-arrow {
        font-size: 24px;
        cursor: pointer;
        color: #333;
    }

    /* Убираем кнопку "Развернуть" на мобильных */
    .expand-btn {
        display: none !important;
    }

    /* Прячем стрелки, если нужно */
    .scroll-arrow.hidden {
        display: none;
    }

    /* Убираем горизонтальный скроллинг у body */
    body {
        overflow-x: hidden;
    }
}

/* Убираем стрелки на десктопе */
@media (min-width: 769px) {
    .scroll-arrow {
        display: none;
    }
}

/* Кнопка "Развернуть" */
.expand-btn {
    display: none;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: white;
    color: #007BFF;
    border: 2px solid #007BFF;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

/* Скрытие и показ дополнительных стикеров на десктопе */
@media (min-width: 769px) {
    .stickers .sticker.hidden-desktop {
        display: none;
    }

    .stickers.expanded .sticker.hidden-desktop {
        display: block;
    }
}









#audio-player {
    display: flex;
    align-items: center;
    margin: 20px;
}

#audio-player button {
    font-size: 24px;
    margin-right: 10px;
    cursor: pointer;
}

#sticky-player {
    display: none; /* Изначально скрыт */
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 25px;
    background-color: #f1f1f1;
    border-top: 1px solid #ccc;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

#sticky-player button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

#seek-slider {
    flex-grow: 1;
    margin: 0 10px;
}

#close-btn {
    margin-left: auto;
}