:root {
    --color-primary: #b19cd9;
    --color-secondary: #dda0dd;
    --color-accent: #ff69b4;
    --color-bg: #faf8fd;
    --color-text: #333;
    --color-text-light: #666;
    --color-border: #e0e0e0;
    --color-ink: #3a2348;
    --color-band: #f3e8fb;
    --color-glass: rgba(255, 255, 255, 0.62);
    --space-lg: 28px;
    --font-head: "Manrope", "Helvetica Neue", sans-serif;
    --font-body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
}

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

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

html {
    --uzo-bar: 76px;
}

body {
    padding-top: var(--uzo-bar);
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
}

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

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    color: var(--color-ink);
    line-height: 1.2;
    font-weight: 800;
}

a {
    color: #7a2f86;
}

.uzoo-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.uzoo-band {
    background: var(--color-band);
}

.uzoo-inset {
    background: var(--color-bg);
}

.uzoc-section {
    padding: 56px 0;
    animation: uzo-fade 0.3s ease;
}

.uzoc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    background: rgba(250, 248, 253, 0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.uzoc-header-bar {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 180px;
    align-items: center;
    gap: 8px;
    min-height: 76px;
}

.uzoc-header-logo {
    display: block;
    justify-self: start;
}

.uzoc-header-logo img {
    width: 160px;
    height: auto;
    display: block;
}

.uzoc-header-end {
    display: flex;
    justify-content: flex-end;
}

.uzoc-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    min-width: 0;
}

.uzoc-nav a {
    color: var(--color-ink);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 8px 0;
}

.uzoc-nav a.is-active {
    color: #c43b86;
    box-shadow: inset 0 -2px 0 var(--color-accent);
}

.uzoc-nav-close {
    display: none;
}

.uzoc-burger {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: none;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.uzoc-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-ink);
}

.uzoc-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 98;
    display: none;
}

.uzoc-nav-overlay.is-open {
    display: block;
}

body.nav-open {
    overflow: hidden;
}

.uzoc-hero {
    position: relative;
    background: var(--color-band);
    animation: uzo-fade 0.3s ease;
}

.uzoc-hero-panel-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 7%;
    z-index: 2;
}

.uzoc-hero-panel {
    max-width: 34rem;
    padding: 24px 26px;
    background: var(--color-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(177, 156, 217, 0.7);
    border-radius: 0;
}

.uzoc-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.uzoc-hero p {
    margin: 0 0 16px;
}

.uzoc-hero-caption {
    margin: 14px 0 0;
    color: var(--color-text-light);
    font-size: 0.92rem;
}

.uzoc-hero-actions,
.uzoc-rank-actions,
.uzoc-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.uzoc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 0;
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-ink);
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(177, 156, 217, 0.35);
}

.uzoc-btn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #3a2348;
    box-shadow: 0 0 0 1px #ff69b4, 0 0 18px rgba(255, 105, 180, 0.75);
}

.uzoc-btn:hover,
.uzoc-btn:focus-visible {
    box-shadow: 0 0 0 1px #fff, 0 0 22px rgba(255, 105, 180, 0.85);
}

.uzoc-btn:focus-visible,
.uzoc-nav a:focus-visible,
.uzoc-burger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.uzoc-section h2,
.uzoc-page h1 {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.uzoc-lead {
    max-width: 42rem;
    margin: 0 0 22px;
}

.uzoc-panel {
    padding: 22px;
}

.uzoc-pick,
.uzoc-rank-item,
.uzoc-note,
.uzoc-panel,
.uzoc-passport,
.uzoc-form {
    background: var(--color-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(177, 156, 217, 0.65);
    border-radius: 0;
}

.uzoc-pick {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px 18px;
    padding: 22px;
}

.uzoc-pick-copy {
    min-width: 0;
}

.uzoc-pick h3,
.uzoc-rank-name,
.uzoc-note h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.uzoc-rank-dev,
.uzoc-passport-dev,
.uzoc-rank-note,
.uzoc-passport-checked {
    margin: 0 0 8px;
    color: var(--color-text-light);
}

.uzoc-rank-desc {
    margin: 0 0 8px;
}

.uzoc-rank-facts {
    margin: 0;
    overflow-wrap: anywhere;
}

.uzoc-pick-still,
.uzoc-rank-still {
    grid-column: 1 / -1;
}

.uzoc-rank-actions {
    grid-column: 1 / -1;
}

.uzoc-rank-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px 18px;
    padding: 22px;
    margin: 0 0 18px;
}

.uzoc-rank-pos {
    grid-column: 1 / -1;
    margin: 0;
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #c43b86;
}

.uzoc-rank-copy {
    min-width: 0;
}

.uzoc-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}

.uzoc-still {
    position: relative;
    background: #1c1328;
    border-radius: 0;
}

.uzoc-app-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: transparent;
    display: block;
}

.uzoc-still::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #b19cd9;
    mix-blend-mode: multiply;
    opacity: 0.45;
    pointer-events: none;
}

.uzoc-hero .uzoc-still::after {
    content: none;
}

.uzoc-hero .uzoc-app-preview {
    object-fit: cover;
}

.uzoc-log-list,
.uzoc-plain-list {
    margin: 0;
    padding-left: 1.1rem;
}

.uzoc-log-list li,
.uzoc-plain-list li {
    margin: 0 0 12px;
}

.uzoc-note {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.uzoc-note-band {
    height: 72px;
    background: linear-gradient(135deg, #b19cd9, #ff69b4);
}

.uzoc-note:nth-child(2n) .uzoc-note-band {
    background: linear-gradient(135deg, #dda0dd, #b19cd9);
}

.uzoc-note:nth-child(3n) .uzoc-note-band {
    background: linear-gradient(160deg, #ff69b4, #dda0dd 70%, #b19cd9);
}

.uzoc-note-body {
    padding: 16px 18px 18px;
}

.uzoc-note h3 {
    font-size: 1.15rem;
}

.uzoc-note a {
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
}

.uzoc-cta p {
    max-width: 40rem;
}

.uzoc-page {
    padding: 36px 0 64px;
    animation: uzo-fade 0.3s ease;
}

.uzoc-prose {
    max-width: 44rem;
}

.uzoc-prose h2 {
    margin: 28px 0 8px;
    font-size: 1.35rem;
}

.uzoc-crumbs {
    margin: 0 0 16px;
    color: var(--color-text-light);
    font-size: 0.92rem;
}

.uzoc-crumbs a {
    color: #7a2f86;
}

.uzoc-passport {
    padding: 20px;
    margin: 0 0 8px;
}

.uzoc-passport-head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.uzoc-passport-kicker {
    margin: 0 0 10px;
    letter-spacing: 0.06em;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    color: #c43b86;
}

.uzoc-passport-name {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-ink);
}

.uzoc-passport-facts {
    margin: 0 0 10px;
    padding-left: 1.1rem;
}

.uzoc-form {
    padding: 20px;
    display: grid;
    gap: 12px;
    max-width: 36rem;
}

.uzoc-form label {
    display: grid;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--color-ink);
}

.uzoc-form input,
.uzoc-form textarea {
    width: 100%;
    border: 1px solid var(--color-primary);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text);
    font: inherit;
    padding: 10px 12px;
}

.uzoc-form textarea {
    min-height: 140px;
    resize: vertical;
}

.uzoc-field-error,
.uzoc-form-status {
    margin: 0;
    min-height: 1.2em;
}

.uzoc-field-error {
    color: #9d245c;
    font-size: 0.92rem;
}

.uzoc-footer {
    background: rgba(177, 156, 217, 0.28);
    border-top: 1px solid rgba(177, 156, 217, 0.7);
}

.uzoc-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    padding: 22px 20px 28px;
}

.uzoc-footer-row p {
    margin: 0;
}

.uzoc-footer a,
.uzoc-cookie-reopen {
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
    color: #7a2f86;
}

.uzoc-cookie-reopen {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
}

.uzoc-cookie[hidden] {
    display: none !important;
}

.uzoc-cookie {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: 20px;
}

.uzoc-cookie-shade {
    position: absolute;
    inset: 0;
    background: rgba(28, 19, 40, 0.46);
}

.uzoc-cookie-card {
    position: relative;
    z-index: 1;
    width: min(28rem, 100%);
    padding: 24px;
    background: rgba(250, 248, 253, 0.97);
    border: 1px solid rgba(177, 156, 217, 0.75);
    box-shadow: 0 0 28px rgba(255, 105, 180, 0.4);
}

.uzoc-cookie-title {
    margin: 0 0 10px;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-ink);
}

.uzoc-cookie-card p {
    margin: 0 0 16px;
}

@keyframes uzo-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .uzoc-section,
    .uzoc-hero,
    .uzoc-page {
        animation: none;
    }
}

@media (max-width: 768px) {
    .uzoc-header-logo img {
        width: 90px;
    }

    .uzoc-header-bar {
        grid-template-columns: 1fr auto;
    }

    .uzoc-header-logo {
        grid-column: 1;
    }

    .uzoc-header-end {
        grid-column: 2;
    }

    .uzoc-burger {
        display: flex;
    }

    .uzoc-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        margin: 12px 16px 0 auto;
        padding: 8px 14px;
        border: 1px solid var(--color-primary);
        background: transparent;
        color: var(--color-ink);
        font-family: var(--font-head);
        font-weight: 700;
        cursor: pointer;
    }

    .uzoc-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background: var(--color-bg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 99;
        overflow-x: hidden;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        height: 100vh;
        height: 100dvh;
        padding-bottom: 24px;
    }

    .uzoc-nav.is-open {
        transform: translateX(0);
    }

    .uzoc-nav a {
        display: block;
        width: 100%;
        padding: 16px 20px;
    }

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

    .uzoc-hero-panel-wrap {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: -36px;
        padding-bottom: 28px;
    }

    .uzoc-hero-panel {
        max-width: none;
    }

    .uzoc-app-icon {
        width: 72px;
        height: 72px;
    }

    .uzoc-pick,
    .uzoc-rank-item {
        grid-template-columns: 72px 1fr;
    }
}

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

    .uzoc-section {
        padding: 40px 0;
    }
}
