.gptc-catalog-v3 {
    --gptc-bg: #f6f8fc;
    --gptc-surface: #ffffff;
    --gptc-border: rgba(15, 23, 42, 0.08);
    --gptc-text: #0f172a;
    --gptc-text-soft: #5b6b82;
    --gptc-primary: #2563eb;
    --gptc-primary-soft: rgba(37, 99, 235, 0.08);
    --gptc-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
    color: var(--gptc-text);
    padding-bottom: 72px;
}

.gptc-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.gptc-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--gptc-primary-soft);
    color: var(--gptc-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.gptc-kicker--muted {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
}

.gptc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: .2s ease;
}

.gptc-button:hover {
    transform: translateY(-1px);
}

.gptc-button--primary {
    background: var(--gptc-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.gptc-button--primary:hover {
    color: #fff;
    background: #1d4ed8;
}

.gptc-button--ghost {
    background: #fff;
    color: var(--gptc-text);
    border-color: rgba(15, 23, 42, 0.12);
}

.gptc-button--ghost:hover {
    color: var(--gptc-primary);
    border-color: rgba(37, 99, 235, 0.24);
}

.gptc-catalog-v3__hero {
    padding: 24px 0 18px;
}

.gptc-catalog-v3__hero-box,
.gptc-catalog-v3__marketing-box {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 330px);
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--gptc-border);
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--gptc-shadow);
}

.gptc-catalog-v3__hero-main h1,
.gptc-catalog-v3__section-head h2,
.gptc-catalog-v3__marketing-box h2 {
    margin: 12px 0 12px;
    font-size: clamp(30px, 4.8vw, 54px);
    line-height: .98;
    letter-spacing: -.04em;
}

.gptc-catalog-v3__hero-main p,
.gptc-catalog-v3__section-head p,
.gptc-catalog-v3__marketing-box p,
.gptc-catalog-v3__news-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gptc-text-soft);
}

.gptc-catalog-v3__search {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.gptc-catalog-v3__search-field {
    position: relative;
    flex: 1 1 auto;
}

.gptc-catalog-v3__search-field svg {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 20px;
    height: 20px;
    fill: #7a8798;
    transform: translateY(-50%);
    pointer-events: none;
}

.gptc-catalog-v3__search-field input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px 0 46px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.gptc-catalog-v3__search-field input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.gptc-catalog-v3__hero-side {
    display: grid;
    gap: 14px;
}

.gptc-catalog-v3__stat-card {
    padding: 18px;
    border: 1px solid var(--gptc-border);
    border-radius: 18px;
    background: rgba(255,255,255,.88);
}

.gptc-catalog-v3__stat-card strong {
    display: block;
    font-size: clamp(26px, 3.2vw, 34px);
    line-height: 1;
    letter-spacing: -.04em;
}

.gptc-catalog-v3__stat-card span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gptc-text-soft);
}

.gptc-catalog-v3__categories,
.gptc-catalog-v3__tools,
.gptc-catalog-v3__marketing,
.gptc-catalog-v3__news {
    padding-top: 18px;
}

.gptc-catalog-v3__section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.gptc-catalog-v3__section-head h2 {
    font-size: clamp(26px, 3.8vw, 38px);
    margin: 0;
}

.gptc-catalog-v3__reset,
.gptc-catalog-v3__news-tool {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
    text-decoration: none;
    font-weight: 700;
}

.gptc-catalog-v3__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gptc-catalog-v3__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: var(--gptc-text);
    text-decoration: none;
    font-weight: 700;
    transition: .2s ease;
}

.gptc-catalog-v3__chip:hover,
.gptc-catalog-v3__chip.is-active {
    border-color: rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.06);
    color: var(--gptc-primary);
}

.gptc-catalog-v3__chip em {
    font-style: normal;
    font-size: 12px;
    color: #64748b;
}

.gptc-catalog-v3__chip strong {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gptc-catalog-v3__section-head--tools {
    align-items: start;
}

.gptc-catalog-v3__results {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-weight: 700;
}

.gptc-catalog-v3__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gptc-catalog-v3__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gptc-border);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--gptc-shadow);
}

.gptc-catalog-v3__card.is-hidden {
    display: none;
}

.gptc-catalog-v3__card-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
    overflow: hidden;
}

.gptc-catalog-v3__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gptc-catalog-v3__card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 32px;
    font-weight: 800;
    color: var(--gptc-primary);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 45%), linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
}

.gptc-catalog-v3__card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    height: 100%;
}

.gptc-catalog-v3__terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gptc-catalog-v3__terms a,
.gptc-catalog-v3__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.gptc-catalog-v3__terms a:hover {
    color: var(--gptc-primary);
    background: rgba(37, 99, 235, 0.07);
}

.gptc-catalog-v3__card h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.gptc-catalog-v3__card h3 a {
    color: inherit;
    text-decoration: none;
}

.gptc-catalog-v3__card h3 a:hover {
    color: var(--gptc-primary);
}

.gptc-catalog-v3__excerpt {
    margin: 0;
    color: var(--gptc-text-soft);
    line-height: 1.7;
    font-size: 15px;
}

.gptc-catalog-v3__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gptc-catalog-v3__actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.gptc-catalog-v3__actions .gptc-button {
    flex: 1 1 50%;
}

.gptc-catalog-v3__empty {
    padding: 28px;
    border: 1px dashed rgba(15, 23, 42, 0.14);
    border-radius: 20px;
    background: rgba(255,255,255,.72);
    text-align: center;
}

.gptc-catalog-v3__empty h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.gptc-catalog-v3__pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.gptc-catalog-v3__pagination a,
.gptc-catalog-v3__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.08);
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    color: var(--gptc-text);
}

.gptc-catalog-v3__pagination .current {
    background: var(--gptc-primary);
    color: #fff;
    border-color: transparent;
}

.gptc-catalog-v3__news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gptc-catalog-v3__news-card {
    padding: 20px;
    border: 1px solid var(--gptc-border);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    box-shadow: var(--gptc-shadow);
}

.gptc-catalog-v3__news-date {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.gptc-catalog-v3__news-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.15;
}

.gptc-catalog-v3__news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.gptc-catalog-v3__marketing-box h2 {
    font-size: clamp(28px, 3.6vw, 40px);
}

@media (max-width: 1180px) {
    .gptc-catalog-v3__hero-box,
    .gptc-catalog-v3__marketing-box,
    .gptc-catalog-v3__grid,
    .gptc-catalog-v3__news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gptc-catalog-v3__hero-box,
    .gptc-catalog-v3__marketing-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .gptc-shell {
        width: min(100% - 24px, 1280px);
    }

    .gptc-catalog-v3__search,
    .gptc-catalog-v3__section-head,
    .gptc-catalog-v3__actions,
    .gptc-catalog-v3__news-grid,
    .gptc-catalog-v3__grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .gptc-catalog-v3__search {
        display: grid;
    }

    .gptc-catalog-v3__grid,
    .gptc-catalog-v3__news-grid {
        display: grid;
    }

    .gptc-catalog-v3__actions {
        display: flex;
    }

    .gptc-catalog-v3__section-head,
    .gptc-catalog-v3__section-head--tools {
        align-items: flex-start;
    }
}
