:root {
    --color-primary: #50c878;
    --color-secondary: #7cb342;
    --color-accent: #daa520;
    --color-bg: #f0fdf4;
    --color-text: #143d28;
    --color-text-light: #3d5c48;
    --color-border: #c9e6d2;
    --color-ink: #10281b;
    --color-nav: #143d28;
    --Mc-header-h: 88px;
    --Mc-page-w: 1120px;
    --space-lg: 28px;
    --Mc-font-head: "Archivo", "Arial Narrow", sans-serif;
    --Mc-font-body: "Work Sans", "Segoe UI", sans-serif;
}

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

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

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

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

body {
    padding-top: var(--Mc-header-h);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--Mc-font-body);
    font-size: 1.05rem;
    line-height: 1.6;
}

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

[hidden] { display: none !important; }

a { color: #1b6b38; }

h1, h2, h3 {
    font-family: var(--Mc-font-head);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

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

.McMeasure {
    max-width: 760px;
    margin: 0 auto;
}

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

.McHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--Mc-header-h);
    background: #f0fdf4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.McHeader-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--Mc-header-h);
    gap: 12px;
    position: relative;
}

.McHeader-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.McHeader-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.McNav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.McNav--left { padding-right: 108px; }
.McNav--right { justify-content: flex-end; padding-left: 108px; }

.McHeader a,
.McHeader a:visited { color: var(--color-nav); }

.McNav-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 0;
}

.McNav-link--active { box-shadow: inset 0 -3px 0 var(--color-accent); }

.McBurger,
.McOverlay,
.McDrawer { display: none; }

.McBurger {
    width: 44px;
    height: 44px;
    border: 2px solid var(--color-ink);
    background: #f0fdf4;
    padding: 10px 8px;
    cursor: pointer;
}

.McBurger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-ink);
}

.McBtn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid var(--color-ink);
    background: transparent;
    color: var(--color-ink);
    font-family: var(--Mc-font-head);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
}

.McBtn--primary {
    background: var(--color-primary);
    color: #10281b;
    border-color: #1d6b3c;
    box-shadow: 0 0 18px rgba(218, 165, 32, 0.55);
}

.McRipple {
    position: absolute;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    border-radius: 50%;
    background: rgba(218, 165, 32, 0.55);
    transform: scale(1);
    animation: McRippleOut 0.55s ease-out forwards;
    pointer-events: none;
}

@keyframes McRippleOut {
    to { transform: scale(18); opacity: 0; }
}

.McHero {
    background:
        repeating-linear-gradient(
            -45deg,
            #e7f8ec,
            #e7f8ec 12px,
            #f0fdf4 12px,
            #f0fdf4 24px
        );
    padding: 48px 0 56px;
}

.McHero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 28rem);
    gap: 36px;
    align-items: center;
}

.McHero-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin: 0 0 16px;
}

.McHero-text { margin: 0 0 12px; }

.McHero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.McHero-still {
    background: #fff;
    padding: 12px;
    box-shadow: 0 0 0 1px rgba(80, 200, 120, 0.55), 0 10px 28px rgba(80, 200, 120, 0.28);
}

.McHero-still img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.McSection { padding: 56px 0; }

.McSection--band { background: #e5f6ea; }

.McSection h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 16px; }

.McRank-item {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
        "pos icon name still"
        "pos icon dev still"
        "pos icon line still"
        "pos icon facts still"
        "pos icon actions still";
    gap: 8px 16px;
    align-items: center;
    background: #fff;
    padding: 18px;
    margin: 0 0 18px;
    box-shadow: 0 0 0 1px rgba(80, 200, 120, 0.45), 0 8px 22px rgba(80, 200, 120, 0.22);
}

.McRank-pos {
    grid-area: pos;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #10281b;
    display: grid;
    place-items: center;
    font-family: var(--Mc-font-head);
    font-weight: 700;
    margin: 0;
}

.McApp-icon {
    grid-area: icon;
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    background: #fff;
}

.McRank-name { grid-area: name; margin: 0; font-size: 1.35rem; }
.McRank-dev { grid-area: dev; margin: 0; color: var(--color-text-light); }
.McRank-desc { grid-area: line; margin: 0; }
.McRank-facts { grid-area: facts; margin: 0; font-size: 0.92rem; }
.McApp-preview {
    grid-area: still;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 240px;
    object-fit: contain;
    justify-self: end;
}
.McRank-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; }

.McTableWrap { overflow-x: auto; }

.McTable {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 640px;
}

.McTable th,
.McTable td {
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    padding: 10px 12px;
    vertical-align: top;
}

.McTable th {
    font-family: var(--Mc-font-head);
    background: #e7f8ec;
}

.McFaq-item { border-bottom: 1px solid var(--color-border); }

.McFaq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 16px 0;
    font-family: var(--Mc-font-head);
    font-size: 1.1rem;
    color: var(--color-ink);
    cursor: pointer;
    min-height: 44px;
}

.McFaq-a { margin: 0 0 16px; }

.McCta {
    background: #143d28;
    color: #f0fdf4;
    padding: 56px 0;
}

.McCta h2,
.McCta p { color: #f0fdf4; }

.McBand {
    height: 140px;
    background: linear-gradient(120deg, #50c878, #daa520);
}

.McCard {
    background: #fff;
    padding: 18px;
    box-shadow: 0 0 16px rgba(218, 165, 32, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.McCard h3 { margin: 0; }

.McProse h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.McProse h2 { margin-top: 1.6em; }

.McCrumbs { font-size: 0.9rem; margin: 0 0 12px; }
.McCrumbs a { text-decoration: none; }

.McFacts { padding-left: 1.1rem; }
.McFacts li { margin: 6px 0; }

.McReview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
}

.McReview-still { justify-self: center; }

.McForm label { display: block; font-weight: 600; margin-top: 14px; }
.McForm input,
.McForm textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--color-ink);
    background: #fff;
    font: inherit;
}
.McForm input[aria-invalid="true"],
.McForm textarea[aria-invalid="true"] { border-color: #9a3412; }
.McForm button { margin-top: 16px; }

.McFooter {
    background: #10281b;
    color: #e7f8ec;
    padding: 36px 0 28px;
}

.McFooter a,
.McFooter a:visited { color: #d7f5c8; }

.McFooter-map,
.McFooter-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.McFooter-link {
    background: none;
    border: 0;
    color: #d7f5c8;
    font: inherit;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    min-height: 44px;
}

.McCookie { display: none; }

.McCookie:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    z-index: 110;
    gap: 12px;
    left: 16px;
    bottom: 16px;
    max-width: 360px;
    background: #fff;
    color: var(--color-ink);
    padding: 16px;
    box-shadow: 0 0 18px rgba(218, 165, 32, 0.45);
}

.McCookie p { margin: 0; }

@media (max-width: 1100px) {
    .McNav { display: none; }

    .McHeader-row { justify-content: space-between; }
    .McHeader-logo { position: static; transform: none; }
    .McHeader-logo img { width: 120px; }
    .McBurger { display: block; margin-left: auto; }

    .McOverlay {
        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;
    }

    .McDrawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: #f0fdf4;
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(75vw, 320px);
        padding: 64px 0 20px;
        transform: translateX(100%);
    }

    .McDrawer a {
        display: block;
        padding: 10px 20px;
        font-size: .95rem;
        color: var(--color-nav);
        text-decoration: none;
    }

    .McDrawer-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        font-size: 1.8rem;
        cursor: pointer;
    }

    body.nav-open { overflow: hidden; }
    body.nav-open .McOverlay { opacity: 1; visibility: visible; }
    body.nav-open .McDrawer { visibility: visible; transform: translateX(0); }
}

@media (max-width: 768px) {
    .McGrid { grid-template-columns: repeat(2, 1fr); }

    .McHero-split,
    .McReview-layout { grid-template-columns: 1fr; }

    .McRank-item {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "pos name"
            "icon dev"
            "line line"
            "facts facts"
            "still still"
            "actions actions";
    }

    .McRank-item .McApp-preview {
        display: block;
        margin: 16px auto 0;
        justify-self: center;
    }

    .McCookie:not([hidden]) {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .McGrid { grid-template-columns: 1fr; }
    .McApp-icon { width: 64px; height: 64px; }
}
