.main {
    padding: 0 10px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 10px;
}

.menu-list {
    padding: 10px;
}

.menu-list a {
    display: block;
    font-size: 16px;
    margin-bottom: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    -webkit-justify-content: center;
    -webkit-box-orient: vertical;
    flex-direction: column;
    justify-content: center;
    color: rgb(44, 62, 80);
    width: 100%;
    border-radius: 5px;
    line-height: 1;
    margin-top: 16px !important;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 52px;
    text-align: center;
    position: relative;
    background-color: #fff;
    behavior: url('http://hram-ks.ru/css/PIE.htc');
}

.news_card {
    padding: 3px;
    border-radius: 10px;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
    display: block;
    height: 230px;
    margin: 5px;
    margin-bottom: 15px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    background-color: #fff;
    behavior: url('http://hram-ks.ru/css/PIE.htc');
}

.news_card a {
    text-decoration: none;
    /* clear: both; */
    color: #000;
    text-align: left;
    padding: 10px;
    margin: 7px;
}

.news_card img {
    width: 233px;
    float: left;
    margin: 10px;
    border-radius: 10px;
    max-width: 100%;
    max-height: 100%;
    max-width: 250px;
    flex-shrink: 0px;
    flex: 0 0 auto;
    vertical-align: middle;
}

.news_card .ntitle
{
    font-weight: bold;
}

.left-column
{
    float: left;
    width: 200px;
}

.right-banner-new a {
    width: 90%;
    white-space: normal;
    line-height: 1;
    padding: 8px 16px !important;
    margin-top: 16px !important;
    margin-bottom: 7px !important;
    vertical-align: middle;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
    justify-content: center;
    background-color: #fff;
    border-radius: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -ms-flex-direction: column;
    -webkit-box-orient: vertical;
    -webkit-justify-content: center;
    behavior: url('http://hram-ks.ru/css/PIE.htc');
}

.right-banner-new p {
    text-align: center;
    font-size: 16px;
    color: rgb(44, 62, 80);
}

.right-banner-new img {
    vertical-align: middle;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 7px;
}

.right-column {
    float: right;
    width: 240px;
    font-family: Charter;
    font-size: 14px;
}

div {
    text-align: justify;
}

*, body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Tahoma, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    color: #000;
}

body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    font-size: 14px;
    font-family: Helvetica, Verdana, Tahoma, sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
}

body, td, p {
    font-size: 14px;
    font-family: verdana, tahoma, arial;
    color: #000000;
}

.content_main {
    margin-left: 220px;
    margin-right: 260px;
}

.content_main .title {
    font-size: 20px;
    text-align: center !important;
    font-weight: 400;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    margin: 10px 0;
    padding: 0;
}

.card_more {
    width: 100%;
    height: 35px;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
    margin-right: 30px;
    vertical-align: -webkit-baseline-middle;
    vertical-align: middle;
    font-size: 16px;
    position: relative;
}

.card_more a {
    color: #000;
}
.card_more a {
    padding: 8px 16px !important;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 8px;
    width: 200px;
    float: right;
    margin-bottom: 10px;
    vertical-align: -webkit-baseline-middle;
    vertical-align: middle;
    font-family: Charter, Sans-Serif, Verdana;
}

.news_last {
    padding: 3px;
    border-radius: 10px;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
    display: block;
    height: 168px;
    margin: 5px;
    margin-bottom: 15px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    background-color: #fff;
    behavior: url('http://hram-ks.ru/css/PIE.htc');
}

.f14 li i
{
    margin-left: 20px;
}

.f14 img
{
    width: 15%;
}

/* Мобильная адаптация для главной страницы */
@media screen and (max-width: 768px) {
    .main {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Уменьшаем промежуток между заголовком и новостями */
    #hdtitle {
        padding: 10px 10px 0px 10px !important;
        margin-bottom: 0px !important;
    }

    .main-title {
        font-size: 32px !important;
        line-height: 1.1 !important;
        padding: 10px 10px 0px 10px !important;
        text-align: center !important;
        font-weight: bold !important;
        margin-bottom: 0 !important;
    }

    .content_main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0px 15px 15px 15px !important;
        float: none !important;
        display: block !important;
    }

    .title {
        text-align: center !important;
        padding: 5px 0 !important;
        font-size: 24px !important;
        margin-top: 0 !important;
    }
    
    /* КАРТОЧКИ СДВИНУТЫ ВЛЕВО */
    .news_card {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        display: block !important;
        clear: both !important;
        overflow: hidden !important;
        background: #f9f9f9 !important;
        border-radius: 10px !important;
        max-height: 200px !important;
        position: relative !important;
    }
    
    .news_card img {
        width: 100px !important;
        height: 80px !important;
        float: left !important;
        margin: 0 12px 12px 0 !important;
        border-radius: 8px !important;
        object-fit: cover !important;
    }
    
    /* ИНДИКАТОР ПРОКРУТКИ ПОД ФОТО */
    .news_card::after {
        content: "⇅" !important;
        position: absolute !important;
        left: 50px !important;
        top: 135px !important;
        color: #bbb !important;
        font-size: 15px !important;
        z-index: 10 !important;
        background: rgba(255,255,255,0.8) !important;
        padding: 2px 4px !important;
        border-radius: 3px !important;
        font-weight: bold !important;
    }
    
    .news_card .text {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 5px 0 0 !important;
        max-height: 170px !important;
        scrollbar-width: thin !important;
        scrollbar-color: #5f1123 #f0f0f0 !important;
		 margin-top: -19px !important;
    }

    .news_card .text::-webkit-scrollbar {
        width: 6px !important;
    }

    .news_card .text::-webkit-scrollbar-track {
        background: #f0f0f0 !important;
        border-radius: 3px !important;
    }

    .news_card .text::-webkit-scrollbar-thumb {
        background: #5f1123 !important;
        border-radius: 3px !important;
    }
    
    .news_card .ntitle {
        font-size: 16px !important;
        font-weight: bold !important;
        line-height: 1.3 !important;
        margin: 0 0 10px 0 !important;
        display: block !important;
        color: #333 !important;
    }
    
    .news_card .description {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin: 10px 0 !important;
        display: block !important;
        color: #666 !important;
        text-align: justify !important;
    }
    
    .news_card .more {
        font-size: 14px !important;
        margin-top: 15px !important;
        display: block !important;
        color: #5f1123 !important;
        font-weight: 500 !important;
        clear: both !important;
    }
    
    .news_card br {
        display: none !important;
    }
/* Принудительная фиксация ширины для мобильных */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.main, .content_main, footer, .footer, #footer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Принудительный перенос для всего текста */
* {
    word-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
}

/* Специально для копирайта и ссылок */
p, span, div, a {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}
/* Специфично для футера */
footer, .footer, #footer, 
[class*="footer"], [id*="footer"],
.copyright, .copy, .rights {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    padding: 5px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    white-space: normal !important;
    overflow: hidden !important;
}

/* Для всех элементов в нижней части страницы */
body > *:last-child,
body > div:last-child,
main + * {
    max-width: 100% !important;
    font-size: 10px !important;
    word-break: break-all !important;
}
/* Адаптация футера для мобильных */
.ftr {
    margin-top: 10px !important;
}

.footer-container {
    min-width: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 5px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.footer-container .title {
    font-size: 20px !important;
    margin-top: 10px !important;
    text-align: center !important;
}

.footer-column {
    margin: 0 !important;
}

.f-column {
    display: block !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    padding: 0 5px !important;
}

.f-title {
    font-size: 12px !important;
    margin-bottom: 8px !important;
}

.links {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.links a {
    font-size: 11px !important;
    margin-bottom: 5px !important;
}
/* Запрещаем перенос в заголовке футера */
.footer-container .title {
    font-size: 18px !important;
    margin-top: 10px !important;
    text-align: center !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
/* Универсальная мобильная адаптация для всех страниц */
.content, .page-content, .video-content, .announcement {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 15px !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Заголовки на всех страницах */
h1, h2, h3, .page-title {
    font-size: 20px !important;
    text-align: center !important;
    word-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: keep-all !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    margin: 15px 0 !important;
}

/* Видео и медиа контент */
iframe, video, embed, object {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
}

/* Убираем боковые отступы на всех страницах */
.church-schedule {
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 16px !important;
}

/* Текстовые блоки */
.f14 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}
/* Исправленная адаптация без поломки дизайна */
/* Убираем агрессивное правило для всех элементов */

/* Только для текстовых контейнеров */
.content-wrapper, .f14, .announcement {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Заголовки */
h1, .blue16 {
    font-size: 18px !important;
    text-align: center !important;
    word-wrap: break-word !important;
    padding: 0 15px !important;
    margin: 15px 0 !important;
}

/* Кнопки и интерактивные элементы - возвращаем нормальную форму */
button, .nav-button, .mobile-burger, .mobile-burger-secondary {
    padding: 10px 15px !important;
    border-radius: 8px !important;
}

/* Видео */
iframe {
    width: 90% !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Футер */
footer, .footer-text {
    padding: 10px 15px !important;
    font-size: 12px !important;
}

}