.contSSSR {
    font-family: 'Arial', sans-serif;
    width: 100%;
    max-width: 1200px;
    background-color: #ffffff;
    background-image: url('http://tokmed.ru/wp-content/uploads/2025/01/цвцц.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 0px;
    flex-wrap: wrap;
    box-sizing: border-box;
    font-size: 20px;
}

.legendSSSR, .SSSR-calculator {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #0073aa;
    border-radius: 10px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.legendSSSR h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.legendSSSR-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: medium;
    height: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h4 {
    font-family: 'Arial', sans-serif;
    text-align: center;
    color: #000000;
    font-size: 20px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

input[type="number"], select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 20px;
    box-sizing: border-box;
}

button {
    background-color: #0073aa;
    color: white;
    padding: 10px;
    border: 2px solid #0073aa;
    border-radius: 5px;
    cursor: pointer;
    width: 80%;
    font-size: 20px;
    transition: background-color 0.3s;
    display: block;
    margin: 10px auto;
}

button:hover {
    background-color: #005b8c;
}

h2 {
    text-align: center;
    color: #333;
    font-weight: bold;
    font-size: 20px;
}

@media (max-width: 768px) {
    .contSSSR {
        padding: 20px;
    }
    .legendSSSR, .SSSR-calculator {
        padding: 15px;
        width: 95%;
    }
    .legendSSSR-item {
        font-size: 16px;
        padding: 7px;
        height: 40px;
    }
    button {
        font-size: 18px;
        width: 90%;
    }
}

@media (max-width: 480px) {
    .contSSSR {
        padding: 10px;
    }
    h4 {
        font-size: 16px;
    }
    .legendSSSR-item {
        font-size: 12px;
        padding: 5px;
        height: 30px;
    }
    button {
        font-size: 16px;
        width: 100%;
    }
    .legendSSSR, .SSSR-calculator {
        padding: 10px;
        width: 100%;
    }
}
