:root {
    --color-primary: #00bcd4;
    --color-secondary: #00acc1;
    --color-accent: #ff5722;
    --color-bg: #e0f7fa;
    --color-bg-deep: #b2ebf2;
    --color-surface: #ffffff;
    --color-text: #12353a;
    --color-text-light: #4a6b70;
    --color-border: #9ed8e0;
    --font-heading: "Raleway", sans-serif;
    --font-body: "Lato", sans-serif;
    --space-xs: 0.35rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3.5rem;
    --radius: 0;
    --shadow: 0 10px 28px rgba(0, 105, 120, 0.12);
    --max: 1120px;
    --narrow: 720px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background:
        radial-gradient(ellipse at 10% 0%, rgba(255, 87, 34, 0.12), transparent 45%),
        radial-gradient(ellipse at 90% 10%, rgba(0, 188, 212, 0.22), transparent 40%),
        linear-gradient(180deg, #e0f7fa 0%, #f3fffd 40%, #dff6f8 100%);
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 72px;
}

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

a {
    color: var(--color-secondary);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

h1,
h2,
h3,
.ih-u-h2,
.ih-u-hero-title,
.ih-u-rank-name {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-text);
    font-weight: 800;
}

.ih-u-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.ih-u-narrow {
    max-width: var(--narrow);
}

.ih-u-main {
    min-height: 60vh;
}

.ih-u-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    width: 100%;
    background: #e0f7fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 172, 193, 0.25);
}

.ih-u-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: 72px;
    position: relative;
}

.ih-u-logo {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.ih-u-logo img {
    width: 160px;
    height: auto;
    display: block;
}

.ih-u-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.ih-u-nav a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: #12353a;
    text-decoration: none;
    padding: 0.35rem 0.15rem;
    border-bottom: 2px solid transparent;
}

.ih-u-nav a:visited {
    color: #12353a;
}

.ih-u-nav a.is-active,
.ih-u-nav a:hover {
    border-bottom-color: var(--color-accent);
    color: #12353a;
}

.ih-u-nav-close {
    display: none;
}

.ih-u-burger {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: relative;
    z-index: 2;
}

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

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

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

body.nav-open {
    overflow: hidden;
}

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

.ih-u-lead {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-top: 0;
}

.ih-u-h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    margin: 0 0 var(--space-md);
}

.ih-u-hero {
    padding: var(--space-xl) 0 var(--space-lg);
    background:
        linear-gradient(135deg, rgba(0, 188, 212, 0.18), transparent 55%),
        repeating-linear-gradient(
            -18deg,
            rgba(0, 172, 193, 0.05) 0 12px,
            transparent 12px 24px
        );
}

.ih-u-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-lg);
    align-items: stretch;
}

.ih-u-hero-title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    margin: 0 0 var(--space-md);
}

.ih-u-hero-text {
    font-size: 1.08rem;
    color: var(--color-text-light);
    margin: 0 0 var(--space-lg);
}

.ih-u-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ih-u-hero-card {
    margin: 0;
}

.ih-u-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.15rem;
    border: 2px solid var(--color-primary);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.ih-u-btn:hover {
    transform: scale(1.05);
    color: var(--color-text);
}

.ih-u-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: transparent;
    color: #05343a;
}

.ih-u-btn-ghost {
    background: transparent;
}

.ih-u-btn-icon {
    display: inline-flex;
    width: 1.25rem;
    justify-content: center;
    transition: transform 0.2s ease;
}

.ih-u-btn:hover .ih-u-btn-icon {
    transform: scale(1.2);
}

.ih-u-bevel {
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.ih-u-scale {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ih-u-scale:hover {
    transform: scale(1.03);
}

.ih-u-enter {
    animation: ih-slide-up 0.55s ease both;
}

.ih-u-rank-stack .ih-u-enter:nth-child(2) {
    animation-delay: 0.08s;
}

.ih-u-rank-stack .ih-u-enter:nth-child(3) {
    animation-delay: 0.16s;
}

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

.ih-u-rank-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.ih-u-rank-item,
.ih-u-card,
.ih-u-article-card,
.ih-u-cta-inner {
    background: var(--color-surface);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.ih-u-rank-item {
    padding: var(--space-lg);
}

.ih-u-rank-pos {
    display: inline-block;
    margin: 0 0 var(--space-sm);
    padding: 0.2rem 0.65rem;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.ih-u-rank-head {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-sm);
}

.ih-u-rank-name {
    margin: 0;
    font-size: 1.25rem;
}

.ih-u-rank-dev,
.ih-u-rank-desc,
.ih-u-rank-facts {
    margin: 0.35rem 0;
    color: var(--color-text-light);
}

.ih-u-rank-facts {
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ih-u-rank-absence {
    color: var(--color-accent);
    font-size: 0.95rem;
}

.ih-u-rank-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.ih-u-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--color-bg);
}

.ih-u-app-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: var(--color-bg);
    margin-top: var(--space-md);
    display: block;
}

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

.ih-u-card {
    padding: var(--space-lg);
}

.ih-u-card h3 {
    margin-top: 0;
}

.ih-u-note {
    background: rgba(255, 255, 255, 0.45);
}

.ih-u-faq-item {
    border-bottom: 1px solid var(--color-border);
}

.ih-u-faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 1rem 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
    cursor: pointer;
}

.ih-u-faq-q::after {
    content: "+";
    float: right;
    color: var(--color-accent);
}

.ih-u-faq-q[aria-expanded="true"]::after {
    content: "-";
}

.ih-u-faq-a {
    padding: 0 0 1rem;
    color: var(--color-text-light);
}

.ih-u-article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    min-height: 100%;
}

.ih-u-article-card h2,
.ih-u-article-card h3 {
    margin: var(--space-md) var(--space-md) var(--space-sm);
    font-size: 1.15rem;
}

.ih-u-article-card p {
    margin: 0 var(--space-md) var(--space-md);
    color: var(--color-text-light);
}

.ih-u-article-band {
    height: 72px;
    background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
}

.ih-u-band-a { background: linear-gradient(120deg, #00bcd4, #00838f); }
.ih-u-band-b { background: linear-gradient(120deg, #26c6da, #ff7043); }
.ih-u-band-c { background: linear-gradient(120deg, #00838f, #ff5722); }
.ih-u-band-d { background: linear-gradient(120deg, #4dd0e1, #00acc1 60%, #ff8a65); }

.ih-u-cta-inner {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    background:
        linear-gradient(135deg, rgba(0, 188, 212, 0.15), rgba(255, 87, 34, 0.12)),
        var(--color-surface);
}

.ih-u-footer {
    margin-top: var(--space-xl);
    padding: var(--space-lg) 0;
    background: #0d3b42;
    color: #d7f4f7;
}

.ih-u-footer a {
    color: #9ce7f0;
}

.ih-u-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: 0.92rem;
}

.ih-u-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.ih-u-cookie-reopen {
    background: none;
    border: 0;
    padding: 0;
    color: #9ce7f0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ih-u-cookie-reopen:hover {
    color: #fff;
}

.ih-u-disclaimer {
    margin-top: var(--space-md);
    font-size: 0.82rem;
    color: #a9d5db;
}

.ih-u-form {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.ih-u-label {
    font-weight: 700;
    font-family: var(--font-heading);
}

.ih-u-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font: inherit;
    color: var(--color-text);
}

.ih-u-textarea {
    resize: vertical;
    min-height: 140px;
}

.ih-u-form-status {
    min-height: 1.25rem;
    color: var(--color-accent);
    margin: 0;
}

.ih-u-form-status.is-ok {
    color: var(--color-secondary);
}

.ih-u-contact-meta {
    padding-left: 1.1rem;
}

.ih-u-crumbs {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
}

.ih-u-facts {
    padding-left: 1.1rem;
    color: var(--color-text-light);
}

.ih-u-checked {
    font-weight: 700;
    color: var(--color-secondary);
}

.ih-u-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 300;
    max-width: 520px;
    margin: 0 auto;
    padding: 1rem 1.15rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    display: none;
}

.ih-u-cookie.is-open {
    display: block;
}

.ih-u-cookie p {
    margin: 0 0 0.85rem;
    color: var(--color-text-light);
    font-size: 0.92rem;
}

.ih-u-cookie a {
    color: var(--color-secondary);
}

.ih-u-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }

    .ih-u-logo img {
        width: 90px;
    }

    .ih-u-header-row {
        min-height: 64px;
    }

    .ih-u-burger {
        display: flex;
    }

    .ih-u-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 80%;
        max-width: 320px;
        height: 100dvh;
        min-height: 100vh;
        background: #e0f7fa;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 220;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 4.5rem 0 2rem;
        gap: 0;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    }

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

    .ih-u-nav a {
        display: block;
        width: 100%;
        padding: 16px 20px;
        border-bottom: 1px solid var(--color-border);
        color: #12353a;
    }

    .ih-u-nav-close {
        display: block;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        border: 0;
        background: none;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
        color: #12353a;
        z-index: 2;
    }

    .ih-u-nav-overlay {
        z-index: 210;
    }

    .ih-u-header {
        z-index: 230;
    }

    .ih-u-hero-grid {
        grid-template-columns: 1fr;
    }

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

    .ih-u-app-icon {
        width: 64px;
        height: 64px;
    }

    .ih-u-footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .ih-u-app-icon {
        width: 56px;
        height: 56px;
    }

    .ih-u-hero-actions,
    .ih-u-rank-actions {
        flex-direction: column;
    }

    .ih-u-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ih-u-enter,
    .ih-u-scale,
    .ih-u-btn {
        animation: none !important;
        transition: none !important;
    }
}
