.hha-wrapper {
    --hha-bg: #f3ede4;
    --hha-card-bg: #ffffff;
    --hha-primary: #20283e;
    --hha-accent: #c89d66;
    --hha-text: #485161;
    --hha-border: rgba(31, 42, 68, 0.08);
    margin: 0 auto;
    padding: 28px 0 34px;
}

.hha-heading {
    margin-bottom: 24px;
}

.hha-hero {
    align-items: stretch;
    background:
        radial-gradient(circle at top left, rgba(200, 157, 102, 0.18), transparent 38%),
        linear-gradient(135deg, #fffdf9 0%, #f5efe6 100%);
    border: 1px solid rgba(31, 42, 68, 0.07);
    border-radius: 30px;
    box-shadow: 0 22px 60px rgba(31, 42, 68, 0.08);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
    margin-bottom: 26px;
    padding: 30px;
}

.hha-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hha-eyebrow {
    color: var(--hha-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hha-hero-panel {
    background: linear-gradient(180deg, rgba(32, 40, 62, 0.98) 0%, rgba(32, 40, 62, 0.9) 100%);
    border-radius: 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 24px;
}

.hha-hero-stat {
    align-items: baseline;
    display: flex;
    gap: 10px;
}

.hha-hero-stat strong {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
}

.hha-hero-stat span {
    font-size: 15px;
    letter-spacing: 0.05em;
    opacity: 0.9;
    text-transform: uppercase;
}

.hha-hero-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
    margin-top: 20px;
}

.hha-heading h2 {
    color: var(--hha-primary);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    margin: 0 0 12px;
}

.hha-heading p {
    color: var(--hha-text);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: 760px;
}

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

.hha-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(247, 241, 232, 1) 100%);
    border: 1px solid var(--hha-border);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(31, 42, 68, 0.08);
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 280px;
    padding: 24px;
    position: relative;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hha-card:hover,
.hha-card:focus {
    border-color: rgba(200, 157, 102, 0.48);
    box-shadow: 0 18px 48px rgba(31, 42, 68, 0.14);
    outline: none;
    transform: translateY(-4px);
}

.hha-card-icon {
    align-items: center;
    background: linear-gradient(135deg, var(--hha-primary) 0%, #31415f 100%);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    font-size: 26px;
    font-weight: 700;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.hha-card-title {
    color: var(--hha-primary);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.28;
}

.hha-card-desc {
    color: var(--hha-text);
    flex: 1;
    font-size: 15px;
    line-height: 1.65;
}

.hha-card-link,
.hha-back {
    color: var(--hha-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.hha-toolbar {
    margin-bottom: 16px;
}

.hha-detail .hha-heading {
    margin-bottom: 18px;
}

.hha-frame-shell {
    background: #ffffff;
    border: 1px solid rgba(31, 42, 68, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(31, 42, 68, 0.08);
    overflow: hidden;
}

.hha-frame {
    background: #ffffff;
    border: 0;
    display: block;
    min-height: 780px;
    width: 100%;
}

.hha-other-tools {
    margin-top: 28px;
}

.hha-other-tools h3 {
    color: var(--hha-primary);
    font-size: 24px;
    margin: 0 0 16px;
}

.hha-mini-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hha-mini-card {
    background: #fff;
    border: 1px solid var(--hha-border);
    border-radius: 16px;
    color: var(--hha-primary);
    display: block;
    font-weight: 600;
    padding: 16px 18px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hha-mini-card:hover,
.hha-mini-card:focus {
    border-color: rgba(200, 157, 102, 0.48);
    outline: none;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hha-wrapper {
        padding: 20px 0;
    }

    .hha-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

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

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

    .hha-frame {
        min-height: 900px;
    }
}

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

    .hha-card {
        min-height: 0;
    }
}
