html {
    background: linear-gradient(45deg,#DCDCDC,#D3D3D3);
}
#carrier {
    width: 1230px;
    margin: auto;
}
body {
    font-size: 20px;
    line-height: 1.5; /* Было 5px, ставим 1.5 (нормальный межстрочный интервал) */
    text-align: justify;
}
#footer {
}

#header {
    height: 60px;
}

#text {
    margin-left: 0;
    margin-right: 0;
}

#menucarrier {
    width: 160px;
    float: left;
}

#adscarrier {
    width: 160px;
    float: right;
}

table, th, td {
    padding: 1px;
    margin: 1px;
}

td {
    padding: 1px;
}

a:link, a:visited {
    color: black;
    text-decoration: none;
}

a:hover {
    color: #F26D00;
    text-decoration: none;
}

#link_to_main_page {
    font: 20px Arial;
    position: absolute;
    top: 50px;
    z-index: 24;
    margin-left: 1070px;
}

#img_window {
    font: 20px Arial;
    position: absolute;
    top: 15px;
    z-index: 24;
    margin-left: 0px;
}

#text_window {
    font: 24px Arial;
    position: relative;
    top: -15px;
    z-index: 21;
    margin-left: 80px;
}

/* ОСНОВНОЙ КОНТЕЙНЕР ДЛЯ ДВУХ КОЛОНОК */
#main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

/* ЛЕВАЯ КОЛОНКА - ТАБЛИЦА ПАРАМЕТРОВ */
#left-column {
    flex: 0 0 30%;
    min-width: 0;
}

/* ПРАВАЯ КОЛОНКА - КАРТИНКА */
#right-column {
    flex: 0 0 70%;
    min-width: 0;
}

/* КОНТЕЙНЕР ДЛЯ КАРТИНКИ */
#image-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid #2c3e50;
    height: 560px; /* Или любая другая фиксированная высота */
    width: calc(100% - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
	margin-right: 70px; 
}

/* САМА КАРТИНКА */
#example3 {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
	object-fit: contain; /* Добавьте это свойство */
}

/* ТАБЛИЦА ПАРАМЕТРОВ - ЗАНИМАЕТ ВСЮ ВЫСОТУ */
#text .table-container {
    width: 100% !important;
    margin: 0 !important;
    height: auto;
}

/* СТИЛИ ДЛЯ ТАБЛИЦЫ ПАРАМЕТРОВ */




#text table tr {
    height: 30px !important;
}

#text table td {
    padding: 4px 8px !important;
    border-bottom: 1px solid #e0e0e0 !important;
    vertical-align: middle !important;
    font-size: 14px !important;
}

#text table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    width: 55% !important; /* Уменьшили с 60% до 55% */
    border-right: 1px solid #e0e0e0 !important;
    white-space: nowrap; /* Чтобы текст не переносился */
}

/* Увеличиваем ширину правого столбца (с полями ввода) */
#text table td:last-child {
    width: 45% !important; /* Увеличили с 40% до 45% */
    background-color: #fafafa;
}

#text input[type="text"] {
    height: 32px !important;
    line-height: 38px !important;
    padding: 4px 12px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    border: 1px solid #bdc3c7 !important;
    border-radius: 6px !important;
    width: 100% !important;
    max-width: 150px;
    transition: all 0.3s ease;
    background: white;
}

#text select {
    height: 32px !important;
    line-height: 38px !important;
    padding: 4px 12px !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    border: 1px solid #bdc3c7 !important;
    border-radius: 6px !important;
    width: 100% !important;
    max-width: 180px;
    background: white;
}

/* ТАБЛИЦА ГРУНТОВ - НА ВСЮ ШИРИНУ */
#soil-container {
    width: 100%;
    margin-top: 30px;
    clear: both;
}

.table-container {
    border: 2px solid #2c3e50;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    margin: 20px 0;
    background: white;
}

.table-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

/* СТИЛИ ДЛЯ ТАБЛИЦЫ ГРУНТОВ */
#soil {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100%;
    border: 2px solid #2c3e50 !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white;
}

#soil thead tr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    height: 50px !important;
}

#soil th {
    color: white !important;
    font-weight: bold !important;
    font-size: 14px !important;
    text-align: center !important;
    padding: 12px 8px !important;
    border: none !important;
}

#soil td {
    padding: 10px 6px !important;
    border: 1px solid #e0e0e0 !important;
    text-align: center !important;
    vertical-align: middle !important;
    height: 45px !important;
    font-size: 14px !important;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1200px) {
    #main-content {
        flex-direction: column;
    }
    
    #left-column, #right-column {
        flex: 0 0 100%;
        width: 100%;
    }
    
    #image-container {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    #text table td:first-child,
    #text table td:last-child {
        width: 50% !important;
    }
    
    #text input[type="text"],
    #text select {
        max-width: 120px !important;
    }
}

/* ОСТАЛЬНЫЕ СТИЛИ */
.jQtooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted;
}

.img-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin: 0 2px;
    display: inline-block;
}

.img-button img {
    display: block;
    width: 16px;
    height: 16px;
}
/* Стили для чекбокса */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 8px;
}

/* Стили для отключенных полей */
input:disabled {
    cursor: not-allowed;
    color: #666;
}

/* Стили для метки чекбокса */
label[for="water_is"] {
    cursor: pointer;
    font-size: 14px;
    vertical-align: middle;
}

/* Плавные переходы для полей */
#height_water_up, #height_water_down {
    transition: all 0.3s ease;
}







/* CSS tooltip для поля шага */
.step-tooltip {
    position: relative;
}

.step-tooltip .tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.step-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
/* Стили для всплывающих подсказок [?] */
.help-tip {
    display: inline-block;
    position: relative;
    cursor: help;
    border-bottom: 1px dashed #999;
    font-weight: bold;
    color: #2c3e50;
    margin-left: 4px;
    font-size: 14px;
    vertical-align: super;
}
.help-tip:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 0;                  /* Выравнивание по левому краю элемента */
    transform: translateX(0); /* Убираем центрирующий сдвиг */
    background: #2c3e50;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;      /* Разрешаем перенос строк */
    max-width: 250px;
    width: max-content;
    z-index: 1000;
    font-size: 13px;
    font-weight: normal;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    pointer-events: none;
    margin-bottom: 8px;
    text-align: left;
}

.help-tip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 10px;               /* Стрелка указывает на элемент (с небольшим отступом) */
    transform: translateX(0);
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
    margin-bottom: 3px;
    z-index: 1000;
}