:root {
    --offers-accent: #e7c85a;
    --offers-accent-strong: #f2d870;
    --offers-alert: #e45f63;
    --offers-success: #69c985;
    --offers-radius-sm: 6px;
    --offers-radius-md: 10px;
    --offers-radius-lg: 14px;
    --offers-gap: clamp(16px, 2vw, 26px);
    --offers-shadow: 0 18px 46px color-mix(in srgb, #000, transparent 82%);
    --offers-font: var(--font-sans, Inter, ui-sans-serif, system-ui, sans-serif);
}

.actions-page {
    overflow: clip;
}

.actions-page :where(h1, h2, h3) {
    letter-spacing: 0;
    text-wrap: balance;
}

.actions-page :where(.btn, .btn-card-action) {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--offers-radius-sm);
    font-family: var(--offers-font);
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.actions-page .btn-primary,
.btn-card-action {
    border-color: color-mix(in srgb, var(--offers-accent), #000 14%);
    background: var(--offers-accent);
    color: #181404;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--offers-accent), transparent 78%);
}

.actions-page .btn-secondary {
    border-color: color-mix(in srgb, var(--border), transparent 2%);
    background: color-mix(in srgb, var(--surface), transparent 4%);
    color: var(--text);
}

.actions-page :where(.btn, .btn-card-action):hover {
    transform: translateY(-2px);
}

.actions-page .btn-primary:hover,
.btn-card-action:hover {
    background: var(--offers-accent-strong);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--offers-accent), transparent 70%);
}

.actions-page .btn-secondary:hover {
    border-color: color-mix(in srgb, var(--offers-accent), transparent 48%);
    background: var(--surface-2);
}

/* Hero and live catalog metrics */
.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .7fr);
    gap: clamp(40px, 7vw, 92px);
    align-items: center;
    padding-block: clamp(44px, 6vw, 78px) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 35%);
}

.hero-section__copy {
    min-width: 0;
}

.hero-section h1 {
    max-width: 900px;
    margin: 8px 0 20px;
    font-size: clamp(3.25rem, 6vw, 6.4rem);
    line-height: .96;
}

.hero-section__copy > p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(.96rem, 1.25vw, 1.08rem);
    line-height: 1.72;
}

.hero-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

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

.metric-card {
    display: flex;
    min-width: 0;
    min-height: 116px;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 8%);
    border-radius: var(--offers-radius-md);
    background: color-mix(in srgb, var(--surface), transparent 3%);
}

.metric-card--primary {
    grid-column: 1 / -1;
    min-height: 132px;
    justify-content: space-between;
    border-color: color-mix(in srgb, var(--offers-accent), transparent 60%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--offers-accent), transparent 88%), var(--surface));
}

.metric-card--primary strong {
    font-size: clamp(3.4rem, 6vw, 5.4rem);
    line-height: .9;
    font-variant-numeric: tabular-nums;
}

.metric-card--primary > span {
    max-width: 150px;
    font-size: .73rem;
    font-weight: 850;
    line-height: 1.35;
    text-align: right;
    text-transform: uppercase;
}

.metric-card__icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--offers-accent), transparent 60%);
    border-radius: 50%;
    color: var(--offers-accent);
}

.metric-card > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.metric-card > div strong {
    font-size: .76rem;
}

.metric-card > div span {
    color: var(--muted);
    font-size: .66rem;
    line-height: 1.45;
}

/* Shared section headings */
.featured-section,
.catalog-section {
    padding-block: clamp(42px, 5vw, 68px) !important;
}

.featured-section {
    border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 35%);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
    gap: 32px;
    align-items: end;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    line-height: 1;
}

.section-heading > p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.featured-section__grid,
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--offers-gap);
    align-items: stretch;
}

.featured-section__grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Offer cards */
.offer-card {
    display: flex;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid color-mix(in srgb, var(--border), transparent 8%);
    border-radius: var(--offers-radius-md);
    background: color-mix(in srgb, var(--surface), transparent 2%);
    box-shadow: 0 8px 24px color-mix(in srgb, #000, transparent 92%);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.offer-card:hover,
.offer-card:focus-within {
    border-color: color-mix(in srgb, var(--offers-accent), transparent 48%);
    box-shadow: var(--offers-shadow);
    transform: translateY(-4px);
}

.offer-card--featured {
    border-color: color-mix(in srgb, var(--offers-accent), transparent 60%);
}

.card-media {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
}

.card-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(5, 8, 5, .34));
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .38s ease;
}

.offer-card:hover .card-media img,
.offer-card:focus-within .card-media img {
    transform: scale(1.045);
}

.badge-status,
.badge-discount {
    position: absolute;
    z-index: 2;
    top: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 8px;
    border-radius: 4px;
    font-size: .56rem;
    font-weight: 900;
    letter-spacing: .055em;
    line-height: 1.15;
    text-transform: uppercase;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .25);
}

.badge-status {
    left: 12px;
    overflow: hidden;
    background: rgba(14, 18, 14, .86);
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-discount {
    right: 12px;
    background: var(--offers-alert);
    color: #fff;
}

.card-body {
    display: flex;
    min-width: 0;
    height: 100%;
    flex: 1;
    flex-direction: column;
    padding: clamp(18px, 2vw, 24px);
}

.card-meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.card-meta span {
    padding-inline: 3px;
    color: var(--offers-accent);
}

.offer-card h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.08;
}

.offer-card h3 a {
    display: inline-block;
    min-height: 44px;
    overflow-wrap: anywhere;
}

.offer-card__headline {
    margin: 3px 0 0;
    color: color-mix(in srgb, var(--text), var(--muted) 38%);
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.4;
}

.offer-card__snippet {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 12px 0 18px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--muted);
    font-size: .79rem;
    line-height: 1.55;
}

.card-specs {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.card-specs__potency {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-specs__potency span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 10%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-2), transparent 8%);
    color: var(--muted);
    font-size: .62rem;
}

.card-specs__potency b {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.card-specs__urgency {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: color-mix(in srgb, var(--offers-alert), var(--text) 25%);
    font-size: .68rem;
    font-weight: 750;
}

.card-footer {
    display: grid;
    gap: 13px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--border), transparent 18%);
}

.card-footer__price {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.card-footer__price > span {
    color: var(--muted);
    font-size: .59rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-footer__price > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.card-footer__price strong {
    font-size: 1.45rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.card-footer__price del {
    color: var(--muted);
    font-size: .7rem;
}

.btn-card-action {
    width: 100%;
}

.btn-card-action span {
    transition: transform .18s ease;
}

.btn-card-action:hover span {
    transform: translateX(3px);
}

.offer-card[hidden] {
    display: none !important;
}

/* Catalog controls */
.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(150px, .55fr));
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--border), transparent 8%);
    border-radius: var(--offers-radius-md);
    background: color-mix(in srgb, var(--surface), transparent 4%);
}

.filter-bar label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.filter-bar label > span {
    color: var(--muted);
    font-size: .59rem;
    font-weight: 800;
    text-transform: uppercase;
}

.filter-bar :where(input, select) {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: var(--offers-radius-sm);
    background: var(--surface-2);
    color: var(--text);
}

.filter-bar__status {
    display: flex;
    grid-column: 1 / -1;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.active-filters {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-pill,
.filter-reset {
    min-height: 34px;
    border: 1px solid color-mix(in srgb, var(--offers-accent), transparent 65%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--offers-accent), transparent 90%);
    color: var(--text);
    font-size: .62rem;
    font-weight: 750;
    cursor: pointer;
}

.filter-pill {
    padding: 0 10px;
}

.filter-pill::after {
    content: "\00d7";
    margin-left: 7px;
    color: var(--offers-accent);
}

.filter-reset {
    padding: 0 12px;
    border-color: transparent;
    background: transparent;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.filter-results {
    margin-left: auto;
    color: var(--muted);
    font-size: .66rem;
    white-space: nowrap;
}

.actions-empty {
    padding: clamp(32px, 5vw, 60px);
    border: 1px dashed var(--border);
    border-radius: var(--offers-radius-md);
    text-align: center;
}

.actions-empty h3 {
    margin-top: 0;
    font-size: 1.8rem;
}

.actions-empty p {
    color: var(--muted);
}

.actions-empty--filtered {
    margin-top: 14px;
}

/* Educational authority section */
.info-section {
    display: grid;
    grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr);
    gap: clamp(42px, 7vw, 92px);
    padding-block: clamp(52px, 7vw, 88px) !important;
    border-top: 1px solid color-mix(in srgb, var(--border), transparent 30%);
}

.info-section__intro {
    align-self: start;
    padding: clamp(24px, 3vw, 34px);
    border-left: 2px solid var(--offers-accent);
    background: linear-gradient(90deg, color-mix(in srgb, var(--offers-accent), transparent 94%), transparent);
}

.info-section__intro h2 {
    margin: 7px 0 16px;
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1;
}

.info-section__intro p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.72;
}

.info-section__content {
    min-width: 0;
}

.actions-seo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-block: 1px solid var(--border);
}

.actions-seo-grid article {
    padding: 22px 22px 22px 0;
}

.actions-seo-grid article + article {
    padding-left: 22px;
    border-left: 1px solid var(--border);
}

.actions-seo-grid h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.actions-seo-grid p {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.65;
}

.actions-faq {
    display: grid;
    grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr);
    gap: 34px;
    padding-top: 40px;
}

.actions-faq > h2 {
    margin: 0;
    font-size: 2rem;
}

.actions-faq details {
    border-bottom: 1px solid var(--border);
}

.actions-faq details:first-child {
    border-top: 1px solid var(--border);
}

.actions-faq summary {
    min-height: 48px;
    padding: 15px 24px 15px 0;
    font-weight: 750;
    cursor: pointer;
}

.actions-faq details p {
    margin: 0;
    padding: 0 24px 18px 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.68;
}

html[data-theme="light"] .actions-page {
    --offers-accent: #c99613;
    --offers-accent-strong: #dda91d;
    --offers-alert: #c94c51;
}

html[data-theme="light"] :where(.metric-card, .offer-card, .filter-bar) {
    border-color: #d9ded5;
    background: #fff;
}

html[data-theme="light"] .metric-card--primary {
    border-color: #eadba9;
    background: linear-gradient(135deg, #fff9e8, #fff);
}

html[data-theme="light"] .offer-card:hover,
html[data-theme="light"] .offer-card:focus-within {
    border-color: #d0ad3e;
    box-shadow: 0 18px 42px rgba(33, 40, 29, .12);
}

html[data-theme="light"] .filter-bar :where(input, select) {
    background: #f7f8f5;
}

@media (max-width: 1080px) {
    .hero-section {
        grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr);
        gap: 42px;
    }

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

    .actions-seo-grid {
        grid-template-columns: 1fr;
    }

    .actions-seo-grid article,
    .actions-seo-grid article + article {
        padding: 18px 0;
        border-left: 0;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 900px) {
    .hero-section,
    .info-section {
        grid-template-columns: 1fr;
    }

    .hero-section {
        gap: 30px;
    }

    .hero-section__metrics {
        max-width: 680px;
    }

    .section-heading,
    .actions-faq {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .info-section {
        gap: 34px;
    }
}

@media (max-width: 767px) {
    .actions-page > .section {
        width: min(100% - 28px, 1320px);
    }

    .hero-section {
        padding-block: 34px !important;
    }

    .hero-section h1 {
        font-size: clamp(2.65rem, 12vw, 4.25rem);
    }

    .hero-section__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-section__actions .btn {
        width: 100%;
    }

    .featured-section,
    .catalog-section {
        padding-block: 40px !important;
    }

    .section-heading h2 {
        font-size: clamp(2.2rem, 10vw, 3.3rem);
    }

    .featured-section__grid,
    .offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .filter-bar__status {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .active-filters {
        flex-basis: 100%;
    }

    .filter-results {
        margin-left: 0;
    }

    .card-body {
        padding: 16px;
    }

    .card-footer__price {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 479px) {
    .hero-section__metrics {
        grid-template-columns: 1fr;
    }

    .metric-card--primary {
        grid-column: auto;
    }

    .featured-section__grid,
    .offer-grid {
        grid-template-columns: 1fr;
    }

    .card-media {
        aspect-ratio: 16 / 11;
    }

    .card-footer__price {
        align-items: end;
        flex-direction: row;
    }

    .info-section__intro {
        padding: 22px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .actions-page :where(.btn, .btn-card-action, .offer-card, .card-media img) {
        transition: none;
    }

    .actions-page :where(.btn, .btn-card-action, .offer-card):hover,
    .offer-card:hover .card-media img,
    .offer-card:focus-within .card-media img {
        transform: none;
    }
}
