/* ========================================
   МС ДЗМ - Исправленные стили
   ======================================== */

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Топ-баннер (Год семьи)
   ======================================== */
.t1003 {
    background-color: #ee204d;
    padding: 12px 20px;
    text-align: center;
}

.t1003__item-txt {
    color: #fff;
    font-size: 14px;
    display: inline-block;
}

.t1003__bgimg {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

/* ========================================
   Шапка и навигация
   ======================================== */
.t228,
#nav535385251 {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
}

.t228__maincontainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70px;
}

.t228__leftcontainer {
    display: block !important;
}

.t228__imglogo {
    height: 50px;
    width: auto !important;
}

/* Меню */
.t228__list {
    display: flex !important;
    align-items: center;
    gap: 5px;
    visibility: visible !important;
    opacity: 1 !important;
}

.t228__list_hidden {
    visibility: visible !important;
}

.t228__list_item {
    padding: 0 12px !important;
}

.t-menu__link-item {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    color: #333;
    padding: 10px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.t-menu__link-item:hover {
    color: #0077ff;
}

.t-menu__link-item.t-active {
    color: #4cab58;
}

/* Подменю */
.t-menusub {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.t228__list_item:hover .t-menusub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.t-menusub__link-item {
    display: block;
    padding: 10px 25px;
    font-size: 14px;
    color: #333;
    transition: background 0.3s ease;
}

.t-menusub__link-item:hover {
    background: #f5f5f5;
    color: #0077ff;
}

/* Соцсети в шапке */
.t228__rightcontainer .t-sociallinks__wrapper {
    display: flex;
    gap: 10px;
}

.t-sociallinks__svg {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.t-sociallinks__svg:hover {
    transform: scale(1.1);
}

/* Мобильное меню */
.tmenu-mobile {
    display: none;
    background: #fff;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tmenu-mobile__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tmenu-mobile__imglogo {
    height: 40px;
    width: auto !important;
}

.t-menuburger span {
    background-color: #0077ff !important;
}

/* ========================================
   Слайдер/Обложка
   ======================================== */
.t734,
.t-slds {
    visibility: visible !important;
}

.t734__slds-wrapper {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.t-cover__carrier {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 1 !important;
}

.t-cover__filter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.t734__wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.t734__title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.t734__descr {
    font-size: 18px;
    color: #fff;
    opacity: 0.9;
}

/* Стрелки слайдера */
.t-slds__arrow {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.t-slds__arrow:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Буллеты слайдера */
.t-slds__bullet_wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
}

.t-slds__bullet_body {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.t-slds__bullet_active .t-slds__bullet_body {
    background: #fff;
}

/* ========================================
   Секции контента
   ======================================== */
.t-records {
    opacity: 1 !important;
    visibility: visible !important;
}

.t-rec {
    padding: 60px 0;
}

.t-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки секций */
.t-section__title {
    font-size: 28px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    color: #474747;
}

.t-section__descr {
    font-size: 16px;
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ========================================
   Лента новостей
   ======================================== */
.t-feed {
    display: block;
}

.t-feed__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.t-feed__post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.t-feed__post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.t-feed__post-imgwrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.t-feed__post-imgwrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t-feed__post-textwrapper {
    padding: 25px;
}

.t-feed__post-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.t-feed__post-descr {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.t-feed__post-date {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

.t-feed__post-tag {
    display: inline-block;
    background: #0077ff;
    color: #fff;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* Прелоадер (скрыть) */
.t-feed__post-preloader__container_hidden {
    display: none !important;
}

/* Кнопка "Все новости" */
.t-feed__showallpost-btn,
.t-feed__showmore-btn {
    display: inline-block;
    background: #0077ff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 15px 40px;
    border-radius: 10px;
    border: 2px solid #0077ff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
}

.t-feed__showallpost-btn:hover,
.t-feed__showmore-btn:hover {
    background: #fff;
    color: #0077ff;
}

/* Переключатель категорий */
.t-feed__parts-switch-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #333;
    border-radius: 25px;
    margin: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.t-feed__parts-switch-btn.t-active {
    background: #333;
    color: #fff;
}

/* ========================================
   Фоновое изображение (параллакс)
   ======================================== */
.t674 {
    position: relative;
    height: 400px;
}

.t674__cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.t674__cover-carrier {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 1 !important;
}

/* ========================================
   Форма
   ======================================== */
.t678 {
    background: #f7f7f7;
}

.t-form {
    max-width: 600px;
    margin: 0 auto;
}

.t-input-group {
    margin-bottom: 20px;
}

.t-input,
.t-select {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.t-input:focus,
.t-select:focus {
    outline: none;
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0,119,255,0.1);
}

.t-input_bbonly {
    border: none;
    border-bottom: 1px solid #333;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}

.t-input_bbonly:focus {
    border-color: #0077ff;
    box-shadow: none;
}

textarea.t-input {
    min-height: 120px;
    resize: vertical;
}

.t-input__vis-ph {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.t-input:focus + .t-input__vis-ph,
.t-input.t-input_has-content + .t-input__vis-ph {
    top: -10px;
    font-size: 12px;
    color: #0077ff;
}

/* Кнопка отправки */
.t-submit {
    display: inline-block;
    background: #0077ff;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 50px;
    border: 2px solid #0077ff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.t-submit:hover {
    background: #fff;
    color: #0077ff;
}

/* Сообщения формы */
.t-form__successbox {
    background: #4cab58;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.t-form__errorbox-wrapper {
    background: #ff585a;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

/* ========================================
   Футер
   ======================================== */
.t447 {
    background: #ff585a;
    color: #fff;
    padding: 40px 0;
}

.t447__col {
    margin-bottom: 30px;
}

.t447__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.t447__descr {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.t447__descr ul {
    list-style: none;
}

.t447__descr li {
    margin-bottom: 8px;
}

.t447__descr a {
    color: #fff;
    transition: opacity 0.3s ease;
}

.t447__descr a:hover {
    opacity: 0.7;
}

/* Форма подписки в футере */
.t447__wrapper {
    display: flex;
    gap: 10px;
}

.t447__input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
}

.t447__blockbutton {
    display: flex;
}

.t447__btniconwrapper {
    background: #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.t447__btnicon {
    fill: #ff585a;
    width: 20px;
    height: 20px;
}

/* Копирайт */
.t447__text {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-top: 30px;
}

/* Соцсети в футере */
.t447 .t-sociallinks__wrapper {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.t447 .t-sociallinks__svg {
    width: 35px;
    height: 35px;
}

.t447 .t-sociallinks__svg path {
    fill: #fff;
}

/* ========================================
   Кнопка "Наверх"
   ======================================== */
.t890 {
    display: block !important;
}

.t890__arrow {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.t890__arrow:hover {
    background: #0077ff;
}

.t890__arrow:hover path {
    stroke: #fff;
}

/* ========================================
   Адаптивность
   ======================================== */
@media screen and (max-width: 1200px) {
    .t228 {
        padding: 0 20px;
    }
    
    .t-menu__link-item {
        font-size: 12px;
    }
    
    .t228__list_item {
        padding: 0 8px !important;
    }
}

@media screen and (max-width: 980px) {
    /* Показываем мобильное меню */
    .tmenu-mobile {
        display: block;
    }
    
    /* Скрываем десктопное меню */
    .t228 {
        display: none;
    }
    
    /* Меню на мобильных */
    .tmenu-mobile__menucontent_hidden {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        padding: 30px;
        overflow-y: auto;
    }
    
    .tmenu-mobile__menucontent_hidden.active {
        display: block;
    }
    
    .t228__list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .t228__list_item {
        width: 100%;
        padding: 0 !important;
        border-bottom: 1px solid #eee;
    }
    
    .t-menu__link-item {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }
    
    /* Контент */
    .t734__title {
        font-size: 24px;
    }
    
    .t734__descr {
        font-size: 16px;
    }
    
    .t-feed__container {
        grid-template-columns: 1fr;
    }
    
    .t-section__title {
        font-size: 22px;
    }
    
    /* Футер */
    .t447 .t-container {
        display: block;
    }
    
    .t447__col {
        width: 100% !important;
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 640px) {
    .t-rec {
        padding: 40px 0;
    }
    
    .t734__wrapper {
        padding: 40px 15px;
    }
    
    .t734__title {
        font-size: 20px;
    }
    
    .t-submit {
        width: 100%;
    }
    
    .t447__wrapper {
        flex-direction: column;
    }
    
    .t447__input {
        width: 100%;
    }
}

/* ========================================
   Утилиты
   ======================================== */
.t-align_center {
    text-align: center;
}

.t-margin_auto {
    margin-left: auto;
    margin-right: auto;
}

.t-width_8 {
    max-width: 66.66%;
}

.t-col_12 {
    width: 100%;
}

.t-col_8 {
    width: 66.66%;
}

.t-col_3 {
    width: 25%;
}

@media screen and (max-width: 980px) {
    .t-width_8,
    .t-col_8,
    .t-col_3 {
        width: 100%;
        max-width: 100%;
    }
}

/* Скрытие лишних элементов */
.t-feed__post-preloader {
    display: none !important;
}

/* Фикс для записей */
.t-records_animated,
.t-records_visible {
    opacity: 1 !important;
}
