/* ==========================================================================
   Machinery — homepage & dedicated page
   ========================================================================== */

:root {
    --machinery-red: #e10600;
    --machinery-red-dark: #b90400;
    --machinery-green: #48720c;
    --machinery-ink: #0f172a;
    --machinery-muted: #64748b;
    --machinery-surface: #ffffff;
    --machinery-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --machinery-shadow-hover: 0 32px 80px rgba(225, 6, 0, 0.16);
}

/* --------------------------------------------------------------------------
   Shared decorative elements
   -------------------------------------------------------------------------- */

.machinery-home__decor,
.machinery-page__decor {
    pointer-events: none;
}

.machinery-home__decor {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.machinery-home__decor--left {
    top: 8%;
    left: -120px;
    background: rgba(225, 6, 0, 0.22);
}

.machinery-home__decor--right {
    right: -100px;
    bottom: 10%;
    background: rgba(72, 114, 12, 0.2);
}

.machinery-page__decor {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 280px at 10% 0%, rgba(225, 6, 0, 0.07) 0%, transparent 70%),
        radial-gradient(600px 260px at 95% 30%, rgba(225, 6, 0, 0.05) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   Homepage
   -------------------------------------------------------------------------- */

.machinery-home {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, #fafafa 0%, #ffffff 42%, #fff8f8 100%);
}

.machinery-home__header {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto 48px;
}

.machinery-home__eyebrow,
.machinery-page__eyebrow,
.machinery-home__machines-tag,
.machinery-page__machines-tag,
.machinery-page__highlights-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--machinery-green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.machinery-home__eyebrow::before,
.machinery-page__eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.machinery-home__title {
    margin: 18px 0 14px;
    color: var(--machinery-ink);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.machinery-home__lead,
.machinery-page__description {
    margin: 0 auto;
    max-width: 680px;
    color: var(--machinery-muted);
    font-size: 17px;
    line-height: 1.75;
}

/* Showcase split: image + 2x2 stats */
.machinery-home__showcase {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    gap: 28px;
    margin-bottom: 36px;
}

.machinery-home__showcase-media {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--machinery-shadow);
}

.machinery-home__showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.machinery-home__showcase-media:hover img {
    transform: scale(1.08);
}

.machinery-home__showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.72) 100%);
}

.machinery-home__showcase-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    color: #fff;
}

.machinery-home__showcase-badge strong {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.machinery-home__showcase-badge span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.92;
}

.machinery-home__stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 2px solid var(--machinery-red);
    border-radius: 24px;
    background: var(--machinery-surface);
    box-shadow: var(--machinery-shadow);
}

.machinery-home__stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 196px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(225, 6, 0, 0.18);
    transition: background 0.25s ease, transform 0.25s ease;
}

.machinery-home__stat:hover {
    background: linear-gradient(180deg, #fff 0%, #fff6f6 100%);
    transform: translateY(-2px);
}

.machinery-home__stat-index,
.machinery-page__stat-index {
    position: absolute;
    top: 14px;
    right: 16px;
    color: rgba(225, 6, 0, 0.22);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.machinery-home__stat-icon,
.machinery-page__stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--machinery-red);
    border: none;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 24px rgba(225, 6, 0, 0.28);
}

.machinery-home__stat:nth-child(even) .machinery-home__stat-icon,
.machinery-page__stat:nth-child(even) .machinery-page__stat-icon {
    background: var(--machinery-green);
    box-shadow: 0 10px 24px rgba(72, 114, 12, 0.28);
}

.machinery-home__stat:nth-child(even) .machinery-home__stat-value,
.machinery-page__stat:nth-child(even) .machinery-page__stat-value {
    background: linear-gradient(135deg, #48720c 0%, #5a8a14 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.machinery-home__stat-value,
.machinery-page__stat-value {
    margin: 0 0 8px;
    background: linear-gradient(135deg, #e10600 0%, #ff4d47 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.machinery-home__stat-label,
.machinery-page__stat-label {
    margin: 0;
    max-width: 200px;
    color: var(--machinery-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Highlight cards */
.machinery-home__highlights {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.machinery-home__highlight {
    position: relative;
    overflow: hidden;
    padding: 26px 22px 24px;
    border-radius: 20px;
    background: var(--machinery-surface);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.machinery-home__highlight::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--machinery-red), transparent);
    opacity: 1;
    transition: opacity 0.25s ease;
}

.machinery-home__highlight:nth-child(even)::after {
    background: linear-gradient(90deg, transparent, var(--machinery-green), transparent);
}

.machinery-home__highlight:hover {
    transform: translateY(-6px);
    border-color: rgba(225, 6, 0, 0.2);
    box-shadow: var(--machinery-shadow-hover);
}

.machinery-home__highlight:nth-child(even):hover {
    border-color: rgba(72, 114, 12, 0.3);
    box-shadow: 0 32px 80px rgba(72, 114, 12, 0.16);
}

.machinery-home__highlight:hover::after {
    opacity: 1;
}

.machinery-home__highlight-num {
    position: absolute;
    top: 12px;
    right: 14px;
    color: rgba(225, 6, 0, 0.14);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.machinery-home__highlight:nth-child(even) .machinery-home__highlight-num {
    color: rgba(72, 114, 12, 0.18);
}

.machinery-home__highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--machinery-red);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 12px 28px rgba(225, 6, 0, 0.28);
}

.machinery-home__highlight:nth-child(even) .machinery-home__highlight-icon {
    background: var(--machinery-green);
    box-shadow: 0 12px 28px rgba(72, 114, 12, 0.28);
}

.machinery-home__highlight h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.machinery-home__highlight p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--machinery-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* Brands band */
.machinery-home__brands-band,
.machinery-page__brands-band {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
    padding: 28px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #3f1412 100%);
    box-shadow: var(--machinery-shadow);
    text-align: center;
}

.machinery-home__brands-label,
.machinery-page__brands-band > p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.machinery-home__brands,
.machinery-page__brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.machinery-home__brand,
.machinery-page__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.machinery-home__brand:hover,
.machinery-page__brand:hover {
    transform: translateY(-3px);
    border-color: rgba(225, 6, 0, 0.55);
    background: rgba(225, 6, 0, 0.22);
}

/* Machines panel */
.machinery-home__machines-panel {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 34px 30px 30px;
    border-radius: 26px;
    border: 1px solid rgba(225, 6, 0, 0.12);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 246, 246, 0.98) 100%);
    box-shadow: var(--machinery-shadow);
}

.machinery-home__machines-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--machinery-red), #ff6b66, var(--machinery-red));
}

.machinery-home__machines-intro {
    max-width: 620px;
    margin-bottom: 24px;
}

.machinery-home__machines-intro h3 {
    margin: 12px 0 10px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.machinery-home__machines-intro p {
    margin: 0;
    color: var(--machinery-muted);
    line-height: 1.7;
}

.machinery-home__machine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.machinery-home__machine-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.machinery-home__machine-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(225, 6, 0, 0.28);
    box-shadow: 0 14px 28px rgba(225, 6, 0, 0.1);
}

.machinery-home__machine-chip-num {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(225, 6, 0, 0.1);
    color: var(--machinery-red);
    font-size: 12px;
    font-weight: 800;
}

.machinery-home__machine-chip span:last-child {
    color: var(--machinery-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.machinery-home__footer {
    margin-top: 28px;
    text-align: center;
}

.machinery-home__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--machinery-red) 0%, var(--machinery-red-dark) 100%);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 36px rgba(225, 6, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.machinery-home__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(225, 6, 0, 0.34);
    color: #fff !important;
}

.machinery-home__cta i {
    transition: transform 0.2s ease;
}

.machinery-home__cta:hover i {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Dedicated page
   -------------------------------------------------------------------------- */

.machinery-page {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.machinery-page-hero .page__title {
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.machinery-page__header {
    position: relative;
    z-index: 1;
    margin-bottom: 48px;
}

.machinery-page__featured {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.machinery-page__featured-card {
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--machinery-shadow);
}

.machinery-page__featured-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.machinery-page__featured-card figcaption {
    padding: 16px 18px 18px;
}

.machinery-page__featured-card strong {
    display: block;
    color: #111;
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.machinery-page__featured-card span {
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 991px) {
    .machinery-page__featured {
        grid-template-columns: 1fr;
    }
}

.machinery-page__eyebrow {
    margin-bottom: 16px;
}

.machinery-page__hero-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.machinery-page__hero-media {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--machinery-shadow);
}

.machinery-page__hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.machinery-page__hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.78) 100%);
}

.machinery-page__hero-caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
}

.machinery-page__hero-caption strong {
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.machinery-page__hero-caption span {
    max-width: 320px;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.92;
}

.machinery-page__stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 3px solid var(--machinery-red);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--machinery-shadow);
}

.machinery-page__stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    padding: 30px 22px;
    text-align: center;
    border: 1px solid rgba(225, 6, 0, 0.2);
    transition: background 0.25s ease;
}

.machinery-page__stat:hover {
    background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
}

.machinery-page__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.machinery-page__highlights {
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: var(--machinery-shadow);
}

.machinery-page__highlights-media {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.machinery-page__highlights-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, #111827 100%);
}

.machinery-page__highlights-body {
    padding: 28px 24px 30px;
}

.machinery-page__highlights-body h3 {
    margin: 12px 0 22px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.machinery-page__highlights ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.machinery-page__highlights li {
    display: grid;
    grid-template-columns: 28px 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.machinery-page__highlights li:first-child {
    border-top: 0;
    padding-top: 0;
}

.machinery-page__highlight-num {
    color: rgba(225, 6, 0, 0.75);
    font-size: 13px;
    font-weight: 800;
    line-height: 44px;
}

.machinery-page__highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(225, 6, 0, 0.18);
    color: #ff6b66;
    font-size: 18px;
}

.machinery-page__highlights h4 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.machinery-page__highlights p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.6;
}

.machinery-page__machines {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(225, 6, 0, 0.12);
    background: #fff;
    box-shadow: var(--machinery-shadow);
}

.machinery-page__machines-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 28px 22px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.machinery-page__machines-head h3 {
    margin: 10px 0 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.machinery-page__machines-head > p {
    max-width: 320px;
    margin: 0;
    color: var(--machinery-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}

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

.machinery-page__machine-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.machinery-page__machine-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--machinery-red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease;
}

.machinery-page__machine-card:hover {
    transform: translateX(4px);
    border-color: rgba(225, 6, 0, 0.22);
    box-shadow: 0 16px 32px rgba(225, 6, 0, 0.1);
}

.machinery-page__machine-card:hover::before {
    transform: scaleY(1);
}

.machinery-page__machine-num {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(225, 6, 0, 0.1);
    color: var(--machinery-red);
    font-size: 13px;
    font-weight: 800;
}

.machinery-page__machine-name {
    flex: 1;
    color: var(--machinery-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.machinery-page__machine-icon {
    flex-shrink: 0;
    color: rgba(225, 6, 0, 0.18);
    font-size: 22px;
    transition: color 0.2s ease;
}

.machinery-page__machine-card:hover .machinery-page__machine-icon {
    color: rgba(225, 6, 0, 0.45);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .machinery-home__highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 991px) {
    .machinery-home__showcase,
    .machinery-page__hero-panel,
    .machinery-page__content {
        grid-template-columns: 1fr;
    }

    .machinery-home__showcase-media,
    .machinery-page__hero-media {
        min-height: 320px;
    }

    .machinery-page__machines-head > p {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .machinery-home__stats-grid,
    .machinery-page__stats-grid,
    .machinery-home__highlights,
    .machinery-home__machine-grid,
    .machinery-page__machine-grid {
        grid-template-columns: 1fr;
    }

    .machinery-home__stat,
    .machinery-page__stat {
        min-height: 160px;
    }

    .machinery-home__machines-panel,
    .machinery-page__machines-head,
    .machinery-page__machine-grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .machinery-home__brands-band,
    .machinery-page__brands-band {
        padding: 22px 16px;
    }
}

/* --------------------------------------------------------------------------
   Homepage showcase (3 featured machines)
   -------------------------------------------------------------------------- */

.machinery-showcase {
    --ms-red: #e10600;
    --ms-ink: #1f2937;
    --ms-muted: #6b7280;
    position: relative;
    overflow: hidden;
    padding: 90px 0 100px;
    background: #ffffff;
}

.machinery-showcase__building {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 42vw);
    height: 220px;
    pointer-events: none;
    opacity: 0.14;
    background:
        linear-gradient(180deg, transparent 60%, #fff 100%),
        url('/site/assets/img/about/about-1.jpg') right top / cover no-repeat;
    filter: grayscale(1) contrast(1.15);
}

.machinery-showcase__dots {
    position: absolute;
    right: 24px;
    bottom: 28px;
    width: 72px;
    height: 56px;
    pointer-events: none;
    opacity: 0.28;
    background-image: radial-gradient(rgba(17, 24, 39, 0.45) 1.2px, transparent 1.2px);
    background-size: 10px 10px;
}

.machinery-showcase__header {
    position: relative;
    z-index: 1;
    margin-bottom: 42px;
}

.machinery-showcase__title {
    margin: 0;
    color: var(--ms-ink);
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
}

.machinery-showcase__title-accent {
    color: var(--ms-red);
}

.machinery-showcase__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.machinery-showcase__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.machinery-showcase__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 22px;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.machinery-showcase__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.machinery-showcase__media-accent {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 64px;
    height: 64px;
    pointer-events: none;
    border-right: 8px solid var(--ms-red);
    border-bottom: 8px solid var(--ms-red);
    border-bottom-right-radius: 18px;
}

.machinery-showcase__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--ms-red);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 10px 22px rgba(225, 6, 0, 0.28);
}

.machinery-showcase__name {
    margin: 0 0 12px;
    color: var(--ms-ink);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.3;
}

.machinery-showcase__name span {
    color: var(--ms-red);
}

.machinery-showcase__rule {
    width: 100%;
    height: 1px;
    margin-bottom: 14px;
    background: rgba(225, 6, 0, 0.35);
}

.machinery-showcase__model-label {
    margin: 0 0 8px;
    color: var(--ms-red);
    font-size: 0.95rem;
    font-weight: 700;
}

.machinery-showcase__models {
    margin: 0;
    padding: 0;
    list-style: none;
}

.machinery-showcase__models li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
    color: var(--ms-ink);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
}

.machinery-showcase__models li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ms-red);
}

.machinery-showcase__footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.machinery-showcase__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--ms-red);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.machinery-showcase__cta:hover {
    background: #b90400;
    color: #fff !important;
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .machinery-showcase__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
        gap: 36px;
    }

    .machinery-showcase {
        padding: 70px 0 80px;
    }
}

