/* TODO: Начало стилей */

/* ==================== */
/* СБРОС И БАЗОВЫЕ СТИЛИ */
/* ==================== */

/* Сброс стандартных стилей */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Основные стили body */
body {
    font-family: 'Neo Sans Pro', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F8F9FA;
    color: #333333;
    line-height: 1.6;
    font-size: 18px;
}

/* Типографика - заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Neo Sans Bold', Tahoma, Geneva, Verdana, sans-serif;
    color: #222222;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.8em;
}

/* Загрузка кастомных шрифтов */
@font-face {
    font-family: 'Neo Sans Bold';
    src: url(fonts/neosans/NeoSansPro-Bold.ttf);
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Neo Sans Pro';
    src: url(fonts/neosans/NeoSansPro-Regular.ttf);
    font-weight: 500;
    font-style: normal;
}

/* ==================== */
/* TODO: ОСНОВНЫЕ КОНТЕЙНЕРЫ */
/* ==================== */

.container-base {
    background: linear-gradient(135deg, #FFFFFF, #6699CC 200%);
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 32px 16px;
    min-height: 100vh;
}

.calculator {
    width: 90%;
    max-width: 1400px;
    background-color: #FFFFFF;
    padding: 70px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #E0E0E0;
}

.section {
    margin: 50px 0;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==================== */
/* TODO: ЗАГОЛОВКИ И ТЕКСТ */
/* ==================== */

.headerSmeta {
    font-size: 20px;

}

.section-title {
    color: #006699;
    font-size: 28px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #66CCCC;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 25%;
    height: 2px;
    background-color: #FF9900;
}

.section-title span {
    color: #FF9900;
}

.sub-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
}

.sub-title {
    color: #006699;
    font-size: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description {
    color: #666666;
    margin-bottom: 24px;
    font-size: 15px;
}

.hint-text {
    color: #999999;
    font-size: 13px;
    font-style: italic;
    margin-top: 4px;
    display: block;
}

.accent-text {
    color: #3399CC;
}

/* ==================== */
/* TODO: ФОРМЫ И ИНПУТЫ */
/* ==================== */

.form-field {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 600;
    font-size: 15px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    color: #333333;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3399CC;
    box-shadow: 0 0 0 3px rgba(51, 153, 204, 0.1);
}

.form-select:hover,
.form-input:hover {
    border-color: #66CCCC;
}

/* Кастомные select элементы */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23006699'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

/* Стилизация опций в select */
option {
    background-color: white;
    color: #333333;
}

select:focus option:checked,
select option:checked {
    background: linear-gradient(#66CCCC, #66CCCC);
    background-color: #66CCCC !important;
    color: white !important;
}

/* ==================== */
/* TODO: ГРИД-СИСТЕМА */
/* ==================== */

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0;
}

/* Колонки разной ширины */
.form-column {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 30px;
    margin-bottom: 24px;
}

.form-column1 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 30px;
}

.form-column2 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 30px;
    margin-bottom: 24px;
}

.form-column3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 30px;
}

/* ==================== */
/* TODO: ЧЕКБОКСЫ И РАДИО */
/* ==================== */

.option-group {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    min-height: 24px;
}

.option-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Кастомные чекбоксы */
.checkbox-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 3px;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background-color: #FF9900;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.option-input[type="checkbox"]:checked+.checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.option-input[type="checkbox"]:checked+.checkbox-custom {
    border-color: #FF9900;
}

.option-input[type="checkbox"]:focus+.checkbox-custom {
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

/* Кастомные радио-кнопки */
.radio-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 3px;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background-color: #FF9900;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.option-input[type="radio"]:checked+.radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.option-input[type="radio"]:checked+.radio-custom {
    border-color: #FF9900;
}

.option-input[type="radio"]:focus+.radio-custom {
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

/* Лейблы для опций */
.option-label {
    color: #333333;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 18px;
    line-height: 1.4;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-top: 0;
}

.option-group:hover .option-label {
    color: #3399CC;
}

.option-group:hover .checkbox-custom,
.option-group:hover .radio-custom {
    border-color: #3399CC;
}

.option-section {
    margin-top: 24px;
}

.option-section:first-child {
    margin-top: 0;
}

/* ==================== */
/* TODO: КНОПКИ */
/* ==================== */


/* ==================== */
/* КНОПКА СОХРАНЕНИЯ PDF  */
/* ==================== */

#generate-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2b6cb0 0%, #2c5282 100%);
    color: white;
    font-family: 'Neo Sans Bold', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(43, 108, 176, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 220px;
    margin: 20px auto;
}

/* Эффект при наведении */
#generate-pdf-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(43, 108, 176, 0.4);
}

/* Эффект при нажатии */
#generate-pdf-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
}

/* Эффект свечения при наведении */
#generate-pdf-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.7s ease;
}

#generate-pdf-btn:hover::before {
    left: 100%;
}

/* Иконка */
#generate-pdf-btn::after {
    content: '📄';
    font-size: 20px;
    transition: transform 0.3s ease;
}

#generate-pdf-btn:hover::after {
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    #generate-pdf-btn {
        padding: 14px 24px;
        font-size: 16px;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    #generate-pdf-btn {
        padding: 12px 20px;
        font-size: 15px;
        min-width: 180px;
    }
}

/* Кнопки выбора сантехники */
.my-btn-check {
    display: none;
}

.my-btn {
    border: none;
    border-radius: 5px;
    background-color: transparent;
    color: rgb(0, 0, 0);
    padding: 3px 8px;
    margin-right: 10px;
    margin-bottom: 2px;
    transition: background-color 0.1s, border-color 0.1s, color 0.1s;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
}

.my-btn:hover {
    border-color: #c5d3e0;
    color: #d1d1d1;
}

.my-btn.active {
    background-color: #FF9900;
    color: #ffffff;
    font-weight: 600;
}

/* Счетчики */
.counter-container {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 200px;
}

.counter-button {
    width: 40px;
    height: 40px;
    border: 2px solid #E0E0E0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.counter-button:hover {
    border-color: #3399CC;
    background-color: #f8f9fa;
}

.counter-input {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    color: #333333;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

.counter-input:focus {
    outline: none;
    border-color: #3399CC;
    box-shadow: 0 0 0 3px rgba(51, 153, 204, 0.1);
}

/* Кнопка рассчитать смету */
.calculate-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%);
    color: white;
    font-family: 'Neo Sans Bold', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #FF6600 0%, #FF9900 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.4);
}

.calculate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

/* Анимация пульсации для кнопки */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 102, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
    }
}

.calculate-btn.pulse {
    animation: pulse 2s infinite;
}

.calculate-btn::before {
    content: '📋';
    margin-right: 12px;
    font-size: 24px;
    vertical-align: middle;
}

.calculate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.calculate-btn:hover::after {
    left: 100%;
}

.calculate-btn-container {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    margin-top: 50px;
    border: 1px solid #dee2e6;
}

.calculate-btn-container h3 {
    text-align: center;
    color: #006699;
    margin-bottom: 15px;
    font-size: 20px;
}

/* ==================== */
/* TODO: ИЗОБРАЖЕНИЯ */
/* ==================== */

.image-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.image-row {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.iconki_rasclad {
    padding: 5px 10px 5px 10px;
}

/* Иконки выбора раскладки */
.raskladka_image-radio {
    display: inline-block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

input[type="radio"].raskladka_hidden {
    display: none;
}

input[type="radio"]:checked+.raskladka_image-radio {
    box-shadow: 0 0 0 3px #FF9900;
}

.raskladka_image-radio:hover {
    box-shadow: 0 0 0 3px #FF9900;
}

.raskladka_image-radio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.raskladka_image-radio:hover img {
    transform: scale(1.05);
}

/* Миниатюры изображений */
.thumbnail-image {
    max-width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.thumbnail-image:hover {
    transform: scale(1.02);
}

/* ==================== */
/* TODO: ТУЛТИПЫ И ПОДСКАЗКИ */
/* ==================== */

.hint-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #3399CC;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
    margin-left: 8px;
    cursor: help;
    font-weight: bold;
    vertical-align: middle;
    text-decoration: none;
    user-select: none;
    position: relative;
    top: 0;
    flex-shrink: 0;
}

.hint-icon:hover {
    background: #006699;
}

.tooltip {
    position: absolute;
    z-index: 9999;
    display: block;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.tooltip.show {
    opacity: 0.95;
}

.tooltip-inner {
    max-width: 300px;
    padding: 8px 12px;
    color: #fff;
    text-align: center;
    background-color: #333;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Стрелки тултипов */
.tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.tooltip[data-placement="top"] .tooltip-arrow {
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
    border-width: 5px 5px 0;
    border-color: #333 transparent transparent transparent;
}

.tooltip[data-placement="bottom"] .tooltip-arrow {
    top: -5px;
    left: 50%;
    margin-left: -5px;
    border-width: 0 5px 5px;
    border-color: transparent transparent #333 transparent;
}

.tooltip[data-placement="left"] .tooltip-arrow {
    right: -5px;
    top: 50%;
    margin-top: -5px;
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent #333;
}

.tooltip[data-placement="right"] .tooltip-arrow {
    left: -5px;
    top: 50%;
    margin-top: -5px;
    border-width: 5px 5px 5px 0;
    border-color: transparent #333 transparent transparent;
}

/* ==================== */
/* TODO: МОДАЛЬНЫЕ ОКНА */
/* ==================== */

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.custom-modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    color: #000000;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.2;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 20px;
    overflow: auto;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-modal.active .modal-container {
    animation: modalFadeIn 0.3s ease;
}

body.modal-open {
    overflow: hidden;
}

/* ==================== */
/* TODO: СПИСКИ И ИКОНКИ */
/* ==================== */

.custom-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
    margin-top: 15px;
}

.list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    line-height: 1.5;
}

.list-text {
    flex: 1;
}

/* Иконки плюс/минус */
.list-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
    background-color: transparent;
    animation: iconAppear 0.3s ease-out;
}

@keyframes iconAppear {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.icon-plus {
    border: 2px solid #28a745;
}

.icon-plus::before,
.icon-plus::after {
    content: "";
    position: absolute;
    background-color: #28a745;
    border-radius: 1px;
}

.icon-plus::before {
    width: 2px;
    height: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-plus::after {
    width: 10px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-minus {
    border: 2px solid #dc3545;
}

.icon-minus::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 2px;
    background-color: #dc3545;
    border-radius: 1px;
}

/* Варианты иконок */
.icon-plus-bold {
    border: 2px solid #218838;
}

.icon-plus-bold::before,
.icon-plus-bold::after {
    background-color: #218838;
}

.icon-minus-bold {
    border: 2px solid #c82333;
}

.icon-minus-bold::before {
    background-color: #c82333;
}

.icon-plus-thin {
    border: 1px solid #28a745;
}

.icon-minus-thin {
    border: 1px solid #dc3545;
}

/* Эффекты при наведении */
.list-item:hover .icon-plus {
    border-color: #218838;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.list-item:hover .icon-plus::before,
.list-item:hover .icon-plus::after {
    background-color: #218838;
    transition: all 0.2s ease;
}

.list-item:hover .icon-minus {
    border-color: #c82333;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.list-item:hover .icon-minus::before {
    background-color: #c82333;
    transition: all 0.2s ease;
}

/* Активные иконки */
.icon-plus.active {
    background-color: rgba(40, 167, 69, 0.1);
    border-width: 2px;
}

.icon-minus.active {
    background-color: rgba(220, 53, 69, 0.1);
    border-width: 2px;
}

/* ==================== */
/* TODO: УВЕДОМЛЕНИЯ И АЛЕРТЫ */
/* ==================== */

.alert-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.alert-box {
    width: 60%;
    max-width: 1200px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.alert-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 8px;
}

.alert-content {
    flex-grow: 1;
}

.alert-title {
    color: #1a237e;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.alert-description {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.alert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.alert-column {
    flex: 1;
    min-width: 280px;
}

.alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert-item {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    padding-left: 0;
}

.alert-item strong {
    color: #1a237e;
    font-weight: 600;
}

.alert-divider {
    height: 1px;
    background: rgba(33, 150, 243, 0.3);
    margin: 20px 0;
}

.alert-footer {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.alert-footer strong {
    color: #1a237e;
}

/* Карточки уведомлений для потолка */
.potolok-notice-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.potolok-notice-card {
    width: 90%;
    max-width: 1000px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

.potolok-notice-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.potolok-notice-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 8px;
    margin-top: 2px;
}

.potolok-notice-content {
    flex: 1;
}

.potolok-notice-text {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
    color: #333;
    font-size: 15px;
    margin: 0 0 12px 0;
}

.potolok-notice-separator {
    height: 1px;
    background: rgba(33, 150, 243, 0.3);
    margin: 15px 0;
    width: 100%;
}

.potolok-notice-footnote {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.5;
    color: #333;
    font-size: 14px;
    margin: 0;
}

.potolok-notice-text strong,
.potolok-notice-footnote strong {
    color: #1a237e;
    font-weight: 600;
}

/* ==================== */
/* TODO: ПРОГРЕСС-БАР */
/* ==================== */

.scroll-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: transparent;
    z-index: 9999;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF9900, #3399CC, #FF9900);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(51, 153, 204, 0.5);
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==================== */
/* TODO: КНОПКИ ПРОКРУТКИ */
/* ==================== */

.scroll-buttons-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.92);
    color: #666;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 0;
    font-weight: 300;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.scroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07),
        0 6px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #FF9900;
}

.scroll-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04),
        0 2px 6px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition-duration: 0.1s;
}

.scroll-icon {
    transition: all 0.25s ease;
    font-weight: 300;
    position: relative;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.scroll-btn:hover .scroll-icon {
    text-shadow: 0 1px 2px rgba(255, 153, 0, 0.2);
}

.scroll-btn.active {
    color: #FF9900;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06),
        0 4px 14px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(255, 153, 0, 0.1);
}

.scroll-btn.active:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 0 1px rgba(255, 153, 0, 0.15);
}

@keyframes subtleAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-btn {
    animation: subtleAppear 0.3s ease-out;
}

.scroll-btn.down {
    animation-delay: 0.05s;
    animation-fill-mode: both;
}

.scroll-btn.gradient {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.96),
            rgba(255, 255, 255, 0.88));
}

.scroll-btn.gradient:hover {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.92));
}

/* ==================== */
/* TODO: СТИЛИ ДЛЯ СМЕТЫ */
/* ==================== */

/* Кнопка открытия сметы */
.smeta-open-btn {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 32px;
    font-size: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 100;
}

.smeta-open-btn:hover {
    transform: translate(-50%, -50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Модальное окно сметы */
.smeta-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    animation: smeta-fadeIn 0.3s ease-out;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

@keyframes smeta-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.smeta-modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    overflow-y: auto;
    padding: 20px;
}

.smeta-modal {
    width: 100%;
    min-height: calc(100vh - 40px);
    background: white;
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: smeta-slideUp 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes smeta-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Шапка модального окна сметы */
.smeta-modal-header {
    padding: 24px 32px;
    background: linear-gradient(135deg, #bbdefb 0%, #667eea 100%);
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
    z-index: 10;
}

.smeta-modal-title {
    font-size: 24px;
    font-weight: 600;
}

.smeta-close-btn {
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.smeta-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Контент модального окна сметы */
.smeta-modal-content {
    padding: 32px;
    flex: 1;
}

.smeta-content-section {
    margin-bottom: 32px;
}

.smeta-content-section h2 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.smeta-content-section p {
    line-height: 1.6;
    color: #495057;
    margin-bottom: 12px;
}

/* Таблица данных сметы */
.smeta-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 2px solid #dee2e6;
}

.smeta-data-table thead {
    background-color: #f8f9fa;
}

.smeta-data-table th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border: 1px solid #dee2e6;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smeta-data-table td {
    padding: 15px 12px;
    border: 1px solid #dee2e6;
    color: #212529;
    vertical-align: middle;
    transition: all 0.2s ease;

}

.smeta-data-table td:not(:first-child),
th:not(:first-child) {
    text-align: center;

}

/* Специфичные столбцы таблицы сметы */
.smeta-data-table .smeta-name-column {
    font-weight: 500;
    color: #343a40;
}

.smeta-data-table .smeta-quantity-column {
    text-align: center;
    color: #6c757d;
    font-weight: 500;
}

.smeta-data-table .smeta-price-column {
    text-align: right;
    color: #28a745;
    font-weight: 600;
}

.smeta-data-table .smeta-total-column {
    text-align: right;
    color: #dc3545;
    font-weight: 700;
}

/* Ширины столбцов таблицы сметы */
.smeta-data-table th.smeta-name-column {
    width: 50%;
}

.smeta-data-table th.smeta-quantity-column {
    width: 15%;
    text-align: center;
}

.smeta-data-table th.smeta-price-column {
    width: 20%;
    text-align: right;
}

.smeta-data-table th.smeta-total-column {
    width: 15%;
    text-align: right;
}

/* Строки таблицы сметы */
.smeta-data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.smeta-data-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Итого в таблице сметы */
.smeta-table-total {
    margin-top: 24px;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    border-left: 4px solid #28a745;
}

.smeta-table-total span {
    color: #dc3545;
    margin-left: 10px;
}

/* Индикатор прокрутки сметы */
.smeta-scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    display: none;
    z-index: 1002;
    pointer-events: none;
}

/* Таблица размеров в смете */
.razmery_v_smete_table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    font-size: 14px;
    background: #f9fafc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8ecf2;
}

.razmery_v_smete_td {
    padding: 5px 5px;
    border-bottom: 1px solid #eef2f7;
    color: #4a5568;
    font-size: 14px;
    transition: background-color 0.2s ease;
}


.razmery_v_smete_td b {
    font-weight: 600;
    color: inherit;
}

.razmery_v_smete_td span {
    color: #2d3748;
    font-weight: 600;
}

.razmery_v_smete_table tbody tr:hover .razmery_v_smete_td {
    background-color: #f1f5fd;
}

.razmery_v_smete_table tbody tr:last-child .razmery_v_smete_td {
    border-bottom: none;
}

/* ==================== */
/* TODO: КАСТОМНЫЕ СЕРВИСЫ */
/* ==================== */

.custom-services-form {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px dashed #4CAF50;
}

.custom-service-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    margin-bottom: 15px;
    align-items: end;
}

.custom-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 5px;
    margin-bottom: 8px;
    border-left: 4px solid #2196F3;
}

.custom-service-info {
    flex: 1;
}

.custom-service-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.custom-service-details {
    color: #666;
    font-size: 14px;
}

.delete-custom-service {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

.delete-custom-service:hover {
    background: #cc0000;
}

.add-custom-service-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.add-custom-service-btn:hover {
    background: #0b7dda;
}

/* ==================== */
/* TODO: РАЗДЕЛИТЕЛИ */
/* ==================== */

.divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #E0E0E0, transparent);
    margin: 32px 0;
}

/* ==================== */
/* TODO: СПЕЦИАЛЬНЫЕ КЛАССЫ */
/* ==================== */

.driver-mobile {
    display: none;
}

.svet_table_block {
    pointer-events: none;
    opacity: 0.3;
}

.desktop-span {
    display: none;
}

label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
}

 /* Предупреждение о загрузке PDF */
    .minimal-warning {
        background: #fff3cd;
        border: 1px solid #ffeaa7;
        border-left: 4px solid #f39c12;
        border-radius: 6px;
        padding: 15px;
        margin: 20px 0;
        font-size: 14px;
        line-height: 1.5;
        color: #856404;
    }

    .minimal-warning strong {
        color: #d35400;
        font-weight: 600;
    }

    .minimal-warning a {
        color: #2980b9;
        text-decoration: underline;
    }

   
/* ==================== */
/* АДАПТИВНОСТЬ */
/* ==================== */

/* TODO: (768px - 1024px) Планшеты  */
@media (max-width: 1024px) {
    .calculator {
        width: 90%;
        padding: 40px;
    }

    .form-column {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 15px;
    }

    .form-column2 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 15px;
    }

    .form-column3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 15px;
    }

    .alert-box {
        width: 80%;
        padding: 20px;
    }

    .potolok-notice-card {
        width: 85%;
        padding: 18px;
    }

    .potolok-notice-icon {
        width: 34px;
        height: 34px;
        padding: 7px;
    }

    .iconki_rasclad {
        padding: 5px 10px;
    }

    body {
        font-size: 16px;
    }
}

/*  TODO: (576px - 768px) Мобильные*/
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .headerSmeta {
    font-size: 18px;

}


    .calculator {
        width: 95%;
        padding: 24px;
        border-radius: 8px;
    }

    .section-title {
        font-size: 24px;
        padding-bottom: 16px;
        margin-bottom: 20px;
    }

    .section-title::after {
        width: 40%;
    }

    .form-column,
    .form-column1,
    .form-column2,
    .form-column3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .form-row {
        margin: 0 0px;
    }

    .option-label {
        font-size: 18px;
    }

    .option-group {
        align-items: flex-start;
    }

    .checkbox-custom,
    .radio-custom {
        margin-top: 2px;
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }

    .checkbox-custom::after {
        width: 10px;
        height: 10px;
    }

    .radio-custom::after {
        width: 8px;
        height: 8px;
    }

    /* Уведомления на мобильных */
    .alert-container {
        padding: 10px;
    }

    .alert-box {
        width: 95%;
        padding: 16px;
    }

    .alert-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .alert-grid {
        flex-direction: column;
        gap: 15px;
    }

    .alert-column {
        min-width: 100%;
    }

    .alert-item {
        text-align: left;
    }

    /* Изображения на мобильных */
    .iconki_rasclad {
        padding: 5px;
    }

    .desktop-image {
        display: none;
    }

    .mobile-image {
        display: block;
    }

    .driver-mobile {
        display: block;
    }

    /* Модальные окна на мобильных */
    .modal-wrapper {
        padding: 10px;
    }

    .modal-container {
        max-width: 98%;
        max-height: 98%;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .modal-title {
        font-size: 0.9rem;
    }

    .modal-body {
        padding: 15px;
    }

    /* Иконки списков на мобильных */
    .list-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        border-width: 1.5px;
    }

    .icon-plus::before {
        height: 9px;
        width: 1.5px;
    }

    .icon-plus::after {
        width: 9px;
        height: 1.5px;
    }

    .icon-minus::before {
        width: 9px;
        height: 1.5px;
    }

    /* Уведомления потолка на мобильных */
    .potolok-notice-wrapper {
        padding: 10px;
    }

    .potolok-notice-card {
        width: 95%;
        padding: 16px;
        border-radius: 8px;
    }

    .potolok-notice-header {
        gap: 12px;
    }

    .potolok-notice-icon {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .potolok-notice-text {
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
        text-justify: auto;
    }

    .potolok-notice-footnote {
        font-size: 13px;
        text-align: left;
        text-justify: auto;
    }

    .potolok-notice-separator {
        margin: 12px 0;
    }

    /* Подсказки на мобильных */
    .sub-title-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hint-icon {
        margin-left: 0;
        align-self: flex-start;
    }

    /* Кнопка рассчитать на мобильных */
    .calculate-btn {
        padding: 16px 20px;
        font-size: 20px;
        border-radius: 10px;
    }

    .calculate-btn::before {
        font-size: 22px;
        margin-right: 10px;
    }

    .calculate-btn-container {
        padding: 15px;
        margin-top: 30px;
    }

    /* Смета на мобильных */
    .smeta-modal-container {
        padding: 10px;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .smeta-modal-container::-webkit-scrollbar {
        display: none;
        width: 0;
    }

    .smeta-modal {
        min-height: calc(100vh - 20px);
        border-radius: 10px;
    }

    .smeta-modal-header {
        padding: 20px;
        border-radius: 10px 10px 0 0;
    }

    .smeta-modal-content {
        padding: 20px;
    }

    .smeta-data-table {
        font-size: 12px;
        display: table;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-width: 1px !important;
    }

    .smeta-data-table th,
    .smeta-data-table td {
        padding: 5px 8px;
        font-size: inherit;
        border-width: 1px;
    }

    .smeta-data-table th {
        font-size: 11px;
        padding: 5px 8px;
    }

    .smeta-table-total {
        font-size: 16px;
        padding: 12px;
        border-width: 1px;
    }

    /* Таблица размеров на мобильных */
    .razmery_v_smete_table {
        font-size: 5px;
    }

    .razmery_v_smete_td {
        padding: 5px 5px;
        font-size: 10px;
    }

    /* Кнопки прокрутки на мобильных */
    .scroll-buttons-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* TODO: Десктопные стили (обратная логика для 769px+) */
@media (min-width: 769px) {
    .desktop-image {
        display: block;
    }

    .mobile-image {
        display: none;
    }

    .modal-container {
        max-width: 90%;
    }
}

/* TODO: (до 576px) Маленькие мобильные */
@media (max-width: 576px) {
    .container {
        padding: 12px;
        min-height: auto;
    }

    .headerSmeta {
    font-size: 16px;

}


    .calculator {
        width: 100%;
        padding: 16px;
        border-radius: 6px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border: none;
    }

    .section-title {
        font-size: 20px;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .sub-title {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .description {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .form-input,
    .form-select {
        padding: 10px 12px;
        font-size: 16px;
    }

    .option-group {
        min-height: 24px;
        margin-bottom: 6px;
    }

    .checkbox-custom,
    .radio-custom {
        width: 18px;
        height: 18px;
        margin-right: 10px;
        margin-top: 2px;
    }

    .checkbox-custom::after {
        width: 10px;
        height: 10px;
    }

    .radio-custom::after {
        width: 8px;
        height: 8px;
    }

    .option-label {
        font-size: 16px;
        line-height: 1.3;
    }

    .divider {
        margin: 24px 0;
    }

    /* Уведомления на маленьких экранах */
    .alert-title {
        font-size: 16px;
    }

    .alert-description {
        font-size: 14px;
    }

    .alert-item {
        font-size: 13px;
    }

    .alert-footer {
        font-size: 13px;
    }

    .iconki_rasclad {
        padding: 5px;
    }

    body {
        font-size: 16px;
    }

    /* Уведомления потолка на маленьких экранах */
    .potolok-notice-card {
        padding: 14px;
    }

    .potolok-notice-header {
        gap: 10px;
    }

    .potolok-notice-icon {
        width: 28px;
        height: 28px;
        padding: 5px;
    }

    .potolok-notice-text {
        font-size: 13px;
    }

    .potolok-notice-footnote {
        font-size: 12px;
    }

    .potolok-notice-separator {
        margin: 10px 0;
    }

    /* Подсказки на маленьких экранах */
    .sub-title-container {
        gap: 6px;
    }

    /* Счетчики на маленьких экранах */
    .counter-container {
        max-width: 180px;
    }

    .counter-button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .counter-input {
        width: 80px;
        font-size: 15px;
        padding: 6px 10px;
    }

    .desktop-span {
        display: none;
    }

    /* Кнопка рассчитать на маленьких экранах */
    .calculate-btn {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 8px;
    }

    .calculate-btn::before {
        font-size: 20px;
        margin-right: 8px;
    }

    .calculate-btn-container {
        padding: 12px;
        margin-top: 25px;
    }

    /* TODO: до 480px -cмета на очень маленьких экранах */
    @media (max-width: 480px) {
        .smeta-modal-container {
            padding: 5px;
        }

        .smeta-modal {
            min-height: calc(100vh - 10px);
            border-radius: 10px;
        }

        .smeta-data-table {
            font-size: 11px;
        }

        .smeta-data-table th,
        .smeta-data-table td {
            padding: 2px 2px;
            border-width: 1px;
        }

        .smeta-data-table th {
            font-size: 10px;
            padding: 8px 6px;
        }

        .smeta-modal-header {
            padding: 16px;
        }

        .smeta-modal-title {
            font-size: 20px;
        }

        .smeta-modal-content {
            padding: 16px;
        }

        .smeta-table-total {
            font-size: 14px;
            padding: 10px;
        }
    }

    /* Кнопки прокрутки на маленьких экранах */
    .scroll-buttons-container {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }

    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* TODO:  (до 360px) Очень маленькие мобильные */
@media (max-width: 360px) {
    .calculator {
        padding: 12px;
    }

    .headerSmeta {
    font-size: 14px;

}


    .section-title {
        font-size: 18px;
    }

    .sub-title {
        font-size: 18px;
    }

    .form-input,
    .form-select {
        font-size: 15px;
        padding: 8px 10px;
    }

    .option-label {
        font-size: 16px;
    }

    .checkbox-custom,
    .radio-custom {
        width: 16px;
        height: 16px;
        margin-right: 8px;
        margin-top: 2px;
    }

    .checkbox-custom::after {
        width: 8px;
        height: 8px;
    }

    .radio-custom::after {
        width: 6px;
        height: 6px;
    }

    .alert-box {
        padding: 12px;
    }

    .iconki_rasclad {
        padding: 0px;
    }

    .modal-header {
        padding: 10px 12px;
    }

    .modal-title {
        font-size: 0.85rem;
    }

    .modal-body {
        padding: 10px;
    }

    .modal-close {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

    .list-icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
        border-width: 1px;
    }

    .icon-plus::before {
        height: 8px;
        width: 1px;
    }

    .icon-plus::after {
        width: 8px;
        height: 1px;
    }

    .icon-minus::before {
        width: 8px;
        height: 1px;
    }

    /* TODO: Смета на очень маленьких экранах */
    @media (max-width: 360px) {
        .smeta-data-table {
            font-size: 10px;
        }

        .smeta-data-table th {
            font-size: 9px;
            letter-spacing: 0.3px;
        }

        .smeta-data-table th,
        .smeta-data-table td {
            padding: 5px 4px;
            border-width: 1px;
        }

        .smeta-modal-header {
            padding: 14px;
        }

        .smeta-modal-content {
            padding: 14px;
        }
    }
}

/* TODO: Большие экраны (1200px+) */
@media (min-width: 1200px) {
    .smeta-data-table {
        font-size: 18px;
    }

    .smeta-data-table th {
        font-size: 15px;
    }

    .smeta-table-total {
        font-size: 20px;
    }
}

/* Темная тема для кнопок прокрутки */
@media (prefers-color-scheme: dark) {
    .scroll-btn {
        background: rgba(40, 40, 40, 0.85);
        color: #aaa;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15),
            0 4px 12px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .scroll-btn:hover {
        color: #FFCC66;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
            0 6px 16px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .scroll-icon {
        text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
    }

    .scroll-btn.active {
        color: #FFCC66;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2),
            0 4px 14px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 1px rgba(255, 204, 102, 0.15);
    }
}