* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: calc(12px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: min(1100px, 100vw - 24px);
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.container--inner {
    width: 100%;
    max-width: min(900px, 100vw - 8px);
}

.top-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 20px;
    padding: 12px clamp(16px, 3vw, 28px);
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.top-nav--overlay {
    position: relative;
    z-index: 2;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
}

.top-nav--overlay .top-nav__brand {
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.top-nav--overlay .top-nav__links a {
    color: rgba(248, 250, 252, 0.95);
}

.top-nav--overlay .top-nav__links a:hover {
    color: #fff;
}

.top-nav__brand {
    font-weight: 800;
    text-decoration: none;
    color: #667eea;
    font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.05rem);
    letter-spacing: -0.02em;
    white-space: nowrap;
    min-width: 0;
}

.top-nav__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 4px;
    min-width: 0;
    list-style: none;
}

.top-nav__links a {
    color: #475569;
    text-decoration: none;
    font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.top-nav__links a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #4f46e5;
}

.top-nav--overlay .top-nav__links a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.top-nav__play {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: clamp(0.75rem, 0.72rem + 0.15vw, 0.85rem);
    border-radius: 999px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.28);
    transition: filter 0.15s ease, transform 0.12s ease;
}

.top-nav__play:hover {
    filter: brightness(1.06);
}

.top-nav__play:active {
    transform: scale(0.98);
}

.top-nav--overlay .top-nav__play {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.35);
}

.top-nav__links a:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.top-nav--overlay .top-nav__links a:focus-visible {
    outline-color: #e9d5ff;
}

.hero-header {
    position: relative;
    margin-top: -56px;
    padding-top: 100px !important;
}

.hero-header__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    align-items: start;
}

.sidebar {
    padding: 28px 22px;
    background: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100%;
}

.sidebar__card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.sidebar__score {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    margin: 8px 0;
}

.sidebar__btn {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.sidebar__nav a {
    color: #475569;
    text-decoration: none;
    font-size: 0.92rem;
}

.sidebar__nav a:hover {
    color: #667eea;
}

.sidebar__disclosure {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
}

.content--main {
    padding: 40px 40px 50px;
}

.header {
    background-image: url('mellkomp.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 60px 40px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header h1 {
    font-size: 2.3em;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.header-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.header-btn:active {
    transform: translateY(-1px);
}

.header-btn-play {
    margin-top: 0;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                    0 0 20px rgba(102, 126, 234, 0.5),
                    0 0 30px rgba(118, 75, 162, 0.5);
    }
    50% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
                    0 0 30px rgba(102, 126, 234, 0.8),
                    0 0 50px rgba(118, 75, 162, 0.8),
                    0 0 70px rgba(102, 126, 234, 0.6);
    }
}

.content {
    padding: 50px 40px;
}

.inner-page {
    padding: 36px 40px 48px;
}

.article-lead {
    font-size: 1.12em;
    font-weight: 500;
    color: #334155;
    margin-bottom: 28px;
    line-height: 1.65;
}

.author-card {
    max-width: 720px;
}

.author-card__visual {
    float: right;
    margin: 0 0 20px 24px;
}

.author-card__role {
    color: #64748b;
    font-weight: 600;
    margin-bottom: 18px;
}

.disclosure-note {
    margin-top: 28px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #475569;
}

h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

h3 {
    color: #764ba2;
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 18px;
    font-size: 1.05em;
    text-align: justify;
}

ul, ol {
    margin: 20px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 12px;
    font-size: 1.05em;
    line-height: 1.6;
}

.intro {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid #667eea;
}

.intro p {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 0;
}

.highlight-box {
    background: #fff5f5;
    border-left: 4px solid #f56565;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
}

.info-box {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
}

.conclusion {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 35px;
    border-radius: 15px;
    margin-top: 40px;
    border: 2px solid #667eea;
}

.conclusion p {
    font-size: 1.1em;
    font-weight: 500;
}

strong {
    color: #667eea;
    font-weight: 600;
}

.figure-score {
    margin: 24px 0;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.figure-score svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.figure-score figcaption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #475569;
}

.table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
    margin-inline: -4px;
    padding-inline: 4px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
}

.data-table th {
    background: #e0e7ff;
    color: #3730a3;
}

.data-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.procon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 16px;
}

.procon-minus strong {
    color: #b91c1c;
}

.site-footer {
    padding: 28px 32px 36px;
    background: #0f172a;
    color: #94a3b8;
}

.site-footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.site-footer strong {
    color: #e2e8f8;
}

.site-footer a {
    color: #a5b4fc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer__legal {
    margin-top: 22px;
    font-size: 0.85rem;
    opacity: 0.85;
}

.faq-block dt {
    font-weight: 700;
    margin-top: 18px;
    color: #4338ca;
}

.faq-block dd {
    margin-left: 0;
    margin-top: 8px;
}

.lead-warn {
    background: #fff7ed;
    border-left: 4px solid #ea580c;
    padding: 16px 20px;
    border-radius: 8px;
}

code {
    font-family: ui-monospace, monospace;
    font-size: 0.9em;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    body {
        padding: 12px;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .content--main {
        order: 1;
    }

    .sidebar {
        order: 2;
        position: static;
        border-right: none;
        border-bottom: none;
        border-top: 1px solid #e2e8f0;
    }

    .hero-header {
        margin-top: 0;
        padding-top: 60px !important;
    }

    .procon-grid {
        grid-template-columns: 1fr;
    }

    .site-footer__cols {
        grid-template-columns: 1fr;
    }

    .author-card__visual {
        float: none;
        margin: 0 auto 20px;
        text-align: center;
    }

    .header h1 {
        font-size: clamp(1.35rem, 4.2vw + 0.9rem, 2.3em);
    }

    p,
    li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        padding-left: env(safe-area-inset-left, 0);
        padding-right: env(safe-area-inset-right, 0);
    }

    .container,
    .container--inner {
        max-width: 100%;
    }

    .container {
        border-radius: 0;
    }

    .top-nav {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 0;
        padding: 10px 16px;
        padding-top: max(10px, env(safe-area-inset-top, 0px));
        align-items: center;
    }

    .top-nav__brand {
        grid-column: 1;
        grid-row: 1;
        font-size: 0.88rem;
        line-height: 1.2;
        padding-right: 4px;
        white-space: normal;
    }

    .top-nav__play {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 0.72rem;
    }

    .top-nav__links {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 6px;
        margin: 10px -16px 0;
        padding: 10px max(16px, env(safe-area-inset-left, 0px)) 4px max(16px, env(safe-area-inset-right, 0px));
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        touch-action: pan-x;
        scrollbar-width: none;
        border-top: 1px solid rgba(226, 232, 240, 0.85);
    }

    .top-nav__links::-webkit-scrollbar {
        display: none;
    }

    .top-nav--overlay .top-nav__links {
        border-top-color: rgba(248, 250, 252, 0.15);
    }

    .top-nav__links a {
        flex: 0 0 auto;
        scroll-snap-align: start;
        font-size: 0.78rem;
        font-weight: 600;
        padding: 8px 14px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        border-radius: 999px;
        background: #e2e8f0;
        color: #334155 !important;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    }

    .top-nav--overlay .top-nav__links a {
        background: rgba(255, 255, 255, 0.14);
        color: #f8fafc !important;
        box-shadow: none;
    }

    .top-nav__links a:hover {
        filter: brightness(0.97);
    }

    .top-nav--overlay .top-nav__links a:hover {
        color: #fff !important;
        filter: brightness(1.12);
    }

    .top-nav__links a:focus-visible {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }

    .top-nav--overlay .top-nav__links a:focus-visible {
        outline-color: #c4b5fd;
    }

    .header {
        background-image: url('mellmobile.jpg');
        background-size: cover;
        background-position: center;
        height: 100vh;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 100px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left));
        justify-content: flex-start;
        padding-top: max(22vh, env(safe-area-inset-top));
    }

    .header h1 {
        font-size: clamp(1.25rem, 5vw + 0.75rem, 1.65em);
        margin-bottom: 24px;
        padding-inline: 4px;
    }

    .header-btn {
        animation: glow 2s ease-in-out infinite;
        padding: 16px 28px;
        font-size: clamp(0.85rem, 3vw, 1em);
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-header__cta {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        max-width: 340px;
    }

    .content,
    .content--main,
    .inner-page {
        padding: 24px max(16px, env(safe-area-inset-left)) 32px max(16px, env(safe-area-inset-right));
    }

    .intro,
    .conclusion,
    .highlight-box,
    .info-box {
        padding: 20px 16px;
    }

    h2 {
        font-size: clamp(1.25rem, 3.5vw + 0.8rem, 1.5em);
        margin-top: 32px;
        word-wrap: break-word;
    }

    h3 {
        font-size: clamp(1.05rem, 2.5vw + 0.75rem, 1.2em);
    }

    .data-table {
        font-size: 0.82rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 8px;
        word-break: break-word;
    }

    .sidebar {
        padding: 20px 16px;
    }

    .sidebar__btn {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-footer {
        padding: 24px max(16px, env(safe-area-inset-left)) 32px max(16px, env(safe-area-inset-right));
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }

    .site-footer a {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .top-nav--overlay {
        background: rgba(15, 23, 42, 0.88);
    }

    .hero-header {
        margin-top: -132px;
        padding-top: max(136px, calc(118px + env(safe-area-inset-top, 0px))) !important;
    }
}

@media (max-width: 900px) and (max-height: 480px) {
    .header {
        height: auto;
        min-height: unset;
        padding: 72px 20px 28px;
    }

    .header h1 {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .hero-header__cta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: none;
    }
}

@media (max-width: 380px) {
    .top-nav__brand {
        font-size: 0.86rem;
    }

    .top-nav__play {
        padding: 10px 12px;
        font-size: 0.7rem;
    }

    .top-nav__links a {
        font-size: 0.74rem;
        padding: 7px 12px;
    }

    ul,
    ol {
        padding-left: 22px;
    }
}
