
.calculator-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    margin-bottom: 20px;
    order: 1;
}
.about{
    order: 3;
}
.how-it-work{
    order: 4;
}
.faq{
    order: 5;
}
.friends{
    order: 2
}
.calculator-card.hidden {
    display: none;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1em;
}

.gender-buttons {
    display: flex;
    gap: 15px;
}

.gender-buttons button {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.gender-buttons button:hover {
    background: #e8e8e8;
}

.gender-buttons button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.value-display {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
    margin-left: 10px;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    margin-top: 10px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #667eea;
    cursor: grab;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

input[type="range"]::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
}

input[type="range"]::-moz-range-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #667eea;
    cursor: grab;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

input[type="range"]::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.advanced-toggle {
    width: 100%;
    padding: 15px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #555;
}

.advanced-toggle:hover {
    background: #e8e8e8;
}

.advanced-params {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.advanced-params.show {
    display: block;
}

.advanced-params .form-group label {
    font-size: 0.95em;
}

.advanced-params .form-group label .hint {
    font-weight: normal;
    color: #888;
    font-size: 0.85em;
}

.calculate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.calculate-btn:active {
    transform: translateY(0);
}

.results {
    display: none;
}

.results.show {
    display: block;
}

.result-main {
    background: white;
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-top: 6px solid;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.result-main .bmi-value {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 10px;
}

.result-main .bmi-status {
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.result-main .bmi-risk {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.result-main .bmi-description {
    color: #555;
    line-height: 1.8;
    font-size: 1em;
}

.result-block {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.result-block h3 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row .label {
    color: #666;
}

.result-row .value {
    font-weight: bold;
    color: #333;
}

.result-row .value.highlight {
    color: #667eea;
}

.result-row .value.warning {
    color: #ff8c42;
}

.info-box {
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.info-box.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.info-box.warning {
    background: #fff3e0;
    color: #e65100;
}

.info-box.info {
    background: #e3f2fd;
    color: #1565c0;
}

.info-box.danger {
    background: #ffebee;
    color: #c62828;
}

.new-calc-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 20px;
}

.new-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.new-calc-btn:active {
    transform: translateY(0);
}

.disclaimer {
    background: #fff8e1;
    border-left: 4px solid #ffa726;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.disclaimer strong {
    color: #f57c00;
}

/* How It Works Section */
.how-it-work {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 50px 40px;
    margin-top: 30px;
}

.how-header {
    text-align: center;
    margin-bottom: 40px;
}

.how-header h2 {
    color: #333;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.how-subtitle {
    color: #666;
    font-size: 1.1em;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.how-section {
    margin-bottom: 40px;
}

.how-section h3 {
    color: #667eea;
    font-size: 1.6em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.how-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.how-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.how-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.how-content h4 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.how-content p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.how-features {
    display: grid;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.feature-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.feature-text strong {
    color: #333;
    font-size: 1.1em;
}

.feature-text span {
    color: #666;
    font-size: 0.95em;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-card {
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.benefit-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95em;
}

.how-disclaimer {
    background: #fff8e1;
    border-left: 4px solid #ffa726;
    padding: 20px 25px;
    border-radius: 8px;
    margin-top: 30px;
    color: #555;
    line-height: 1.7;
}

.how-disclaimer strong {
    color: #f57c00;
}

/* Goal Block - Ярко выделенный блок цели */
.goal-block {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 6px solid #FF8C42;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.2);
}

.goal-block.goal-gain {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.goal-block.goal-perfect {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left-color: #50C878;
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.2);
}

.goal-icon {
    font-size: 3em;
    flex-shrink: 0;
}

.goal-content {
    flex: 1;
}

.goal-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.goal-value {
    font-size: 2em;
    font-weight: bold;
    color: #FF8C42;
    margin-bottom: 5px;
}

.goal-block.goal-gain .goal-value {
    color: #667eea;
}

.goal-block.goal-perfect .goal-value {
    font-size: 1.3em;
    color: #2e7d32;
}

.goal-description {
    color: #666;
    font-size: 0.95em;
}

/* Age Warning Block */
.age-warning {
    background: #fff3e0;
    border: 2px solid #FF8C42;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #e65100;
    font-weight: 600;
    font-size: 1em;
    text-align: center;
}

.age-warning.age-low {
    background: #e3f2fd;
    border-color: #667eea;
    color: #1565c0;
}

.age-warning.age-critical {
    background: #ffebee;
    border: 3px solid #c62828;
    color: #b71c1c;
    font-size: 0.95em;
    text-align: left;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .calculator-card {
        padding: 25px;
    }

    .header h1 {
        font-size: 2em;
    }

    .result-main .bmi-value {
        font-size: 3em;
    }

    .how-it-work {
        padding: 30px 20px;
    }

    .how-header h2 {
        font-size: 1.8em;
    }

    .how-item {
        flex-direction: column;
        gap: 15px;
    }

    .how-number {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .goal-block {
        flex-direction: column;
        text-align: center;
    }

    .goal-value {
        font-size: 1.8em;
    }
}