:root {
    --color-primary: #b19cd9;
    --color-secondary: #dda0dd;
    --color-accent: #ff69b4;
    --color-bg: #faf8fd;
    --color-text: #33283a;
    --color-text-light: #65586e;
    --color-border: #eadff3;
    --color-nav: #5a2d78;
    --smi-header-h: 88px;
    --smi-page-w: 1120px;
    --space-lg: 24px;
    --font-head: "Figtree", "Avenir Next", sans-serif;
    --font-body: "Noto Sans", sans-serif;
}

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

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

[hidden] { display: none !important; }

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

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

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 105, 180, 0.18), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(177, 156, 217, 0.45), transparent 32%),
        radial-gradient(circle at 70% 90%, rgba(221, 160, 221, 0.28), transparent 26%);
}

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

a { color: var(--color-nav); }

h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.15;
    margin: 0 0 0.6rem;
}

p { margin: 0 0 0.9rem; }

.smio-container {
    width: min(var(--smi-page-w), 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.smio-measure { max-width: 760px; }

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

.smio-shell {
    width: min(var(--smi-page-w), 100%);
    margin: 0 auto;
    padding: 12px 20px 48px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.smic-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--smi-header-h);
    background: #faf8fd;
    box-shadow: 0 2px 8px rgba(90, 45, 120, 0.08);
}

.smic-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--smi-header-h);
}

.smic-logo { display: flex; align-items: center; flex: 0 0 auto; }

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

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

.smic-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.smic-nav a:not(.smic-btn) {
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.92rem;
}

.smic-nav a.smiu-on:not(.smic-btn) { color: #ff69b4; }

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

.smic-burger {
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

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

.smic-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--color-nav);
    background: transparent;
    color: var(--color-nav);
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 16px;
    min-height: 44px;
    cursor: pointer;
}

.smic-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
    stroke-linecap: round;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.smic-btn:hover svg { transform: scale(1.18); }

.smic-btn-primary {
    background: #ff69b4;
    border-color: #ff69b4;
    color: #2a1020;
}

.smic-header .smic-btn,
.smic-header .smic-btn:visited { color: #2a1020; }

.smic-header .smic-btn:not(.smic-btn-primary),
.smic-header .smic-btn:not(.smic-btn-primary):visited { color: var(--color-nav); }

.smic-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.55);
    animation: smi-ripple 0.55s ease-out;
    pointer-events: none;
}

@keyframes smi-ripple {
    to { transform: scale(12); opacity: 0; }
}

.smic-hero {
    background: linear-gradient(160deg, #fff6fb 0%, #f3e8ff 48%, #ffe4f2 100%);
    padding: 36px 0 42px;
}

.smic-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
    gap: 28px;
    align-items: start;
}

.smic-kicker {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #ff69b4;
    margin-bottom: 0.4rem;
}

.smic-hero-title { font-size: clamp(2rem, 4vw, 3.1rem); }

.smic-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.smic-passport {
    background: #fff;
    border: 2px solid #eadff3;
    padding: 16px;
    animation: smi-rise 0.45s ease both;
}

.smic-passport .smic-preview { width: 100%; max-width: none; max-height: 280px; object-fit: contain; display: block; margin: 0 auto 12px; }

.smic-passport-head { display: flex; gap: 12px; align-items: center; }

.smic-passport-name { font-family: var(--font-head); font-weight: 800; margin: 0; }

.smic-passport-dev { margin: 0; color: var(--color-text-light); font-size: 0.92rem; }

.smic-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding: 0;
    margin: 12px 0;
    list-style: none;
}

.smic-facts li { font-size: 0.92rem; }

.smic-checked { color: var(--color-text-light); font-size: 0.88rem; }

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

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

.smic-preview-review { max-width: 280px; max-height: 280px; display: block; }

.smic-rail {
    background: #fff;
    border: 2px solid #eadff3;
    padding: 16px;
}

.smic-rail ul { padding-left: 18px; }

.smic-block { margin: 0 0 36px; animation: smi-rise 0.45s ease both; }

.smic-tile, .smic-note, .smic-rank-item {
    background: #fff;
    border: 2px solid #eadff3;
    padding: 16px;
}

.smic-mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #b19cd9;
    color: #2a1020;
    font-family: var(--font-head);
    font-weight: 800;
    margin: 0 0 8px;
}

.smic-rank { display: flex; flex-direction: column; gap: 18px; }

.smic-rank-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "pos name preview"
        "icon dev preview"
        "icon desc preview"
        "icon facts preview"
        "actions actions preview";
    column-gap: 16px;
    row-gap: 4px;
    align-items: center;
}

.smic-rank-pos { grid-area: pos; margin: 0; font-family: var(--font-head); font-weight: 800; color: #ff69b4; }
.smic-rank-item .smic-icon { grid-area: icon; }
.smic-rank-name { grid-area: name; margin: 0; }
.smic-rank-dev { grid-area: dev; margin: 0; color: var(--color-text-light); }
.smic-rank-desc { grid-area: desc; margin: 0; }
.smic-rank-facts { grid-area: facts; margin: 0; font-size: 0.9rem; }
.smic-rank-item .smic-preview { grid-area: preview; justify-self: end; }
.smic-rank-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.smic-band {
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #b19cd9, #ff69b4);
    margin: 0 0 12px;
}

.smic-band-b { background: linear-gradient(90deg, #dda0dd, #b19cd9); }
.smic-band-c { background: #ff69b4; }
.smic-band-d { background: #5a2d78; }

.smic-note h3 { font-size: 1.15rem; }
.smic-note a { text-decoration: none; }

.smic-faq-item { border-bottom: 1px solid #eadff3; }

.smic-faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
    padding: 14px 0;
    cursor: pointer;
}

.smic-cta {
    background: #5a2d78;
    color: #fffafd;
    padding: 48px 0;
}

.smic-cta h2, .smic-cta p { color: #fffafd; }

.smic-footer {
    background: #2a1836;
    color: #f6eefb;
    padding: 36px 0 20px;
}

.smic-footer a, .smic-footer a:visited { color: #ffd0e8; }

.smic-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 0.8fr;
    gap: 24px;
}

.smic-footer-kicker {
    font-family: var(--font-head);
    font-weight: 800;
    color: #ff69b4;
}

.smic-footer ul { list-style: none; padding: 0; margin: 0; }

.smic-footer li { margin: 0 0 6px; }

.smic-footer-link {
    background: none;
    border: 0;
    padding: 0;
    color: #ffd0e8;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.smic-footer-fine {
    margin-top: 20px;
    font-size: 0.88rem;
    color: #e4d4ee;
}

.smic-cookie { display: none; }

.smic-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    gap: 12px;
    align-items: center;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    border-radius: 999px;
    background: #2a1836;
    color: #fffafd;
    padding: 10px 12px 10px 18px;
    box-shadow: 0 10px 30px rgba(42, 24, 54, 0.28);
}

.smic-cookie p { margin: 0; font-size: 0.92rem; }
.smic-cookie a { color: #ffd0e8; }

.smic-page { padding: 36px 0 64px; animation: smi-rise 0.45s ease both; }

.smic-crumbs { font-size: 0.9rem; color: var(--color-text-light); }

.smic-plain, .smic-index { padding-left: 18px; }

.smic-index li { margin: 0 0 16px; }

.smic-form { display: grid; gap: 12px; margin-top: 12px; }

.smic-form label { display: grid; gap: 4px; font-family: var(--font-head); font-weight: 700; }

.smic-form input, .smic-form textarea {
    font: inherit;
    padding: 10px 12px;
    border: 2px solid #eadff3;
    border-radius: 12px;
    background: #fff;
    color: var(--color-text);
}

.smic-form-ok { color: #5a2d78; font-weight: 700; }

.smic-stills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: start;
    gap: 20px;
    margin-bottom: 36px;
}

.smic-stills figure {
    margin: 0;
    background: #241428;
    border-radius: 28px;
    padding: 10px 10px 12px;
}

.smic-stills img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
}

.smic-stills figcaption {
    margin-top: 8px;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fffafd;
}

@keyframes smi-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .smic-block, .smic-page, .smic-passport { animation: none; }
}

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

    .smic-header-row { display: flex; align-items: center; justify-content: space-between; }

    .smic-burger { display: block; }

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

    .smic-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: #faf8fd;
        overflow-y: auto;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .smic-drawer a:not(.smic-btn) {
        display: block;
        padding: 14px 20px;
        color: var(--color-nav);
        text-decoration: none;
        font-family: var(--font-head);
        font-weight: 700;
    }

    .smic-drawer .smic-btn { margin: 12px 20px; }

    .smic-drawer-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        color: var(--color-nav);
    }

    .smic-drawer-wide {
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(85vw, 400px);
        padding: 72px 0 24px;
        transform: translateX(100%);
    }

    body.smiu-nav .smic-overlay { opacity: 1; visibility: visible; }
    body.smiu-nav .smic-drawer { visibility: visible; }
    body.smiu-nav .smic-drawer-wide { transform: translateX(0); }
    body.smiu-nav { overflow: hidden; }
}

@media (max-width: 900px) {
    .smio-shell, .smic-hero-grid, .smic-footer-grid { grid-template-columns: 1fr; }
    .smic-rank-item {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "pos name"
            "icon dev"
            "icon desc"
            "icon facts"
            "preview preview"
            "actions actions";
    }
    .smic-rank-item .smic-preview { justify-self: center; margin: 16px auto 0; }
}

@media (max-width: 768px) {
    .smic-logo img { width: 120px; }
    .smio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smic-cookie:not([hidden]) { left: 12px; right: 12px; transform: none; border-radius: 24px; max-width: none; }
    .smic-facts { grid-template-columns: 1fr; }
}

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