.category-detail {
    padding: 24px 0 72px;
    background: radial-gradient(circle at top left, rgba(227, 157, 83, 0.08), transparent 24%),
    radial-gradient(circle at right 20%, rgba(44, 124, 255, 0.04), transparent 18%);
}

.category-page {
    display: grid;
    gap: 36px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* =========================================================
HERO
========================================================= */

.category-page__hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: 32px;
    border: 1px solid rgba(34, 34, 34, 0.08);
    background: linear-gradient(135deg, #fffdf9 0%, #f6efe6 100%);
    box-shadow: 0 24px 60px rgba(20, 18, 14, 0.08);
}

.category-page__hero-copy {
    max-width: 760px;
}

.category-page__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(191, 121, 49, 0.12);
    color: #9a5a1d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-page__hero-title {
    margin: 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #17120d;
}

.category-page__hero-text {
    margin-top: 22px;
    max-width: 640px;
}

.category-page__hero-text p {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.82;
    color: #5d5147;
}

.category-page__hero-text p:last-child {
    margin-bottom: 0;
}

.category-page__hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.category-page__hero-point {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(44, 36, 27, 0.1);
    background: #ffffff;
    color: #2b241d;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(20, 18, 14, 0.04);
}

.category-page__hero-media {
    position: relative;
    min-width: 0;
}

.category-page__hero-media-decor {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.category-page__hero-media-decor--one {
    top: -12px;
    right: -10px;
    width: 108px;
    height: 108px;
    background: rgba(229, 154, 84, 0.18);
    filter: blur(2px);
}

.category-page__hero-media-decor--two {
    bottom: 22px;
    left: -14px;
    width: 66px;
    height: 66px;
    background: rgba(62, 106, 255, 0.12);
}

.category-page__hero-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
SECTIONS
========================================================= */

.category-page__section {
    display: grid;
    gap: 24px;
}

.category-page__section-head {
    max-width: 920px;
}

.category-page__section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(33, 33, 33, 0.05);
    color: #76695e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-page__section-title {
    margin: 0 0 22px;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 900;
    color: #17120d;
}

.category-page__section-title--xl {
    font-size: clamp(36px, 4.8vw, 64px);
}

.category-page__section-text p,
.category-page__section-text--lead,
.category-info-card__text p,
.category-highlight-card__text p,
.category-feature-card__text p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.82;
    color: #5f5349;

}

.category-page__section-text p:last-child,
.category-info-card__text p:last-child,
.category-highlight-card__text p:last-child,
.category-feature-card__text p:last-child {
    margin-bottom: 0;
}

/* =========================================================
GRIDS
========================================================= */

.category-page__grid {
    display: grid;
    gap: 20px;
}

.category-page__grid--training {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
}

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

.category-page__grid--aside {
    grid-template-columns: 1.08fr 0.92fr;
}

/* =========================================================
TRAINING CARDS
========================================================= */

.category-feature-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(28, 25, 21, 0.08);
    box-shadow: 0 18px 42px rgba(20, 18, 14, 0.05);
}

.category-feature-card--light {
    background: linear-gradient(180deg, #fffdf9 0%, #f7f3ec 100%);
}

.category-feature-card--accent {
    background: radial-gradient(circle at top right, rgba(233, 157, 84, 0.18), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, #f4ece2 100%);
}

.category-feature-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-feature-card__icon span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: block;
}

/* Красный */
.category-feature-card__icon--red {
    background: rgba(220, 53, 69, 0.12);
}

.category-feature-card__icon--red span {
    background: #dc3545;
}

/* Желтый */
.category-feature-card__icon--yellow {
    background: rgba(255, 193, 7, 0.16);
}

.category-feature-card__icon--yellow span {
    background: #ffc107;
}

/* Зеленый */
.category-feature-card__icon--green {
    background: rgba(40, 167, 69, 0.14);
}

.category-feature-card__icon--green span {
    background: #28a745;
}

/* Тёмная тема */
[data-theme="dark"] .category-feature-card__icon--red {
    background: rgba(255, 82, 99, 0.18);
}

[data-theme="dark"] .category-feature-card__icon--red span {
    background: #ff5c6c;
}

[data-theme="dark"] .category-feature-card__icon--yellow {
    background: rgba(255, 210, 74, 0.18);
}

[data-theme="dark"] .category-feature-card__icon--yellow span {
    background: #ffd24a;
}

[data-theme="dark"] .category-feature-card__icon--green {
    background: rgba(65, 196, 110, 0.18);
}

[data-theme="dark"] .category-feature-card__icon--green span {
    background: #41c46e;
}

.category-feature-card__title {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #17120d;
}

/* =========================================================
TARIFFS
========================================================= */

.category-page__tariffs {
    display: grid;
    gap: 20px;
    align-items: stretch;
}

.category-page__tariffs--1 {
    grid-template-columns: 1fr;
}

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

.category-page__tariffs--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-page__tariffs--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tariff-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    min-height: 100%;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(28, 25, 21, 0.08);
    box-shadow: 0 18px 42px rgba(20, 18, 14, 0.05);
}

.tariff-card--featured {
    transform: translateY(-8px);
    border-color: rgba(201, 124, 47, 0.18);
    background: radial-gradient(circle at top right, rgba(231, 152, 77, 0.16), transparent 28%),
    linear-gradient(180deg, #fffaf4 0%, #f6ede2 100%);
    box-shadow: 0 30px 58px rgba(20, 18, 14, 0.09);
}

.tariff-card__glow {
    position: absolute;
    top: -40px;
    right: -24px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(234, 164, 92, 0.12);
}

.tariff-card__top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tariff-card__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #cf7d2e;
    flex: 0 0 auto;
}

.tariff-card__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.06;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--color-primary);
}

.tariff-card__description {
    position: relative;
    z-index: 2;
    color: #5f5349;
}

.tariff-card__description p {
    margin: 0 0 12px;
    line-height: 1.8;
}

.tariff-card__description p:last-child {
    margin-bottom: 0;
}

.tariff-card__description ul,
.tariff-card__description ol {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
    line-height: 1.7;
}

.tariff-card__footer {
    margin-top: auto;
    padding-top: 22px;
}

.tariff-card__price-row {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding-top: 20px;
    border-top: 1px solid rgba(28, 25, 21, 0.08);
}

.tariff-card__price-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a7a6c;
}

.tariff-card__price {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 900;
    color: #17120d;
}

.tariff-card__button {
    width: 100%;
}

/* =========================================================
INFO BLOCKS
========================================================= */

.category-highlight-card,
.category-info-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid rgba(28, 25, 21, 0.08);
    box-shadow: 0 18px 42px rgba(20, 18, 14, 0.05);
    background: #ffffff;
}

.category-highlight-card {
    background: radial-gradient(circle at top left, rgba(237, 162, 84, 0.18), transparent 22%),
    linear-gradient(180deg, #fff9f1 0%, #f4ece2 100%);
}

.category-highlight-card__kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(201, 124, 47, 0.12);
    color: #9a5b21;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-highlight-card__title,
.category-info-card__title {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 900;
    color: #17120d;
}

.category-info-card--decorated {
    background: linear-gradient(180deg, #ffffff 0%, #f7f4ef 100%);
}

.category-info-card__orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.category-info-card__orb {
    position: absolute;
    border-radius: 999px;
}

.category-info-card__orb--one {
    top: -24px;
    right: -12px;
    width: 104px;
    height: 104px;
    background: rgba(236, 169, 103, 0.14);
}

.category-info-card__orb--two {
    bottom: 26px;
    right: 38px;
    width: 26px;
    height: 26px;
    background: rgba(86, 110, 255, 0.12);
}

.category-info-card--dark {
    background: radial-gradient(circle at top right, rgba(255, 173, 91, 0.12), transparent 20%),
    linear-gradient(180deg, #241c16 0%, #17120e 100%);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 26px 52px rgba(10, 8, 6, 0.3);
}

.category-info-card--soft {
    background: linear-gradient(180deg, #fffdfa 0%, #f5f0ea 100%);
}

.category-info-card__title--light {
    color: #fff4ea;
}

.category-info-card__text--light p {
    color: rgba(255, 244, 234, 0.8);
}

/* =========================================================
DARK THEME
========================================================= */

[data-theme="dark"] .category-detail {
    background: radial-gradient(circle at top left, rgba(214, 142, 68, 0.12), transparent 24%),
    radial-gradient(circle at right 20%, rgba(76, 96, 193, 0.08), transparent 18%);
}

[data-theme="dark"] .category-page__hero-card,
[data-theme="dark"] .category-feature-card,
[data-theme="dark"] .tariff-card,
[data-theme="dark"] .category-highlight-card,
[data-theme="dark"] .category-info-card {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .category-page__hero-card {
    background: linear-gradient(135deg, #1d1813 0%, #2b221a 100%);
}

[data-theme="dark"] .category-page__hero-title,
[data-theme="dark"] .category-page__section-title,
[data-theme="dark"] .category-feature-card__title,
[data-theme="dark"] .tariff-card__title,
[data-theme="dark"] .category-highlight-card__title,
[data-theme="dark"] .category-info-card__title,
[data-theme="dark"] .tariff-card__price,
[data-theme="dark"] .category-page__hero-point {
    color: #f6eee6;
}

[data-theme="dark"] .category-page__hero-text p,
[data-theme="dark"] .category-page__section-text p,
[data-theme="dark"] .category-page__section-text--lead,
[data-theme="dark"] .category-feature-card__text p,
[data-theme="dark"] .tariff-card__description,
[data-theme="dark"] .category-highlight-card__text p,
[data-theme="dark"] .category-info-card__text p {
    color: rgba(246, 238, 230, 0.72);
}

[data-theme="dark"] .category-page__section-kicker {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgb(55 43 29 / 30%);
}

[data-theme="dark"] .category-page__hero-point,
[data-theme="dark"] .category-page__eyebrow,
[data-theme="dark"] .category-highlight-card__kicker {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .category-page__hero-point {
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .category-feature-card--light,
[data-theme="dark"] .category-feature-card--accent,
[data-theme="dark"] .tariff-card,
[data-theme="dark"] .category-highlight-card,
[data-theme="dark"] .category-info-card--decorated,
[data-theme="dark"] .category-info-card--soft {
    background: linear-gradient(180deg, #1f1a15 0%, #17130f 100%);
}

[data-theme="dark"] .tariff-card--featured {
    background: radial-gradient(circle at top right, rgba(231, 152, 77, 0.14), transparent 28%),
    linear-gradient(180deg, #2a2118 0%, #1b1510 100%);
}

[data-theme="dark"] .tariff-card__price-row {
    border-top-color: rgba(255, 255, 255, 0.08);
}


/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 1199px) {
    .category-page__hero-card,
    .category-page__grid--training,
    .category-page__grid--split,
    .category-page__grid--aside {
        grid-template-columns: 1fr;
    }

    .category-page__tariffs--4,
    .category-page__tariffs--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 767px) {
    .category-detail {
        padding: 20px 0 56px;
    }

    .category-page {
        gap: 24px;
    }

    .category-page__hero-card,
    .category-feature-card,
    .tariff-card,
    .category-highlight-card,
    .category-info-card {
        padding: 22px;
        border-radius: 24px;
    }

    .category-page__hero-title {
        font-size: 34px;
    }

    .category-page__section-title,
    .category-page__section-title--xl,
    .category-highlight-card__title,
    .category-info-card__title,
    .category-feature-card__title,
    .tariff-card__title {
        font-size: 28px;
    }


    .category-page__tariffs--1,
    .category-page__tariffs--2,
    .category-page__tariffs--3,
    .category-page__tariffs--4 {
        grid-template-columns: 1fr;
    }

    .tariff-card--featured {
        transform: none;
    }
}

.tariff-card__description {
    margin-bottom: 22px;
    color: var(--color-text);
}

.tariff-card__description > *:first-child {
    margin-top: 0;
}

.tariff-card__description > *:last-child {
    margin-bottom: 0;
}

.tariff-card__description p {
    margin: 0 0 14px;
    color: var(--color-text-light);
    font-size: 0.96rem;
    line-height: 1.7;
}

.tariff-card__description strong {
    color: var(--color-text);
    font-weight: 800;
}

.tariff-card__description ul,
.tariff-card__description ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tariff-card__description li {
    position: relative;
    padding-left: 18px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.tariff-card__description li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-primary);
    transform: translateY(-50%);
}

.tariff-card__description h4,
.tariff-card__description h5,
.tariff-card__description h6 {
    margin: 18px 0 10px;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 800;
}

.tariff-card__description a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tariff-card__description a:hover {
    color: var(--color-primary-hover);
}

.tariff-card--featured .tariff-card__description p,
.tariff-card--featured .tariff-card__description li {
    color: inherit;
}

.tariff-card--featured .tariff-card__description strong,
.tariff-card--featured .tariff-card__description h4,
.tariff-card--featured .tariff-card__description h5,
.tariff-card--featured .tariff-card__description h6 {
    color: inherit;
}

.tariff-card--featured .tariff-card__description li::before {
    background: currentColor;
    opacity: 0.9;
}

[data-theme="dark"] .tariff-card__description p,
[data-theme="dark"] .tariff-card__description li {
    color: var(--color-text-light);
}