:root {
    --color-primary: #ffb7a0;
    --color-secondary: #ffd4a3;
    --color-accent: #ff8c42;
    --color-bg: #fff9f5;
    --color-text: #3a2216;
    --color-text-light: #6b4a38;
    --color-border: #f0c7b4;
    --fc-header-h: 88px;
    --fc-page-w: 1120px;
    --space-lg: 24px;
    --fc-font-display: "Manrope", sans-serif;
    --fc-font-body: "Atkinson Hyperlegible", sans-serif;
}

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

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

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

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

body {
    padding-top: var(--fc-header-h);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--fc-font-body);
    font-size: 1.05rem;
    line-height: 1.6;
}

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

a { color: #c45a16; }
a:hover { color: #8a3d0c; }

h1, h2, h3 { font-family: var(--fc-font-display); line-height: 1.2; margin: 0 0 0.6em; }

p { margin: 0 0 0.9em; }

[hidden] { display: none !important; }

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

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

.fco-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--fc-header-h);
    background: #fff9f5;
    box-shadow: 0 2px 8px rgba(58, 34, 22, 0.08);
}

.fco-header a,
.fco-header a:visited { color: #3a2216; }

.fco-headerbar {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--fc-header-h);
}

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

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

.fcc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.fcc-navlink {
    text-decoration: none;
    font-family: var(--fc-font-display);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 8px 4px;
}

.fcc-navlink.is-active { border-bottom: 3px solid var(--color-accent); }

.fcu-logospace { flex: 0 0 200px; width: 200px; }

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

.fcc-burger {
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 2px solid var(--color-accent);
    background: var(--color-bg);
    padding: 10px;
    cursor: pointer;
}

.fcc-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #3a2216;
}

.fco-hero {
    background: linear-gradient(155deg, #ffd4a3 0%, #fff9f5 48%, #ffb7a0 100%);
    padding: 48px 0 56px;
}

.fco-herogrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
    gap: 36px;
    align-items: start;
}

.fcc-passport {
    background: #fff9f5;
    border: 3px solid #ffb7a0;
    border-radius: 0;
    padding: 16px;
}

.fcc-still {
    display: block;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 240px;
    margin: 0 auto 14px;
    object-fit: contain;
}

.fcc-still--review {
    max-width: 280px;
    max-height: 280px;
}

.fcc-icon {
    width: 22%;
    max-width: 96px;
    min-width: 64px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 22%;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
}

.fcc-factgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
}

.fco-section { padding: 48px 0; }

.fco-section--alt { background: #ffe8d8; }

.fcc-rank { display: flex; flex-direction: column; gap: 20px; }

.fcc-rankitem {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px 20px;
    align-items: start;
    background: #fff9f5;
    border: 3px solid #3a2216;
    border-radius: 0;
    padding: 16px;
    animation: fc-rise 0.45s ease both;
}

.fcc-rankitem:nth-child(2) { animation-delay: 0.05s; }
.fcc-rankitem:nth-child(3) { animation-delay: 0.1s; }
.fcc-rankitem:nth-child(4) { animation-delay: 0.15s; }

.fcc-rankpos {
    font-family: var(--fc-font-display);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0;
}

.fcc-rankitem .fcc-icon { width: 96px; min-width: 96px; }

.fcc-rankfacts {
    margin: 8px 0;
    overflow-wrap: anywhere;
}

.fcc-rankitem .fcc-still {
    margin: 0;
    justify-self: end;
}

.fcc-rankacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.fcc-sidecard, .fcc-log, .fcc-method {
    border-radius: 0;
    border: 3px solid #ff8c42;
    background: #fff9f5;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.fcc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 0;
    border: 2px solid #3a2216;
    background: #fff9f5;
    color: #3a2216;
    font-family: var(--fc-font-display);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.fcc-btn:hover { background: #ffd4a3; }

.fcc-btn--primary { background: #ff8c42; color: #3a2216; border-color: #3a2216; }

.fcc-btn--primary:hover { background: #ffb7a0; }

.fcc-btn:visited { color: #3a2216; }

.fco-cta {
    padding: 56px 0;
    background: #ffb7a0;
}

.fco-ctaacts { display: flex; flex-wrap: wrap; gap: 10px; }

.fco-main > section { animation: fc-fade 0.5s ease both; }

.fco-footer {
    background: #3a2216;
    color: #fff4ec;
    padding: 40px 0 28px;
}

.fco-footer a,
.fco-footer a:visited { color: #ffd4a3; }

.fco-footgrid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
}

.fcc-footlabel {
    font-family: var(--fc-font-display);
    font-weight: 800;
    margin-bottom: 8px;
}

.fcc-footlist { list-style: none; margin: 0; padding: 0; }
.fcc-footlist li { margin: 6px 0; }
.fcc-footlist a:not(.fcc-btn) { text-decoration: none; }

.fcc-footerlink {
    background: none;
    border: 0;
    padding: 0;
    color: #ffd4a3;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.fco-fineprint {
    margin-top: 28px;
    border-top: 1px solid rgba(255, 212, 163, 0.35);
    padding-top: 16px;
    font-size: 0.92rem;
}

.fcc-cookie { display: none; }

.fcc-cookie:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 110;
    gap: 12px;
    align-items: stretch;
    bottom: 16px;
    right: 16px;
    max-width: 360px;
    padding: 16px;
    background: #fff9f5;
    color: #3a2216;
    border: 3px solid #ff8c42;
    border-radius: 0;
}

.fcc-cookieacts { display: flex; gap: 8px; flex-wrap: wrap; }
.fcc-cookieacts .fcc-btn { flex: 1 1 120px; }

.fcc-crumb { font-size: 0.9rem; margin-bottom: 12px; }
.fcc-crumb a { text-decoration: none; }

.fco-prose { max-width: 760px; }
.fco-prose h2 { margin-top: 1.4em; }

.fcc-notecard {
    background: #fff9f5;
    border: 3px solid #3a2216;
    border-radius: 0;
    overflow: hidden;
}

.fcc-noteband { height: 14px; background: linear-gradient(90deg, #ff8c42, #ffb7a0 55%, #ffd4a3); }
.fcc-notecard h2, .fcc-notecard p { padding: 0 16px; }
.fcc-notecard h2 { margin-top: 14px; font-size: 1.25rem; }
.fcc-notecard p:last-child { padding-bottom: 16px; }

.fcc-form { display: grid; gap: 12px; max-width: 560px; }
.fcc-form label { font-family: var(--fc-font-display); font-weight: 700; }
.fcc-form input, .fcc-form textarea {
    width: 100%;
    border: 2px solid #3a2216;
    border-radius: 0;
    background: #fff;
    color: #3a2216;
    font: inherit;
    padding: 10px 12px;
}
.fcc-form [aria-invalid="true"] { outline: 3px solid #c45a16; }
.fcc-status { min-height: 1.4em; }

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

    .fco-headerbar { justify-content: space-between; }

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

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

    .fcc-burger { display: block; }

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

    .fcc-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: #fff9f5;
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
    }

    .fcc-drawer a {
        display: block;
        padding: 14px 20px;
        color: #3a2216;
        text-decoration: none;
        font-family: var(--fc-font-display);
        font-weight: 700;
    }

    .fcc-drawerclose {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 2px solid #ff8c42;
        background: #fff9f5;
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
    }

    .fcc-drawer--top {
        top: var(--fc-header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--fc-header-h));
        padding: 56px 0 16px;
        transform: translateY(-16px);
        opacity: 0;
    }

    body.nav-open { overflow: hidden; }
    body.nav-open .fcc-overlay { opacity: 1; visibility: visible; }
    body.nav-open .fcc-drawer { visibility: visible; }
    body.nav-open .fcc-drawer--top { transform: translateY(0); opacity: 1; }
}

@media (max-width: 860px) {
    .fco-herogrid { grid-template-columns: 1fr; }
    .fcc-rankitem { grid-template-columns: 1fr; }
    .fcc-rankitem .fcc-still {
        display: block;
        margin: 16px auto 0;
        justify-self: center;
    }
    .fco-footgrid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .fco-grid { grid-template-columns: repeat(2, 1fr); }
    .fcc-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        max-width: none;
    }
    .fcc-icon { min-width: 48px; }
}

@media (max-width: 480px) {
    .fco-grid { grid-template-columns: 1fr; }
    .fco-footgrid { grid-template-columns: 1fr; }
    .fcc-factgrid { grid-template-columns: 1fr; }
}

@keyframes fc-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (prefers-reduced-motion: reduce) {
    .fco-main > section,
    .fcc-rankitem { animation: none; }
}
