:root {
    --color-primary: #8e44ad;
    --color-secondary: #9b59b6;
    --color-accent: #e91e63;
    --color-bg: #faf8fd;
    --color-text: #2c2433;
    --color-text-light: #5c5166;
    --color-border: #e4d7ee;
    --r3-header-h: 80px;
    --r3-page-w: 1120px;
    --space-lg: 24px;
    --r3-font-head: "Montserrat", sans-serif;
    --r3-font-body: "Open Sans", sans-serif;
}

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

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

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

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--r3-font-body);
    font-size: 17px;
    line-height: 1.65;
}

body { padding-top: var(--r3-header-h); }

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

[hidden] { display: none !important; }

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

h1,
h2,
h3 {
    font-family: var(--r3-font-head);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 0 0 12px; }

p { margin: 0 0 14px; }

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

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

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

.r3-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--r3-header-h);
    background: #faf8fd;
    box-shadow: 0 1px 0 var(--color-border);
}

.r3-header a,
.r3-header a:visited { color: #4a2068; }

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

.r3-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    line-height: 0;
    z-index: 1;
}

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

.r3-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.r3-nav-link {
    position: relative;
    text-decoration: none;
    font-family: var(--r3-font-head);
    font-size: 0.92rem;
    padding: 8px 0;
}

.r3-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.25s ease;
}

.r3-nav-link:hover::after,
.r3-nav-link.r3-active::after { width: 100%; }

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

.r3-burger {
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.r3-burger span {
    display: block;
    height: 1px;
    margin: 6px 0;
    background: var(--color-primary);
}

.r3-section { padding: 56px 0; }

.r3-bleed { background: #f4eef8; }

.r3-hero {
    background: #faf8fd;
    padding-top: 36px;
    padding-bottom: 48px;
}

.r3-hero.r3-bleed {
    background: linear-gradient(180deg, #faf8fd 0%, #f3e9f8 100%);
}

.r3-kicker {
    font-family: var(--r3-font-head);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.r3-lead { font-size: 1.05rem; max-width: 42rem; }

.r3-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 28px;
}

.r3-hero-still {
    margin: 0;
    display: flex;
    justify-content: center;
}

.r3-hero-still img {
    width: auto;
    max-width: 280px;
    height: auto;
    max-height: 520px;
    border-radius: 28px;
    object-fit: contain;
    box-shadow: 0 18px 40px rgba(74, 32, 104, 0.16);
}

.r3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(142, 68, 173, 0.4);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    color: #4a2068;
    font-family: var(--r3-font-head);
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

.r3-btn-primary {
    background: rgba(142, 68, 173, 0.9);
    color: #fff;
    border-color: transparent;
}

.r3-btn:hover { background: rgba(155, 89, 182, 0.35); }
.r3-btn-primary:hover { background: #9b59b6; color: #fff; }

.r3-stills {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.r3-stills img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 420px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.r3-verdict {
    font-size: 1.15rem;
    margin: 0;
}

.r3-app-badges {
    font-family: var(--r3-font-head);
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.r3-app-head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 12px 0 18px;
}

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

.r3-app-dev { margin: 6px 0 0; color: var(--color-text-light); }

.r3-app-facts {
    margin: 0 0 12px;
    padding-left: 18px;
}

.r3-app-note,
.r3-app-checked { color: var(--color-text-light); }

.r3-cta .r3-btn { margin-top: 8px; }

.r3-note {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.r3-note-band { height: 72px; background: var(--color-primary); }
.r3-note-band-alt { background: var(--color-secondary); }
.r3-note-band-accent { background: var(--color-accent); }

.r3-note h2,
.r3-note p { margin-left: 16px; margin-right: 16px; }
.r3-note h2 { margin-top: 16px; font-size: 1.15rem; }
.r3-note a { text-decoration: none; }
.r3-note a:hover { text-decoration: underline; }

.r3-crumbs { font-size: 0.9rem; color: var(--color-text-light); }
.r3-crumbs a { text-decoration: none; }
.r3-crumbs a:hover { text-decoration: underline; }

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

.r3-form input,
.r3-form textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    padding: 12px 14px;
}

.r3-form button { justify-self: start; margin-top: 8px; }

.r3-footer {
    background: #f4eef8;
    padding: 40px 0 28px;
    border-top: 1px solid var(--color-border);
}

.r3-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.r3-footer p,
.r3-app-dev { overflow-wrap: anywhere; }

.r3-footer-kicker {
    font-family: var(--r3-font-head);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

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

.r3-footer-list a,
.r3-footer-link {
    color: #4a2068;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.r3-footer a:not(.r3-btn),
.r3-measure a:not(.r3-btn) {
    text-decoration: none;
    background-image: linear-gradient(var(--color-accent), var(--color-accent));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.25s ease;
}

.r3-footer a:not(.r3-btn):hover,
.r3-measure a:not(.r3-btn):hover { background-size: 100% 1px; }

.r3-footer-legal {
    margin-top: 28px;
    color: var(--color-text-light);
    font-size: 0.92rem;
}

.r3-cookie { display: none; }

.r3-cookie:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    position: fixed;
    z-index: 110;
    right: 16px;
    bottom: 16px;
    max-width: 360px;
    padding: 16px;
    background: #faf8fd;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(74, 32, 104, 0.08);
}

.r3-cookie p { margin: 0; font-size: 0.95rem; }

.r3-cookie-actions {
    display: flex;
    gap: 8px;
}

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

.r3-hero,
.r3-section { animation: r3-up 0.45s ease both; }

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

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

    .r3-logo {
        position: static;
        transform: none;
    }

    .r3-logo img { width: 120px; }

    .r3-header-row { justify-content: space-between; }

    .r3-burger {
        display: block;
        margin-left: auto;
    }

    .r3-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;
    }

    .r3-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;
    }

    .r3-drawer a {
        display: block;
        padding: 14px 20px;
        color: #4a2068;
        text-decoration: none;
    }

    .r3-drawer-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: #4a2068;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
    }

    .r3-drawer-sheet {
        inset: 0;
        height: 100vh;
        height: 100dvh;
        padding: 72px 24px 32px;
        opacity: 0;
    }

    .r3-drawer-sheet a { font-size: 1.4rem; }

    body.nav-open { overflow: hidden; }
    body.nav-open .r3-overlay { display: none; }
    body.nav-open .r3-drawer-sheet { opacity: 1; visibility: visible; }
}

@media (max-width: 768px) {
    .r3-grid { grid-template-columns: repeat(2, 1fr); }
    .r3-stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .r3-footer-grid { grid-template-columns: 1fr 1fr; }
    .r3-app-icon { width: 72px; height: 72px; }
    .r3-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        max-width: none;
    }
    .r3-cookie .r3-btn { min-height: 44px; }
}

@media (max-width: 480px) {
    .r3-grid,
    .r3-stills,
    .r3-footer-grid { grid-template-columns: 1fr; }
}
