.pack-page {
    width: min(1180px, calc(100% - 28px));
    margin: 24px auto 40px;
}

.pack-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc, #f0fdfa);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.pack-hero__copy {
    max-width: 650px;
}

.pack-hero__eyebrow {
    display: inline-block;
    margin-bottom: 4px;
    color: #0f766e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.pack-hero h2 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.15;
}

.pack-hero p {
    margin: 0;
    color: #475569;
    font-size: 13px;
}

.pack-reference {
    display: grid;
    min-width: 220px;
    align-content: center;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: rgba(255, 255, 255, .68);
}

.pack-reference span,
.pack-reference small {
    color: #64748b;
    font-size: 12px;
}

.pack-reference strong {
    margin: 3px 0;
    color: #0f172a;
    font-size: 16px;
}

.pack-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.pack-filter-buttons,
.pack-view-buttons {
    display: flex;
    gap: 6px;
}

.pack-filter-buttons a,
.pack-view-buttons a {
    padding: 7px 12px;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.pack-filter-buttons a:hover,
.pack-view-buttons a:hover {
    border-color: #64748b;
}

.pack-filter-buttons a.is-active {
    color: #fff;
    border-color: #0f766e;
    background: #0f766e;
}

.pack-view-buttons a.is-active {
    color: #fff;
    border-color: #334155;
    background: #334155;
}

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

.pack-type-tabs {
    display: flex;
    gap: 7px;
    margin: 0 0 14px;
    overflow-x: auto;
}

.pack-type-tabs a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.pack-type-tabs a:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.pack-type-tabs a.is-active {
    color: #fff;
    border-color: #0f766e;
    background: #0f766e;
}

.pack-type-tabs span {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    place-items: center;
    color: #475569;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 10px;
}

.pack-type-tabs a.is-active span {
    color: #0f766e;
    background: #fff;
}

.pack-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.pack-comparison-group {
    grid-column: 1 / -1;
    padding: 13px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.pack-comparison-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 3px 11px;
}

.pack-comparison-group__header span {
    color: #2563eb;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.pack-comparison-group__header h3 {
    margin: 2px 0 0;
    color: #1e3a8a;
    font-size: 17px;
}

.pack-comparison-group__header code {
    padding: 4px 7px;
    color: #64748b;
    border-radius: 7px;
    background: rgba(255, 255, 255, .72);
    font-size: 10px;
}

.pack-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pack-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc, #f0fdfa);
}

.pack-card__type {
    color: #0f766e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.pack-card__header h3 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 18px;
}

.pack-card__value {
    display: grid;
    justify-items: end;
}

.pack-card__value span,
.pack-card__value small {
    color: #64748b;
    font-size: 11px;
}

.pack-card__value strong {
    color: #0f766e;
    font-size: 23px;
    line-height: 1;
}

.pack-items {
    padding: 5px 14px;
}

.pack-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pack-item:last-child {
    border-bottom: 0;
}

.pack-item__icon-wrap {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
}

.pack-item__icon {
    width: 37px;
    height: 37px;
    object-fit: contain;
}

.pack-item__icon.is-missing {
    visibility: hidden;
}

.pack-item__main {
    display: grid;
    gap: 3px;
}

.pack-item__name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pack-item__main strong {
    color: #1e293b;
    font-size: 14px;
}

.pack-item__note {
    overflow: hidden;
    padding: 2px 6px;
    color: #475569;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pack-item__main span {
    color: #64748b;
    font-size: 13px;
}

.pack-item__value {
    display: grid;
    justify-items: end;
}

.pack-item__value strong {
    color: #334155;
    font-size: 16px;
}

.pack-item__value > span:not(.pack-badge) {
    color: #94a3b8;
    font-size: 10px;
}

.pack-badge {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.pack-badge--priceless {
    color: #9a3412;
    background: #ffedd5;
}

.pack-badge--unknown {
    color: #475569;
    background: #e2e8f0;
}

.pack-offers {
    padding: 0 14px 14px;
}

.pack-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    background: #f8fbff;
}

.pack-offer + .pack-offer {
    margin-top: 10px;
}

.pack-offer__channel,
.pack-offer__score {
    display: grid;
}

.pack-offer__channel span,
.pack-offer__score span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.pack-offer__channel strong {
    color: #0f172a;
    font-size: 19px;
}

.pack-offer__channel small,
.pack-offer__score small {
    color: #64748b;
    font-size: 11px;
}

.pack-offer__limit {
    width: fit-content;
    margin-top: 4px;
    padding: 3px 7px;
    color: #475569;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.pack-offer__period {
    display: grid;
    gap: 1px;
    margin-top: 5px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.35;
}

.pack-offer__period b {
    color: #475569;
    font-size: 9px;
    letter-spacing: .04em;
}

.pack-offer__score {
    justify-items: end;
}

.pack-offer__score strong {
    font-size: 20px;
}

.pack-offer__score.is-positive {
    margin: -3px -4px -3px 0;
    padding: 6px 9px;
    border: 1px solid #93c5fd;
    border-radius: 10px;
    background: #eff6ff;
}

.pack-offer__score.is-positive strong {
    color: #2563eb;
    font-size: 22px;
}

.pack-offer__score.is-negative strong {
    color: #b45309;
}

.pack-offer__score.is-neutral strong {
    color: #047857;
}

.pack-card__note {
    display: grid;
    gap: 4px;
    padding: 12px 18px;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 11px;
}

.pack-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.pack-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.pack-table th {
    padding: 9px 11px;
    color: #64748b;
    background: #f8fafc;
    font-size: 10px;
    text-align: left;
    white-space: nowrap;
}

.pack-table td {
    padding: 9px 11px;
    border-top: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    vertical-align: middle;
}

.pack-table__name,
.pack-table__price,
.pack-table__gem-value,
.pack-table__availability {
    line-height: 1.4;
}

.pack-table__name > *,
.pack-table__price > *,
.pack-table__gem-value > *,
.pack-table__availability > * {
    display: block;
}

.pack-table__name {
    min-width: 150px;
}

.pack-table__name small,
.pack-table__price small,
.pack-table__gem-value small,
.pack-table__availability small {
    color: #64748b;
    font-size: 9px;
}

.pack-table__name strong,
.pack-table__price strong {
    color: #0f172a;
    font-size: 13px;
}

.pack-table-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 9px;
    min-width: 210px;
}

.pack-table-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.pack-table-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.pack-table-item img.is-missing {
    visibility: hidden;
}

.pack-table-item b {
    color: #475569;
    font-size: 10px;
}

.pack-table__gem-value strong {
    color: #0f766e;
    font-size: 15px;
}

.pack-table__score {
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.pack-table__score.is-positive {
    color: #2563eb;
}

.pack-table__score.is-negative {
    color: #b45309;
}

.pack-table__score.is-neutral {
    color: #047857;
}

.pack-table__score.is-unknown {
    color: #94a3b8;
}

.pack-table__availability {
    max-width: 190px;
}

.pack-empty {
    padding: 48px 24px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #fff;
}

.pack-disclaimer {
    margin: 18px 4px 0;
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 860px) {
    .pack-grid,
    .pack-comparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pack-page {
        width: min(100% - 16px, 1180px);
        margin-top: 12px;
    }

    .pack-hero {
        display: grid;
        padding: 20px;
    }

    .pack-reference {
        min-width: 0;
    }

    .pack-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .pack-filter-buttons,
    .pack-view-buttons {
        overflow-x: auto;
    }

    .pack-card__header {
        align-items: flex-start;
    }

    .pack-item {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        gap: 9px;
    }

    .pack-item__icon-wrap {
        width: 46px;
        height: 46px;
    }

    .pack-item__icon {
        width: 38px;
        height: 38px;
    }
}
