:root {
    --g3-bg: #f5f1e8;
    --g3-panel: #fffdf8;
    --g3-ink: #132426;
    --g3-muted: #657276;
    --g3-line: #d8d0c1;
    --g3-green: #08786f;
    --g3-green-dark: #075e58;
    --g3-night: #14282b;
    --g3-blue: #255f85;
    --g3-red: #d85a2b;
    --g3-yellow: #e9bf45;
    --g3-soft: #ebe5da;
    --g3-shadow: 0 18px 46px rgba(19, 36, 38, .12);
}

body.gelpi-v3 {
    background: var(--g3-bg);
    color: var(--g3-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 1.42;
    margin: 0;
}

.gelpi-v3 *,
.gelpi-v3 *::before,
.gelpi-v3 *::after {
    box-sizing: border-box;
}

.gelpi-v3 img {
    display: block;
    height: auto;
    max-width: 100%;
}

.g3-shell {
    min-height: 100vh;
}

.g3-container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 22px;
}

.g3-nav {
    background: rgba(245, 241, 232, .96);
    border-bottom: 1px solid var(--g3-line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.g3-nav-inner {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    min-height: 74px;
}

.g3-brand {
    align-items: center;
    color: var(--g3-ink);
    display: inline-flex;
    gap: 11px;
    text-decoration: none;
}

.g3-brand img {
    background: #fff;
    border: 1px solid var(--g3-line);
    border-radius: 50%;
    height: 46px;
    object-fit: cover;
    width: 46px;
}

.g3-brand strong,
.g3-brand span {
    display: block;
}

.g3-brand strong {
    font-size: 24px;
    line-height: 1;
}

.g3-brand span {
    color: var(--g3-muted);
    font-size: 13px;
    font-weight: 800;
    margin-top: 4px;
}

.g3-menu {
    align-items: center;
    display: flex;
    gap: 8px;
}

.g3-menu a,
.g3-button {
    align-items: center;
    border-radius: 8px;
    color: var(--g3-ink);
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
    padding: 11px 15px;
    text-decoration: none;
}

.g3-menu a:hover {
    background: var(--g3-soft);
}

.g3-button {
    background: var(--g3-green);
    border: 1px solid var(--g3-green);
    color: #fffaf0;
    cursor: pointer;
}

.g3-button:hover {
    background: var(--g3-green-dark);
}

.g3-button.secondary {
    background: var(--g3-night);
    border-color: var(--g3-night);
}

.g3-button.ghost {
    background: var(--g3-panel);
    border-color: var(--g3-line);
    color: var(--g3-ink);
}

.g3-hero {
    padding: 64px 0 34px;
}

.g3-hero-grid {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
}

.g3-home-hero-grid {
    align-items: start;
}

.g3-hero-action-row {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
}

.g3-hero-action-row .g3-search-panel,
.g3-hero-action-row .g3-steps {
    margin-top: 0;
}

.g3-hero-action-row .g3-steps {
    padding-top: 12px;
}

.g3-kicker {
    color: var(--g3-green-dark);
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: .08em;
    margin: 0 0 13px;
    text-transform: uppercase;
}

.g3-hero h1 {
    color: var(--g3-ink);
    font-size: clamp(44px, 7vw, 86px);
    letter-spacing: 0;
    line-height: .98;
    margin: 0;
    max-width: 850px;
}

.g3-lede {
    color: #334246;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.28;
    margin: 24px 0 0;
    max-width: 780px;
}

.g3-panel,
.g3-card {
    background: var(--g3-panel);
    border: 1px solid var(--g3-line);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.g3-search-panel {
    margin-top: 30px;
    padding: 16px;
}

.g3-search-form {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.g3-search-form input {
    background: #fff;
    border: 1px solid var(--g3-line);
    border-radius: 8px;
    color: var(--g3-ink);
    font: inherit;
    font-size: 21px;
    font-weight: 800;
    min-height: 58px;
    min-width: 0;
    padding: 0 17px;
    width: 100%;
}

.g3-search-form input:focus {
    border-color: var(--g3-green);
    box-shadow: 0 0 0 4px rgba(8, 120, 111, .12);
    outline: 0;
}

.g3-examples {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.g3-examples span {
    color: var(--g3-muted);
    font-size: 13px;
    font-weight: 900;
}

.g3-example {
    background: #f0eadf;
    border: 1px solid var(--g3-line);
    border-radius: 999px;
    color: var(--g3-ink);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    padding: 7px 10px;
}

.g3-steps {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.g3-steps-inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.g3-step {
    align-items: flex-start;
    display: grid;
    gap: 11px;
    grid-template-columns: 34px minmax(0, 1fr);
}

.g3-step span {
    align-items: center;
    background: var(--g3-night);
    border-radius: 50%;
    color: #fffaf0;
    display: inline-flex;
    font-weight: 1000;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.g3-step strong,
.g3-step p {
    display: block;
    margin: 0;
}

.g3-step strong {
    font-size: 18px;
}

.g3-step p {
    color: var(--g3-muted);
    margin-top: 2px;
}

.g3-side {
    display: grid;
    gap: 14px;
}

.g3-preview-card {
    background: var(--g3-night);
    border-radius: 8px;
    color: #fffaf0;
    padding: 22px;
}

.g3-preview-top {
    align-items: center;
    display: flex;
    gap: 14px;
}

.g3-preview-top span,
.g3-preview-top strong {
    display: block;
}

.g3-preview-top span {
    color: rgba(255, 250, 240, .68);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.g3-preview-top strong {
    color: #fffaf0;
    font-size: 24px;
    line-height: 1.08;
    margin-top: 3px;
}

.g3-preview-card p {
    color: rgba(255, 250, 240, .76);
    margin: 16px 0 0;
}

.g3-preview-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.g3-preview-grid span {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    color: #fffaf0;
    font-size: 13px;
    font-weight: 900;
    padding: 9px;
}

.g3-side-card {
    padding: 22px;
}

.g3-side-card.dark {
    background: var(--g3-night);
    color: #fffaf0;
}

.g3-side-card h2,
.g3-side-card h3,
.g3-card h2,
.g3-card h3 {
    margin: 0;
}


.g3-dark-band h2 ,
.g3-dark-band h3 {
    color: #FFF;
}

.g3-side-card p,
.g3-card p {
    color: var(--g3-muted);
    margin: 10px 0 0;
}

.g3-side-card.dark p {
    color: rgba(255, 250, 240, .78);
}

.g3-recent-list,
.g3-mini-list {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.g3-recent-item,
.g3-mini-item {
    align-items: center;
    border: 1px solid rgba(216, 208, 193, .85);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 11px;
}

.g3-recent-main,
.g3-mini-main,
.g3-domain-line {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.g3-store-icon {
    background: #fff;
    border: 1px solid var(--g3-line);
    border-radius: 7px;
    flex: 0 0 auto;
    height: 32px;
    object-fit: contain;
    padding: 3px;
    width: 32px;
}

.g3-domain-line {
    color: rgba(255, 250, 240, .78);
    font-weight: 900;
}

.g3-recent-item strong,
.g3-recent-item span,
.g3-mini-item strong,
.g3-mini-item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g3-recent-item span,
.g3-mini-item span {
    color: var(--g3-muted);
    font-size: 13px;
    font-weight: 800;
}

.g3-badge {
    background: #e3f0ed;
    border-radius: 999px;
    color: var(--g3-green-dark);
    font-size: 12px;
    font-weight: 1000;
    max-width: 120px;
    overflow: hidden;
    padding: 6px 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g3-section {
    padding: 34px 0;
}

.g3-tight-section {
    padding-top: 12px;
}

.g3-section-head {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.g3-section-head h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    margin: 0;
}

.g3-section-head p {
    color: var(--g3-muted);
    font-size: 18px;
    margin: 10px 0 0;
    max-width: 720px;
}

.g3-grid-4,
.g3-grid-3,
.g3-grid-2 {
    display: grid;
    gap: 16px;
}

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

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

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

.g3-card {
    color: var(--g3-ink);
    display: block;
    min-width: 0;
    padding: 20px;
    text-decoration: none;
}

.g3-intent-card span {
    color: var(--g3-green-dark);
    display: block;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .06em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.g3-intent-card h3 {
    font-size: 24px;
    line-height: 1.12;
}

.g3-card.clickable:hover {
    border-color: rgba(8, 120, 111, .55);
    box-shadow: var(--g3-shadow);
    transform: translateY(-1px);
}

.g3-stat strong {
    color: var(--g3-green-dark);
    display: block;
    font-size: 44px;
    line-height: 1;
}

.g3-platform-card {
    display: grid;
    gap: 14px;
    grid-template-columns: 52px minmax(0, 1fr);
}

.g3-logo {
    align-items: center;
    background: #fff;
    border: 1px solid var(--g3-line);
    border-radius: 10px;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    overflow: hidden;
    width: 52px;
}

.g3-logo img {
    max-height: 34px;
    max-width: 34px;
}

.g3-logo.letter {
    color: var(--g3-green-dark);
    font-size: 22px;
    font-weight: 1000;
}

.g3-dark-band {
    background: var(--g3-night);
    color: #fffaf0;
    margin-top: 34px;
    padding: 44px 0;
}

.g3-dark-band .g3-section-head p,
.g3-dark-band .g3-card p {
    color: rgba(255, 250, 240, .74);
}

.g3-dark-band .g3-card {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
    color: #fffaf0;
}

.g3-result-hero {
    background: var(--g3-night);
    border-radius: 10px;
    color: #fffaf0;
    display: grid;
    gap: 22px;
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 28px;
}

.g3-detection-card {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) auto;
}

.g3-detection-main {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.g3-detection-store,
.g3-detection-platform {
    align-items: center;
    display: flex;
    gap: 15px;
    min-width: 0;
}

.g3-detection-store strong,
.g3-detection-platform h1,
.g3-detection-platform span {
    display: block;
}

.g3-detection-store strong {
    color: #fffaf0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g3-detection-platform span,
.g3-detection-aside span {
    color: rgba(255, 250, 240, .66);
    font-size: 13px;
    font-weight: 1000;
    text-transform: uppercase;
}

.g3-detection-platform h1 {
    margin-top: 4px;
}

.g3-detection-aside {
    align-self: stretch;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    min-width: 180px;
    padding: 18px;
}

.g3-detection-aside strong {
    color: #fffaf0;
    font-size: 16px;
}

.g3-store-icon-lg {
    height: 48px;
    width: 48px;
}

.g3-result-hero .g3-logo {
    height: 82px;
    width: 82px;
}

.g3-result-hero .g3-logo img {
    max-height: 54px;
    max-width: 54px;
}

.g3-result-hero h1 {
    color: #fffaf0;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1;
    margin: 6px 0 0;
}

.g3-result-hero p {
    color: rgba(255, 250, 240, .78);
    margin: 0;
}

.g3-result-body {
    margin-top: 18px;
}

.g3-compact-related {
    padding: 18px;
}

.g3-related-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.g3-related-head a {
    color: var(--g3-green-dark);
    font-size: 14px;
    font-weight: 1000;
    text-decoration: none;
    white-space: nowrap;
}

.g3-mini-compact {
    padding: 9px 10px;
}

.g3-result-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.g3-result-summary div {
    background: var(--g3-panel);
    border: 1px solid var(--g3-line);
    border-radius: 8px;
    padding: 15px;
}

.g3-result-summary strong,
.g3-result-summary span {
    display: block;
}

.g3-result-summary strong {
    color: var(--g3-green-dark);
    font-size: 34px;
    line-height: 1;
}

.g3-result-summary span {
    color: var(--g3-muted);
    font-size: 13px;
    font-weight: 900;
    margin-top: 6px;
}

.g3-facts {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.g3-fact {
    background: var(--g3-panel);
    border: 1px solid var(--g3-line);
    border-radius: 8px;
    padding: 16px;
}

.g3-fact span,
.g3-fact strong {
    display: block;
}

.g3-fact span {
    color: var(--g3-muted);
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.g3-fact strong {
    font-size: 20px;
    margin-top: 7px;
}

.g3-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.g3-compact-search {
    margin-top: 18px;
}

.g3-map-card {
    display: grid;
    gap: 12px;
    grid-template-rows: auto 1fr auto;
    min-height: 190px;
}

.g3-map-card .g3-icon {
    align-items: center;
    background: #e2f1ee;
    border-radius: 10px;
    color: var(--g3-green-dark);
    display: inline-flex;
    font-size: 20px;
    font-weight: 1000;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.g3-empty {
    background: #fff7e2;
    border: 1px solid #e6c66a;
    border-radius: 8px;
    padding: 18px;
}

.g3-footer {
    border-top: 1px solid var(--g3-line);
    margin-top: 44px;
    padding: 28px 0;
}

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

.g3-footer p {
    color: var(--g3-muted);
    margin: 4px 0 0;
}

.g3-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.g3-footer-links a {
    color: var(--g3-ink);
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 920px) {
    .g3-nav-inner,
    .g3-footer-grid,
    .g3-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .g3-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .g3-menu a {
        background: var(--g3-panel);
        border: 1px solid var(--g3-line);
        justify-content: flex-start;
    }

    .g3-hero-grid,
    .g3-hero-action-row,
    .g3-grid-4,
    .g3-grid-3,
    .g3-grid-2,
    .g3-facts,
    .g3-steps-inline,
    .g3-result-summary {
        grid-template-columns: 1fr;
    }

    .g3-search-form {
        grid-template-columns: 1fr;
    }

    .g3-result-hero,
    .g3-detection-card {
        grid-template-columns: 1fr;
    }

    .g3-detection-aside {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 0;
    }

    .g3-detection-aside span {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .g3-container {
        padding: 0 16px;
    }

    .g3-hero {
        padding-top: 36px;
    }

    .g3-hero h1,
    .g3-result-hero h1 {
        font-size: 42px;
    }

    .g3-menu {
        grid-template-columns: 1fr;
    }

    .g3-search-form input {
        font-size: 18px;
    }
}
