:root {
    --ps-green: #119447;
    --ps-green-dark: #08753a;
    --ps-ink: #14211a;
    --ps-muted: #68746d;
    --ps-line: #dfe8e2;
    --ps-soft: #f3f8f5;
    --ps-white: #ffffff;
}

.ps-page,
.ps-page * {
    box-sizing: border-box;
}

.ps-page {
    background: var(--ps-white);
    color: var(--ps-ink);
    overflow: hidden;
}

.ps-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.ps-heading-section {
    position: relative;
    padding: 86px 0 58px;
    background:
        radial-gradient(circle at 85% 15%, rgba(17, 148, 71, .12), transparent 28%),
        linear-gradient(135deg, #f6faf7 0%, #ffffff 62%);
    border-bottom: 1px solid var(--ps-line);
}

.ps-heading-section::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -130px;
    width: 340px;
    height: 340px;
    border: 55px solid rgba(17, 148, 71, .055);
    border-radius: 50%;
}

.ps-heading-line {
    display: block;
    width: 58px;
    height: 4px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--ps-green);
}

.ps-heading-section h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(40px, 5.2vw, 76px);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 750;
}

.ps-products,
.ps-process {
    padding: 92px 0;
}

.ps-section-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 38px;
}

.ps-section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ps-line);
}

.ps-section-heading h2 {
    flex: 0 0 auto;
    margin: 0;
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

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

.ps-card {
    position: relative;
    min-width: 0;
    padding: 10px 10px 26px;
    border: 1px solid var(--ps-line);
    border-radius: 24px;
    background: var(--ps-white);
    box-shadow: 0 14px 44px rgba(17, 55, 34, .07);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.ps-card:hover {
    transform: translateY(-7px);
    border-color: rgba(17, 148, 71, .35);
    box-shadow: 0 22px 56px rgba(17, 55, 34, .13);
}

.ps-image-button,
.ps-process-image {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: var(--ps-soft);
    cursor: zoom-in;
}

.ps-image-button {
    aspect-ratio: 4 / 3;
}

.ps-image-button img,
.ps-process-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 18px;
    transition: transform .45s ease;
}

.ps-card:hover .ps-image-button img,
.ps-process-card:hover .ps-process-image img {
    transform: scale(1.035);
}

.ps-card-number {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ps-white);
    color: var(--ps-green-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .09);
    font-size: 12px;
    font-weight: 800;
}

.ps-view-icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ps-green);
    color: var(--ps-white);
    font-size: 21px;
    transition: transform .25s ease, background .25s ease;
}

.ps-card:hover .ps-view-icon,
.ps-process-card:hover .ps-view-icon {
    transform: rotate(45deg);
    background: var(--ps-green-dark);
}

.ps-card h3 {
    min-height: 58px;
    margin: 22px 14px 0;
    display: flex;
    align-items: center;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.ps-process {
    background: var(--ps-soft);
}

.ps-process-card {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--ps-line);
    border-radius: 28px;
    background: var(--ps-white);
    box-shadow: 0 18px 54px rgba(17, 55, 34, .1);
}

.ps-process-image {
    min-height: 430px;
    border-radius: 0;
}

.ps-process-image img {
    padding: 24px;
}

.ps-process-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    background: linear-gradient(145deg, var(--ps-green), var(--ps-green-dark));
    color: var(--ps-white);
}

.ps-process-content p {
    margin: 0 0 28px;
    font-size: clamp(22px, 2.3vw, 32px);
    line-height: 1.35;
    font-weight: 650;
}

.ps-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.ps-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.ps-btn-primary {
    background: var(--ps-white);
    color: var(--ps-green-dark);
}

.ps-btn-outline {
    border-color: rgba(255, 255, 255, .6);
    color: var(--ps-white);
    background: transparent;
}

.ps-btn-outline:hover {
    background: var(--ps-white);
    color: var(--ps-green-dark);
}

.ps-lightbox {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(4, 18, 10, .9);
}

.ps-lightbox.is-open {
    display: flex;
}

.ps-lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    border-radius: 18px;
    background: var(--ps-white);
    object-fit: contain;
}

.ps-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: transparent;
    color: var(--ps-white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 991px) {
    .ps-heading-section {
        padding: 70px 0 48px;
    }

    .ps-products,
    .ps-process {
        padding: 72px 0;
    }

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

    .ps-process-card {
        grid-template-columns: 1fr;
    }

    .ps-process-image {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .ps-container {
        width: min(100% - 28px, 1240px);
    }

    .ps-products,
    .ps-process {
        padding: 58px 0;
    }

    .ps-section-heading {
        margin-bottom: 28px;
    }

    .ps-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ps-card h3 {
        min-height: auto;
        font-size: 18px;
    }

    .ps-process-image {
        min-height: 250px;
    }

    .ps-process-content {
        padding: 30px 22px;
    }

    .ps-actions {
        flex-direction: column;
    }

    .ps-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
