:root {
    --color-primary: #50c878;
    --color-secondary: #7cb342;
    --color-accent: #daa520;
    --color-bg: #f0fdf4;
    --color-text: #1c3d28;
    --color-text-light: #3d5a45;
    --color-border: #c9d7c4;
    --color-ink: #14301c;
    --igo-page-w: 1120px;
    --igc-header-h: 90px;
    --space-lg: 28px;
    --font-display: "Abril Fatface", Georgia, serif;
    --font-body: "Crimson Text", Georgia, serif;
}

@media (max-width: 768px) {
    :root { --igc-header-h: 72px; }
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
}

html { scroll-padding-top: var(--igc-header-h); }

body {
    padding-top: var(--igc-header-h);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.55;
}

img, video, iframe { max-width: 100%; height: auto; }

a { color: #1f6b3a; }
a:hover { color: #14532d; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: 0.01em; }

p { margin: 0 0 0.8rem; }

[hidden] { display: none !important; }

.igo-container {
    max-width: var(--igo-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

.igo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.igc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--igc-header-h);
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--color-accent);
}

.igc-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: calc(var(--igc-header-h) - 3px);
}

.igc-logo { display: flex; align-items: center; flex: 0 0 auto; }
.igc-logo img { width: 180px; height: auto; display: block; }

.igc-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px 14px; }
.igc-nav a, .igc-nav a:visited { color: #1c3d28; text-decoration: none; font-size: 1.02rem; white-space: nowrap; }
.igc-nav a.is-active { color: #8a6a10; box-shadow: inset 0 -2px 0 var(--color-accent); }

.igc-header a, .igc-header a:visited { color: #1c3d28; }

.igc-burger, .igc-overlay, .igc-drawer { display: none; }

.igc-burger {
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--color-accent);
    background: #f0fdf4;
    padding: 10px;
    cursor: pointer;
}
.igc-burger span { display: block; height: 2px; margin: 5px 0; background: #1c3d28; }

.igc-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #f0fdf4;
    background: transparent;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    border: 0;
}
.igc-btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -2;
    background: conic-gradient(from var(--ig-turn, 0deg), #daa520, #50c878, #7cb342, #daa520);
    animation: ig-turn 3.2s linear infinite;
}
.igc-btn::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: #1c3d28;
}
.igc-btn-primary { color: #14301c; }
.igc-btn-primary::after { background: #daa520; }

@keyframes ig-turn { to { transform: rotate(1turn); } }

.igc-hero {
    background: linear-gradient(180deg, #d7f5df 0%, #f0fdf4 70%);
    padding: 48px 0 36px;
    border-bottom: 1px solid var(--color-border);
}
.igc-hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 12px; max-width: 18ch; }
.igc-hero-lead { max-width: 62ch; font-size: 1.25rem; }
.igc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 22px; }
.igc-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.igc-facts li {
    background: #fff;
    border: 1px solid var(--color-accent);
    padding: 12px 14px;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.igc-facts strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }

.igc-block { padding: 48px 0; }
.igc-block h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 14px; max-width: 22ch; }
.igc-rise { animation: ig-slide 0.55s ease both; }
@keyframes ig-slide {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: none; }
}

.igc-rank { display: flex; flex-direction: column; gap: 22px; }
.igc-rank-item {
    display: grid;
    grid-template-columns: auto 96px 1fr 200px;
    grid-template-areas:
        "pos icon name still"
        "pos icon dev still"
        "pos icon line still"
        "pos icon facts still"
        "pos icon actions still";
    gap: 6px 16px;
    align-items: start;
    background: #fff;
    padding: 18px;
    border: 1px solid #b7c8ad;
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}
.igc-rank-pos { grid-area: pos; font-family: var(--font-display); color: #8a6a10; margin: 0; }
.igc-icon { grid-area: icon; width: 96px; height: 96px; border-radius: 22%; object-fit: contain; background: #fff8e8; }
.igc-rank-name { grid-area: name; margin: 0; font-size: 1.7rem; }
.igc-rank-dev { grid-area: dev; margin: 0; color: var(--color-text-light); }
.igc-rank-line { grid-area: line; margin: 0; }
.igc-rank-facts { grid-area: facts; margin: 0; }
.igc-preview { grid-area: still; width: auto; height: auto; max-width: 200px; max-height: 240px; object-fit: contain; justify-self: end; }
.igc-rank-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.igc-criteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.igc-criteria article {
    background: #14301c;
    color: #f0fdf4;
    padding: 18px;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.igc-criteria h3 { margin: 0 0 8px; color: #daa520; font-size: 1.35rem; }

.igc-log { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--color-accent); }
.igc-log li { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.igc-log time { display: block; color: #8a6a10; font-weight: 700; }

.igc-faq { display: flex; flex-direction: column; gap: 8px; }
.igc-faq button {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    min-height: 44px;
}
.igc-faq .igc-answer { background: #fff; border: 1px solid var(--color-border); border-top: 0; padding: 0 14px 12px; }

.igc-cta {
    background: #14301c;
    color: #f0fdf4;
    padding: 48px 0;
}
.igc-cta h2 { color: #daa520; }
.igc-cta a:not(.igc-btn) { color: #b7e7c4; }

.igc-footer { background: #102616; color: #e7f6ea; padding: 36px 0 24px; }
.igc-footer a, .igc-footer a:visited { color: #daa520; }
.igc-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.igc-footer-name { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 8px; color: #daa520; }
.igc-footer-links { list-style: none; margin: 0; padding: 0; }
.igc-footer-links li { margin: 0 0 8px; }
.igc-footer-btn {
    background: none;
    border: 0;
    padding: 0;
    color: #daa520;
    font: inherit;
    cursor: pointer;
    min-height: 44px;
}
.igc-fine { color: #c9d7c4; font-size: 0.98rem; }

.igc-cookie { display: none; }
.igc-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    gap: 12px;
    align-items: center;
}
.igc-cookie-pill:not([hidden]) {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    border-radius: 999px;
    background: #14301c;
    color: #f0fdf4;
    padding: 10px 12px 10px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.igc-cookie-pill a { color: #daa520; }
.igc-cookie p { margin: 0; }

.igc-page { padding: 36px 0 56px; }
.igc-measure { max-width: 760px; }
.igc-crumb { font-size: 0.95rem; margin-bottom: 12px; }
.igc-crumb a { text-decoration: none; }
.igc-band {
    height: 10px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #daa520, #50c878 55%, #7cb342);
}
.igc-card {
    background: #fff;
    padding: 16px;
    border: 1px solid var(--color-border);
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.igc-card h2, .igc-card h3 { margin-top: 0; }
.igc-review-still { max-width: 280px; max-height: 280px; object-fit: contain; display: block; margin: 12px 0; }
.igc-form { display: grid; gap: 12px; max-width: 560px; }
.igc-form label { display: grid; gap: 4px; font-weight: 700; }
.igc-form input, .igc-form textarea {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #8aa584;
    background: #fff;
    color: var(--color-text);
    width: 100%;
}
.igc-note { background: #fff; border-left: 4px solid var(--color-accent); padding: 12px 14px; }

@media (max-width: 768px) {
    .igc-nav { display: none; }
    .igc-burger { display: block; }
    .igc-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }
    .igc-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: #f0fdf4;
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
    }
    .igc-drawer a { display: block; padding: 14px 20px; color: #1c3d28; text-decoration: none; font-size: 1.4rem; }
    .igc-drawer-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 1px solid var(--color-accent);
        background: #f0fdf4;
        font-size: 1.6rem;
        cursor: pointer;
    }
    .igc-drawer-sheet { inset: 0; height: 100vh; height: 100dvh; padding: 72px 24px 32px; opacity: 0; }
    body.nav-open { overflow: hidden; }
    body.nav-open .igc-overlay { opacity: 1; visibility: visible; }
    body.nav-open .igc-drawer { visibility: visible; }
    body.nav-open .igc-drawer-sheet { opacity: 1; }
    body.nav-open .igc-overlay { display: none; }
}

@media (max-width: 800px) {
    .igc-rank-item {
        grid-template-columns: auto 72px 1fr;
        grid-template-areas:
            "pos icon name"
            "pos icon dev"
            "line line line"
            "facts facts facts"
            "still still still"
            "actions actions actions";
    }
    .igc-icon { width: 72px; height: 72px; }
    .igc-preview { justify-self: center; margin: 16px auto 0; max-width: 200px; }
    .igc-facts, .igc-criteria, .igc-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .igc-logo img { width: 120px; }
    .igc-cookie-pill:not([hidden]) {
        left: 12px;
        right: 12px;
        transform: none;
        border-radius: 18px;
        max-width: none;
        flex-direction: column;
        align-items: stretch;
    }
    .igc-btn { min-height: 44px; }
}

@media (max-width: 480px) {
    .igo-grid { grid-template-columns: 1fr; }
}

.igc-stage {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    background: #102616;
}

.igc-stage-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 52px;
    padding: 4px 12px;
    background: #102616;
    color: #f0fdf4;
    flex: 0 0 auto;
}

.igc-stage-bar p { margin: 0; font-family: var(--font-display); font-size: 1.2rem; }

.igc-stage-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 16px;
    background: #daa520;
    color: #14301c;
    text-decoration: none;
    font-weight: 700;
}

iframe.igc-stage-frame {
    align-self: stretch;
    flex: 1 1 auto;
    width: 100%;
    height: calc(100dvh - 52px);
    max-width: none;
    border: 0;
    background: #68b7ff;
}

@media (prefers-reduced-motion: reduce) {
    .igc-rise, .igc-btn::before { animation: none; }
}
