:root {
    --color-primary: #1abc9c;
    --color-secondary: #16a085;
    --color-accent: #e67e22;
    --color-bg: #ecfdf9;
    --color-surface: #ffffff;
    --color-text: #134e4a;
    --color-muted: #3f7a73;
    --color-border: #b6e8dc;
    --font-heading: "Archivo", sans-serif;
    --font-body: "Work Sans", sans-serif;
    --radius: 12px;
    --shadow-soft: 0 8px 24px rgba(15, 118, 110, 0.12);
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --ars-header-h: 72px;
    --ars-page-w: 1120px;
}

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

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

[hidden] { display: none !important; }

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

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

body {
    margin: 0;
    padding-top: var(--ars-header-h);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 12% 8%, rgba(26, 188, 156, 0.18), transparent 42%),
        radial-gradient(ellipse at 88% 18%, rgba(230, 126, 34, 0.1), transparent 36%);
}

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

a { color: var(--color-secondary); }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-text);
    margin: 0 0 var(--space-md);
}

p { margin: 0 0 var(--space-md); }

.ars-container {
    width: min(100% - 2rem, var(--ars-page-w));
    margin-inline: auto;
}

.ars-flow > * + * { margin-top: var(--space-md); }

.ars-u-center { text-align: center; }
.ars-u-muted { color: var(--color-muted); }
.ars-u-mt { margin-top: 1rem; }

.ars-review-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.ars-review-card__body {
    min-width: 0;
    flex: 1;
}
.ars-u-measure { max-width: 760px; }
.ars-u-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ars-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: var(--space-lg);
}

.ars-card[data-state="featured"] {
    border: 2px solid var(--color-primary);
}

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

.ars-header a,
.ars-header a:visited { color: var(--color-text); }

.ars-header__row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: var(--ars-header-h);
    position: relative;
}

.ars-header__logo { flex-shrink: 0; }

.ars-header__logo img {
    width: 180px;
    height: auto;
    display: block;
    min-height: 36px;
}

.ars-header__cta {
    flex-shrink: 0;
    white-space: nowrap;
}

.ars-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.85rem;
    flex-wrap: nowrap;
    margin-left: auto;
}

.ars-nav__link {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    padding: 0.35rem 0;
}

.ars-nav__link.is-active,
.ars-nav__link:hover { color: var(--color-secondary); }

.ars-nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--color-accent);
}

@media (min-width: 1101px) {
    .ars-u-order-logo { order: 1; }
    .ars-u-order-cta { order: 2; }
    .ars-u-order-nav { order: 3; }
    .ars-header__row { justify-content: flex-start; }
    .ars-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        max-width: min(52%, 560px);
    }
}

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

.ars-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-secondary);
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.25s ease, opacity 0.25s ease;
}

.ars-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.ars-btn:hover::after,
.ars-btn:focus-visible::after { transform: scaleX(1); }

.ars-btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    padding-inline: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.ars-btn--primary::after { display: none; }

.ars-btn--primary:hover,
.ars-btn--primary:visited {
    background: var(--color-secondary);
    color: #fff;
}

.ars-header a.ars-btn--primary,
.ars-header a.ars-btn--primary:visited {
    color: #fff;
    background: var(--color-primary);
}

.ars-header a.ars-btn--primary:hover {
    background: var(--color-secondary);
    color: #fff;
}

.ars-hero a.ars-btn,
.ars-hero a.ars-btn:visited { color: var(--color-secondary); }
.ars-hero a.ars-btn--primary,
.ars-hero a.ars-btn--primary:visited { color: #fff; }

.ars-cta a.ars-btn--primary,
.ars-cta a.ars-btn--primary:visited { color: #fff; }

.ars-section {
    padding: var(--space-xl) 0;
}

.ars-section__title {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.ars-hero {
    padding: var(--space-xl) 0 var(--space-lg);
    background:
        linear-gradient(135deg, rgba(26, 188, 156, 0.22), rgba(236, 253, 249, 0.4) 45%, rgba(230, 126, 34, 0.12));
}

.ars-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(9rem, 14rem);
    gap: var(--space-lg);
    align-items: center;
}

.ars-hero__title {
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    max-width: 18ch;
}

.ars-hero__note {
    margin: 0 0 var(--space-lg);
    padding: var(--space-lg);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.45;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--color-accent);
    quotes: "\201C" "\201D";
}

.ars-hero__note::before { content: open-quote; color: var(--color-accent); }
.ars-hero__note::after { content: close-quote; color: var(--color-accent); }

.ars-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ars-hero__still {
    justify-self: end;
    max-width: 200px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    object-fit: contain;
}

.ars-tabs {
    padding: var(--space-lg) 0 var(--space-xl);
}

.ars-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    list-style: none;
    padding: 0;
}

.ars-tabs__btn {
    min-height: 44px;
    padding: 0.55rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.ars-tabs__btn[aria-selected="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.ars-tabs__panel {
    margin-bottom: var(--space-xl);
}

.ars-tabs[data-enhanced="true"] .ars-tabs__panel[hidden] {
    display: none !important;
}

.ars-method__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: method;
}

.ars-method__steps li {
    position: relative;
    min-width: 0;
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    counter-increment: method;
}

.ars-method__steps li::before {
    content: counter(method);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: var(--space-sm);
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

.ars-rank {
    display: grid;
    gap: var(--space-lg);
}

.ars-rank__item {
    display: grid;
    grid-template-columns: auto 96px minmax(0, 1fr) auto;
    grid-template-areas:
        "pos icon body preview"
        "pos icon facts preview"
        "pos icon actions preview";
    gap: var(--space-md) var(--space-lg);
    align-items: start;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: var(--space-lg);
}

.ars-rank__item .ars-rank__pos { grid-area: pos; }
.ars-rank__item .ars-app__icon { grid-area: icon; }
.ars-rank__item .ars-rank__body { grid-area: body; min-width: 0; }
.ars-rank__item .ars-rank__facts { grid-area: facts; min-width: 0; }
.ars-rank__item .ars-rank__actions { grid-area: actions; min-width: 0; }
.ars-rank__item .ars-app__preview { grid-area: preview; }

.ars-rank__pos {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-accent);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.08em;
}

.ars-rank__name {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.ars-rank__dev,
.ars-rank__desc,
.ars-rank__facts {
    margin: 0 0 0.5rem;
    color: var(--color-muted);
}

.ars-rank__tag {
    display: inline-block;
    margin: 0.35rem 0 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(26, 188, 156, 0.16);
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.ars-rank__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ars-app__icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.ars-app__preview {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 240px;
    object-fit: contain;
    border-radius: calc(var(--radius) - 2px);
    box-shadow: var(--shadow-soft);
}

.ars-review .ars-app__preview {
    max-width: 280px;
    max-height: 280px;
}

.ars-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.ars-chip {
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
}

.ars-chip.is-active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

.ars-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.ars-table th,
.ars-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.ars-table th {
    font-family: var(--font-heading);
    background: rgba(26, 188, 156, 0.12);
}

.ars-cta {
    padding: var(--space-xl) 0;
    background: linear-gradient(120deg, rgba(22, 160, 133, 0.16), rgba(230, 126, 34, 0.12));
}

.ars-cta__box {
    text-align: center;
    padding: var(--space-xl);
}

.ars-footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background: #dff7f0;
    border-top: 1px solid var(--color-border);
}

.ars-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.ars-footer__heading {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.ars-footer__dl { margin: 0; }
.ars-footer__dl dt {
    font-weight: 600;
    margin-top: 0.75rem;
}
.ars-footer__dl dd {
    margin: 0.25rem 0 0;
    color: var(--color-muted);
}

.ars-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ars-footer__list li { margin-bottom: 0.45rem; }

.ars-footer__link {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-secondary);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.ars-footer__legal,
.ars-footer__copy {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.ars-cookie { display: none; }

.ars-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    background: var(--color-surface);
    box-shadow: 0 -6px 24px rgba(15, 118, 110, 0.16);
    padding: 1rem 0;
}

.ars-cookie__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100% - 2rem, var(--ars-page-w));
}

.ars-cookie__inner p { margin: 0; }
.ars-cookie__actions { flex-shrink: 0; }
.ars-cookie .ars-btn { box-shadow: none; }

body.ars-cookie-open { padding-bottom: 96px; }

.ars-breadcrumb {
    margin: 0 0 var(--space-md);
    font-size: 0.9rem;
    color: var(--color-muted);
}

.ars-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ars-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.35rem;
    color: var(--color-border);
}

.ars-article {
    padding: var(--space-xl) 0;
}

.ars-article__band {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin-bottom: var(--space-lg);
}

.ars-article__lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
}

.ars-article__lists ul {
    margin: 0;
    padding-left: 1.15rem;
}

.ars-feed__month {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--color-primary);
}

.ars-feed__item {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.ars-feed__date {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.ars-contact-card {
    max-width: 32rem;
}

.ars-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: check;
}

.ars-steps li {
    position: relative;
    min-width: 0;
    margin-bottom: var(--space-md);
    padding: var(--space-md) var(--space-md) var(--space-md) 4rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    counter-increment: check;
}

.ars-steps li::before {
    content: counter(check);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
}

.ars-prose h2 { margin-top: var(--space-xl); }

.ars-facts-box {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.ars-facts-box ul {
    margin: 0;
    padding-left: 1.1rem;
}

.ars-scale-in {
    animation: ars-scale-in 0.45s ease both;
}

@keyframes ars-scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 900px) {
    .ars-rank__item {
        grid-template-columns: auto 72px minmax(0, 1fr);
        grid-template-areas:
            "pos icon body"
            "pos icon facts"
            "preview preview preview"
            "actions actions actions";
    }

    .ars-rank__item .ars-app__preview {
        display: block;
        margin: 0 auto;
        max-width: 180px;
    }

    .ars-hero__grid {
        grid-template-columns: 1fr;
    }

    .ars-hero__still {
        justify-self: start;
        max-width: 160px;
    }
}

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

    .ars-header__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ars-burger {
        display: block;
        width: 44px;
        height: 44px;
        margin-left: auto;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 10px;
    }

    .ars-burger span {
        display: block;
        height: 2px;
        margin: 5px 0;
        background: var(--color-text);
        border-radius: 2px;
    }

    .ars-header__logo img {
        width: 120px;
        min-height: 28px;
    }

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

    .ars-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: var(--color-bg);
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
    }

    .ars-drawer--narrow {
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(75vw, 320px);
        padding: 64px 0 20px;
        transform: translateX(100%);
    }

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

    .ars-drawer__cta {
        margin: 1rem 20px 0;
        width: calc(100% - 40px);
    }

    .ars-drawer__close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        font-size: 1.75rem;
        cursor: pointer;
        color: var(--color-text);
    }

    body.nav-open { overflow: hidden; }
    body.nav-open .ars-overlay { opacity: 1; visibility: visible; }
    body.nav-open .ars-drawer { visibility: visible; }
    body.nav-open .ars-drawer--narrow { transform: translateX(0); }

    .ars-footer__grid { grid-template-columns: 1fr; }

    .ars-cookie__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .ars-cookie .ars-btn { width: 100%; min-height: 44px; }

    .ars-feed__item { grid-template-columns: 1fr; }

    .ars-hero__actions .ars-btn { width: 100%; }
}

@media (max-width: 520px) {
    .ars-rank__item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "pos"
            "icon"
            "body"
            "facts"
            "preview"
            "actions";
    }

    .ars-rank__pos {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .ars-app__icon {
        width: 72px;
        height: 72px;
    }
}
