:root {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-soft: #eef4ff;
    --text: #172033;
    --muted: #657084;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32rem),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.main-nav {
    display: flex;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--muted);
}

.main-nav a {
    padding: 8px 10px;
    border-radius: 999px;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
}

.hero {
    width: min(var(--container), calc(100% - 32px));
    margin: 18px auto 0;
    padding: 54px 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 244, 255, 0.92));
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 36px;
    box-shadow: var(--shadow);
    text-align: center;
}

.hero__content {
    max-width: 820px;
    margin: 0 auto;
}
.hero {
    display: grid;
    gap: 28px;
    align-items: center;
    text-align: left;
    padding: 34px 26px;
}

.hero__content {
    max-width: 620px;
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(2.35rem, 7vw, 4.6rem);
}

.hero__lead {
    max-width: 560px;
}

.hero .search-box {
    margin-left: 0;
    margin-right: 0;
}

.quick-links {
    justify-content: flex-start;
}

.hero__visual {
    position: relative;
    min-height: 280px;
    display: grid;
    place-items: center;
}

.hero-blob {
    position: absolute;
    inset: 24px 0 0 0;
    border-radius: 999px;
    background:
        radial-gradient(circle at 25% 40%, rgba(78, 203, 139, 0.26), transparent 30%),
        radial-gradient(circle at 70% 45%, rgba(37, 99, 235, 0.16), transparent 36%),
        #eaf3fb;
}

.calc-illustration {
    position: relative;
    z-index: 2;
    width: 190px;
    padding: 16px;
    background: #172033;
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.25);
}

.calc-screen {
    margin-bottom: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #c9f5df, #dbeafe);
    border-radius: 9px;
    color: #334155;
    text-align: right;
    font-weight: 850;
    font-size: 1.25rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.calc-grid span {
    display: grid;
    place-items: center;
    min-height: 34px;
    background: rgba(255, 255, 255, 0.1);
    color: #dbeafe;
    border-radius: 8px;
    font-weight: 800;
}

.calc-grid .equals {
    background: #4ecb8b;
    color: #ffffff;
}

.float-icon {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    color: #2563eb;
    font-weight: 900;
    font-size: 1.35rem;
}

.float-icon--one {
    top: 18px;
    left: 12%;
    color: #4ecb8b;
}

.float-icon--two {
    left: 6%;
    bottom: 44px;
    color: #4ecb8b;
}

.float-icon--three {
    right: 7%;
    top: 56px;
}

@media (min-width: 860px) {
    .hero {
        grid-template-columns: 1.02fr 0.98fr;
    }
}

@media (max-width: 520px) {
    .hero {
        text-align: left;
        padding: 30px 16px;
    }

    .hero__visual {
        min-height: 230px;
    }

    .calc-illustration {
        width: 160px;
    }

    .float-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}
.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(2.35rem, 10vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(1.7rem, 6vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero__lead,
.section__header p,
.trust-panel p {
    color: var(--muted);
    font-size: 1.05rem;
}

.search-box {
    margin: 28px auto 0;
    padding: 7px;
    display: flex;
    gap: 8px;
    max-width: 680px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 15px 14px 15px 18px;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.search-box input::placeholder {
    color: #9aa5b5;
}

.search-box button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    background: var(--primary);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.quick-links {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.quick-links a {
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 650;
}

.quick-links a:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.25);
}

.section {
    width: min(var(--container), calc(100% - 32px));
    margin: 54px auto 0;
}

.section__header {
    max-width: 720px;
    margin-bottom: 20px;
}

.category-grid,
.calculator-grid {
    display: grid;
    gap: 14px;
}

.category-card,
.calculator-card {
    display: block;
    min-height: 138px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #e7edf5;
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.category-card:hover,
.calculator-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
}

.category-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    color: var(--primary);
    border-radius: 15px;
    font-size: 1.35rem;
    font-weight: 800;
}

.category-card__title,
.calculator-card__title {
    display: block;
    margin-bottom: 7px;
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.category-card__description,
.calculator-card__description {
    display: block;
    color: var(--muted);
    font-size: 0.96rem;
}

.calculator-card__category {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 9px;
    background: var(--surface-soft);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.trust-panel {
    display: grid;
    gap: 24px;
    padding: 26px;
    background: #172033;
    color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.trust-panel p {
    margin-bottom: 0;
    color: #cbd5e1;
}

.trust-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-list li {
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.site-footer {
    width: min(var(--container), calc(100% - 32px));
    margin: 54px auto 0;
    padding: 26px 0 34px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 520px) {
    .site-header {
        align-items: flex-start;
    }

    .main-nav {
        display: none;
    }

    .hero {
        width: min(100% - 20px, var(--container));
        margin-top: 6px;
        padding: 38px 16px;
        border-radius: 28px;
    }

    .search-box {
        border-radius: 22px;
        flex-direction: column;
    }

    .search-box button {
        min-height: 48px;
    }

    .section {
        width: min(100% - 20px, var(--container));
        margin-top: 42px;
    }

    .category-card,
    .calculator-card {
        min-height: auto;
    }
}

@media (min-width: 720px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calculator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-panel {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
        padding: 34px;
    }

    .site-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 980px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .calculator-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.calculator-grid {
    gap: 12px;
}

.calculator-card {
    position: relative;
    min-height: 118px;
    padding: 18px 42px 18px 18px;
}

.calculator-card::after {
    content: "→";
    position: absolute;
    right: 18px;
    bottom: 16px;
    color: #4ecb8b;
    font-size: 1.45rem;
    font-weight: 900;
}

.calculator-card__category {
    margin-bottom: 10px;
    background: transparent;
    padding: 0;
    color: #4ecb8b;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.calculator-card__title {
    font-size: 1.02rem;
    line-height: 1.15;
}

.calculator-card__description {
    max-width: 230px;
    font-size: 0.88rem;
    line-height: 1.45;
}
/* =========================
   CALCULATOR PAGE
========================= */

.calculator-hero {
    width: min(var(--container), calc(100% - 32px));
    margin: 18px auto 0;
}

.calculator-layout {
    width: min(var(--container), calc(100% - 32px));
    margin: 24px auto 0;
    display: grid;
    gap: 18px;
}

.calculator-panel,
.related-panel,
.content-section {
background: rgba(255,255,255,.68);
border: 1px solid rgba(226,232,240,.9);
box-shadow: 0 2px 10px rgba(15,23,42,.025);
backdrop-filter: blur(10px);
}

.calculator-panel {
    padding: 22px;
}

.field-group {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.field-group label {
    font-size: 0.94rem;
    font-weight: 700;
    color: #334155;
}

.field-group input,
.field-group select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 16px;
    background: rgba(248,250,252,.92);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-group input:focus,
.field-group select:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.result-box {
    margin-top: 10px;
    padding: 18px;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(78,203,139,.18);
    border-radius: 22px;
}

.result-box__label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.result-box strong {
    display: block;
    font-size: clamp(2rem, 8vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.result-stats {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.result-stat {
    padding: 14px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 16px;
}

.result-stat__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.result-stat__icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: rgba(78,203,139,.12);
    border-radius: 8px;
    color: #4ecb8b;
    font-size: 0.82rem;
    font-weight: 900;
    flex-shrink: 0;
}
.result-stat__label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.result-stat strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
}
@media (min-width: 720px) {
    .result-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


.share-button {
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    border: 0;
    border-radius: 16px;
    background: #172033;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 160ms ease;
}

.share-button:hover {
    opacity: 0.92;
}

.related-panel {
    padding: 22px;
}

.related-panel h2 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.related-panel a {
    display: block;
    padding: 14px 0;
    border-top: 1px solid #eef2f7;
    color: #334155;
    font-weight: 650;
}

.related-panel a:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.related-panel a:hover {
    color: var(--primary);
}

.content-section {
    width: min(var(--container), calc(100% - 32px));
    margin: 24px auto 0;
    padding: 28px;
}

.content-section h2 {
    margin-top: 36px;
    margin-bottom: 12px;
    font-size: 1.6rem;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    color: #475569;
    line-height: 1.75;
}

.faq {
    margin-top: 40px;
}

.faq details {
    padding: 18px 0;
    border-top: 1px solid #eef2f7;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq details p {
    margin-top: 12px;
    margin-bottom: 0;
}

@media (min-width: 980px) {
    .calculator-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }

    .related-panel {
        position: sticky;
        top: 24px;
    }
}
.related-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #eef2f7;
}

.related-link:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.related-link__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(78,203,139,.12);
    border-radius: 12px;
    color: #4ecb8b;
    font-weight: 900;
    flex-shrink: 0;
}

.related-link__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.related-link__content strong {
    font-size: 0.96rem;
}

.related-link__content small {
    color: var(--muted);
    font-size: 0.82rem;
}

.related-link__arrow {
    margin-left: auto;
    color: #94a3b8;
    font-weight: 900;
}
/* =========================
   CALCULATOR PAGE POLISH
========================= */

.calculator-hero {
    display: grid;
    gap: 18px;
    align-items: center;
    padding-top: 28px;
    padding-bottom: 18px;
}

.calculator-hero h1 {
    font-size: clamp(3rem, 8vw, 5.2rem);
    margin-bottom: 14px;
}

.calculator-hero .hero__lead {
    max-width: 560px;
}

.calculator-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.calculator-panel,
.related-panel,
.content-section {
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(220,227,237,.95);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(15,23,42,.045);
}

.calculator-panel {
    padding: 24px;
}

.field-group {
    margin-bottom: 16px;
}

.result-box {
    padding: 20px;
    background: linear-gradient(135deg, rgba(78,203,139,.09), rgba(255,255,255,.78));
    border: 1px solid rgba(78,203,139,.22);
}

.result-box > strong {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
}

.result-stats {
    margin-top: 18px;
    gap: 10px;
}

.result-stat {
    padding: 12px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(220,227,237,.9);
}

.share-button {
    margin-top: 16px;
}

.related-panel {
    padding: 22px;
}

.related-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.related-link {
    padding: 14px 0;
}

.related-link__icon {
    width: 40px;
    height: 40px;
}

.related-link__arrow {
    font-size: 1.2rem;
}

@media (min-width: 980px) {
    .calculator-layout {
        grid-template-columns: minmax(0, 760px) 340px;
        justify-content: start;
    }
}

@media (min-width: 1200px) {
    .calculator-layout {
        grid-template-columns: minmax(0, 800px) 360px;
    }
}
.calculator-hero__visual {
    display: none;
}

@media (min-width: 860px) {
    .calculator-hero {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .calculator-hero__visual {
        position: relative;
        min-height: 170px;
        display: grid;
        place-items: center;
    }

    .calculator-hero__visual::before {
        content: "";
        position: absolute;
        inset: 20px 0;
        border-radius: 999px;
        background:
            radial-gradient(circle at 30% 45%, rgba(78,203,139,.2), transparent 32%),
            radial-gradient(circle at 70% 45%, rgba(37,99,235,.12), transparent 38%),
            #eaf3fb;
    }

    .mini-card {
        position: absolute;
        z-index: 2;
        top: 34px;
        left: 54px;
        min-width: 180px;
        padding: 16px;
        background: #172033;
        color: #ffffff;
        border-radius: 18px;
        box-shadow: 0 18px 42px rgba(15,23,42,.18);
    }

    .mini-card span {
        display: block;
        margin-bottom: 8px;
        color: #cbd5e1;
        font-size: 0.78rem;
        font-weight: 700;
    }

    .mini-card strong {
        font-size: 1.55rem;
        letter-spacing: -0.04em;
    }

    .mini-chart {
        position: absolute;
        z-index: 2;
        right: 50px;
        bottom: 34px;
        width: 120px;
        height: 96px;
        padding: 16px;
        display: flex;
        align-items: end;
        gap: 10px;
        background: rgba(255,255,255,.82);
        border: 1px solid rgba(226,232,240,.95);
        border-radius: 20px;
        box-shadow: 0 14px 34px rgba(15,23,42,.08);
    }

    .mini-chart span {
        flex: 1;
        border-radius: 999px 999px 6px 6px;
        background: #4ecb8b;
    }

    .mini-chart span:nth-child(1) {
        height: 32%;
        opacity: .55;
    }

    .mini-chart span:nth-child(2) {
        height: 56%;
        opacity: .75;
    }

    .mini-chart span:nth-child(3) {
        height: 84%;
    }

    .mini-badge {
        position: absolute;
        z-index: 3;
        left: 28px;
        bottom: 38px;
        width: 58px;
        height: 58px;
        display: grid;
        place-items: center;
        background: #4ecb8b;
        color: #ffffff;
        border-radius: 999px;
        font-size: 1.35rem;
        font-weight: 900;
        box-shadow: 0 16px 38px rgba(78,203,139,.28);
    }
}
