@keyframes hb-sp-drift {
    from {
        transform: translateY(-8px);
    }
    to {
        transform: translateY(10px);
    }
}

@keyframes hb-sp-flow {
    to {
        stroke-dashoffset: -161;
    }
}

@keyframes hb-sp-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(180, 35, 24, 0);
    }
    40% {
        box-shadow: 0 0 0 8px rgba(180, 35, 24, 0.28);
    }
}

.hb.hb-news .hb-hero,
.hb.hb-blog .hb-hero,
.hb.hb-tools .hb-hero,
.hb.hb-calc .hb-hero {
    padding-bottom: clamp(72px, 9vw, 120px);
}

.hb.hb-news .hb-news-trace {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 220px;
    opacity: 0.45;
    pointer-events: none;
}

.hb.hb-news .hb-news-grid,
.hb.hb-blog .hb-blog-grid,
.hb.hb-tools .hb-tools-grid,
.hb.hb-calc .hb-calc-hero,
.hb.hb-error .hb-err-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.hb.hb-blog .hb-blog-list,
.hb.hb-tools .hb-tools-list {
    padding-top: clamp(56px, 7vw, 96px);
}

.hb.hb-news .hb-news-card {
    max-width: 540px;
    margin-top: 34px;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 32px;
    border: 1px solid #e4def7;
    background: #fff;
    box-shadow: var(--hb-card-shadow);
}

.hb.hb-news .hb-news-label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--hb-ink);
}

.hb.hb-news .hb-news-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 2px solid #d4cdf2;
    border-radius: 999px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hb.hb-news .hb-news-row:focus-within {
    border-color: var(--hb-violet);
    outline: 3px solid var(--hb-violet);
    outline-offset: 3px;
}

.hb.hb-news .hb-news-row input[type='email'] {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hb-ink);
    outline: none;
}

.hb.hb-news .hb-news-row input[type='email']::placeholder {
    color: #6b6490;
    opacity: 1;
}

.hb.hb-news .hb-news-row .hb-btn {
    flex: none;
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.hb.hb-news .hb-news-row .hb-btn:disabled {
    opacity: 0.7;
    cursor: progress;
    transform: none;
}

.hb.hb-news .hb-news-row-error,
.hb.hb-news .hb-news-row-error:focus-within {
    border-color: #b42318;
}

.hb.hb-news .hb-news-pulse {
    animation: hb-sp-pulse 0.9s ease 1;
}

.hb.hb-news .hb-news-error {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #b42318;
}

.hb.hb-news .hb-news-error[hidden] {
    display: none;
}

.hb.hb-news .hb-news-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.hb.hb-news .newsletter-message {
    margin-top: 14px;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.hb.hb-news .newsletter-message:empty {
    display: none;
}

.hb.hb-news .newsletter-message.success {
    background: #e3f5ea;
    color: #0b5d2a;
}

.hb.hb-news .newsletter-message.error {
    background: #fef3f2;
    color: #b42318;
}

.hb.hb-news .hb-news-fine {
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hb-soft);
}

.hb.hb-news .hb-news-fine a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0;
    font-weight: 800;
    color: var(--hb-ink);
    text-decoration: underline;
    text-decoration-color: var(--hb-violet);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.hb.hb-news .hb-news-stage {
    --w: clamp(118px, 17vw, 200px);
    position: relative;
    width: 100%;
    height: calc(var(--w) * 2.17 + 90px);
}

.hb.hb-news .hb-news-item {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--w);
    margin-left: calc(var(--w) / -2);
}

.hb.hb-news .hb-news-item-a {
    z-index: 1;
}

.hb.hb-news .hb-news-item-b {
    z-index: 2;
}

.hb.hb-news .hb-news-item-c {
    z-index: 3;
}

.hb.hb-news .hb-news-tilt {
    transform: translate(calc(var(--w) * var(--dx)), var(--dy)) rotate(var(--r));
    transform-origin: 50% 100%;
}

.hb.hb-news .hb-news-drift {
    animation: hb-sp-drift var(--t, 7s) ease-in-out var(--o, 0s) infinite alternate;
}

.hb.hb-news .hb-news-link {
    display: block;
    margin-top: 0;
    border-radius: 22px;
}

.hb.hb-news .hb-news-link:focus-visible {
    outline: 3px solid var(--hb-violet);
    outline-offset: 4px;
}

.hb.hb-news .hb-news-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 34px 50px -24px rgba(22, 19, 49, 0.5), 0 8px 18px -8px rgba(22, 19, 49, 0.25);
}

.hb.hb-news .hb-news-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 32px;
    margin-bottom: 40px;
}

.hb.hb-news .hb-news-issues {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hb.hb-news .hb-news-issue {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    min-height: 190px;
    margin-top: 0;
    padding: clamp(24px, 3vw, 32px);
    border-radius: 28px;
    border: 1px solid #e4def7;
    background: #fff;
    box-shadow: var(--hb-card-shadow);
    color: var(--hb-ink);
    transition: transform 0.4s var(--hb-spring), border-color 0.2s ease;
}

.hb.hb-news .hb-news-issue:hover {
    transform: translateY(-5px);
    border-color: var(--hb-violet);
}

.hb.hb-news .hb-news-issue time {
    align-self: flex-start;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--hb-lav);
    color: #4d0fb3;
    font-size: 0.95rem;
    font-weight: 800;
}

.hb.hb-news .hb-news-issue-t {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.hb.hb-news .hb-news-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: clamp(40px, 6vw, 72px) 24px;
    border-radius: 36px;
    background: var(--hb-lav);
    text-align: center;
}

.hb.hb-news .hb-news-empty-t {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hb.hb-news .hb-news-dialog {
    width: min(92vw, 460px);
    margin: auto;
    padding: 32px;
    border: 0;
    border-radius: 32px;
    background: #fff;
    color: var(--hb-ink);
    box-shadow: 0 40px 80px -30px rgba(15, 12, 41, 0.6);
}

.hb.hb-news .hb-news-dialog::backdrop {
    background: rgba(15, 12, 41, 0.62);
}

.hb.hb-news .hb-news-dialog h2 {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hb.hb-news .hb-news-dialog p {
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--hb-soft);
}

.hb.hb-news .hb-news-dialog .hb-news-dialog-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 20px 0 24px;
    padding: 16px 20px;
    border-radius: 20px;
    background: var(--hb-lav);
    color: var(--hb-ink);
}

.hb.hb-news .hb-news-dialog-row b {
    font-weight: 800;
}

.hb.hb-news .hb-news-dialog .hb-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.hb.hb-blog .hb-blog-art {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 340px;
    margin: 0 auto;
}

.hb.hb-blog .hb-blog-sheet {
    position: absolute;
    width: 230px;
    height: 290px;
    border-radius: 30px;
    border: 1px solid #e4def7;
    background: #fff;
    box-shadow: var(--hb-card-shadow);
}

.hb.hb-blog .hb-blog-sheet-a {
    left: 0;
    top: 34px;
    transform: rotate(-9deg);
}

.hb.hb-blog .hb-blog-sheet-b {
    right: 0;
    top: 44px;
    background: var(--hb-gold);
    border-color: var(--hb-gold);
    transform: rotate(8deg);
}

.hb.hb-blog .hb-blog-sheet-c {
    left: 50%;
    top: 0;
    z-index: 2;
    margin-left: -115px;
    transform: rotate(-1.5deg);
}

.hb.hb-blog .hb-blog-drift {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 28px 26px;
    animation: hb-sp-drift var(--t, 7s) ease-in-out var(--o, 0s) infinite alternate;
}

.hb.hb-blog .hb-blog-chip {
    display: block;
    width: 78px;
    height: 28px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--hb-lav);
}

.hb.hb-blog .hb-blog-sheet-b .hb-blog-chip {
    background: #fff;
}

.hb.hb-blog .hb-blog-line {
    display: block;
    width: 100%;
    height: 14px;
    border-radius: 7px;
    background: #ddd6f6;
}

.hb.hb-blog .hb-blog-sheet-b .hb-blog-line {
    background: rgba(22, 19, 49, 0.16);
}

.hb.hb-blog .hb-blog-line-l {
    height: 24px;
    width: 88%;
    background: var(--hb-ink);
}

.hb.hb-blog .hb-blog-sheet-b .hb-blog-line-l {
    background: var(--hb-ink);
}

.hb.hb-blog .hb-blog-line-s {
    width: 58%;
}

.hb.hb-blog .journal-tools {
    display: none;
}

.journal-enhanced .hb.hb-blog .journal-tools {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    width: auto;
    margin: 0 0 28px;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 36px;
    background: var(--hb-lav);
}

.hb.hb-blog .journal-search span {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--hb-ink);
}

.hb.hb-blog .journal-search input {
    width: 100%;
    min-height: 60px;
    padding: 0 24px;
    border: 2px solid #d4cdf2;
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hb-ink);
}

.hb.hb-blog .journal-search input::placeholder {
    color: #6b6490;
    opacity: 1;
}

.hb.hb-blog .journal-search input:focus {
    border-color: var(--hb-violet);
    outline: 3px solid var(--hb-violet);
    outline-offset: 3px;
}

.hb.hb-blog .journal-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hb.hb-blog .journal-topic {
    min-height: 46px;
    padding: 0 20px;
    border: 2px solid #d4cdf2;
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    color: var(--hb-ink);
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s var(--hb-spring), background 0.2s ease;
}

.hb.hb-blog .journal-topic:hover {
    transform: translateY(-2px);
    border-color: var(--hb-violet);
    background: #fff;
    color: var(--hb-ink);
}

.hb.hb-blog .journal-topic.is-active,
.hb.hb-blog .journal-topic.is-active:hover {
    border-color: var(--hb-ink);
    background: var(--hb-ink);
    color: #fff;
}

.hb.hb-blog .journal-status {
    display: none;
    width: auto;
    margin: 0 0 20px;
    padding: 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hb-soft);
}

.journal-enhanced .hb.hb-blog .journal-status {
    display: block;
}

.hb.hb-blog .hb-blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

.hb.hb-blog .blog-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-height: 230px;
    margin-top: 0;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid #e4def7;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--hb-card-shadow);
    color: var(--hb-ink);
    transition: transform 0.4s var(--hb-spring), border-color 0.2s ease;
}

.hb.hb-blog .blog-card[hidden] {
    display: none;
}

.hb.hb-blog .blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--hb-violet);
    box-shadow: var(--hb-card-shadow);
}

.hb.hb-blog .blog-card .hb-blog-title {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--hb-ink);
}

.hb.hb-blog .blog-card .hb-blog-date {
    margin-top: auto;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hb-soft);
}

.hb.hb-blog .journal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: auto;
    margin: 0;
    padding: clamp(40px, 6vw, 72px) 24px;
    border-radius: 36px;
    background: var(--hb-lav);
    text-align: center;
}

.hb.hb-blog .journal-empty[hidden] {
    display: none;
}

.hb.hb-blog .journal-empty h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--hb-ink);
}

.hb.hb-blog .journal-empty button {
    min-height: 56px;
    padding: 0 32px;
    border: 0;
    border-radius: 999px;
    background: var(--hb-gold);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hb-ink);
    cursor: pointer;
    box-shadow: 0 10px 24px -8px rgba(255, 200, 87, 0.9), 0 2px 0 rgba(22, 19, 49, 0.12);
}

.hb.hb-blog .hb-blog-none {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: clamp(40px, 6vw, 72px) 24px;
    border-radius: 36px;
    background: var(--hb-lav);
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hb:is(.hb-tools, .hb-calc) .hb-calcart {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 330px;
    margin: 0 auto;
}

.hb:is(.hb-tools, .hb-calc) .hb-calcart-back {
    position: absolute;
    left: 50%;
    top: 14px;
    width: 250px;
    height: 290px;
    margin-left: -90px;
    border-radius: 32px;
    background: var(--hb-gold);
    transform: rotate(9deg);
    box-shadow: var(--hb-card-shadow);
}

.hb:is(.hb-tools, .hb-calc) .hb-calcart-front {
    position: absolute;
    left: 50%;
    top: 0;
    width: 260px;
    height: 300px;
    margin-left: -150px;
    border-radius: 32px;
    border: 1px solid #e4def7;
    background: #fff;
    box-shadow: var(--hb-card-shadow);
    transform: rotate(-6deg);
}

.hb:is(.hb-tools, .hb-calc) .hb-calcart-drift {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 28px 24px;
    animation: hb-sp-drift 7s ease-in-out infinite alternate;
}

.hb:is(.hb-tools, .hb-calc) .hb-calcart-field {
    display: block;
    height: 54px;
    border-radius: 18px;
    background: var(--hb-lav);
}

.hb:is(.hb-tools, .hb-calc) .hb-calcart-field-s {
    width: 70%;
}

.hb:is(.hb-tools, .hb-calc) .hb-calcart-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding: 20px;
    border-radius: 22px;
    background: var(--hb-gold);
}

.hb:is(.hb-tools, .hb-calc) .hb-calcart-result i {
    display: block;
    width: 42%;
    height: 10px;
    border-radius: 5px;
    background: rgba(22, 19, 49, 0.3);
}

.hb:is(.hb-tools, .hb-calc) .hb-calcart-result b {
    display: block;
    width: 78%;
    height: 30px;
    border-radius: 9px;
    background: var(--hb-ink);
}

.hb.hb-tools .hb-tools-cards {
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hb.hb-tools .hb-tools-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    min-height: 300px;
    margin-top: 0;
    padding: clamp(28px, 4vw, 44px);
    border-radius: 36px;
    border: 1px solid #e4def7;
    background: #fff;
    box-shadow: var(--hb-card-shadow);
    color: var(--hb-ink);
    transition: transform 0.4s var(--hb-spring), border-color 0.2s ease;
}

.hb.hb-tools .hb-tools-card:hover {
    transform: translateY(-6px);
    border-color: var(--hb-violet);
}

.hb.hb-tools .hb-tools-name {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--hb-ink);
}

.hb.hb-tools .hb-tools-line {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--hb-soft);
}

.hb.hb-tools .hb-tools-open {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-top: auto;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--hb-gold);
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 10px 24px -8px rgba(255, 200, 87, 0.9), 0 2px 0 rgba(22, 19, 49, 0.12);
}

.hb.hb-calc .hb-calc-copy .hb-h1 {
    font-size: clamp(2.4rem, 4.6vw, 4.2rem);
}

.hb.hb-calc .hb-calc-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0;
    padding: 0 18px;
    background: #fff;
}

.hb.hb-calc .hb-calc-back:hover {
    text-decoration: underline;
    text-decoration-color: var(--hb-violet);
    text-underline-offset: 4px;
}

.hb.hb-calc .hb-calc-tool {
    padding-top: clamp(56px, 7vw, 96px);
}

.hb.hb-calc .hb-calc-intro {
    max-width: 64ch;
    margin-bottom: 36px;
    font-size: clamp(1.15rem, 1.8vw, 1.3rem);
    font-weight: 600;
    line-height: 1.55;
    color: var(--hb-soft);
}

.hb.hb-calc .hb-c-grid {
    display: grid;
    gap: 28px;
    align-items: start;
}

.hb.hb-calc .hb-c-form-h {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--hb-ink);
}

.hb.hb-calc .hb-c-note {
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--hb-soft);
}

.hb.hb-calc .hb-c-field {
    margin-top: 28px;
}

.hb.hb-calc .hb-c-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--hb-ink);
}

.hb.hb-calc .hb-c-input {
    position: relative;
}

.hb.hb-calc .hb-c-input input,
.hb.hb-calc .hb-c-input select {
    display: block;
    width: 100%;
    min-height: 66px;
    padding: 0 20px;
    border: 2px solid #d4cdf2;
    border-radius: 20px;
    background: #fff;
    font: inherit;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hb-ink);
    transition: border-color 0.2s ease;
}

.hb.hb-calc .hb-c-input input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.hb.hb-calc .hb-c-input input::-webkit-outer-spin-button,
.hb.hb-calc .hb-c-input input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.hb.hb-calc .hb-c-input select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 56px;
    font-size: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%237117f2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    cursor: pointer;
}

.hb.hb-calc .hb-c-input .hb-c-has-prefix {
    padding-left: 46px;
}

.hb.hb-calc .hb-c-input .hb-c-has-suffix {
    padding-right: 52px;
}

.hb.hb-calc .hb-c-prefix,
.hb.hb-calc .hb-c-suffix {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hb-soft);
    pointer-events: none;
}

.hb.hb-calc .hb-c-prefix {
    left: 20px;
}

.hb.hb-calc .hb-c-suffix {
    right: 20px;
}

.hb.hb-calc .hb-c-input input:focus,
.hb.hb-calc .hb-c-input select:focus {
    border-color: var(--hb-violet);
    outline: 3px solid var(--hb-violet);
    outline-offset: 2px;
}

.hb.hb-calc .hb-c-hint {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--hb-soft);
}

.hb.hb-calc .hb-c-error {
    display: none;
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #b42318;
}

.hb.hb-calc .hb-c-field-error .hb-c-error {
    display: block;
}

.hb.hb-calc .hb-c-field-error .hb-c-input input,
.hb.hb-calc .hb-c-field-error .hb-c-input select {
    border-color: #b42318;
}

.hb.hb-calc .hb-c-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 28px;
    margin-top: 32px;
}

.hb.hb-calc .hb-c-actions .hb-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.hb.hb-calc .hb-c-reset {
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.hb.hb-calc .hb-c-result {
    padding: clamp(28px, 4vw, 48px);
    border-radius: 36px;
    background: var(--hb-gold);
    color: var(--hb-ink);
    box-shadow: 0 40px 70px -40px rgba(180, 120, 0, 0.55);
}

.hb.hb-calc .hb-c-eyebrow {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}

.hb.hb-calc .hb-c-figure {
    margin-top: 18px;
    font-size: clamp(2.8rem, 5.6vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.hb.hb-calc .hb-c-sub {
    margin-top: 14px;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
}

.hb.hb-calc .hb-c-rows {
    margin-top: 26px;
}

.hb.hb-calc .hb-c-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(22, 19, 49, 0.2);
}

.hb.hb-calc .hb-c-row dt {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.hb.hb-calc .hb-c-row dd {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.hb.hb-calc .hb-c-row-keep {
    margin: 6px 0;
    padding: 14px 18px;
    border: 0;
    border-radius: 20px;
    background: #fff;
}

.hb.hb-calc .hb-c-row-keep dt {
    font-weight: 800;
}

.hb.hb-calc .hb-c-payback {
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
}

.hb.hb-calc .hb-c-payback:empty {
    display: none;
}

.hb.hb-calc .hb-c-cta {
    margin-top: 28px;
}

.hb.hb-calc .hb-c-cta p {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.hb.hb-calc .hb-c-result .hb-btn:focus-visible,
.hb.hb-calc .hb-close .hb-btn:focus-visible,
.hb.hb-calc .hb-contact a:focus-visible {
    outline: 3px solid var(--hb-ink);
    outline-offset: 4px;
}

.hb.hb-calc .hb-calc-group {
    margin-bottom: clamp(32px, 5vw, 56px);
    text-align: center;
}

.hb.hb-calc .hb-folds {
    display: grid;
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
}

.hb.hb-calc .hb-fold {
    border-radius: 32px;
    border: 1px solid #ddd4f7;
    background: #fff;
}

.hb.hb-calc .hb-calc-faq .hb-fold {
    background: var(--hb-lav);
}

.hb.hb-calc .hb-fold summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    padding: 16px 20px 16px 28px;
    border-radius: 32px;
    list-style: none;
    cursor: pointer;
}

.hb.hb-calc .hb-fold summary::-webkit-details-marker {
    display: none;
}

.hb.hb-calc .hb-fold summary h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--hb-ink);
}

.hb.hb-calc .hb-fold summary::after {
    content: '';
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background:
        linear-gradient(var(--hb-ink), var(--hb-ink)) center / 16px 3px no-repeat,
        linear-gradient(var(--hb-ink), var(--hb-ink)) center / 3px 16px no-repeat,
        var(--hb-gold);
    transition: background-size 0.3s ease, transform 0.3s ease;
}

.hb.hb-calc .hb-fold[open] summary::after {
    background:
        linear-gradient(var(--hb-ink), var(--hb-ink)) center / 16px 3px no-repeat,
        linear-gradient(var(--hb-ink), var(--hb-ink)) center / 3px 0 no-repeat,
        var(--hb-gold);
}

.hb.hb-calc .hb-fold summary:focus-visible {
    outline: 3px solid var(--hb-violet);
    outline-offset: 3px;
}

.hb.hb-calc .hb-fold-body {
    max-width: none;
    padding: 4px 28px 32px;
}

.hb.hb-calc .hb-fold-body > * {
    max-width: 64ch;
}

.hb.hb-calc .hb-fold-body > .hb-c-tablewrap {
    max-width: none;
}

.hb.hb-calc .hb-c-formula {
    padding: 18px 22px;
    border-radius: 20px;
    background: var(--hb-lav);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.55;
}

.hb.hb-calc .hb-c-tablewrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid #e4def7;
}

.hb.hb-calc .hb-c-tablewrap:focus-visible {
    outline: 3px solid var(--hb-violet);
    outline-offset: 3px;
}

.hb.hb-calc .hb-c-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
}

.hb.hb-calc .hb-c-table caption {
    padding: 14px 18px;
    caption-side: top;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: var(--hb-soft);
}

.hb.hb-calc .hb-c-table thead th {
    padding: 14px 18px;
    background: var(--hb-lav);
    font-weight: 800;
    color: var(--hb-ink);
}

.hb.hb-calc .hb-c-table tbody th,
.hb.hb-calc .hb-c-table tbody td {
    padding: 14px 18px;
    border-top: 1px solid #e4def7;
    vertical-align: top;
    font-weight: 500;
}

.hb.hb-calc .hb-c-table tbody th {
    font-weight: 800;
}

.hb.hb-calc .hb-c-ours th,
.hb.hb-calc .hb-c-ours td {
    background: #fff4d6;
    font-weight: 700;
}

.hb.hb-calc .hb-c-source {
    font-size: 1rem;
    font-weight: 500;
    color: var(--hb-soft);
}

.hb.hb-calc .hb-calc-answer {
    display: grid;
    gap: 24px;
    max-width: 860px;
    margin: clamp(64px, 9vw, 112px) auto 0;
    scroll-margin-top: calc(var(--hb-nav, 80px) + 24px);
}

.hb.hb-calc .hb-calc-answer .hb-h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    max-width: 22ch;
}

.hb.hb-calc .hb-calc-answer .hb-prose p {
    font-size: clamp(1.05rem, 1.6vw, 1.15rem);
    line-height: 1.65;
}

.hb.hb-calc .hb-calc-answer .hb-c-table {
    min-width: 0;
}

@media (max-width: 560px) {
    .hb.hb-calc .hb-calc-answer .hb-c-table thead th,
    .hb.hb-calc .hb-calc-answer .hb-c-table tbody th,
    .hb.hb-calc .hb-calc-answer .hb-c-table tbody td {
        padding: 12px 10px;
        font-size: 0.95rem;
    }
}

.hb.hb-calc .hb-calc-answer .hb-c-table td {
    font-variant-numeric: tabular-nums;
}

.hb.hb-calc .hb-c-source a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hb.hb-calc .hb-calc-related {
    max-width: 860px;
    margin: 28px auto 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--hb-soft);
}

.hb.hb-calc .hb-calc-related a {
    color: var(--hb-ink);
    text-decoration: underline;
    text-decoration-color: var(--hb-violet);
    text-underline-offset: 4px;
}

.hb.hb-calc .hb-calc-close .hb-h2 {
    max-width: 20ch;
}

.hb.hb-calc .hb-calc-close .hb-close-sub {
    max-width: 58ch;
    margin-top: 0;
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    line-height: 1.55;
}

.hb.hb-error .hb-hero {
    display: flex;
    align-items: center;
    min-height: min(88svh, 760px);
    padding-top: calc(var(--hb-nav) + 40px);
    padding-bottom: 90px;
}

.hb.hb-error .hb-hero > .hb-wrap {
    width: 100%;
}

.hb.hb-error .hb-err-trace {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
}

.hb.hb-error .hb-err-trace path {
    animation: hb-sp-flow 14s linear infinite;
}

.hb.hb-error .hb-err-stage {
    --w: clamp(112px, 17vw, 190px);
    position: relative;
    width: 100%;
    height: calc(var(--w) * 2.3 + 90px);
}

.hb.hb-error .hb-err-item {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--w);
    margin-left: calc(var(--w) / -2);
}

.hb.hb-error .hb-err-item-a {
    z-index: 1;
}

.hb.hb-error .hb-err-item-b {
    z-index: 2;
}

.hb.hb-error .hb-err-item-c {
    z-index: 3;
}

.hb.hb-error .hb-err-tilt {
    transform: translate(calc(var(--w) * var(--dx)), var(--dy)) rotate(var(--r));
    transform-origin: 50% 100%;
}

.hb.hb-error .hb-err-drift {
    animation: hb-sp-drift var(--t, 7s) ease-in-out var(--o, 0s) infinite alternate;
}

@media (min-width: 700px) {
    .hb.hb-news .hb-news-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 48px;
    }

    .hb.hb-blog .hb-blog-grid,
    .hb.hb-tools .hb-tools-grid,
    .hb.hb-calc .hb-calc-hero {
        grid-template-columns: 1.3fr 1fr;
        gap: 48px;
    }

    .hb.hb-error .hb-err-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .hb.hb-tools .hb-tools-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .hb.hb-calc .hb-c-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hb.hb-calc .hb-c-result {
        position: sticky;
        top: calc(var(--hb-nav) + 20px);
    }
}

@media (max-width: 699px) {
    .hb.hb-news .hb-news-stage,
    .hb.hb-error .hb-err-stage {
        --w: min(30vw, 150px);
    }

    .hb.hb-error .hb-hero {
        min-height: 0;
        padding-bottom: 72px;
    }
}

@media (max-width: 540px) {
    .hb.hb-news .hb-news-row {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        border: 0;
        background: none;
        gap: 12px;
    }

    .hb.hb-news .hb-news-row:focus-within {
        outline: none;
    }

    .hb.hb-news .hb-news-row input[type='email'] {
        flex: none;
        height: 60px;
        border: 2px solid #d4cdf2;
        background: #fff;
    }

    .hb.hb-news .hb-news-row input[type='email']:focus {
        border-color: var(--hb-violet);
        outline: 3px solid var(--hb-violet);
        outline-offset: 3px;
    }

    .hb.hb-news .hb-news-row-error input[type='email'] {
        border-color: #b42318;
    }

    .hb.hb-news .hb-news-row .hb-btn {
        width: 100%;
        min-height: 56px;
    }

    .hb.hb-calc .hb-c-row dd {
        font-size: 1.3rem;
    }

    .hb.hb-calc .hb-fold summary {
        padding-left: 22px;
    }

    .hb.hb-calc .hb-fold-body {
        padding: 4px 22px 28px;
    }
}

@supports (interpolate-size: allow-keywords) {
    .hb.hb-calc .hb-fold {
        interpolate-size: allow-keywords;
    }

    .hb.hb-calc .hb-fold::details-content {
        height: 0;
        overflow: clip;
        transition: height 0.35s ease, content-visibility 0.35s allow-discrete;
    }

    .hb.hb-calc .hb-fold[open]::details-content {
        height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb.hb-news .hb-news-drift,
    .hb.hb-blog .hb-blog-drift,
    .hb:is(.hb-tools, .hb-calc) .hb-calcart-drift,
    .hb.hb-error .hb-err-drift,
    .hb.hb-error .hb-err-trace path,
    .hb.hb-news .hb-news-pulse {
        animation: none;
    }

    .hb.hb-calc .hb-fold::details-content,
    .hb.hb-calc .hb-fold summary::after,
    .hb.hb-news .hb-news-issue,
    .hb.hb-blog .blog-card,
    .hb.hb-tools .hb-tools-card,
    .hb.hb-blog .journal-topic {
        transition: none;
    }
}
