:root {
    --bg: #f5f7fa;
    --bg-soft: #eef2f6;
    --paper: #ffffff;
    --ink: #1a2332;
    --muted: #5c6b7f;
    --line: #d8e0ea;
    --accent: #e6007e;
    --accent-red: #ff0000;
    --accent-dark: #c40068;
    --accent-soft: #fff0f6;
    --accent-gradient: linear-gradient(90deg, #ff0000 0%, #e6007e 100%);
    --accent-gradient-hover: linear-gradient(90deg, #e60000 0%, #cc006e 100%);
    --accent-shadow: rgba(230, 0, 126, 0.28);
    --gold: #b8860b;
    --shadow: 0 14px 40px rgba(26, 35, 50, 0.08);
    --shadow-hover: 0 20px 50px rgba(26, 35, 50, 0.14);
    --radius: 16px;
    --radius-lg: 22px;
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-serif: "Instrument Serif", Georgia, serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: linear-gradient(180deg, #fafbfd 0%, var(--bg) 48%, var(--bg-soft) 100%);
    line-height: 1.65;
    min-height: 100vh;
}

body:not(.is-loaded) .anim {
    opacity: 0;
    transform: translateY(18px);
}

body.is-loaded .anim.is-visible,
body.is-loaded .masthead.anim {
    opacity: 1;
    transform: translateY(0);
}

.anim {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
    transition-delay: var(--anim-delay, 0ms);
}

.wrap {
    width: min(1240px, calc(100% - 2.5rem));
    margin: 0 auto;
}

/* Header */
.masthead {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 30;
}

.inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 1.6rem;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.25s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s var(--ease);
}

.nav a:hover {
    color: var(--ink);
}

.nav a:hover::after {
    width: 100%;
}

/* Spotlight (featured) */
.spotlight {
    margin: 2rem 0 2.4rem;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    min-height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow);
    transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.spotlight:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.spotlight-media {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    text-decoration: none;
}

.spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease);
}

.spotlight:hover .spotlight-media img {
    transform: scale(1.04);
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(230, 0, 126, 0.45) 0%, rgba(26, 35, 50, 0.2) 55%, transparent 100%);
}

.spotlight-panel {
    padding: 2rem 2.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, #1a1a1a 0%, #3a0d22 100%);
    color: #fff;
}

.spotlight-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.spotlight-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #ff9ec8;
}

.spotlight-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffe8f2;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-ad {
    background: rgba(184, 134, 11, 0.25);
    color: #ffe7a8;
}

.spotlight-title {
    margin: 0 0 0.9rem;
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 400;
    line-height: 1.15;
}

.spotlight-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.spotlight-title a:hover {
    opacity: 0.88;
}

.spotlight-lead {
    margin: 0 0 1.1rem;
    color: #f0d4e0;
    font-size: 1.02rem;
    line-height: 1.6;
}

.spotlight-meta {
    color: #d4a8b8;
    margin-bottom: 1.3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    color: var(--accent-dark);
    border-radius: 10px;
    padding: 0.72rem 1.2rem;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-spotlight {
    align-self: flex-start;
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 10px 28px var(--accent-shadow);
}

.btn-spotlight:hover {
    background: var(--accent-gradient-hover);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-serif);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.list-head {
    margin: 0 0 1.2rem;
}

.list-head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.list-head p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

/* Grid & cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.35rem;
    margin-bottom: 2.5rem;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(26, 35, 50, 0.05);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #c5d5e3;
}

.card-with-img .card-body {
    padding: 1.15rem 1.25rem 1.3rem;
}

.card-img-link {
    display: block;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.55s var(--ease);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-cat {
    margin: 0 0 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
}

.card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
    font-family: var(--font-sans);
    font-weight: 700;
}

.card a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.excerpt {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.meta {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--muted);
}

.meta span + span::before {
    content: "·";
    margin-right: 0.55rem;
    color: #b7c5d6;
}

/* Article page */
.page-article {
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
}

.article-page {
    margin-top: 0;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header-inner {
    padding: 2rem 0 1.2rem;
    max-width: 760px;
}

.article-header-inner h1 {
    margin: 0.3rem 0 0.8rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.article-sub {
    color: var(--muted);
    font-size: 1.12rem;
    margin: 0 0 1rem;
    max-width: 680px;
}

.article-meta {
    margin-top: 0.5rem;
}

.article-header-media {
    margin: 0;
    max-height: 460px;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.article-header-media img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.article-layout {
    padding-bottom: 2rem;
}

.article-shell {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    box-shadow: var(--shadow);
    max-width: 760px;
}

.article-ad {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.82rem;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-disclaimer {
    background: #fff9ed;
    border: 1px solid #f0e2c4;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    color: #6a5730;
    font-size: 0.92rem;
    margin-bottom: 1.4rem;
}

/* Prose */
.prose {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2a3545;
}

.prose p {
    margin: 0 0 1.15rem;
}

.prose .lead {
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.65;
}

.prose h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    margin: 2rem 0 0.75rem;
    color: var(--ink);
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
}

.prose h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 1.2rem;
}

.prose ul {
    margin: 0 0 1.2rem;
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: 0.45rem;
}

.prose li::marker {
    color: var(--accent);
}

.prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--accent-dark);
}

.article-figure {
    margin: 1.5rem 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.article-figure img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}

.related {
    padding-bottom: 2.5rem;
}

.related h2 {
    margin-bottom: 1rem;
}

/* Quiz (site style) */
.quiz-block {
    margin: 2.5rem 0 0;
    padding: 0;
}

.quiz-block-inner {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(165deg, #fff5f9 0%, #fff 55%, #f8fafc 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.quiz-block-head {
    padding: 1.5rem 1.6rem 1.2rem;
    border-bottom: 1px solid var(--line);
}

.quiz-block-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
}

.quiz-block-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--ink);
}

.quiz-dots {
    display: flex;
    gap: 0.45rem;
    margin: 1rem 0 0.5rem;
}

.quiz-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d5e0ea;
    transition: background 0.25s ease, transform 0.25s ease;
}

.quiz-dot.is-active {
    background: var(--accent);
    transform: scale(1.15);
}

.quiz-dot.is-done {
    background: #f5a8c8;
}

.quiz-block-step {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}

.quiz-block-body {
    padding: 1.4rem 1.6rem 1.6rem;
}

.quiz-question {
    margin: 0 0 1rem;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink);
}

.quiz-options {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.quiz-opt {
    display: grid;
    gap: 0.15rem;
    text-align: left;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quiz-opt:hover {
    border-color: #f0b8d0;
    background: #fffafb;
}

.quiz-opt.is-selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.12);
}

.quiz-opt-title {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.96rem;
}

.quiz-opt-sub {
    font-size: 0.84rem;
    color: var(--muted);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.quiz-btn {
    border-radius: 10px;
    padding: 0.7rem 1.15rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.quiz-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.quiz-btn-main {
    background: var(--accent-gradient);
    color: #fff;
    margin-left: auto;
}

.quiz-btn-main:hover:not(:disabled) {
    background: var(--accent-gradient-hover);
}

.quiz-btn-muted {
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
}

.quiz-loading {
    text-align: center;
    padding: 1.5rem 0;
}

.quiz-loading-ring {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 3px solid #fce0ec;
    border-top-color: var(--accent);
    animation: as-spin 0.85s linear infinite;
}

.quiz-loading-text {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
}

.quiz-offer {
    text-align: center;
    padding: 0.5rem 0;
    animation: as-rise-in 0.5s var(--ease);
}

.quiz-offer-label {
    margin: 0 0 1rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--ink);
}

.quiz-offer-cta {
    display: block;
    text-decoration: none !important;
    border-radius: 14px;
    padding: 1.15rem 1.4rem;
    background: var(--accent-gradient);
    color: #fff !important;
    box-shadow: 0 12px 32px var(--accent-shadow);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.quiz-offer-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(230, 0, 126, 0.38);
    background: var(--accent-gradient-hover);
}

.quiz-offer-cta-main {
    display: block;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.quiz-offer-cta-sub {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.88rem;
    opacity: 0.92;
}

/* Legal modals */
body.modal-open {
    overflow: hidden;
}

.legal-modal[hidden] {
    display: none;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(21, 36, 51, 0.55);
    backdrop-filter: blur(3px);
}

.legal-modal-dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-hover);
    padding: 1.6rem 1.8rem;
    animation: as-rise-in 0.35s var(--ease);
}

.legal-modal-dialog h2 {
    margin: 0 2rem 1rem 0;
    font-family: var(--font-serif);
    font-size: 1.65rem;
}

.legal-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.legal-modal-body {
    font-size: 0.94rem;
    line-height: 1.65;
    color: #2a3545;
}

.legal-modal-body p {
    margin: 0 0 0.9rem;
}

.legal-modal-body a {
    color: var(--accent-dark);
}

@keyframes as-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes as-rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.foot {
    background: #152433;
    color: #c8d4e4;
    padding: 2.2rem 0;
    margin-top: 1rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.2rem;
}

.foot strong {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
}

.links {
    display: grid;
    gap: 0.45rem;
}

.links a {
    color: #c8d4e4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.links a:hover {
    color: #fff;
}

.foot-operator {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #a8b8cc;
}

.foot-operator a {
    color: #ffc8e0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.foot-operator a:hover {
    color: #fff;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0 0 1rem;
    transform: translateY(110%);
    transition: transform 0.45s var(--ease);
    pointer-events: none;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    padding: 1rem 1.25rem;
}

.cookie-banner-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ink);
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 52ch;
}

.cookie-banner-text a {
    color: var(--accent-dark);
    font-weight: 600;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-btn {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.cookie-btn-main {
    background: var(--accent-gradient);
    color: #fff;
}

.cookie-btn-main:hover {
    background: var(--accent-gradient-hover);
}

.cookie-btn-muted {
    background: #fff;
    color: var(--muted);
    border-color: var(--line);
}

body.cookie-banner-visible {
    padding-bottom: 5.5rem;
}

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

    .spotlight-media {
        min-height: 240px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

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

@media (max-width: 720px) {
    .inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 0.65rem 0;
    }

    .nav {
        flex-wrap: wrap;
        gap: 0.9rem;
    }

    .wrap {
        width: min(1240px, calc(100% - 1.4rem));
    }

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

    .spotlight-panel {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .anim,
    .card,
    .spotlight,
    .card-img,
    .spotlight-media img,
    .btn,
    .nav a::after,
    .quiz-loading-ring,
    .quiz-offer,
    .legal-modal-dialog {
        transition: none !important;
        animation: none !important;
    }
}
