		/* Общие стили */
		* {
			box-sizing: border-box;
			margin: 0;
			padding: 0;
		}

		body {
			
			font-family: 'Roboto', sans-serif;
			line-height: 1.6;
		}

		/* Контейнер для боковой панели и основной области */
		.container {
			display: flex;
			flex-wrap: wrap;
			gap: 20px;
			min-height: calc(100vh - 40px);
		}

		/* Боковая панель слева */
		.sidebar {
			flex: 0 0 25%;
			border-radius: 8px;
		}

		/* Основная область справа */
		.main-content {
			flex: 1; /* Изменено для заполнения оставшегося пространства */
			display: flex; /* Добавлено для вертикального расположения */
			flex-direction: column; /* Располагаем элементы вертикально */
			border-radius: 8px;
		}

		/* Таблица основных параметров */
		.parameters-section {
			background-color: #fff;
			padding: 20px;
			margin-bottom: 30px;
			border-radius: 8px;
			box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.1);
			display: flex;
			flex-direction: column;
			gap: 15px; /* Расстояние между строками */
		}

		.parameters-header h3 {
			margin: 0;
			font-size: 18px;
			font-weight: 500;
			text-align: center;
			color: #333;
			border-bottom: 2px solid #3498db;
			padding-bottom: 10px;
		}

		.parameters-calc h3 {
			margin: 30px;
			font-size: 25px;
			font-weight: 700;
			text-align: center;
			color: #333;
			padding-bottom: 10px;
		}

		h3 {
			font-size: 20px !important;
			font-weight: 600 !important;
			line-height: 1.2em;
			text-transform: none;
		}

		h2 {
			font-size: 30px !important;
			font-weight: 700 !important;

		}

		.parameter-item {
			display: flex;
			justify-content: space-between;
			align-items: flex-start;
			flex-wrap: wrap;
			gap: 10px; /* Расстояние между меткой и полем ввода */
		}

		.parameter-item label {
			font-weight: 500;
			color: #555;
			flex: 1; /* Метка занимает 1 часть пространства */
		}

		.parameter-item input {
			flex: 0; /* Поле ввода занимает 2 части пространства */
			padding: 8px 12px;
			border: 1px solid #ccc;
			border-radius: 4px;
			transition: border-color 0.3s;
			max-width: 80px;
		}

		.parameter-item input:focus {
			border-color: #3498db;
			outline: none;
		}

		.parameter-item.button-container {
			justify-content: center; /* Центрирование кнопки */
		}

		.parameter-item button {
			padding: 10px 20px;
			border: none;
			border-radius: 25px;
			cursor: pointer;
			font-size: 16px;
			transition: background-color 0.3s, transform 0.2s;
		}

		.parameter-item button.add-btn {
			background-color: #28a745;
			color: #fff;
		}

		.parameter-item button.add-btn:hover {
			background-color: #218838;
			transform: translateY(-2px);
		}


		/* Секции нагрузок */
		.load-section {
			background-color: #fff;
			padding: 20px;
			margin-bottom: 30px;
			border-radius: 8px;
			box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.1);
		}

		.load-section h2 {
			margin-bottom: 15px;
			font-size: 1.5em;
			color: #2c3e50;
		}

		.load-group {
			margin-bottom: 20px;
			border-bottom: 1px solid #eee;
			padding-bottom: 15px;
		}

		.load-group:last-child {
			border-bottom: none;
			padding-bottom: 0;
			margin-bottom: 0;
		}

		.load-group h3 {
			margin-bottom: 10px;
			font-size: 1.2em;
			color: #34495e;
		}

		.load-item {
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			margin-bottom: 10px;
			gap: 10px;
		}

		.load-item label {
			flex: 1 1 10%;
			font-weight: 500;
			color: #555;
		}

		.load-item input {
			flex: 1 1 80%;
			padding: 8px 12px;
			border: 1px solid #ccc;
			border-radius: 4px;
			transition: border-color 0.3s;
		}

		.load-item input:focus {
			border-color: #3498db;
			outline: none;
		}

		/* Кнопки */
		button {
			padding: 10px 20px;
			border: none;
			border-radius: 25px;
			cursor: pointer;
			font-size: 16px;
			transition: background-color 0.3s, transform 0.2s;
			display: inline-flex;
			align-items: center;
			justify-content: center;
		}

		.add-btn {
			background-color: #28a745;
			color: #fff;
		}

		.add-btn:hover {
			background-color: #218838;
			transform: translateY(-2px);
		}

		.remove-btn {
			background-color: #dc3545;
			color: #fff;
		}

		.remove-btn:hover {
			background-color: #c82333;
			transform: translateY(-2px);
		}

		.distance-controls-wrapper {
			background-color: #fff;
			padding: 20px;
			margin-bottom: 30px;
			border-radius: 8px;
			box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.1);
			text-align: center;
		}

		.distance-description {
			background-color: #f8f9fa; /* Светло-серый фон */
			border: 1px solid #ddd; /* Тонкая рамка */
			border-radius: 8px; /* Сглаженные углы */
			padding: 15px; /* Внутренний отступ */
			margin-bottom: 15px; /* Отступ до формы */
			font-size: 16px; /* Размер шрифта */
			color: #555; /* Цвет текста */
			text-align: left; /* Выравнивание текста по левому краю */
			line-height: 1.5; /* Межстрочный интервал */
		}

		.distance-controls {
			display: flex;
			justify-content: center; /* Центрирование элементов */
			align-items: center; /* Выравнивание по вертикали */
			gap: 10px; /* Расстояние между элементами */
			flex-wrap: wrap; /* Перенос на новую строку для маленьких экранов */
		}


		.distance-controls label {
			font-weight: 500;
			margin-right: 10px;
			color: #555;
		}

		.distance-controls input[type="number"] {
			width: 150px;
			padding: 8px 12px;
			border: 1px solid #ccc;
			border-radius: 4px;
			transition: border-color 0.3s;
			margin-right: 10px;
		}

		.distance-controls input[type="number"]:focus {
			border-color: #3498db;
			outline: none;
		}

		.distance-controls button {
			padding: 8px 16px;
			border: none;
			border-radius: 25px;
			cursor: pointer;
			font-size: 16px;
			transition: background-color 0.3s, transform 0.2s;
			margin: 5px;
		}

		.distance-controls .add-btn {
			background-color: #28a745;
			color: #fff;
		}

		.distance-controls .add-btn:hover {
			background-color: #218838;
			transform: translateY(-2px);
		}

		.distance-controls .remove-btn {
			background-color: #dc3545;
			color: #fff;
		}

		.distance-controls .remove-btn:hover {
			background-color: #c82333;
			transform: translateY(-2px);
		}

		/* Канвас для графиков */
		#canvasContainer {
			flex: 1; /* Заполняет доступное пространство */
			width: 100%;
			background-color: #fff;
			border-radius: 8px;
			overflow: hidden;
			box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.1);
			padding: 20px;
			display: flex; /* Добавлено для растяжения канваса */
		}

		canvas {
			width: 100%;
			height: 100%;
			border-radius: 8px;
		}

		/* Результаты */
		#result, #result1 {
			width: 100%;
			margin-top: 30px;
			background-color: #fff;
			padding: 20px;
			border-radius: 8px;
			box-shadow: 0 4px 6px rgba(0,0,0,0.1);
			white-space: pre-wrap;
			font-size: 16px;
			line-height: 1.6;
			overflow-x: auto;
		}
		
		.image-block {
			margin: 20px 0; /* Отступы сверху и снизу */
			text-align: center; /* Центрирование изображения */
			background-color: #fff; /* Белый фон, чтобы соответствовать общей стилистике */
			padding: 10px; /* Внутренний отступ для пространства вокруг изображения */
			border-radius: 8px; /* Сглаженные углы */
			box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Лёгкая тень для объёма */
			max-width: 100%; /* Ограничение ширины */
			overflow: hidden; /* Для эстетичного отображения */
			width: fit-content;
			margin: 20px auto;
		}

		.image-block {
			display: flex; /* ترتيب الصور في صف بشكل افتراضي */
			gap: 10px; /* مسافة بين الحاويات */
		}

		.image-container {
			display: inline-block; /* جعل الحاوية تحتضن الصورة */
			padding: 10px; /* مسافة داخل الحاوية */
			border: 1px solid #ddd; /* إطار للحاوية */
			border-radius: 8px; /* زوايا مستديرة للحاوية */
			background-color: #f9f9f9; /* لون خلفية الحاوية */
		}

		.beam-image {
			max-width: 100%;
			height: auto;
			border-radius: 8px; /* زوايا مستديرة للصورة */
		}
		/* Стили для контейнера select */
		.custom-select-container {
			position: relative;
			width: 40%;
			max-width: 300px; /* Ограничение ширины */
			margin-top: 10px;
		}

		/* Стили для самого select */
		.custom-select-container select {
			width: 100%;
			padding: 10px 15px;
			font-size: 16px;
			background-color: #f4f4f4;
			border: 1px solid #ccc;
			border-radius: 5px;
			appearance: none; /* Убираем стандартный стиль */
			cursor: pointer;
			transition: all 0.3s ease;
		}

		/* Эффект при фокусе */
		.custom-select-container select:focus {
			border-color: #007bff;
			background-color: #ffffff;
			outline: none;
		}

		/* Стили для стрелки */
		.custom-select-container select::-ms-expand {
			display: none; /* Убираем стрелку в IE */
		}

		/* Стили для стрелки в других браузерах */
		.custom-select-container::after {
			content: '▼';
			font-size: 18px;
			color: #007bff;
			position: absolute;
			right: 15px;
			top: 50%;
			transform: translateY(-50%);
			pointer-events: none;
		}

		/* При изменении фокуса, стрелка может быть другим цветом */
		.custom-select-container select:focus + ::after {
			color: #007bff;
		}

		/* --- НАЧАЛО СТИЛЕЙ ДЛЯ ВАЛИДАЦИИ --- */
		.input-error {
			border-color: #dc3545 !important; /* Ярко-красная рамка */
			background-color: #f8d7da; /* Слегка красный фон */
		}

		.error-message {
			color: #dc3545;
			font-size: 14px;
			font-weight: 500;
			margin-top: 5px;
			width: 100%; /* ЗАСТАВЛЯЕТ ЭЛЕМЕНТ ЗАНЯТЬ ВСЮ ШИРИНУ */
			text-align: left; /* Выравнивает текст внутри себя по правому краю */
			flex-basis: 100%; /* Гарантирует, что элемент всегда будет на новой строке в flex-контейнере */
		}

        .input-wrapper {
            display: flex;
            flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку */
            justify-content: flex-end; /* Выравнивает инпут по правому краю */
            flex: 0; /* Занимает доступное место, как раньше инпут */
            text-align: right;
        }

        .input-wrapper .error-message {
            width: 100%; /* Заставляет сообщение об ошибке занимать всю ширину обертки и переноситься вниз */
        }
		/* --- КОНЕЦ СТИЛЕЙ ДЛЯ ВАЛИДАЦИИ --- */
		#distance-error-message {
			margin-top: 10px;
			text-align: center;
		}

		/* 1. Стили для ДЕСКТОПА: имитируем старый вид с разделителями */
		.load-group-accordion {
			padding-bottom: 15px;
			margin-bottom: 20px;
			border-bottom: 1px solid #eee;
		}
		.load-group-accordion:last-of-type {
			border-bottom: none;
			margin-bottom: 0;
			padding-bottom: 0;
		}
		.load-group-accordion > div,
		.load-group-accordion > button {
			margin-top: 15px; /* Возвращаем отступ для контента */
		}

		/* На десктопе summary не должен вести себя как кнопка */
		.load-group-summary {
			display: block; /* Убираем маркер списка */
			padding: 12px 15px;
			background-color: #f8f9fa;
			border-bottom: 1px solid #e0e0e0;
			cursor: pointer;
			transition: background-color 0.2s ease-in-out;
			outline: none; /* Убираем синюю рамку при фокусе */
		}

		/* 2. Эффект при наведении курсора */
		.load-group-summary:hover {
			background-color: #e9ecef;
		}

		/* 3. Убираем стандартный маркер-треугольник */
		.load-group-summary::-webkit-details-marker {
			display: none;
		}

		/* 4. Добавляем свою собственную анимированную стрелку-индикатор */
		.load-group-summary h3::after {
			content: '▼'; /* Наша иконка */
			float: right; /* Размещаем ее справа */
			font-size: 0.8em; /* Делаем ее чуть меньше заголовка */
			color: #3498db;
			transition: transform 0.2s ease-in-out; /* Анимация поворота */
			margin-top: 4px; /* Небольшая коррекция по вертикали */
		}

		/* 5. Поворачиваем стрелку, когда аккордеон открыт */
		.load-group-accordion[open] > .load-group-summary h3::after {
			transform: rotate(180deg);
		}

		/* 6. Небольшие отступы для контента внутри аккордеона */
		.load-group-accordion > div {
			padding: 15px;
			border-bottom: 1px solid #e0e0e0;
		}

		/* Убираем лишние разделители, которые были раньше */
		.load-group-accordion {
			border-bottom: none;
			padding-bottom: 0;
			margin-bottom: 15px;
			border: 1px solid #e0e0e0;
			border-radius: 5px;
			overflow: hidden; /* Чтобы скругленные углы работали */
		}
		.load-group-accordion:last-of-type {
			margin-bottom: 0;
		}
		/* Адаптивность */
		@media (max-width: 768px) {
			.container {
				flex-direction: column;
			}

			.sidebar, .main-content {
				flex: 0 0 100%;
			}

			.distance-controls input[type="number"] {
				width: 100%;
				margin-bottom: 10px;
			}

			.distance-controls button {
				width: 100%;
				margin: 5px 0;
			}

			.image-block {
				flex-direction: column; /* Ставим картинки друг под другом */
			}

			.distance-controls-wrapper {
				display: none; /* Просто скрываем весь блок */
			}

			.parameters-table, .load-section, .distance-controls, #canvasContainer, #result, #result1 {
				width: 100%;
				max-width: 100%;
			}
		}

		.parameter-description {
			font-size: 14px;
			color: #555;
			line-height: 1.4;
			padding: 0 5px 10px 5px; /* Отступы: сверху, по бокам, снизу */
		}
		.parameter-description i {
			color: #2c3e50; /* Делаем пример в тексте чуть заметнее */
		}

		/* 2. Стили для МОБИЛЬНЫХ: активируем аккордеон */
		@media (max-width: 768px) {
			/* На мобильных summary становится кликабельным */
			.load-group-summary {
				cursor: pointer;
				outline: none;
			}

			/* Добавляем и анимируем стрелочку-индикатор */
			.load-group-summary h3::after {
				content: ' ▼';
				float: right;
				transition: transform 0.2s;
			}
			.load-group-accordion[open] > .load-group-summary h3::after {
				transform: rotate(180deg);
			}

			/* Убираем разделители на мобильных, они не нужны в аккордеоне */
			.load-group-accordion {
				border-bottom: none;
				padding-bottom: 0;
				margin-bottom: 15px;
			}
		}

		/* Контейнер для табов */
		.tabs-container {
			margin: 20px auto; /* Центрирование контейнера */
			max-width: 100%;
			background-color: #fff;
			border-radius: 8px;
			box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
			overflow: hidden;
		}

		/* Кнопки табов */
		.tab-buttons {
			display: flex;
			justify-content: flex-start; /* Выравнивание кнопок по левому краю */
			background-color: #f8f9fa; /* Светло-серый фон */
			padding: 10px 15px; /* Внутренний отступ */
			gap: 10px; /* Расстояние между кнопками */
		}

		.tab-button {
			padding: 8px 16px; /* Компактный размер кнопок */
			font-size: 14px;
			font-weight: 500;
			text-align: center;
			background-color: #e0e0e0;
			border: 1px solid #ccc;
			border-radius: 4px;
			cursor: pointer;
			transition: background-color 0.3s, transform 0.2s;
		}

		.tab-button.active {
			background-color: #3498db; /* Синий фон для активной вкладки */
			color: #fff; /* Белый текст для активной вкладки */
			border: 1px solid #2980b9; /* Синий бордер для активной вкладки */
			transform: translateY(-2px); /* Поднятие активной кнопки */
		}

		.tab-button:hover {
			background-color: #d6d6d6; /* Цвет при наведении */
		}

		/* Контент табов */
		.tab-content {
			display: none; /* Скрыто по умолчанию */
			padding: 20px;
			font-size: 16px;
			line-height: 1.6;
		}

		.tab-content.active-tab {
			display: block; /* Показывается только активная вкладка */
		}

		/* Вкладки для расчетов внутри result2 */
		.sub-tabs-container {
			margin-top: 20px;
		}

		.sub-tab-label {
			display: inline-block;
			margin-right: 10px;
			padding: 10px 15px;
			background-color: #f1f1f1;
			border: 1px solid #ccc;
			border-bottom: none;
			cursor: pointer;
			transition: background-color 0.3s;
		}

		.sub-tab-label:hover {
			background-color: #ddd;
		}

		input[name="sub-tab"] {
			display: none;
		}

		input[name="sub-tab"]:checked + .sub-tab-label {
			background-color: #ddd;
			font-weight: bold;
			border-bottom: 2px solid white;
		}

		.sub-tab-content {
			display: none;
			border: 1px solid #ccc;
			padding: 20px;
		}

		input#calc1:checked ~ #content1,
		input#calc2:checked ~ #content2,
		input#calc3:checked ~ #content3,
		input#calc4:checked ~ #content4,
		input#calc5:checked ~ #content5,
		input#calc6:checked ~ #content6,
		input#calc7:checked ~ #content7,
		input#calc8:checked ~ #content8,
		input#calc9:checked ~ #content9,
		input#calc10:checked ~ #content10,
		input#calc11:checked ~ #content11	{
			display: block;
		}

		.canvas-container-1 {
			display: flex;
			justify-content: center; /* Центрирование по горизонтали */
			align-items: center;    /* Центрирование по вертикали */
		}

		.load-label-input {
			flex: 0 0 50px !important; /* Фиксированная ширина */
			text-align: center;
			font-weight: 500;
			border: 1px dashed #ccc !important;
			background-color: #f9f9f9;
		}
		.load-label-input:focus {
			border: 1px solid #3498db !important;
			background-color: #fff;
		}

		/* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА (ПОПАПА) --- */
		.modal {
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			z-index: 1000;
			display: none; /* Скрыто по умолчанию */
			justify-content: center;
			align-items: center;
			padding: 20px;
		}

		.modal.modal-active {
			display: flex; /* Показываем, когда активен */
		}

		.modal-overlay {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(0, 0, 0, 0.6);
			cursor: pointer;
		}

		.modal-content {
			position: relative;
			background-color: #fff;
			padding: 30px;
			border-radius: 8px;
			box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
			z-index: 1001;
			max-width: 900px;
			width: 100%;
			max-height: 90vh;
			overflow-y: auto;
		}

		.modal-close-btn {
			position: absolute;
			top: 10px;
			right: 15px;
			font-size: 28px;
			font-weight: bold;
			color: #888;
			background: none;
			border: none;
			cursor: pointer;
			line-height: 1;
			padding: 0;
		}
		.modal-close-btn:hover {
			color: #333;
		}

	
