/* style.css */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 20px 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Поиск + кнопка */
.search-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#search-box {
    flex: 1;
    padding: 14px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    text-align: left;
    transition: border-color 0.3s;
}

#search-box:focus {
    border-color: #3498db;
}

.menu-toggle {
    width: 50px;
    background-color: #2ecc71; /* зелёный */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    display: block;
}

.menu-section {
    margin-bottom: 15px;
}

.menu-section h3 {
    margin: 10px 0 12px;
    color: #2c3e50;
    font-size: 18px;
}

.mobile-menu a {
    display: block;
    text-decoration: none;
    color: #3498db;
    padding: 6px 0;
    font-weight: 500;
    text-align: left; /* прижато влево */
}

.mobile-menu a:hover {
    text-decoration: underline;
}

.mobile-menu hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* Подсказки поиска */
#suggestions {
    border: 1px solid #ccc;
    border-top: none;
    background: white;
    max-height: 250px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: #eaf7ff;
}

.suggestion-type {
    font-size: 14px;
    color: #7f8c8d;
    margin-left: 8px;
}

/* Результат */
#result {
    margin-top: 20px;
}

.loading-text {
    text-align: center;
    font-size: 18px;
}

/* Стили для отображения данных */
.parameter-container {
position: relative; /* ←←← добавьте эту строку */
    border: 2px solid #d3d3d3;
    border-radius: 15px;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.circle {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.big-circle {
    width: 120px;
    height: 120px;
    line-height: 120px;
    font-size: 36px;
}

.big-circle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.big-circle-label {
    margin-left: 20px;
    font-size: 18px;
    font-weight: bold;
}

.row {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.label {
    font-size: 16px;
    text-align: center;
    width: 60px;
    margin-top: 8px;
}

.label a {
    color: #333;
    text-decoration: none;
    display: block;
}

.label a:hover {
    text-decoration: underline;
}

.scale {
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, #00FF00, #FFA500);
    margin-top: 20px;
    border-radius: 10px;
    position: relative;
}

/* Подвал */
footer {
    margin-top: 60px;
    padding: 30px 0;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
}

@media (max-width: 762px) {
    /* Убираем column — остаёмся в строке */
    .circle {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 20px;
        margin: 6px;
    }
    .label {
        font-size: 13px;
        width: 50px;
    }
    .big-circle {
        width: 100px;
        height: 100px;
        line-height: 100px;
        font-size: 30px;
    }
    .big-circle-label {
        font-size: 16px;
        margin-left: 12px;
    }
    .scale {
        height: 12px;
    }
    #search-box {
        font-size: 16px;
    }
}


.update-time {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10;
}