:root {
    --color-primary: #ff6b35;
    --color-secondary: #f7931e;
    --color-accent: #fdb833;
    --color-bg: #fff8f3;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --mau-header-h: 72px;
    --mau-page-w: 1120px;
    --space-lg: 28px;
    --font-h: "Archivo", sans-serif;
    --font-b: "Work Sans", sans-serif;
}

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

[hidden] { display: none !important; }

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

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

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

body {
    font-family: var(--font-b);
    color: var(--color-text);
    background: var(--color-bg);
    padding-top: var(--mau-header-h);
    line-height: 1.55;
}

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

h1, h2, h3 {
    font-family: var(--font-h);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}

p { margin: 0 0 12px; }

a { color: var(--color-primary); }
a:not(.mau-btn) { text-decoration: underline; }

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

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

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

.mau-header a,
.mau-header a:visited { color: #c44e24; }

.mau-header__row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--mau-header-h);
}

.mau-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.mau-header__logo img {
    width: 180px;
    height: auto;
    display: block;
}

.mau-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 2;
}

.mau-nav a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.mau-nav a.is-active { color: var(--color-primary); }

.mau-nav--west { padding-right: 200px; }
.mau-nav--east { padding-left: 200px; margin-left: auto; }

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

.mau-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-b);
    font-size: 0.95rem;
    cursor: pointer;
}

.mau-btn--primary {
    background: var(--color-primary);
    color: #fff8f3;
}

.mau-btn:hover { opacity: 0.88; }

.mau-hero {
    background: var(--color-bg);
    padding: 48px 0 28px;
    border-bottom: 1px solid var(--color-border);
}

.mau-hero__title { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 18em; }

.mau-hero__text { max-width: 42em; }

.mau-hero .mau-btn { margin-right: 10px; margin-top: 8px; }

.mau-hero__strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.92rem;
    color: var(--color-text-light);
}

.mau-section { padding: 48px 0; }

.mau-u-mag {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
}

.mau-u-mag h2 { font-size: 1.35rem; }

.mau-rank { display: flex; flex-direction: column; gap: 22px; }

.mau-rank__item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    grid-template-areas:
        "pos pos pos"
        "icon name preview"
        "icon dev preview"
        "desc desc preview"
        "facts facts facts"
        "note note note"
        "actions actions actions";
    gap: 8px 16px;
    padding: 20px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.mau-rank__pos { grid-area: pos; margin: 0; font-family: var(--font-h); letter-spacing: 0.08em; font-size: 0.8rem; color: var(--color-secondary); }
.mau-rank__item .mau-app__icon { grid-area: icon; }
.mau-rank__name { grid-area: name; margin: 0; }
.mau-rank__dev { grid-area: dev; margin: 0; color: var(--color-text-light); }
.mau-rank__desc { grid-area: desc; margin: 0; }
.mau-rank__facts { grid-area: facts; margin: 0; font-size: 0.92rem; color: var(--color-text-light); overflow-wrap: anywhere; }
.mau-rank__item .mau-app__note { grid-area: note; margin: 0; font-size: 0.9rem; }
.mau-rank__item .mau-app__preview { grid-area: preview; }
.mau-rank__actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.mau-app__icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
}

.mau-app__preview {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 240px;
    object-fit: contain;
}

.mau-review .mau-app__preview {
    max-width: 280px;
    max-height: 280px;
    margin: 16px 0;
}

.mau-app__head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 16px 0;
}

.mau-app__facts { padding-left: 18px; }
.mau-app__checked { font-weight: 600; }
.mau-crumbs { font-size: 0.9rem; color: var(--color-text-light); }

.mau-cta {
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    padding: 48px 0;
}

.mau-u-prose { max-width: 760px; }
.mau-u-prose h2 { margin-top: 1.4em; }

.mau-u-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

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

.mau-note {
    border: 1px solid var(--color-border);
    background: #fff;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    overflow: hidden;
}

.mau-note h2 { font-size: 1.15rem; padding: 0 16px; }
.mau-note p, .mau-note a { margin: 0 16px 12px; display: inline-block; }
.mau-note .mau-u-kicker { display: block; padding: 8px 16px 0; }

.mau-note__band { height: 14px; }
.mau-note__band--a { background: var(--color-primary); }
.mau-note__band--b { background: var(--color-secondary); }
.mau-note__band--c { background: var(--color-accent); }
.mau-note__band--d { background: #c44e24; }
.mau-note__band--e { background: #333333; }

.mau-u-kicker {
    font-family: var(--font-h);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.mau-form { display: flex; flex-direction: column; gap: 8px; }
.mau-form input,
.mau-form textarea {
    width: 100%;
    border: 1px solid var(--color-primary);
    background: #fff;
    padding: 10px;
    font: inherit;
}

.mau-form__err { color: #c0392b; }
.mau-form__ok { color: #27ae60; }

.mau-log { padding-left: 18px; }

.mau-footer {
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    padding: 36px 0 24px;
    font-size: 0.92rem;
}

.mau-u-foot4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.mau-footer ul { list-style: none; padding: 0; margin: 0; }
.mau-footer li { margin-bottom: 6px; }
.mau-footer a { text-decoration: none; color: #c44e24; }

.mau-footer__link {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: #c44e24;
    cursor: pointer;
    text-decoration: underline;
}

.mau-cookie { display: none; }

.mau-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    gap: 12px;
    align-items: center;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid var(--color-primary);
    padding: 14px 20px;
}

.mau-cookie--bar { justify-content: space-between; flex-wrap: wrap; }
.mau-cookie__actions { display: flex; gap: 8px; }

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

    .mau-header__row { display: flex; align-items: center; justify-content: space-between; }
    .mau-header__logo {
        position: static;
        transform: none;
    }
    .mau-burger {
        display: block;
        width: 44px;
        height: 44px;
        margin-left: auto;
        border: 1px solid var(--color-primary);
        background: transparent;
        padding: 10px 8px;
    }
    .mau-burger span {
        display: block;
        height: 2px;
        background: var(--color-primary);
        margin: 5px 0;
    }

    .mau-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: none;
    }

    .mau-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: var(--color-bg);
        overflow-y: auto;
        visibility: hidden;
        transition: none;
    }

    .mau-drawer a { display: block; padding: 14px 20px; text-decoration: none; color: #c44e24; }

    .mau-drawer__close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 1px solid var(--color-primary);
        background: transparent;
        font-size: 1.4rem;
    }

    .mau-drawer--top {
        top: var(--mau-header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--mau-header-h));
        padding: 56px 0 16px;
        transform: translateY(-16px);
        opacity: 0;
    }

    body.nav-open { overflow: hidden; }
    body.nav-open .mau-overlay { opacity: 1; visibility: visible; }
    body.nav-open .mau-drawer { visibility: visible; }
    body.nav-open .mau-drawer--top { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .mau-header__logo img { width: 120px; }
    .mau-u-mag,
    .mau-u-split,
    .mau-hero__strip,
    .mau-u-foot4 { grid-template-columns: 1fr; }
    .mau-grid { grid-template-columns: repeat(2, 1fr); }
    .mau-rank__item {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "pos pos"
            "icon name"
            "icon dev"
            "desc desc"
            "preview preview"
            "facts facts"
            "note note"
            "actions actions";
    }
    .mau-rank__item .mau-app__preview {
        display: block;
        margin: 16px auto 0;
    }
    .mau-app__icon { width: 72px; height: 72px; }
    .mau-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .mau-btn { min-height: 44px; }
}

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