@charset "UTF-8"; /* Верхний блок: высота 450px, ширина 95% */
#preview-header {
    width: 95%;
    height: 450px;
    margin: 20px auto;
    background-color: #f2f2f2;
    /* Дымчатый/светло-серый по умолчанию */
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transition: background-color 0.4s ease;
    /* Плавная смена фона */
}

#selection-info {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
}

#selection-info h3 {
    color: black
}

#name-ral {
    display: inline-block;
    padding: 40px 0;
    font-weight: bold;
}

.content-wrapper {
    width: 100%;
    /* margin: 0 auto; */
    /* padding-bottom: 50px; */
    display: flex;
    gap: 10px;
    flex-direction: column;
    flex-wrap: wrap;
}
.content-wrapper button > span {
    font-size: 0.8rem;
    text-shadow: none;
    width: 100%;
    max-width: 200px;
    min-height: 45px;
    /* height: 100%; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px!important;
    padding: 0 20px!important;
}
.color-section {
    /* margin-top: 30px; */
}

.section-title {
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

.color-columns {
    display: flex;
    gap: 5px 0;
    margin-bottom: 15px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: row;
}

.color-card {
    /* background: #fdfdfd; */
    padding: 10px;
    /* border: 1px solid #eee; */
    flex: 1;
    width: 100%;
    max-width: 225px;
}

.color-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.color-item {
    display: flex;
    padding: 6px 8px;
    background-color: white;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-direction: column;
}

.color-item:hover {
    border-color: #ccc;
    background: #f0f0f0;
}

.color-code {
    font-weight: bold;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ral-name {
    text-align:center;
    font-size:0.9rem;
    font-weight:400;
    line-height:normal;
    margin-bottom:5px;
}

.warning-block .color-swatch, .warning-block .color-swatch img {
    width: 100%;
    max-width: 100px;
    height: 40px;
    border: 1px solid rgb(0 0 0 / 0%);
    margin: 0;
}
.warning-block .color-swatch img {
    margin: 0 0 5px 0;
}

/* Фоновая подложка (на весь экран) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Затемнение */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Контентное окно */
.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    /* Цвет фона будет меняться через JS, но по умолчанию белый */
    background-color: #fff;
}

/* Кнопка закрытия (крестик) */
#close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #000;
    line-height: 1;
}

#selection-info h3 {
    margin: 0;
    font-family: sans-serif;
    /* Чтобы текст был читаем на темных/светлых фонах */
    text-shadow: 0px 0px 5px rgb(255 255 255);
}

#preview-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    /* Легкое размытие фона сайта */
}

#selection-info {
    position: relative;
    padding: 60px 40px;
    border-radius: 20px;
    min-width: 320px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease, color 0.3s ease;
}

#close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
    font-family: Arial, sans-serif;
}

#choice-label {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    font-family: sans-serif;
}
.content-wrapper .ral-intro {
    /* border: 1px solid black; */
    padding: 10px!important;
    background-color: white;
    max-width: 100%;
}
.ral-intro h5 {
    
}
.ral-intro p {
    
}
/* --- ОБЩИЕ СТИЛИ ДЛЯ СКРЫТЫХ БЛОКОВ --- */
.color-section {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
    background: #fff;
    clear: both;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 1px 5px 5px #9E9E9E;
}
.block-type {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-top: none;
    background: #fff;
    clear: both;
    margin-bottom: 20px;
    padding: 20px;
}

.block-1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* max-width: 45%; */
    height: 100%;
    border: 1px solid black;
    padding: 12px 6px;
}

.floor-description-type {
    width: 100%;
    background: white;
    background: linear-gradient(to right, #ffffff, transparent);
    margin: 0 0 0 15px;
    padding: 10px 0 20px;
    box-sizing: border-box;
}

.floor-description-type h5 {
    padding: 12px 6px 6px;
    width: 50%;
    margin: 0;
}
.floor-description-type p {
    color: black;
    padding: 0 30px;
    margin: 0 ;
    line-height: normal;
}
.floor-description-type p:nth-child(odd) {
    margin: 5px  0 20px;
}

/* --- ОБЩИЕ СТИЛИ ДЛЯ КНОПОК --- */
.floor-toggle-btn {
    display: flex;
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    margin: 5px 0 0 13px;
    background: linear-gradient(to top, rgb(28 54 128 / 70%), rgb(255 255 255 / 20%));
    color: yellow;
    text-shadow: 1px 1px 5px black;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    line-height: normal;
    height: 50px;
    text-align: left;
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
    justify-content: space-between;
    text-transform: uppercase;
    align-items: center;
}
.ral-toggle-btn {
    display: flex;
    width: 100%;
    max-width: 400px;
    /* padding: 12px 20px; */
    /* margin: 5px 0 0 13px; */
    background: linear-gradient(to top, rgb(28 54 128 / 70%), rgb(255 255 255 / 20%));
    color: yellow;
    text-shadow: 1px 1px 5px black;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    line-height: normal;
    height: 65px;
    text-align: left;
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
    justify-content: space-between;
    text-transform: uppercase;
    align-items: center;
}

.ral-toggle-btn:hover, .floor-toggle-btn:hover {
    background-color: #e9ecef;
}

.ral-toggle-btn.active, .floor-toggle-btn.active {
    /* color: #ffffff; */
    border-radius: 5px 5px 0 0;
}

/* --- ИНДИВИДУАЛЬНЫЕ ЦВЕТА --- */
button.ral-toggle-btn.active  {
    background: #c3c3c3;
    border-color: #ffa500;
}

.floor-toggle-btn.active {
    background-color: #28a745;
    border-color: #28a745;
}

/* --- СТРЕЛКИ --- */
.ral-toggle-btn::after, .floor-toggle-btn::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 10px;
}

.ral-toggle-btn.active::after, .floor-toggle-btn.active::after {
    content: '▲';
}

.osn::after {
    content: "";
    display: table;
    clear: both;
}
/* Стили для текстового блока RAL в промышленном контексте */
.ral-article-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    /* padding: 10px 15px; */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    margin: 20px auto;
    /* border-left: 5px solid #2c3e50; */ /* Темный акцент под цвет стали/бетона */
}

.ral-article-container h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.ral-article-container h4 {
    color: #e67e22; /* Оранжевый акцент - цвет спецтехники/безопасности */
    font-size: 19px;
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
}
.ral-intro strong {
    color:black!important;
    font-weight:bold;
    letter-spacing:1px;
}
.ral-intro h5  {
    color: #e67e22;
    padding: 10px 0;
    margin:0;
    font-size: 1.25rem;
}
.ral-intro h6 {
    color: #2980b9;
    padding: 8px;
    margin:0;
    font-size: 1rem;
    line-height: 1.3rem;
}
.ral-intro p {
    color:black;
    padding: 0 0 10px 20px;
    margin:0;
    line-height: normal;
}

.ral-article-container h4::before {
    content: "■";
    margin-right: 10px;
    font-size: 14px;
}

.ral-article-container h5 {
    color: #2980b9;
    font-size: 16px;
    margin: 15px 0 5px 0;
    font-weight: 700;
}

.ral-article-container p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: normal;
    padding: 0;
    margin: 0;
}

.ral-article-container .intro-lead {
    font-size: 1.1em;
    color: #555;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    font-style: italic;
}

.ral-article-container h6 {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}
.ral-k7-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px 24px 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ral-k7-section {
    margin-bottom: 32px;
    border-bottom: 1px solid #eaeef2;
    padding-bottom: 24px;
}

.ral-k7-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ral-k7-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1a2a3a;
    letter-spacing: -0.3px;
    padding-left: 16px;
}

.ral-k7-text {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
    color: #2c3e44;
    font-weight: 400;
}

.ral-k7-text:last-child {
    margin-bottom: 0;
}

/* адаптация для небольших экранов */
@media (max-width: 640px) {
    .ral-k7-container {
        padding: 16px;
    }
    .ral-k7-title {
        font-size: 1.4rem;
        padding-left: 12px;
    }
    .ral-k7-text {
        font-size: 0.95rem;
    }
}