/* Основные стили для спецверсии */
.special body {
    margin-top: 64px !important;
    min-width: 300px
}

.special header.header__top {
    top: 64px !important
}
.special .border-beuty, .special .border-beuty-in{
    display:none !important
}
/* Скрытие изображений в спец-версии */
.special-images-hidden img,
.special-images-hidden picture,
.special-images-hidden figure,
.special-images-hidden [style*="background-image"],
.special-images-hidden .image,
.special-images-hidden .img {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Альтернативный вариант - показывать alt текст */
.special-images-hidden img {
    display: inline-block !important;
    width: 100px !important;
    height: 30px !important;
    background: #f0f0f0 !important;
    border: 1px dashed #ccc !important;
    position: relative !important;
}

.special-images-hidden img:after {
    content: attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: #666;
    text-align: center;
}
/* Сброс градиентов и спец-стилей для спецверсии */
.special h1,
.special .h1, 
.special .main-module__title,
.special h2,
.special h3,
.special h4,
.special h5,
.special h6 {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-fill-color: initial !important;
    color: inherit !important;
}

/* Фикс для любых элементов с градиентами */
.special * {
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-fill-color: initial !important;
}

/* Убедимся что текст наследует цвет из спец-схем */
.special h1,
.special .h1,
.special .main-module__title {
    color: inherit !important;
    font: inherit !important;
    margin: 0 0 30px !important;
}
#special {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid #ccc;
    z-index: 999999;
    cursor: default;
    line-height: 1em !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#special * {
    font-size: 0 !important
}

#special i {
    font-style: normal;
    font-weight: bold;
    line-height: 30px !important;
    color: inherit !important;
    background: inherit !important;
    font-size: inherit !important;
    display: inline-block;
}

#special .special-panel div {
    margin: 0;
    padding: 0;
    display: inline-block;
    margin-left: 20px;
    margin-bottom: 5px;
    vertical-align: middle;
}

#special span,
#special em {
    font-size: 14px !important;
    vertical-align: middle;
    margin-right: 8px;
    font-weight: 500;
}

#special button {
    margin: 0 3px;
    border: 2px solid;
    border-color: inherit;
    min-width: 36px;
    text-align: center;
    padding: 6px;
    line-height: normal;
    text-decoration: none;
    vertical-align: middle;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
    outline: 0;
    height: auto;
    text-transform: none;
    font-size: 16px !important;
    color: inherit;
    background: inherit;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#special button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#special .special-panel button {
    height: 36px;
    line-height: 24px !important;
    padding: 0 8px;
}

#special .active {
    border-bottom-width: 3px;
    border-bottom-color: #ff6b6b !important;
    position: relative;
}

#special .active:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #ff6b6b;
    border-radius: 2px;
}

#special-settings-body {
    display: none;
    padding: 20px;
    text-align: left;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    max-width: 1200px;
    margin: 0 auto;
}

#special-settings-body>div {
    margin: 20px 0;
}

#special-settings-body button {
    margin-bottom: 8px;
    min-width: 120px;
    padding: 10px 15px;
}

.special-reset,
.special-settings-close {
    display: inline-block;
    margin-top: 20px;
}

.special-settings-close {
    float: right;
}

/* Иконки для кнопок */
.special-settings i:before {
    content: "⚙";
    font-size: 18px !important;
}

.special-quit i:before {
    content: "✕";
    font-size: 18px !important;
    font-weight: bold;
}

.special-images button[value='0'] i:before {
    content: "👁️";
    font-size: 16px !important;
}

.special-images button[value='1'] i:before {
    content: "🖼️";
    font-size: 16px !important;
}

/* Иконки размера шрифта с разным размером */
.special-font-size button[value='1'] i:before {
    content: "A";
    font-size: 14px !important;
    font-weight: normal;
}

.special-font-size button[value='2'] i:before {
    content: "A";
    font-size: 18px !important;
    font-weight: bold;
}

.special-font-size button[value='3'] i:before {
    content: "A";
    font-size: 22px !important;
    font-weight: bolder;
}

/* Цветные иконки для кнопок цветов */
.special-color button[value='1'] i:before {
    content: "●";
    color: #000 !important;
    background: #FFF !important;
    font-size: 20px !important;
}

.special-color button[value='2'] i:before {
    content: "●";
    color: #FFF !important;
    background: #000 !important;
    font-size: 20px !important;
}

.special-color button[value='3'] i:before {
    content: "●";
    color: #063462 !important;
    background: #9dd1ff !important;
    font-size: 20px !important;
}

.special-color button[value='4'] i:before {
    content: "●";
    color: #59422e !important;
    background: #f7f3d6 !important;
    font-size: 20px !important;
}

.special-color button[value='5'] i:before {
    content: "●";
    color: #a9dd38 !important;
    background: #3b2716 !important;
    font-size: 20px !important;
}

/* Иконки для расширенных настроек */
.special-font-family button[value='1'] i:before {
    content: "A";
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
}

.special-font-family button[value='2'] i:before {
    content: "T";
    font-family: Times, serif !important;
    font-size: 16px !important;
}

.special-letter-spacing button[value='1'] i:before {
    content: "Aa";
    letter-spacing: normal;
    font-size: 16px !important;
}

.special-letter-spacing button[value='2'] i:before {
    content: "A a";
    letter-spacing: 2px;
    font-size: 16px !important;
}

.special-letter-spacing button[value='3'] i:before {
    content: "A  a";
    letter-spacing: 4px;
    font-size: 16px !important;
}

.special-line-height button[value='1'] i:before {
    content: "T";
    line-height: normal;
    font-size: 16px !important;
}

.special-line-height button[value='2'] i:before {
    content: "T";
    line-height: 1.5;
    font-size: 16px !important;
}

.special-line-height button[value='3'] i:before {
    content: "T";
    line-height: 2;
    font-size: 16px !important;
}

.special-reset button i:before {
    content: "🔄";
    font-size: 16px !important;
}

.special-settings-close button i:before {
    content: "▼";
    font-size: 16px !important;
}

/* Настройки для контента */
.special-line-height-1 * {
    line-height: normal !important
}

.special-line-height-2 * {
    line-height: 1.75rem !important
}

.special-line-height-3 * {
    line-height: 2rem !important
}

.special-font-size-1 * {
    font-size: 1rem !important
}

.special-font-size-2 * {
    font-size: 1.5rem !important
}

.special-font-size-3 * {
    font-size: 2rem !important
}

.special-font-family-1 * {
    font-family: Arial, sans-serif !important
}

.special-font-family-2 * {
    font-family: Times, serif !important
}

.special-color-1 * {
    color: #000 !important;
    background: #FFF !important;
    border-color: #000 !important
}

.special-color-2 * {
    color: #FFF !important;
    background: #000 !important;
    border-color: #FFF !important
}

.special-color-3 * {
    color: #063462 !important;
    background: #9dd1ff !important;
    border-color: #063462 !important
}

.special-color-4 * {
    color: #59422e !important;
    background: #f7f3d6 !important;
    border-color: #59422e !important
}

.special-color-5 * {
    color: #a9dd38 !important;
    background: #3b2716 !important;
    border-color: #a9dd38 !important
}

.special-letter-spacing-1 * {
    letter-spacing: normal !important
}

.special-letter-spacing-2 * {
    letter-spacing: 2px !important
}

.special-letter-spacing-3 * {
    letter-spacing: 4px !important
}

/* Адаптив */
@media (max-width: 940px) {
    #special .special-panel span {
        display: none
    }
    
    #special .special-panel div {
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    #special .special-panel div {
        display: block;
        margin: 5px 0;
    }
    
    .special body {
        margin-top: 120px !important;
    }
    
    .special header.header__top {
        top: 120px !important;
    }
}

@media (max-width: 460px) {
    .special body {
        margin-top: 140px !important;
    }
    
    #special-settings-body {
        padding: 15px 10px;
    }
    
    #special-settings-body button {
        min-width: 100px;
        padding: 8px 10px;
    }
}