/* ============================================
   ПРОЕКТ: MammothMuscle.com (site24-de)
   CSS АРХІТЕКТУРА: OOCSS (структура + шкіри)
   ПАЛІТРА: Industrial Forge Palette
   ЕФЕКТ: Brutalism (контрастні рамки, тіні)
   ТИПОГРАФІКА: Oswald (heading) + Raleway (body)
   КНОПКИ: 3D Effect Trigger
   HTML КЛАСИ: Namespace style (hero-*, forge-*, grid-*)
   JS NAMING: Short names (agBox, ckBar, mmBtn...)
   ============================================ */

:root {
    --iron-anvil: #1f2329;
    --forge-ember: #d94f04;
    --steel-spark: #4a90e2;
    --grit-ash: #5b5f66;
    --muscle-ivory: #f7f4ef;
    --energy-lime: #9acd32;
    --warning-scarlet: #c21807;
    --calm-slate: #6f7a83;
    --brutal-shadow: rgba(0, 0, 0, 0.85);
    --brutal-line: 6px;
    --header-height: 92px;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Raleway', sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    background: var(--iron-anvil);
    color: var(--muscle-ivory);
    font-family: var(--font-body);
    line-height: 1.7;
}

a {
    color: var(--steel-spark);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--forge-ember);
}

img {
    max-width: 100%;
    display: block;
}

header.rig-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--iron-anvil);
    border-bottom: var(--brutal-line) solid var(--forge-ember);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 8px 8px 0 var(--brutal-shadow);
}

.nav-strut {
    width: min(1200px, 92vw);
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2vw, 2.6rem);
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    text-transform: uppercase;
}

.free-badge {
    background: var(--energy-lime);
    color: var(--iron-anvil);
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2.8s infinite;
    box-shadow: 4px 4px 0 var(--brutal-shadow);
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.5vw, 1.8rem);
}

.main-nav a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 10px 12px;
    border: var(--brutal-line) solid transparent;
    transition: all 0.2s ease-in-out;
}

.main-nav a:hover,
.main-nav a:focus {
    border-color: var(--steel-spark);
    color: var(--muscle-ivory);
    transform: translate(-3px, -3px);
}

.burger-switch {
    display: none;
    margin-left: auto;
    background: none;
    border: var(--brutal-line) solid var(--forge-ember);
    color: var(--forge-ember);
    padding: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 6px 6px 0 var(--brutal-shadow);
}

.mobile-drawer {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: min(320px, 82vw);
    background: var(--iron-anvil);
    border-left: var(--brutal-line) solid var(--forge-ember);
    border-bottom: var(--brutal-line) solid var(--forge-ember);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -10px 10px 0 var(--brutal-shadow);
}

.mobile-drawer.is-visible {
    right: 0;
}

.mobile-drawer a {
    text-transform: uppercase;
    font-weight: 700;
}

main {
    padding-top: calc(var(--header-height) + 60px);
}

.structure-band {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.hero-chassis {
    background: linear-gradient(110deg, rgba(217, 79, 4, 0.25), rgba(74, 144, 226, 0.15)), var(--iron-anvil);
    border: var(--brutal-line) solid var(--forge-ember);
    box-shadow: 18px 18px 0 var(--brutal-shadow);
    padding: clamp(2.5rem, 4vw, 3.5rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 3vw, 3.5rem);
}

.hero-copy h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 6vw, 3.8rem);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-copy h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--steel-spark);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.trigger-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    padding: 14px 28px;
    cursor: pointer;
    margin: 0.25rem;
    background: transparent;
    border: var(--brutal-line) solid transparent;
    color: var(--muscle-ivory);
    text-decoration: none;
}

.trigger-3d {
    background: var(--forge-ember);
    color: var(--muscle-ivory);
    border: var(--brutal-line) solid var(--muscle-ivory);
    box-shadow: 10px 10px 0 var(--brutal-shadow);
    transform: translateY(-4px);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trigger-3d:hover,
.trigger-3d:focus {
    transform: translateY(-8px);
    box-shadow: 14px 14px 0 var(--brutal-shadow);
}

.trigger-3d:active {
    transform: translateY(2px);
    box-shadow: 6px 6px 0 var(--brutal-shadow);
}

.hero-artwork {
    position: relative;
    min-height: 260px;
    background: radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.35), transparent 55%),
                radial-gradient(circle at 80% 80%, rgba(217, 79, 4, 0.4), transparent 45%),
                var(--grit-ash);
    border: var(--brutal-line) dashed var(--steel-spark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-artwork::after {
    content: "Mammoth Power";
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 5vw, 3rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muscle-ivory);
}

.segment-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 3rem 0 1.5rem;
}

.strength-orbit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.benefit-brick {
    flex: 0 0 auto;
    width: clamp(280px, 28vw, 320px);
    background: var(--grit-ash);
    border: var(--brutal-line) solid var(--muscle-ivory);
    box-shadow: 12px 12px 0 var(--brutal-shadow);
    padding: 1.8rem;
    position: relative;
}

.benefit-brick h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.games-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.game-brick {
    flex: 0 0 auto;
    width: clamp(280px, 25vw, 350px);
    max-width: 350px;
    min-width: 280px;
    background: var(--muscle-ivory);
    color: var(--iron-anvil);
    border: var(--brutal-line) solid var(--warning-scarlet);
    box-shadow: 14px 14px 0 var(--brutal-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding: 1.6rem;
}

.game-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--warning-scarlet);
    color: var(--muscle-ivory);
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.game-info p {
    margin: 0.
}

.game-info strong {
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
}

.faq-stack {
    background: var(--calm-slate);
    border: var(--brutal-line) solid var(--steel-spark);
    box-shadow: 14px 14px 0 var(--brutal-shadow);
    padding: 2.2rem;
}

.faq-item {
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem 0;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.is-open {
    max-height: 320px;
}

.faq-answer p {
    margin: 0 0 1rem;
}

.feedback-row,
.stronger-board {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.6rem, 3vw, 2.8rem);
    margin-bottom: 3rem;
}

.feedback-card,
.rank-card {
    flex: 0 0 auto;
    width: clamp(280px, 28vw, 320px);
    background: var(--iron-anvil);
    border: var(--brutal-line) solid var(--steel-spark);
    box-shadow: 12px 12px 0 var(--brutal-shadow);
    padding: 1.8rem;
}

.feedback-card h3,
.rank-card h3 {
    margin-top: 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.compliance-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.compliance-logo {
    height: 42px !important;
    width: auto !important;
    background: var(--muscle-ivory);
    padding: 10px;
    border-radius: 10px;
    border: 2px solid var(--steel-spark);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.compliance-logo:hover {
    opacity: 1;
    border-color: var(--forge-ember);
    box-shadow: 0 0 14px var(--steel-spark);
}

.disclaimer-section {
    background: var(--warning-scarlet);
    border-top: var(--brutal-line) solid var(--muscle-ivory);
    border-bottom: var(--brutal-line) solid var(--muscle-ivory);
    padding: 2.5rem 0;
}

.disclaimer-core {
    width: min(1100px, 92vw);
    margin: 0 auto;
    text-align: center;
}

.disclaimer-core h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0;
}

.disclaimer-flags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.disclaimer-flags .badge {
    background: var(--muscle-ivory);
    color: var(--warning-scarlet);
    padding: 6px 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 6px 6px 0 var(--brutal-shadow);
}

footer.forge-footer {
    background: var(--iron-anvil);
    border-top: var(--brutal-line) solid var(--forge-ember);
    padding: 2.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.footer-grid h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0;
}

.footer-links {
    display: grid;
    gap: 0.5rem;
}

.footer-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.hero-list {
    display: grid;
    gap: 0.8rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-list li::before {
    content: "◆";
    margin-right: 0.6rem;
    color: var(--energy-lime);
}

.article-shell,
.page-shell {
    width: min(940px, 92vw);
    margin: 0 auto;
}

.page-shell h1,
.article-shell h1 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.page-hero {
    background: var(--grit-ash);
    border: var(--brutal-line) solid var(--forge-ember);
    padding: 2.5rem;
    box-shadow: 14px 14px 0 var(--brutal-shadow);
    margin-bottom: 2.5rem;
}

.grid-split {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.list-industrial {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.list-industrial li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.8rem;
}

.list-industrial li::before {
    content: "▣";
    position: absolute;
    left: 0;
    color: var(--energy-lime);
}

.table-compact {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.table-compact th,
.table-compact td {
    border: 2px solid var(--muscle-ivory);
    padding: 0.8rem;
    text-align: left;
}

.notice-block {
    background: var(--muscle-ivory);
    color: var(--iron-anvil);
    border: var(--brutal-line) solid var(--steel-spark);
    padding: 1.2rem;
    margin: 1.8rem 0;
    box-shadow: 10px 10px 0 var(--brutal-shadow);
}

.highlight-core {
    display: inline-block;
    background: var(--forge-ember);
    padding: 0.2rem 0.6rem;
    color: var(--muscle-ivory);
    font-weight: 800;
    letter-spacing: 0.08em;
}

form.form-forge {
    display: grid;
    gap: 1.2rem;
}

.form-forge label {
    font-weight: 700;
    letter-spacing: 0.05em;
}

.form-forge input,
.form-forge textarea,
.form-forge select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: var(--brutal-line) solid var(--steel-spark);
    background: #1a1d22;
    color: var(--muscle-ivory);
    font-family: var(--font-body);
}

.form-forge input:focus,
.form-forge textarea:focus,
.form-forge select:focus {
    outline: 3px solid var(--energy-lime);
}

.status-banner {
    display: none;
    padding: 1rem 1.2rem;
    border: var(--brutal-line) solid var(--energy-lime);
    background: rgba(154, 205, 50, 0.15);
    color: var(--energy-lime);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.status-banner.is-active {
    display: block;
}

.badge-score {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--steel-spark);
    color: var(--muscle-ivory);
    padding: 4px 10px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.timeline-block {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-block::before {
    content: "";
    position: absolute;
    left: 0.6rem;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--steel-spark);
}

.timeline-node {
    position: relative;
    margin-bottom: 1.4rem;
}

.timeline-node::before {
    content: "";
    position: absolute;
    left: -1.45rem;
    top: 0.35rem;
    width: 18px;
    height: 18px;
    background: var(--forge-ember);
    border: 4px solid var(--muscle-ivory);
    box-shadow: 2px 2px 0 var(--brutal-shadow);
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, #121418 0%, #1f2329 100%);
    border: var(--brutal-line) solid var(--steel-spark);
    border-radius: 18px;
    padding: 1.6rem;
    z-index: 9999;
    display: none;
    color: var(--muscle-ivory);
    box-shadow: 12px 12px 0 var(--brutal-shadow);
}

.cookie-banner p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.age-gate-panel {
    width: min(480px, 90vw);
    background: var(--iron-anvil);
    border: var(--brutal-line) solid var(--forge-ember);
    box-shadow: 16px 16px 0 var(--brutal-shadow);
    padding: 2.5rem;
    text-align: center;
}

.age-gate-panel h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.burger-switch:focus,
.trigger-base:focus,
.mobile-drawer a:focus,
.footer-links a:focus {
    outline: 3px solid var(--steel-spark);
    outline-offset: 3px;
}

.table-compact caption {
    text-align: left;
    margin-bottom: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-note {
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
}

.list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0;
    list-style: none;
}

.list-inline li {
    background: var(--steel-spark);
    padding: 4px 10px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.play-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    font-weight: 700;
}

iframe.game-frame {
    width: 100%;
    height: 640px;
    border: var(--brutal-line) solid var(--steel-spark);
    box-shadow: 10px 10px 0 var(--brutal-shadow);
    background: #000;
}

.reset-grid {
    display: flex;
    justify-content: flex-end;
}

.reset-grid button {
    background: transparent;
    border: var(--brutal-line) solid var(--steel-spark);
    color: var(--muscle-ivory);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 22px;
    cursor: pointer;
}

.reset-grid button:hover {
    border-color: var(--forge-ember);
}

@media (max-width: 1024px) {
    header.rig-header {
        height: 80px;
    }
    :root {
        --header-height: 80px;
    }
}

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

    .burger-switch {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: calc(var(--header-height) + 40px);
    }

    .games-grid {
        flex-direction: column;
        align-items: center;
    }

    .game-brick {
        width: 100%;
        max-width: 400px;
    }

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

    .cookie-banner {
        right: 12px;
        left: 12px;
        max-width: unset;
    }
}

@media (max-width: 480px) {
    header.rig-header {
        height: 72px;
    }
    :root {
        --header-height: 72px;
    }

    .brand-badge {
        font-size: 1.2rem;
    }

    .trigger-base {
        width: 100%;
    }

    iframe.game-frame {
        height: 480px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 4px 4px 0 var(--brutal-shadow);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 8px 8px 0 var(--brutal-shadow);
    }
}
