/* ==============================
   INDEX PAGE
============================== */

/* Detail block */

.home-detail {
    padding: 96px 0;
    overflow-x: clip;
    background:
        radial-gradient(circle at 88% 8%, rgba(143, 191, 77, 0.18), transparent 28%),
        #f4f7f0;
}

.home-detail__head {
    max-width: 820px;
    margin-bottom: 54px;
    min-width: 0;
}

.home-detail__head h2 {
    margin: 0;
    color: #101410;
    font-size: clamp(54px, 7vw, 98px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.home-detail__head h2 span {
    color: var(--primary);
}

.home-detail__head p {
    max-width: 760px;
    margin: 28px 0 0;
    color: #556052;
    font-size: 21px;
    line-height: 1.55;
}

.home-detail__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    min-width: 0;
}

.home-detail-card {
    min-height: 248px;
    min-width: 0;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(11, 61, 44, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 44px rgba(6, 20, 15, 0.07);
}

.home-detail-card--wide {
    grid-column: span 2;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.72)),
        radial-gradient(circle at 72% 18%, rgba(143, 191, 77, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(11, 61, 44, 0.10), rgba(255, 255, 255, 0.94));
}

.home-detail-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    border: 1px solid rgba(11, 61, 44, 0.20);
    border-radius: 14px;
    color: var(--primary);
    background: #eaf1e4;
}

.home-detail-card__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-detail-card h3 {
    margin: 0 0 12px;
    color: #101410;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.home-detail-card p {
    max-width: 720px;
    margin: 0;
    color: #566052;
    font-size: 17px;
    line-height: 1.58;
}

/* How it works */

.home-flow {
    padding: 110px 0;
    overflow-x: clip;
    background: #ffffff;
    border-top: 1px solid rgba(16, 20, 16, 0.08);
}

.home-flow__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: center;
}

.home-flow__content,
.home-flow__steps,
.home-flow-step {
    min-width: 0;
}

.home-flow__content h2 {
    margin: 0;
    color: #101410;
    font-size: clamp(48px, 5.8vw, 82px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.home-flow__content h2 span {
    color: var(--primary);
}

.home-flow__content p:not(.home-section-label) {
    max-width: 500px;
    margin: 28px 0 34px;
    color: #556052;
    font-size: 20px;
    line-height: 1.55;
}

.home-flow__steps {
    display: grid;
    gap: 20px;
}

.home-flow-step {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 20px;
    align-items: start;
    padding: 32px 34px;
    border: 1px solid rgba(11, 61, 44, 0.14);
    border-radius: 22px;
    background: rgba(244, 247, 240, 0.82);
    box-shadow: 0 20px 46px rgba(6, 20, 15, 0.06);
}

.home-flow-step strong {
    color: var(--primary);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.home-flow-step h3 {
    margin: 0 0 8px;
    color: #101410;
    font-size: 20px;
    line-height: 1.2;
}

.home-flow-step p {
    margin: 0;
    color: #556052;
    font-size: 17px;
    line-height: 1.55;
}

/* Proof section */

.home-proof {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-left: clamp(32px, 6vw, 112px);
    padding-right: clamp(32px, 6vw, 112px);
    color: #ffffff;
    background-image:
        radial-gradient(circle at 78% 24%, rgba(143, 191, 77, 0.22), transparent 32%),
        linear-gradient(90deg, rgba(2, 5, 4, 0.94) 0%, rgba(6, 20, 15, 0.82) 38%, rgba(6, 20, 15, 0.36) 100%),
        url("../images/hero-about.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-proof__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(2, 5, 4, 0.72), rgba(2, 5, 4, 0.16)),
        radial-gradient(circle at 16% 80%, rgba(199, 229, 109, 0.12), transparent 30%);
}

.home-proof__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 90px 0;
}

.home-proof__content {
    width: 100%;
    max-width: 720px;
    min-width: 0;
}

.home-proof__icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 22px;
    color: var(--accent-strong);
}

.home-proof__icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-proof h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(48px, 5.6vw, 76px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.home-proof h2 span {
    color: var(--accent-strong);
}

.home-proof p {
    max-width: 680px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.55;
}

/* Product cards */

.home-prices {
    padding: 96px 0 110px;
    overflow-x: clip;
    background:
        radial-gradient(circle at 12% 6%, rgba(143, 191, 77, 0.14), transparent 28%),
        #f4f7f0;
}

.home-prices__head {
    max-width: 820px;
    margin-bottom: 58px;
    min-width: 0;
}

.home-prices__head h2 {
    margin: 0;
    color: #101410;
    font-size: clamp(52px, 6vw, 86px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.075em;
}

.home-prices__head p {
    max-width: 780px;
    margin: 28px 0 0;
    color: #556052;
    font-size: 20px;
    line-height: 1.55;
}

.home-prices__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.home-price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    min-width: 0;
    padding: 42px 38px 38px;
    border: 1px solid rgba(11, 61, 44, 0.16);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 22px 54px rgba(6, 20, 15, 0.08);
}

.home-price-card--featured {
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 18%, rgba(143, 191, 77, 0.20), transparent 32%),
        #06140f;
    border-color: rgba(143, 191, 77, 0.38);
    transform: translateY(-18px);
}

.home-price-card__badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 999px;
    color: #07140f;
    background: var(--accent-strong);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.home-price-card h3 {
    margin: 0 0 8px;
    color: #101410;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.home-price-card--featured h3 {
    color: #ffffff;
}

.home-price-card__note {
    margin: 0;
    color: #63705f;
    font-size: 16px;
    line-height: 1.4;
}

.home-price-card--featured .home-price-card__note {
    color: rgba(255, 255, 255, 0.62);
}

.home-price-card__price {
    margin: 34px 0 28px;
    color: #101410;
    font-size: clamp(48px, 5vw, 62px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.07em;
}

.home-price-card--featured .home-price-card__price {
    color: #ffffff;
}

.home-price-card__price span {
    color: #63705f;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-price-card--featured .home-price-card__price span {
    color: rgba(255, 255, 255, 0.58);
}

.home-price-card ul {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-price-card li {
    position: relative;
    padding-left: 34px;
    color: #556052;
    font-size: 17px;
    line-height: 1.35;
}

.home-price-card--featured li {
    color: rgba(255, 255, 255, 0.74);
}

.home-price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: #eaf1e4;
    font-size: 12px;
    font-weight: 900;
}

.home-price-card--featured li::before {
    color: var(--accent-strong);
    background: rgba(143, 191, 77, 0.18);
}

.home-price-card a {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border: 2px solid var(--primary);
    border-radius: 999px;
    color: var(--primary);
    background: transparent;
    font-weight: 900;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-price-card a:hover {
    color: #ffffff;
    background: var(--primary);
    transform: translateY(-2px);
}

.home-price-card--featured a {
    color: #07140f;
    border-color: transparent;
    background: linear-gradient(135deg, #c7e56d, #8fbf4d);
}

.home-price-card--featured a:hover {
    color: #07140f;
    background: linear-gradient(135deg, #d5f27a, #9dcb58);
}

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

@media (max-width: 1080px) {
    .home-flow__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .home-prices__grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }

    .home-price-card--featured {
        transform: none;
    }
}

@media (max-width: 1020px) {
    .home-detail__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-detail-card--wide {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .home-proof {
        padding-left: 26px;
        padding-right: 26px;
        background-position: center;
    }

    .home-proof__inner {
        padding-top: 76px;
        padding-bottom: 76px;
    }
}

@media (max-width: 760px) {

    .home-detail,
    .home-flow,
    .home-prices {
        padding: 72px 0;
    }

    .home-detail__head {
        max-width: 100%;
        margin-bottom: 34px;
    }

    .home-detail__head h2 {
        max-width: 100%;
        font-size: clamp(42px, 14vw, 64px);
        line-height: 0.96;
        letter-spacing: -0.055em;
    }

    .home-detail__head p {
        max-width: 100%;
        margin-top: 22px;
        font-size: 17px;
        line-height: 1.58;
    }

    .home-detail__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .home-detail-card,
    .home-detail-card--wide {
        grid-column: auto;
    }

    .home-detail-card {
        min-height: auto;
        padding: 24px;
        border-radius: 18px;
    }

    .home-detail-card__icon {
        width: 46px;
        height: 46px;
        margin-bottom: 22px;
    }

    .home-detail-card h3 {
        font-size: 21px;
    }

    .home-detail-card p {
        font-size: 16px;
    }

    .home-flow__content h2,
    .home-prices__head h2,
    .home-proof h2 {
        letter-spacing: -0.06em;
    }

    .home-flow-step {
        grid-template-columns: 1fr;
        padding: 26px;
    }

    .home-proof {
        min-height: 430px;
    }

    .home-proof__overlay {
        background: linear-gradient(180deg, rgba(2, 5, 4, 0.78), rgba(2, 5, 4, 0.94));
    }

    .home-proof p,
    .home-prices__head p {
        font-size: 18px;
    }

    .home-price-card {
        min-height: auto;
        padding: 34px 28px;
    }
}

@media (max-width: 640px) {
    .home-proof__content {
        max-width: 100%;
    }

    .home-btn {
        width: 100%;
        min-height: 52px;
    }
}

@media (max-width: 520px) {

    .home-flow__content h2,
    .home-prices__head h2,
    .home-proof h2 {
        font-size: 46px;
    }

    .home-flow__content p:not(.home-section-label) {
        font-size: 18px;
    }

    .home-price-card__price {
        font-size: 48px;
    }
}

@media (max-width: 420px) {
    .home-proof {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-detail__head h2 {
        font-size: clamp(38px, 13.5vw, 54px);
        letter-spacing: -0.045em;
    }

    .home-detail-card {
        padding: 22px;
    }
}

/* ==============================
   HOME CATEGORIES
============================== */

.home-categories {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 8%, rgba(199, 229, 109, 0.16), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f4f7f0 100%);
}

.home-categories__head {
    max-width: 940px;
    margin-bottom: 46px;
}

.home-categories__head h2 {
    margin: 0;
    color: #101410;
    font-size: clamp(42px, 5.8vw, 78px);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.home-categories__head p {
    max-width: 760px;
    margin: 22px 0 0;
    color: #556052;
    font-size: 18px;
    line-height: 1.7;
}

.home-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-category-card {
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid rgba(11, 61, 44, 0.12);
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 8%, rgba(199, 229, 109, 0.14), transparent 32%),
        #ffffff;
    box-shadow:
        0 20px 54px rgba(6, 20, 15, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.70);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease;
}

.home-category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(143, 191, 77, 0.34);
    box-shadow:
        0 30px 76px rgba(6, 20, 15, 0.13),
        inset 0 0 0 1px rgba(255, 255, 255, 0.90);
}

.home-category-card span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: auto;
    border-radius: 50%;
    color: #07140f;
    background: linear-gradient(135deg, #c7e56d, #8fbf4d);
    font-size: 15px;
    font-weight: 950;
}

.home-category-card h3 {
    margin: 44px 0 14px;
    color: #101410;
    font-size: 26px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.home-category-card p {
    margin: 0;
    color: #556052;
    font-size: 16px;
    line-height: 1.62;
}

.home-category-card a {
    width: fit-content;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    margin-top: 26px;
    padding: 0 18px;
    border: 1px solid rgba(11, 61, 44, 0.14);
    border-radius: 999px;
    color: #101410;
    background: #f7f9f3;
    font-size: 14px;
    font-weight: 900;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.home-category-card a:hover {
    color: #ffffff;
    border-color: #0b3d2c;
    background: #0b3d2c;
    transform: translateY(-2px);
}

/* ==============================
   HOME CTA
============================== */

.home-cta {
    padding: 104px 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(143, 191, 77, 0.14), transparent 30%),
        #ffffff;
}

.home-cta__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: center;
    padding: 46px;
    border-radius: 36px;
    color: #ffffff;
    background:
        radial-gradient(circle at 92% 12%, rgba(199, 229, 109, 0.22), transparent 32%),
        linear-gradient(135deg, #06140f 0%, #0b3d2c 100%);
    box-shadow: 0 30px 80px rgba(6, 20, 15, 0.18);
}

.home-cta .home-section-label {
    color: var(--accent-strong, #c7e56d);
}

.home-cta__box h2 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 5.8vw, 74px);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.home-cta__box p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 18px;
    line-height: 1.7;
}

.home-cta__actions {
    display: grid;
    gap: 12px;
    justify-items: stretch;
    min-width: 230px;
}

.home-cta__actions .home-btn {
    width: 100%;
    justify-content: center;
}

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

@media (max-width: 1180px) {
    .home-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-cta__box {
        grid-template-columns: 1fr;
    }

    .home-cta__actions {
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 680px) {

    .home-categories,
    .home-cta {
        padding: 72px 0;
    }

    .home-categories__head h2,
    .home-cta__box h2 {
        font-size: clamp(38px, 12vw, 58px);
        letter-spacing: -0.05em;
    }

    .home-categories__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-category-card {
        min-height: auto;
        padding: 24px;
        border-radius: 24px;
    }

    .home-category-card span {
        margin-bottom: 34px;
    }

    .home-category-card h3 {
        margin-top: 0;
    }

    .home-cta__box {
        padding: 28px;
        border-radius: 28px;
    }

    .home-cta__actions {
        max-width: none;
    }
}