:root {

    --primary: #2563EB;

    --primary-hover: #1D4ED8;
    --bg-color: #F9FAFB;

    --card-white: #FFFFFF;
    --text-main: #111827;

    --text-muted: #6B7280;

    --border: #E5E7EB;

    --input-bg: #FFFFFF;


    --safety-green: #10B981;
    --safety-orange: #F59E0B;
    --safety-red: #EF4444;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}


.no-scroll {
    overflow: hidden;
}


.navbar {
    background: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}




.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);

    backdrop-filter: blur(8px);

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}


.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}


.modal-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;

    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;

}

header {
    background: white;
    border-bottom: 1px solid var(--border);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.logo-icon {
    height: 3.5em;
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}


.hero {
    text-align: center;
    padding: 5rem 1rem 10rem;

    background: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 0;

    position: relative;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);

    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}


.hero h1 {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
    line-height: 1.5;
}

.hero p {
    display: none;

}

.hero-about {
    background-image: url('../images/about-bg.png');
}


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

.section {
    padding-bottom: 4rem;
}


.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;

    border-left: 5px solid var(--primary);
    padding-left: 1rem;
    line-height: 1.2;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.75rem;
    color: var(--text-main);
    font-weight: 700;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-main);

    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 0;

    list-style: none;

}

.article-content li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.75rem;
}


.article-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 1rem;
    height: 1rem;
    background-size: contain;
    background-repeat: no-repeat;
}


.article-content ul:not(.list-warning) li::before {

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310B981' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}


.list-warning li::before {

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23F59E0B' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z'/%3E%3C/svg%3E");
    top: 0.25rem;

    width: 1.1rem;
    height: 1.1rem;
}


.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;

    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.stat-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.stat-pct {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
    color: var(--text-main);
    line-height: 1;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}


@media (max-width: 600px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        aspect-ratio: auto;
        padding: 2rem 1.5rem;
    }
}


.formula-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0 40px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.formula-header {
    background: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.formula-body {
    padding: 2.5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFFFFF;
    overflow-x: auto;
}


.formula-body .math-display {
    font-size: 1.5rem;

    margin-top: 0;
    padding: 0;
}

.formula-footer {
    background: #F9FAFB;

    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.formula-footer p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.formula-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.formula-footer li {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
}

.formula-footer li strong {
    min-width: 40px;
    margin-right: 10px;
    color: var(--primary);
}


.formula-block {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-main);
    overflow-x: auto;
}

.formula-block code {
    background: none;

    color: inherit;
    font-weight: 600;
}


.formula-block.accent {
    border-left-color: #7C3AED;

}


.tip-box {
    display: none;

}


.promo-banner {
    background: var(--primary);

    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);

    color: white;

    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.promo-content {
    flex: 1;
}

.promo-content p {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #FFFFFF;
}

.promo-btn {
    background: #FFFFFF;
    color: var(--primary);
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;

    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    background: #F8FAFC;
    color: var(--primary);

}


@media (max-width: 600px) {
    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .promo-btn {
        width: 100%;
        display: block;
    }
}


.calculator-card {
    display: block;
    max-width: 600px;
    margin: -130px auto 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    overflow: visible;
    position: relative;
    z-index: 10;
}

.card h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 600;
}


.inputs-section {
    padding: 2.5rem;
}

.input-row {
    margin-bottom: 1.5rem;
}


.input-row label,
label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}



select,
input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    background-color: var(--input-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}


.dual-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .dual-input-grid {
        grid-template-columns: 1fr;
    }
}


select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select:focus,
input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.joined-input {
    display: flex;
}

.joined-input input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
    flex: 2;
}

.joined-input select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    flex: 1;
    background-color: #F3F4F6;

}


.actions-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}


.calculate-btn {
    flex: 2;


    padding: 1rem 1.5rem;

    background-color: #2563EB;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.calculate-btn:hover {
    background-color: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}


.clear-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: #F3F4F6;
    color: var(--text-main);
    border-color: #D1D5DB;
}

.calculate-btn svg,
.clear-btn svg {
    flex-shrink: 0;
}

.hidden {
    display: none;
}


.results-section {
    background: #F8FAFC;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 20px;

    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.result-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #F3F4F6;
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-item span:first-child {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.result-item .val {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Inter', monospace;

    font-feature-settings: "tnum" on, "lnum" on;
}


.safety-widget {
    margin-top: 1.5rem;
}

.safety-container {
    height: 12px;
    background: #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1rem;
    position: relative;
}

.safety-bar {
    height: 100%;
    background: var(--safety-green);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
}

#safetyText {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}


footer {
    background: #1F2937;

    color: #F3F4F6;

    padding: 4rem 0 2rem;
    margin-top: 8rem;

}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;

    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.footer-col p {
    line-height: 1.6;
    color: #9CA3AF;

}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);

    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid #F3F4F6;
}


@media (max-width: 768px) {
    .calculator-card {
        margin: 0 auto;
        max-width: 100%;
        border-radius: 12px;
    }

    .inputs-section {
        padding: 1.5rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .nav-links {
        display: none;

    }

    .hamburger {
        display: block;
    }

    .calculate-btn {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
}




.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);


    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;

}


.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}


.modal-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;

    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;

    pointer-events: auto;

}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}


.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-main);
}


.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}


.math-box {
    background-color: #F8F9FA;
}


.detail-box {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 8px;


    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


.modal-overlay.active .detail-box {
    opacity: 1;
    transform: translateY(0);
}

.modal-overlay.active .summary-box {
    transition-delay: 0ms;
}

.modal-overlay.active .specs-box {
    transition-delay: 100ms;
}

.modal-overlay.active .math-box {
    transition-delay: 200ms;
}

.detail-box h3 {
    margin-top: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}


.big-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}




.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;


    opacity: 0;
    transform: scale(0.8);
}

.badge-visible {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;

}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.badge-success {
    background-color: #E6F4EA;
    color: #1E8E3E;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #D97706;
}

.badge-danger {
    background-color: #FEE2E2;
    color: #DC2626;
}


.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.spec-row span:last-child {
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
}

.unit {
    color: #777777;
    font-weight: 400;
    margin-left: 0.2rem;
    font-family: 'Inter', sans-serif;

}


.math-display {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;

    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.equation-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    flex-wrap: wrap;


    opacity: 0;
    transform: translateX(-10px);

    animation: none;
}


.formula-card .equation-row,
.formula-block .equation-row {
    opacity: 1 !important;

    transform: none !important;
    animation: none !important;
}


.modal-overlay.active .equation-row {
    animation: slideInEq 0.5s ease-out forwards;
}

.modal-overlay.active .equation-row:nth-child(1) {
    animation-delay: 200ms;

}

.modal-overlay.active .equation-row:nth-child(2) {
    animation-delay: 500ms;

}

.modal-overlay.active .equation-row:nth-child(3) {
    animation-delay: 700ms;


    position: relative;
}

.modal-overlay.active .equation-row:nth-child(3)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    bottom: 0;
    background: #FEF3C7;

    opacity: 0;
    border-radius: 4px;
    z-index: -1;
    animation: flashHighlight 1s ease-out 700ms forwards;
}

.modal-overlay.active .equation-row:nth-child(4) {
    animation-delay: 800ms;
}

@keyframes slideInEq {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flashHighlight {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.var {
    font-style: italic;
    min-width: 50px;

    text-align: right;
    font-weight: 500;
}

.operator {
    margin: 0 0.25rem;
    font-family: 'Inter', sans-serif;

    font-family: inherit;
}

.fraction {
    display: inline-flex;
    flex-direction: column;
    text-align: center;
    vertical-align: middle;
    margin: 0 0.25rem;
}

.numerator {
    border-bottom: 2px solid var(--text-main);

    padding-bottom: 2px;
    margin-bottom: 2px;
    display: inline-block;
}

.denominator {
    padding-top: 1px;
    display: inline-block;
}

.result-row {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);

}

.final-value {
    font-weight: bold;
    font-size: 1.35rem;
    color: var(--primary);
    font-family: 'Inter', sans-serif;

}


@media (max-width: 640px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}


.modern-table-container {
    width: 100%;
    overflow-x: auto;
    position: relative;

    background:
        linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
        linear-gradient(to left, white 30%, rgba(255, 255, 255, 0)) 100% 0,
        radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
        radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) 100% 0;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
}

table.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
}


.modern-table th {
    background-color: var(--card-white);
    color: #374151;

    font-weight: 700;

    text-transform: capitalize;

    letter-spacing: 0.01em;
    font-size: 0.85rem;

    padding: 18px 24px;

    text-align: right;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 20;
    white-space: nowrap;

    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.modern-table th:first-child {
    text-align: left;
}


.modern-table td {
    padding: 18px 24px;

    border-bottom: 1px solid #F3F4F6;

    text-align: right;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: background-color 0.15s ease;
    vertical-align: middle;
}

.modern-table td:first-child {
    text-align: left;
    font-weight: 600;

    color: var(--primary);
}


.modern-table td:nth-child(2),
.modern-table td:nth-child(3),
.modern-table td:nth-child(4) {
    font-family: 'Roboto Mono', 'SF Mono', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    color: #4B5563;

}


.modern-table tr:hover td {
    background-color: #F9FAFB;

}


.modern-table tr.highlight-row td {
    background-color: #EFF6FF;

    color: #1E40AF;

}

.modern-table tr.highlight-row:hover td {
    background-color: #DBEAFE;

}


.calculator-card.allow-sticky {
    overflow: visible;

    border: 1px solid var(--border);
    border-radius: 12px;


}


@media (max-width: 600px) {

    .modern-table th,
    .modern-table td {
        padding: 14px 16px;
    }
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.search-wrapper {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-wrapper input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;

    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    transition: all 0.2s;
    background: white;
}

.search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

@media (max-width: 600px) {
    .filter-bar {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .search-wrapper {
        max-width: 100%;
    }

    .filter-tabs {
        justify-content: center;
    }

    .filter-tab {
        flex: 1;
        text-align: center;
        white-space: nowrap;
        font-size: 0.8rem;
    }
}


.about-section {
    max-width: 900px;
    margin: 0 auto;
}

.about-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-main);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    background-color: #EFF6FF;

    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--text-main);

    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.disclaimer-box {
    background: #F9FAFB;

    border: 1px solid var(--border);
    border-left: 4px solid var(--text-muted);

    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-top: 4rem;
}

.disclaimer-box::before {
    display: none;

}

.disclaimer-box h2 {
    color: var(--text-main);
    font-size: 1.1rem;

    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.disclaimer-box h2 svg {
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

.disclaimer-box p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}



.faq-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.faq-title {
    text-align: center;
    font-size: 1.8rem;
    color: #333;

    margin-bottom: 2rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

.faq-item {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #4a6cf7;

}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #4a6cf7;

}


.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}


.faq-content strong {
    color: #2d3748;
}