.number-tool {
    max-width: 900px;
    margin: 0 auto;
}

.number-tool__breadcrumb {
    margin-bottom: 18px;
    color: #707070;
    font-size: .92rem;
}

.number-tool__breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.number-tool__breadcrumb a,
.language-switch a {
    color: #034459;
    font-weight: 650;
    text-decoration: none;
}

.number-tool__breadcrumb a:hover,
.language-switch a:hover {
    text-decoration: underline;
}

.language-switch {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
    font-size: .92rem;
}

.number-tool__hero,
.number-answer,
.number-section {
    border: 1px solid #e2e7ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(3 68 89 / 7%);
}

.number-tool__hero {
    padding: 34px;
    text-align: center;
}

.number-tool__hero h1 {
    margin: 0 0 10px;
}

.number-tool__lead {
    max-width: 680px;
    margin: 0 auto 24px;
    color: #59646a;
}

.number-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto;
}

.number-search label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.number-search input {
    min-width: 0;
    padding: 14px 16px;
    border: 2px solid #cfd8dc;
    border-radius: 10px;
    font: inherit;
    font-size: 1.05rem;
}

.number-search input:focus {
    border-color: #034459;
    outline: 3px solid rgb(3 68 89 / 12%);
}

.number-search button,
.number-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border: 0;
    border-radius: 10px;
    background: #034459;
    color: #fff;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.number-search button:hover,
.number-nav a:hover {
    background: #022f3d;
}

.number-search__error {
    max-width: 620px;
    margin: 14px auto 0;
    padding: 10px 13px;
    border-radius: 8px;
    background: #fff2f2;
    color: #8a1c1c;
    font-weight: 650;
}

.number-answer {
    margin-top: 22px;
    overflow: hidden;
}

.number-answer__number {
    padding: 22px;
    background: #034459;
    color: #fff;
    font-size: clamp(2.3rem, 8vw, 4.5rem);
    font-weight: 850;
    line-height: 1;
    text-align: center;
}

.number-answer__body {
    padding: 28px;
    text-align: center;
}

.number-answer__label {
    display: block;
    margin-bottom: 8px;
    color: #647178;
    font-size: .9rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.number-answer__words {
    margin: 0;
    color: #1e2b30;
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    line-height: 1.35;
}

.number-answer__search {
    max-width: 650px;
    margin: 24px auto 0;
    padding-top: 22px;
    border-top: 1px solid #e4eaec;
}

.number-answer__search h2 {
    margin: 0 0 12px;
    color: #26373d;
    font-size: 1.05rem;
}

.number-section {
    margin-top: 22px;
    padding: 28px;
}

.number-section h2 {
    margin: 0 0 12px;
    color: #034459;
}

.number-section h3 {
    margin-top: 24px;
    color: #26373d;
}

.number-pattern {
    display: inline-flex;
    margin: 0 0 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #eaf4f7;
    color: #034459;
    font-size: .86rem;
    font-weight: 750;
}

.number-equation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
    font-size: 1.08rem;
    font-weight: 750;
}

.number-equation a,
.example-card {
    color: #034459;
    text-decoration: none;
}

.number-equation a:hover,
.example-card:hover {
    text-decoration: underline;
}

.number-table-wrap {
    overflow-x: auto;
}

.number-table {
    width: 100%;
    border-collapse: collapse;
}

.number-table th,
.number-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e5eaed;
    text-align: left;
}

.number-table th {
    background: #f1f6f7;
    color: #26373d;
    font-size: .9rem;
}

.number-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.number-insight {
    padding: 18px;
    border: 1px solid #dce5e8;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfc 100%);
}

.number-insight h3 {
    margin: 0 0 7px;
    color: #034459;
    font-size: 1rem;
}

.number-insight p {
    margin: 0;
    color: #48575d;
}

.number-facts__title {
    margin-top: 30px !important;
}

.number-facts {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.number-facts li {
    position: relative;
    padding: 11px 12px 11px 36px;
    border-bottom: 1px solid #e7ecee;
}

.number-facts li::before {
    position: absolute;
    left: 12px;
    color: #087493;
    content: "✓";
    font-weight: 800;
}

.number-facts li:last-child {
    border-bottom: 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.example-card {
    display: block;
    padding: 16px;
    border: 1px solid #dce4e7;
    border-radius: 10px;
    background: #f8fbfc;
}

.example-card strong,
.example-card span {
    display: block;
}

.example-card span {
    margin-top: 5px;
    color: #5f6b70;
    font-size: .9rem;
}

.number-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.number-section > .number-nav:last-child {
    margin-bottom: 0;
}

.number-nav__disabled {
    visibility: hidden;
}

@media (max-width: 640px) {
    .number-tool__hero,
    .number-section {
        padding: 22px;
    }

    .number-search {
        grid-template-columns: 1fr;
    }

    .number-search button {
        width: 100%;
    }

    .number-insights {
        grid-template-columns: 1fr;
    }

    .number-table th,
    .number-table td {
        padding: 9px 8px;
    }
}
