/* ======================================= */
/* СТИЛИ ДЛЯ САЙТА МУССТРОЙАЛЬЯНС - ИСПРАВЛЕННЫЕ */
/* ======================================= */

/* --- ПОДКЛЮЧЕНИЕ ШРИФТОВ --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* --- ОСНОВНЫЕ ЦВЕТА --- */
:root {
    --msa-orange: #FF8A00;
    --msa-orange-dark: #E07B00;
    --msa-red: #FF4D4D;
    --msa-black: #1E1E1E;
}

/* --- ШРИФТЫ --- */
body, .tn-atom, .t-text, .t-descr, .t-name, p, div, span {
    font-family: 'Roboto', sans-serif !important;
}

/* --- ВСЕ ЗАГОЛОВКИ НА САЙТЕ (ВКЛЮЧАЯ ТИПОГРАФИЮ) --- */
h1, h2, h3, h4, h5, h6, 
.t-title, .t-heading, .t-name_xl,
.t-name_lg, .t-name_md, .t-name_sm,
.t-descr__title, .t-card__title,
.t-store__title, .t-popup__title,
.t-test__title, .t-form__title,
.t404__title, .t702__title,
.t031__title, t322__title,
.t027__title, t028__title,
[class*="__title"], [class*="_title"] {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #FF8A00, #FF4D4D) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent !important;
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Для заголовков в карточках и блоках с белым фоном - добавим небольшую тень для читаемости */
.t-card__title, .t-store__title {
    text-shadow: 0 2px 4px rgba(255, 68, 68, 0.1) !important;
}

/* --- ГРАДИЕНТНАЯ ПОЛОСА ТОЛЬКО ДЛЯ ОСНОВНЫХ ЗАГОЛОВКОВ БЛОКОВ --- */
h1, h2, .t-title, .t-heading {
    position: relative !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
}

h1:after, h2:after, .t-title:after, .t-heading:after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #FF8A00, #FF4D4D) !important;
    border-radius: 2px !important;
}

.text-center:after, .t-title_center:after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* --- ОТДЕЛЬНОЕ УПРАВЛЕНИЕ ДЛЯ БЛОКА #rec1982636741 (БЕЗ СБРОСА) --- */
#rec1982636741 {
    /* Сохраняем позиционирование, но убираем лишние стили */
    position: relative !important;
    left: auto !important;
    top: auto !important;
}

/* Убираем градиент с заголовков внутри этого блока */
#rec1982636741 h1,
#rec1982636741 h2,
#rec1982636741 h3,
#rec1982636741 .t-title,
#rec1982636741 .t-heading,
#rec1982636741 [class*="__title"],
#rec1982636741 [class*="_title"] {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: inherit !important;
    font-weight: inherit !important;
}

/* Убираем полоску под заголовками */
#rec1982636741 h1:after,
#rec1982636741 h2:after,
#rec1982636741 .t-title:after,
#rec1982636741 .t-heading:after {
    display: none !important;
}

/* Возвращаем стандартные кнопки в этом блоке */
#rec1982636741 button,
#rec1982636741 .t-btn,
#rec1982636741 .t-submit,
#rec1982636741 a[href*="#order"] {
    background: #FF8A00 !important; /* Оставляем оранжевый, но без градиента */
    background-image: none !important;
    color: white !important;
    border-radius: 4px !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    padding: inherit !important;
}

#rec1982636741 button:hover,
#rec1982636741 .t-btn:hover,
#rec1982636741 .t-submit:hover {
    background: #E07B00 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* --- ИСПРАВЛЕНИЕ ДЛЯ БЛОКА #rec1982672881 (КВИЗ-ПОПАП) --- */
/* Фикс для кнопки закрытия */
#rec1982672881 .t-popup__close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1000 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 30px !important;
    height: 30px !important;
    opacity: 0.8 !important;
}

#rec1982672881 .t-popup__close:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* Отодвигаем контент от кнопки закрытия */
#rec1982672881 .t-popup__container {
    padding-top: 50px !important;
    position: relative !important;
}

/* Заголовок в попапе делаем компактнее */
#rec1982672881 .t-popup__title {
    margin-top: 0 !important;
    padding-right: 40px !important; /* Чтобы текст не уходил под кнопку */
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    #rec1982672881 .t-popup__container {
        padding-top: 60px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    #rec1982672881 .t-popup__close {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    #rec1982672881 .t-popup__title {
        font-size: 24px !important;
        padding-right: 45px !important;
    }
}

/* --- ВСЕ КНОПКИ НА САЙТЕ (КРОМЕ ИСКЛЮЧЕННОГО БЛОКА) --- */
button:not(#rec1982636741 *), 
a[href*="#order"]:not(#rec1982636741 *), 
a[href*="#form"]:not(#rec1982636741 *), 
.t-btn:not(#rec1982636741 *), 
.t-submit:not(#rec1982636741 *), 
.t-store__btn:not(#rec1982636741 *),
.t-card__btn:not(#rec1982636741 *),
.t-popup__btn:not(#rec1982636741 *),
.t-form__submit button:not(#rec1982636741 *),
.tn-atom .tn-link:not(#rec1982636741 *),
input[type="submit"]:not(#rec1982636741 *),
.uc-btn:not(#rec1982636741 *),
.t-menu__link-btn:not(#rec1982636741 *),
.t-descr a[style*="border"]:not(#rec1982636741 *),
.tn-atom a:not(#rec1982636741 *) {
    background: linear-gradient(135deg, #FF8A00, #FF4D4D) !important;
    color: white !important;
    border-radius: 20px !important;
    border: 2px solid transparent !important;
    box-shadow: 0 8px 18px -6px rgba(255, 68, 68, 0.5) !important;
    text-shadow: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

/* Эффект при наведении */
button:not(#rec1982636741 *):hover, 
a[href*="#order"]:not(#rec1982636741 *):hover, 
a[href*="#form"]:not(#rec1982636741 *):hover, 
.t-btn:not(#rec1982636741 *):hover, 
.t-submit:not(#rec1982636741 *):hover, 
.t-store__btn:not(#rec1982636741 *):hover,
.t-card__btn:not(#rec1982636741 *):hover,
.t-popup__btn:not(#rec1982636741 *):hover,
.t-form__submit button:not(#rec1982636741 *):hover,
.tn-atom .tn-link:not(#rec1982636741 *):hover,
input[type="submit"]:not(#rec1982636741 *):hover,
.uc-btn:not(#rec1982636741 *):hover,
.t-menu__link-btn:not(#rec1982636741 *):hover,
.t-descr a[style*="border"]:not(#rec1982636741 *):hover,
.tn-atom a:not(#rec1982636741 *):hover {
    background: linear-gradient(135deg, #FF4D4D, #E07B00) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 25px -8px rgba(255, 68, 68, 0.7) !important;
    border-color: transparent !important;
}

/* --- ИСКЛЮЧЕНИЕ ДЛЯ ПРОЗРАЧНЫХ КНОПОК --- */
.t-btn_white:not(#rec1982636741 *), 
.t-btn[style*="transparent"]:not(#rec1982636741 *),
.t-btn[style*="background-color: transparent"]:not(#rec1982636741 *) {
    background: transparent !important;
    border: 2px solid #FF8A00 !important;
    color: #1E1E1E !important;
    box-shadow: none !important;
}

.t-btn_white:not(#rec1982636741 *):hover, 
.t-btn[style*="transparent"]:not(#rec1982636741 *):hover,
.t-btn[style*="background-color: transparent"]:not(#rec1982636741 *):hover {
    background: linear-gradient(135deg, #FF8A00, #FF4D4D) !important;
    color: white !important;
    border-color: transparent !important;
}

/* --- КНОПКИ МЕССЕНДЖЕРОВ --- */
img[src*="whatsapp"]:not(#rec1982636741 *), 
img[src*="telegram"]:not(#rec1982636741 *) {
    transition: transform 0.3s !important;
    border-radius: 50% !important;
}

img[src*="whatsapp"]:not(#rec1982636741 *):hover, 
img[src*="telegram"]:not(#rec1982636741 *):hover {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 5px 10px #FF8A00) !important;
}

/* --- ФОН С ТЕКСТУРОЙ --- */
body {
    background-image: repeating-linear-gradient(45deg, 
        rgba(255, 138, 0, 0.02) 0px, 
        rgba(255, 138, 0, 0.02) 2px, 
        transparent 2px, 
        transparent 8px) !important;
}

/* --- ЦИФРЫ В ГРАДИЕНТЕ --- */
.t-number:not(#rec1982636741 *), 
.t-statistic__title:not(#rec1982636741 *), 
.tn-number:not(#rec1982636741 *) {
    background: linear-gradient(135deg, #FF8A00, #FF4D4D) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 900 !important;
    font-size: 48px !important;
    display: inline-block !important;
}