:root {
    --kg-green: #6aa84f;
    --kg-green-dark: #4f8439;
    --kg-brown: #7a5648;
    --kg-bronze: #c79a72;
    --kg-cream: #f7f0ea;
    --kg-ink: #12110f;
    --kg-muted: rgba(247, 240, 234, .72);
    --kg-line: rgba(255, 255, 255, .12);
}

.kg-footer,
.kg-footer *,
.kg-contact-widget,
.kg-contact-widget-mini,
.kg-contact-widget *,
.kg-contact-widget-mini * {
    box-sizing: border-box;
}

.kg-footer {
    position: relative;
    overflow: hidden;
    color: var(--kg-cream);
    background:
        radial-gradient(circle at 12% 8%, rgba(106, 168, 79, .24), transparent 28%),
        radial-gradient(circle at 86% 10%, rgba(199, 154, 114, .24), transparent 32%),
        linear-gradient(135deg, #11100f 0%, #1b1715 48%, #0e100d 100%);
    isolation: isolate;
    margin: 0;
    padding: 0;
}

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

.kg-footer__ambient {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    filter: blur(80px);
    opacity: .22;
    pointer-events: none;
    z-index: -1;
}

.kg-footer__ambient--left {
    left: -150px;
    top: 50px;
    background: var(--kg-green);
}

.kg-footer__ambient--right {
    right: -160px;
    bottom: 60px;
    background: var(--kg-bronze);
}

.kg-footer-hero {
    padding: 54px 0 20px;
}

.kg-footer-hero__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    padding: 32px;
    border: 1px solid var(--kg-line);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045));
    box-shadow: 0 28px 90px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px);
}

.kg-footer-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #dff3d6;
    background: rgba(106, 168, 79, .16);
    border: 1px solid rgba(106, 168, 79, .28);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.kg-footer-hero h2 {
    max-width: 720px;
    margin: 0 0 12px;
    color: #fffaf3;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.06;
    letter-spacing: -.03em;
}

.kg-footer-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--kg-muted);
    font-size: 15px;
    line-height: 1.75;
}

.kg-footer-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.kg-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 850;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.kg-btn:hover {
    transform: translateY(-3px);
}

.kg-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--kg-green), var(--kg-green-dark));
    box-shadow: 0 18px 45px rgba(106, 168, 79, .25);
}

.kg-btn--ghost {
    color: #fffaf3;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .07);
}

.kg-btn--ghost:hover {
    border-color: rgba(199, 154, 114, .5);
}

.kg-footer-trust {
    padding: 22px 0 20px;
}

.kg-footer-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kg-trust-card {
    min-height: 156px;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid var(--kg-line);
    background: linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
    box-shadow: 0 20px 70px rgba(0, 0, 0, .18);
    transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

.kg-trust-card:hover {
    transform: translateY(-6px);
    border-color: rgba(106, 168, 79, .5);
    background: linear-gradient(145deg, rgba(106, 168, 79, .14), rgba(255, 255, 255, .055));
}

.kg-trust-card__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 17px;
    color: #dff3d6;
    background: rgba(106, 168, 79, .14);
    border: 1px solid rgba(106, 168, 79, .28);
}

.kg-trust-card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kg-trust-card h3 {
    margin: 0 0 8px;
    color: #fffaf3;
    font-size: 16px;
    line-height: 1.25;
}

.kg-trust-card p {
    margin: 0;
    color: var(--kg-muted);
    font-size: 13px;
    line-height: 1.6;
}

.kg-footer-main {
    padding: 22px 0 44px;
}

.kg-footer-main__grid {
    display: grid;
    grid-template-columns: 1.35fr .78fr .78fr 1.02fr;
    gap: 18px;
    align-items: stretch;
}

.kg-footer-card {
    position: relative;
    padding: 26px;
    border-radius: 30px;
    border: 1px solid var(--kg-line);
    background: rgba(255, 255, 255, .055);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
    overflow: hidden;
}

.kg-footer-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--kg-green), var(--kg-bronze));
    opacity: .78;
}

.kg-footer-brand__logo {
    display: inline-flex;
    max-width: 215px;
    margin-bottom: 20px;
}

.kg-footer-brand__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.kg-footer-brand__text {
    max-width: 430px;
    margin: 0 0 22px;
    color: var(--kg-muted);
    font-size: 15px;
    line-height: 1.75;
}

.kg-footer-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.kg-footer-payments {
    margin-bottom: 20px;
}

.kg-footer-payments img {
    width: auto;
    height: 30px;
    max-width: 78px;
    padding: 5px 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    transition: transform .25s ease;
}

.kg-footer-payments img:hover {
    transform: translateY(-3px);
}

.kg-contact-widget__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fffaf3;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.kg-contact-widget__icon:hover {
    transform: translateY(-4px);
    background: rgba(106, 168, 79, .18);
    border-color: rgba(106, 168, 79, .5);
}

.kg-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.kg-footer-social {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: rgba(255, 255, 255, .06);

    border: 1px solid rgba(255, 255, 255, .10);

    backdrop-filter: blur(12px);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease;

    text-decoration: none;
}

.kg-footer-social svg {
    width: 28px;
    height: 28px;
    display: block;
}

.kg-footer-social:hover {
    transform: translateY(-5px);
}

.kg-footer-social.telegram:hover {
    border-color: #229ED9;
    box-shadow: 0 10px 30px rgba(34, 158, 217, .25);
}

.kg-footer-social.viber:hover {
    border-color: #7d3daf;
    box-shadow: 0 10px 30px rgba(125, 61, 175, .25);
}

.kg-footer-social.instagram:hover {
    border-color: #E4405F;
    box-shadow: 0 10px 30px rgba(228, 64, 95, .25);
}

.kg-footer-social.tiktok:hover {
    border-color: #25F4EE;
    box-shadow: 0 10px 30px rgba(37, 244, 238, .25);
}

@media(max-width:767px) {

    .kg-footer-socials {
        justify-content: flex-start;
    }

    .kg-footer-social {
        width: 48px;
        height: 48px;
    }

    .kg-footer-social svg {
        width: 24px;
        height: 24px;
    }

}

.kg-footer-accordion__btn {
    width: 100%;
    padding: 0;
    margin: 0 0 18px;
    border: 0;
    background: transparent;
    color: #fffaf3;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 850;
    text-align: left;
    pointer-events: none;
}

.kg-footer-menu,
.kg-footer-contact__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kg-footer-menu li {
    margin-bottom: 12px;
}

.kg-footer-menu a {
    position: relative;
    display: inline-flex;
    color: rgba(247, 240, 234, .75);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    transition: color .25s ease, transform .25s ease;
}

.kg-footer-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--kg-green), var(--kg-bronze));
    transition: width .25s ease;
}

.kg-footer-menu a:hover {
    color: #fffaf3;
    transform: translateX(4px);
}

.kg-footer-menu a:hover::after {
    width: 100%;
}

.kg-footer-contact__list li {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.kg-footer-contact__list span {
    color: #b9dfac;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}

.kg-footer-contact__list a,
.kg-footer-contact__list p {
    margin: 0;
    color: rgba(247, 240, 234, .84);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.kg-footer-contact__list a:hover {
    color: #fffaf3;
}

.kg-footer-contact__cta {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--kg-green), var(--kg-green-dark));
    text-decoration: none;
    font-weight: 850;
    box-shadow: 0 18px 45px rgba(106, 168, 79, .22);
    transition: transform .25s ease, box-shadow .25s ease;
    font-size: 14px;
}

.kg-footer-contact__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(106, 168, 79, .32);
}

.kg-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding: 18px 0;
    background: rgba(0, 0, 0, .2);
}

.kg-footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.kg-footer-bottom p {
    margin: 0;
    color: rgba(247, 240, 234, .62);
    font-size: 13px;
}

.kg-footer-bottom__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.kg-footer-bottom a {
    color: rgba(247, 240, 234, .72);
    text-decoration: none;
    font-size: 13px;
}

.kg-footer-bottom a:hover {
    color: #fffaf3;
}

.kg-mobile-cta {
    display: none;
}

.kg-footer-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.kg-footer-visible {
    opacity: 1;
    transform: translateY(0);
}

.kg-contact-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    width: 365px;
    max-width: calc(100vw - 28px);
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}

.kg-contact-widget.is-hidden,
.kg-contact-widget-mini.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.kg-contact-widget.is-hidden {
    transform: translateY(20px) scale(.96);
}

.kg-contact-widget__inner {
    position: relative;
    padding: 22px 20px 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #e9eee7;
    box-shadow: 0 18px 45px rgba(20, 32, 22, .12);
    overflow: hidden;
}

.kg-contact-widget__inner::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--kg-green), var(--kg-brown));
}

.kg-contact-widget__badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: var(--kg-green);
    background: #f3f8f1;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kg-contact-widget__title {
    margin: 0 42px 10px 0;
    color: #222;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 850;
}

.kg-contact-widget__text,
.kg-contact-widget__meta {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.kg-contact-widget__text {
    margin: 0 0 18px;
}

.kg-contact-widget__actions {
    display: grid;
    gap: 14px;
}

.kg-contact-widget__phone {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 14px;
    color: #fff;
    background: var(--kg-green);
    font-size: 16px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(106, 168, 79, .22);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.kg-contact-widget__phone:hover {
    background: var(--kg-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(106, 168, 79, .28);
}

.kg-contact-widget__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kg-contact-widget__icon {
    color: #26301f;
    background: #fff;
    border-color: #edf1ec;
    box-shadow: 0 6px 18px rgba(20, 32, 22, .06);
}

.kg-contact-widget__meta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf1ec;
}

.kg-contact-widget__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    color: #666;
    background: #f5f7f4;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.kg-contact-widget__close:hover {
    color: var(--kg-green);
    background: #edf4ea;
    transform: rotate(90deg);
}

.kg-contact-widget-mini {
    position: fixed;
    right: 24px;
    top: 18vh;
    z-index: 9998;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.kg-contact-widget-mini.is-hidden {
    transform: scale(.85);
}

.kg-contact-widget-mini__button {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--kg-green);
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(106, 168, 79, .28);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.kg-contact-widget-mini__button:hover {
    background: var(--kg-green-dark);
    transform: translateY(-2px) scale(1.03);
}

.kg-contact-widget-mini__button svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 1100px) {

    .kg-footer-hero__card,
    .kg-footer-main__grid {
        grid-template-columns: 1fr 1fr;
    }

    .kg-footer-hero__content,
    .kg-footer-hero__actions {
        grid-column: 1 / -1;
    }

    .kg-footer-hero__actions {
        justify-content: flex-start;
    }

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

@media (max-width: 767px) {
    .kg-footer {
        padding-bottom: 78px;
    }

    .kg-footer .container {
        width: min(100% - 28px, 1240px);
    }

    .kg-footer-hero {
        padding-top: 34px;
    }

    .kg-footer-hero__card {
        grid-template-columns: 1fr;
        padding: 22px;
        border-radius: 26px;
    }

    .kg-footer-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kg-footer-trust__grid,
    .kg-footer-main__grid {
        grid-template-columns: 1fr;
    }

    .kg-trust-card {
        min-height: auto;
        padding: 18px;
        border-radius: 22px;
    }

    .kg-footer-card {
        padding: 20px;
        border-radius: 22px;
    }

    .kg-footer-accordion__btn {
        position: relative;
        margin-bottom: 0;
        padding-right: 36px;
        pointer-events: auto;
        cursor: pointer;
    }

    .kg-footer-accordion__btn::after {
        content: "+";
        position: absolute;
        right: 0;
        top: 50%;
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #dff3d6;
        background: rgba(255, 255, 255, .08);
        transform: translateY(-50%);
    }

    .kg-footer-accordion.is-open .kg-footer-accordion__btn::after {
        content: "−";
    }

    .kg-footer-accordion__body {
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease, padding-top .35s ease;
    }

    .kg-footer-accordion.is-open .kg-footer-accordion__body {
        max-height: 680px;
        padding-top: 18px;
    }

    .kg-footer-bottom__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .kg-mobile-cta {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 9997;
        display: grid;
        grid-template-columns: 1fr 1.15fr;
        gap: 8px;
        padding: 8px;
        border-radius: 22px;
        background: rgba(20, 16, 14, .78);
        backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
    }

    .kg-mobile-cta a {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        color: #fffaf3;
        text-decoration: none;
        font-size: 13px;
        font-weight: 850;
        background: rgba(255, 255, 255, .1);
    }

    .kg-mobile-cta a:last-child {
        color: #fff;
        background: linear-gradient(135deg, var(--kg-green), var(--kg-green-dark));
    }

    .kg-contact-widget {
        display: none;
    }

    .kg-contact-widget-mini {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .kg-footer *,
    .kg-contact-widget *,
    .kg-contact-widget-mini * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}