/* Generatorz footer — standalone styles (gz-* namespace) */
.gz-footer-wrap {
    --gz-bg: #eef1f3;
    --gz-panel: #ffffff;
    --gz-ink: #11203c;
    --gz-ink-soft: #5b6577;
    --gz-line: #e1e4e7;
    --gz-red: #e0203a;
    --gz-red-dark: #a3122a;
    --gz-red-tint: #fdeaee;
    --gz-live: #22b573;
    --gz-radius: 22px;

    background: var(--gz-panel);
    padding: 0;
}

.gz-footer-wrap__inner {
    max-width: none;
    margin: 0;
}

.gz-footer {
    position: relative;
    background: var(--gz-panel);
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--gz-line);
    box-shadow: none;
    padding: clamp(28px, 5vw, 52px) clamp(18px, 4.5vw, 56px) 0;
}

/* ---- top row: brand + newsletter ---- */
.gz-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(28px, 5vw, 64px);
    padding-bottom: clamp(28px, 4vw, 40px);
    border-bottom: 1px solid var(--gz-line);
}

.gz-brand {
    flex: 1 1 320px;
    max-width: 360px;
    min-width: 0;
}

.gz-logo-link {
    display: inline-block;
    margin-bottom: 12px;
}

.gz-logo-link img {
    display: block;
    max-height: clamp(32px, 5vw, 42px);
    width: auto;
    height: auto;
}

.gz-logo-bar {
    width: 50px;
    height: 5px;
    background: var(--gz-red);
    border-radius: 3px;
    margin: 0 0 16px;
    transform: skewX(-6deg);
}

.gz-desc {
    margin: 0 0 14px;
    font-size: clamp(13.5px, 1.6vw, 14.5px);
    line-height: 1.65;
    color: var(--gz-ink-soft);
}

.gz-social__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
}

.gz-social__row a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gz-bg);
    border: 1px solid var(--gz-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gz-ink);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.gz-social__row a svg {
    width: 16px;
    height: 16px;
}

.gz-social__row a:hover {
    background: var(--gz-red);
    border-color: var(--gz-red);
    color: #fff;
    transform: translateY(-2px);
}

.gz-newsletter {
    width: min(100%, 420px);
    flex: 0 1 420px;
    background: linear-gradient(135deg, var(--gz-ink) 0%, #1b2c52 100%);
    border-radius: 16px;
    padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 28px);
    color: #fff;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}

.gz-newsletter::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(224, 32, 58, 0.35), transparent 70%);
    pointer-events: none;
}

.gz-newsletter__eyebrow {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ff8a9a;
    font-weight: 700;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.gz-newsletter h3 {
    margin: 0 0 18px;
    font-size: clamp(16px, 2.2vw, 18px);
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.95);
}

.gz-newsletter__form {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.gz-newsletter__form input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 13.5px;
    color: #fff;
    outline: none;
    transition: border-color 0.15s ease;
}

.gz-newsletter__form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.gz-newsletter__form input:focus {
    border-color: var(--gz-red);
}

.gz-newsletter__form button {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: var(--gz-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.gz-newsletter__form button:hover {
    background: var(--gz-red-dark);
}

.gz-newsletter__form button:active {
    transform: scale(0.94);
}

/* ---- columns ---- */
.gz-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3.5vw, 40px);
    padding: clamp(28px, 4vw, 40px) 0 clamp(32px, 4vw, 44px);
}

.gz-col h4 {
    margin: 0 0 6px;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--gz-ink);
}

.gz-col-bar {
    width: 22px;
    height: 3px;
    background: var(--gz-red);
    border-radius: 2px;
    margin-bottom: 18px;
}

.gz-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.gz-col a {
    color: var(--gz-ink-soft);
    text-decoration: none;
    font-size: 13.5px;
    display: inline-flex;
    transition: color 0.15s ease, transform 0.15s ease;
}

.gz-col a:hover {
    color: var(--gz-red);
    transform: translateX(3px);
}

/* ---- contact / circuit trace ---- */
.gz-contact__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 6px;
}

.gz-contact__head h4 {
    margin: 0;
}

.gz-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--gz-live);
    font-weight: 600;
}

.gz-status__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gz-live);
    animation: gz-pulse 2.2s infinite;
}

@keyframes gz-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 181, 115, 0.45);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(34, 181, 115, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 181, 115, 0);
    }
}

.gz-trace {
    position: relative;
    padding-left: 38px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gz-trace::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 6px;
    bottom: 6px;
    width: 0;
    border-left: 1.5px dashed var(--gz-line);
}

.gz-trace__row {
    position: relative;
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.gz-trace__node {
    position: absolute;
    left: -38px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--gz-red-tint);
    border: 2px solid var(--gz-panel);
    box-shadow: 0 0 0 1.5px var(--gz-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gz-trace__node svg {
    width: 13px;
    height: 13px;
    stroke: var(--gz-red-dark);
}

.gz-trace__text {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--gz-ink-soft);
    padding-top: 3px;
}

.gz-trace__text strong {
    display: block;
    color: var(--gz-ink);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 1px;
}

.gz-trace__text a {
    color: var(--gz-ink-soft);
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.gz-trace__text a:hover {
    color: var(--gz-red);
}

.gz-trace__address {
    display: block;
    margin-top: 1px;
    line-height: 1.55;
}

/* ---- bottom bar ---- */
.gz-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px 0;
    border-top: 1px solid var(--gz-line);
}

.gz-bottom p {
    margin: 0;
    font-size: 12.5px;
    color: var(--gz-ink-soft);
}

.gz-bottom__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
}

.gz-bottom__links a {
    color: var(--gz-ink-soft);
    text-decoration: none;
    transition: color 0.15s ease;
}

.gz-bottom__links a:hover {
    color: var(--gz-red);
}

.gz-bottom__links span {
    color: var(--gz-line);
}

/* ---- mobile-only footer blocks (accordion, contact, social) ---- */
.gz-footer-mobile {
    display: none;
}

/* ---- responsive ---- */
@media (max-width: 1100px) {
    .gz-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gz-col--contact {
        grid-column: 1 / -1;
        margin-top: 6px;
        padding-top: 14px;
        border-top: 1px solid var(--gz-line);
    }

    .gz-trace {
        padding-right: 0;
        max-width: 100%;
    }

    .gz-trace__text {
        word-break: normal;
        overflow-wrap: normal;
    }
}

@media (max-width: 900px) {
    .gz-top {
        flex-direction: column;
        gap: 16px;
        padding-bottom: 18px;
    }

    .gz-brand {
        flex: 0 0 auto;
        max-width: none;
        margin-bottom: 0;
    }

    .gz-logo-link {
        margin-bottom: 8px;
    }

    .gz-logo-bar {
        margin-bottom: 10px;
    }

    .gz-desc {
        margin-bottom: 10px;
    }

    .gz-social__row {
        gap: 8px;
    }

    .gz-newsletter {
        width: 100%;
        flex: 1 1 auto;
        align-self: stretch;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .gz-footer-desktop {
        display: none;
    }

    .gz-footer-mobile {
        display: block;
    }

    .gz-social__row--desktop {
        display: none;
    }

    .gz-top {
        gap: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .gz-brand {
        padding: 4px 0 16px;
    }

    .gz-desc {
        margin-bottom: 0;
        font-size: 14px;
        line-height: 1.55;
    }

    .gz-newsletter {
        margin: 0 0 22px;
        border-radius: 14px;
        padding: 20px 18px 18px;
    }

    .gz-newsletter h3 {
        margin-bottom: 14px;
        font-size: 16.5px;
        max-width: none;
    }

    .gz-newsletter__form {
        flex-direction: row;
        gap: 8px;
    }

    .gz-newsletter__form input {
        padding: 12px 13px;
    }

    .gz-newsletter__form button {
        width: 44px;
        height: 44px;
    }

    /* ---- accordion ---- */
    .gz-accordion {
        margin: 0 0 8px;
        border-top: 1px solid var(--gz-line);
    }

    .gz-accordion__item {
        border-bottom: 1px solid var(--gz-line);
    }

    .gz-accordion summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 2px;
        font-size: 14.5px;
        font-weight: 700;
        color: var(--gz-ink);
    }

    .gz-accordion summary::-webkit-details-marker {
        display: none;
    }

    .gz-chevron {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--gz-red-tint);
        color: var(--gz-red-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.25s ease, background 0.2s ease;
        flex-shrink: 0;
    }

    .gz-accordion__item[open] .gz-chevron {
        transform: rotate(45deg);
        background: var(--gz-red);
        color: #fff;
    }

    .gz-accordion ul {
        list-style: none;
        margin: 0;
        padding: 0 2px 16px;
        display: flex;
        flex-direction: column;
        gap: 11px;
    }

    .gz-accordion a {
        color: var(--gz-ink-soft);
        text-decoration: none;
        font-size: 13.5px;
    }

    .gz-accordion a:active {
        color: var(--gz-red);
    }

    /* ---- mobile contact ---- */
    .gz-footer-mobile .gz-contact {
        margin: 18px 0 0;
        padding-top: 18px;
        border-top: 1px solid var(--gz-line);
    }

    .gz-footer-mobile .gz-contact__head h3 {
        margin: 0;
        font-size: 14.5px;
        font-weight: 700;
    }

    .gz-footer-mobile .gz-contact__head {
        margin-bottom: 18px;
    }

    .gz-footer-mobile .gz-status {
        font-size: 11.5px;
        margin-left: auto;
    }

    .gz-footer-mobile .gz-trace {
        margin-bottom: 6px;
    }

    .gz-trace__text a {
        white-space: nowrap;
    }

    /* ---- mobile social block ---- */
    .gz-social {
        margin: 22px 0 0;
        padding: 18px 16px;
        background: var(--gz-bg);
        border-radius: 14px;
    }

    .gz-social > p {
        margin: 0 0 12px;
        font-size: 12.5px;
        font-weight: 700;
        letter-spacing: 0.03em;
        color: var(--gz-ink-soft);
        text-transform: uppercase;
    }

    .gz-social__row--mobile {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        gap: 10px;
        margin-bottom: 0;
    }

    .gz-social__row--mobile a {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        background: var(--gz-panel);
    }

    .gz-social__row--mobile a svg {
        width: 17px;
        height: 17px;
    }

    .gz-social__row--mobile a:active {
        background: var(--gz-red);
        border-color: var(--gz-red);
        color: #fff;
        transform: none;
    }

    /* ---- bottom bar ---- */
    .gz-bottom {
        flex-direction: column;
        margin-top: 24px;
        padding: 18px 0 22px;
        text-align: center;
        justify-content: center;
        gap: 8px;
    }

    .gz-bottom p {
        font-size: 12px;
        margin-bottom: 0;
    }

    .gz-bottom__links {
        justify-content: center;
        gap: 10px;
        font-size: 12px;
    }

    .gz-footer {
        padding: 28px 16px 20px;
    }

    .gz-footer-wrap {
        padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }

    body:has(.gz-footer-wrap) .floating-actions {
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 400px) {
    .gz-social__row--mobile a {
        width: 38px;
        height: 38px;
    }

    .gz-trace {
        padding-left: 34px;
    }

    .gz-trace__node {
        left: -34px;
        width: 24px;
        height: 24px;
    }

    .gz-trace__node svg {
        width: 11px;
        height: 11px;
    }
}
