:root {
    --fhw-red: #F70303;
    --fhw-dark: #373646;
    --fhw-light: #f8f8fa;
    --fhw-grey: #6c6c7c;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--fhw-dark);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.form-control,
.form-control-lg,
.form-select,
input,
select,
textarea,
.form-check-input,
.form-check-label {
    font-size: 16px;
}

main {
    flex: 1;
}

.fhw-nav {
    background: var(--fhw-dark);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.fhw-logo {
    height: 40px;
    width: auto;
}

.fhw-phone {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.fhw-phone:hover,
.fhw-phone:focus {
    color: var(--fhw-red);
    text-decoration: none;
}

.fhw-hero {
    background: var(--fhw-dark);
    color: #fff;
    padding: 5rem 0 4rem;
}

.fhw-results-hero {
    background: var(--fhw-dark);
    color: #fff;
    padding: 4rem 0 3rem;
}

.fhw-hero-title {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.fhw-hero-lead {
    color: #d1d1d9;
    font-size: 1.15rem;
    line-height: 1.6;
}

.fhw-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(55, 54, 70, 0.1);
    border: 1px solid rgba(55, 54, 70, 0.08);
}

.fhw-card-title {
    color: var(--fhw-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.btn-fhw {
    background: var(--fhw-red);
    border-color: var(--fhw-red);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
}

.btn-fhw:hover,
.btn-fhw:focus,
.btn-fhw:active {
    background: #d90202;
    border-color: #d90202;
    color: #fff;
}

.form-control:focus {
    border-color: var(--fhw-red);
    box-shadow: 0 0 0 0.2rem rgba(247, 3, 3, 0.15);
}

.form-check-input:checked {
    background-color: var(--fhw-red);
    border-color: var(--fhw-red);
}

.fhw-features {
    background: var(--fhw-light);
    padding: 4rem 0;
}

.fhw-feature {
    padding: 1.5rem;
}

.fhw-feature h3 {
    font-weight: 700;
    color: var(--fhw-dark);
    margin: 1rem 0 0.5rem;
}

.fhw-feature p {
    color: var(--fhw-grey);
    margin-bottom: 0;
}

.fhw-icon {
    font-size: 2rem;
    line-height: 1;
}

.fhw-footer {
    background: var(--fhw-dark);
    color: #9fa0ae;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.fhw-score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 8px solid var(--fhw-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--fhw-dark);
    background: #fff;
    box-shadow: 0 4px 20px rgba(55, 54, 70, 0.1);
}

.fhw-score-value {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.fhw-score-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fhw-grey);
}

.fhw-stat {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fhw-dark);
}

.fhw-stat-critical { color: #dc3545; }
.fhw-stat-warning { color: #fd7e14; }
.fhw-stat-info { color: #0dcaf0; }
.fhw-stat-success { color: #198754; }

.fhw-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--fhw-grey);
    letter-spacing: 0.05em;
}

.fhw-category-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(55, 54, 70, 0.08);
    overflow: hidden;
    border: 1px solid rgba(55, 54, 70, 0.06);
}

.fhw-category-header {
    background: var(--fhw-dark);
    color: #fff;
    padding: 1rem 1.5rem;
}

.fhw-category-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fhw-issue {
    padding: 1.25rem 1.5rem;
    border-left: 4px solid transparent;
}

.fhw-issue-critical { border-left-color: #dc3545; background: #fff5f5; }
.fhw-issue-warning { border-left-color: #fd7e14; background: #fffaf3; }
.fhw-issue-info { border-left-color: #0dcaf0; background: #f4fcff; }
.fhw-issue-success { border-left-color: #198754; background: #f4fff9; }

.fhw-recommendation {
    display: block;
    margin-top: 0.5rem;
    color: var(--fhw-grey);
}

.badge {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.alert-danger {
    background: #fff5f5;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-warning {
    background: #fffaf3;
    border-color: #ffecb5;
    color: #664d03;
}

@media (max-width: 768px) {
    .fhw-hero-title {
        font-size: 1.8rem;
    }
    .fhw-score-circle {
        width: 130px;
        height: 130px;
    }
    .fhw-score-value {
        font-size: 2.8rem;
    }
}

.fhw-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(55, 54, 70, 0.96);
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.fhw-progress-overlay.active {
    display: flex;
}

.fhw-progress-card {
    background: var(--fhw-dark);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fhw-progress-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--fhw-red);
    border-radius: 50%;
    animation: fhw-spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes fhw-spin {
    to { transform: rotate(360deg); }
}

.fhw-progress-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.fhw-progress-status {
    font-size: 1.1rem;
    color: #d1d1d9;
    min-height: 1.7rem;
    margin-bottom: 1.5rem;
}

.fhw-progress-bar-bg {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.fhw-progress-bar {
    background: var(--fhw-red);
    height: 100%;
    border-radius: 999px;
    width: 0%;
    transition: width 0.2s linear;
}

.fhw-progress-percent {
    font-size: 0.95rem;
    color: #9fa0ae;
    margin-bottom: 0;
}
