.cert-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 48px auto 80px;
}

.cert-shell--hub {
    margin-top: 42px;
}

.cert-shell__card {
    background: #fff;
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 24px 60px rgba(7, 24, 52, 0.12);
}

.cert-shell__card--detail {
    padding-top: 34px;
}

.cert-shell__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.cert-shell__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #03a7b2;
    font-weight: 700;
}

.cert-shell__head h1,
.cert-result-card__head h1,
.cert-book__head h1,
.cert-empty-card h2 {
    margin: 0;
    color: #10213c;
    font-size: 34px;
    line-height: 1.25;
}

.cert-shell__head p,
.cert-result-card__head p,
.cert-empty-card p,
.cert-book__head p {
    margin: 14px 0 0;
    color: #5f6c82;
    font-size: 15px;
    line-height: 1.9;
}

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

.cert-hub-card {
    position: relative;
    overflow: hidden;
    min-height: 290px;
    padding: 30px 28px 32px;
    border: 1px solid #e4ebf3;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.cert-hub-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--cert-accent), var(--cert-accent-soft));
}

.cert-hub-card:after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--cert-glow);
}

.cert-hub-card--blue {
    --cert-accent: #0b63ce;
    --cert-accent-soft: #4d9dff;
    --cert-glow: rgba(11, 99, 206, 0.1);
}

.cert-hub-card--gold {
    --cert-accent: #b75a10;
    --cert-accent-soft: #eb9a4a;
    --cert-glow: rgba(183, 90, 16, 0.12);
}

.cert-hub-card--green {
    --cert-accent: #1b8a5b;
    --cert-accent-soft: #51b57d;
    --cert-glow: rgba(27, 138, 91, 0.12);
}

.cert-hub-card__index {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--cert-glow);
    color: var(--cert-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.cert-hub-card h2 {
    position: relative;
    z-index: 1;
    margin: 24px 0 28px;
    color: #10213c;
    font-size: 28px;
    line-height: 1.3;
}

.cert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 154px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cert-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.cert-button--solid {
    color: #fff;
    background: linear-gradient(135deg, #05558f, #03a7b2);
    box-shadow: 0 14px 28px rgba(5, 85, 143, 0.22);
}

.cert-button--ghost {
    color: #05558f;
    border-color: rgba(5, 85, 143, 0.18);
    background: #f4f8fc;
}

.cert-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 26px;
}

.cert-form {
    display: flex;
    align-items: flex-end;
    gap: 24px;
}

.cert-field {
    flex: 1;
    display: block;
}

.cert-field span {
    display: block;
    margin-bottom: 12px;
    color: #10213c;
    font-size: 15px;
    font-weight: 700;
}

.cert-field input {
    width: 100%;
    height: 58px;
    border: 1px solid #d9e4ef;
    border-radius: 16px;
    padding: 0 18px;
    font-size: 16px;
    color: #10213c;
    box-sizing: border-box;
    background: #f8fbff;
}

.cert-field input:focus {
    outline: none;
    border-color: #03a7b2;
    box-shadow: 0 0 0 4px rgba(3, 167, 178, 0.12);
}

.cert-form__actions {
    flex: 0 0 auto;
}

.cert-form__actions .cert-button {
    min-width: 180px;
    height: 58px;
}

.cert-result-card,
.cert-empty-card,
.cert-book__section {
    border: 1px solid #e5edf5;
    border-radius: 24px;
    background: #fff;
}

.cert-result-card {
    overflow: hidden;
}

.cert-result-card__head,
.cert-empty-card {
    padding: 34px 36px;
}

.cert-table-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 0 24px 28px;
    box-sizing: border-box;
}

.cert-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
}

.cert-table thead th {
    padding: 18px 14px;
    background: #edf5fb;
    color: #10213c;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.cert-table tbody td {
    padding: 18px 14px;
    border-bottom: 1px solid #edf2f7;
    color: #36485f;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.cert-table tbody tr:last-child td {
    border-bottom: 0;
}

.cert-table__link {
    color: #05558f;
    font-weight: 700;
}

.cert-empty-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.cert-book {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cert-book__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.cert-book__head p {
    margin: 0;
}

.cert-book__section {
    padding: 30px 32px;
}

.cert-book__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
}

.cert-book__section-head strong {
    color: #10213c;
    font-size: 24px;
    line-height: 1.3;
}

.cert-status-text {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(18, 149, 91, 0.1);
    color: #12955b;
    font-size: 13px;
    font-weight: 700;
}

.cert-book__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.cert-book__row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fbff;
}

.cert-book__row--full {
    grid-column: 1 / -1;
}

.cert-book__row dt {
    color: #6b7c91;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.cert-book__row dd {
    margin: 0;
    color: #10213c;
    font-size: 15px;
    line-height: 1.9;
    word-break: break-all;
}

.cert-shell--hub .cert-shell__head {
    margin-bottom: 0;
}

.cert-shell--hub .home-query-box {
    width: 83.334%;
    margin: 0 auto;
    padding: 0;
}

.cert-shell--hub .home-query-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 42px;
    background: transparent;
}

.cert-shell--hub .home-query-list li {
    flex: 1 1 0;
    height: 238px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 48px rgba(8, 42, 89, .12);
    overflow: hidden;
}

.cert-shell--hub .home-query-list li a {
    width: 100%;
    height: 100%;
    padding: 22px 18px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-decoration: none;
    transition: transform .25s ease;
}

.cert-shell--hub .home-query-list li a:hover {
    transform: translateY(-8px);
    text-decoration: none;
}

.cert-shell--hub .query-card-icon {
    width: 102px;
    height: 102px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cert-shell--hub .query-card-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.cert-shell--hub .query-card-title {
    display: block;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    color: #4c5c72;
    letter-spacing: 1px;
}

@media only screen and (max-width: 1280px) {
    .cert-shell--hub .home-query-box {
        width: calc(100% - 48px);
    }

    .cert-shell--hub .home-query-list {
        gap: 20px;
    }

    .cert-shell--hub .home-query-list li {
        height: 208px;
    }

    .cert-shell--hub .home-query-list li a {
        gap: 16px;
        padding: 18px 14px;
    }

    .cert-shell--hub .query-card-icon {
        width: 84px;
        height: 84px;
    }

    .cert-shell--hub .query-card-title {
        font-size: 17px;
    }
}

@media only screen and (max-width: 1024px) {
    .cert-shell--hub .home-query-box {
        width: calc(100% - 32px);
    }

    .cert-shell--hub .home-query-list {
        gap: 12px;
    }

    .cert-shell--hub .home-query-list li {
        height: 154px;
        border-radius: 10px;
    }

    .cert-shell--hub .home-query-list li a {
        padding: 14px 10px;
        gap: 10px;
    }

    .cert-shell--hub .query-card-icon {
        width: 68px;
        height: 68px;
    }

    .cert-shell--hub .query-card-title {
        font-size: 15px;
        letter-spacing: 0;
    }
}

@media only screen and (max-width: 768px) {
    .cert-shell--hub .home-query-box {
        width: calc(100% - 20px);
    }

    .cert-shell--hub .home-query-list {
        gap: 8px;
    }

    .cert-shell--hub .home-query-list li {
        height: 126px;
    }

    .cert-shell--hub .home-query-list li a {
        padding: 12px 8px;
        gap: 8px;
    }

    .cert-shell--hub .query-card-icon {
        width: 52px;
        height: 52px;
    }

    .cert-shell--hub .query-card-title {
        font-size: 13px;
        line-height: 1.4;
    }
}

@media only screen and (max-width: 1024px) {
    .cert-shell {
        width: calc(100% - 24px);
        margin: 24px auto 42px;
    }

    .cert-shell__card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .cert-shell__head,
    .cert-book__head,
    .cert-book__section-head,
    .cert-form {
        display: block;
    }

    .cert-shell__head h1,
    .cert-result-card__head h1,
    .cert-book__head h1,
    .cert-empty-card h2 {
        font-size: 24px;
    }

    .cert-hub-grid,
    .cert-book__grid {
        grid-template-columns: 1fr;
    }

    .cert-hub-card {
        min-height: 0;
    }

    .cert-hub-card p {
        min-height: 0;
    }

    .cert-form__actions {
        margin-top: 18px;
    }

    .cert-form__actions .cert-button,
    .cert-button {
        width: 100%;
        min-width: 0;
    }

    .cert-toolbar {
        justify-content: stretch;
    }

    .cert-result-card__head,
    .cert-empty-card,
    .cert-book__section {
        padding: 22px 16px;
    }

    .cert-table-wrap {
        padding: 0 0 18px;
    }

    .cert-table {
        min-width: 760px;
    }

    .cert-book__section-head strong {
        font-size: 20px;
    }
}
