:root {
    --color-primary: #c0392b;
    --color-secondary: #e74c3c;
    --color-accent: #ffd700;
    --color-bg: #fef5e7;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e6d3c4;
    --dg-header-h: 88px;
    --dg-page-w: 1120px;
    --space-lg: 24px;
    --dg-font-head: "Fredoka", "Trebuchet MS", sans-serif;
    --dg-font-body: "Segoe UI", "Helvetica Neue", sans-serif;
}

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

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--dg-font-body);
    font-size: 17px;
    line-height: 1.55;
}

body { padding-top: var(--dg-header-h); }

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        90deg,
        transparent 0 22px,
        rgba(192, 57, 43, 0.045) 22px 26px
    );
}

main, .dg-l-foot { position: relative; z-index: 1; }

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

a { color: var(--color-primary); }

h1, h2, h3 {
    font-family: var(--dg-font-head);
    line-height: 1.15;
    font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 12px; }
h3 { margin: 0; font-size: 1.45rem; }

p { margin: 0 0 12px; }

[hidden] { display: none !important; }

.dg-l-wrap {
    max-width: var(--dg-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

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

.dg-l-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--dg-header-h);
    background: #fef5e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dg-l-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--dg-header-h);
}

.dg-m-logo { display: block; flex: 0 0 auto; line-height: 0; }

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

.dg-l-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.dg-l-nav a,
.dg-l-nav a:visited {
    color: #c0392b;
    text-decoration: none;
    font-family: var(--dg-font-head);
    font-weight: 500;
    font-size: 0.98rem;
    white-space: nowrap;
}

.dg-l-nav a.dg-is-active { box-shadow: inset 0 -3px 0 #ffd700; }

.dg-l-balance { width: 180px; flex: 0 0 180px; }

.dg-m-burger,
.dg-l-shade,
.dg-l-drawer { display: none; }

.dg-m-burger {
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

.dg-m-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #c0392b;
}

.dg-l-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.dg-m-herostill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.dg-m-heropanel {
    position: relative;
    z-index: 1;
    width: 40%;
    max-width: 40%;
    margin: 36px 0;
    background: #fef5e7;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 8px 8px 18px rgba(90, 40, 20, 0.18);
}

.dg-l-block, .dg-l-band, .dg-l-cta, .dg-l-page { padding: 56px 0; }

.dg-l-band { background: #fff4e4; }

.dg-l-cta {
    background: #c0392b;
    color: #fff8ee;
}

.dg-l-cta a:not(.dg-m-btn) { color: #ffd700; }

.dg-l-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 28px;
    align-items: center;
}

.dg-m-pickstill {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

.dg-m-lead { color: var(--color-text-light); max-width: 62ch; }

.dg-m-rank {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 200px;
    column-gap: 18px;
    row-gap: 6px;
    align-items: start;
    background: #fffdf8;
    border-radius: 12px;
    padding: 20px;
    margin: 18px 0;
    box-shadow: 7px 7px 14px #e4d2bf, -5px -5px 12px #fffaf3;
}

.dg-m-pos {
    grid-column: 1 / -1;
    margin: 0;
    font-family: var(--dg-font-head);
    letter-spacing: 0.08em;
    color: var(--color-primary);
}

.dg-m-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    background: #fff;
    grid-column: 1;
    grid-row: 2 / span 4;
}

.dg-m-name, .dg-m-dev, .dg-m-desc, .dg-m-facts, .dg-m-actions { grid-column: 2; }

.dg-m-dev { margin: 0; color: var(--color-text-light); }

.dg-m-facts {
    margin: 0;
    overflow-wrap: anywhere;
}

.dg-m-still {
    grid-column: 3;
    grid-row: 2 / span 5;
    justify-self: end;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 240px;
    object-fit: contain;
    border-radius: 12px;
}

.dg-m-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.dg-m-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: #fef5e7;
    color: #c0392b;
    font-family: var(--dg-font-head);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 5px 5px 10px #e4d2bf, -4px -4px 10px #fffaf3;
}

.dg-m-btn--solid {
    background: #c0392b;
    color: #fff8ee;
    box-shadow: 4px 4px 0 #8e2a22;
}

.dg-l-cta .dg-m-btn:not(.dg-m-btn--solid) {
    background: #fff4e4;
    color: #c0392b;
}

.dg-m-ink {
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    animation: dg-ripple 0.5s ease-out forwards;
}

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

.dg-l-block, .dg-l-band, .dg-l-cta, .dg-m-rank, .dg-m-heropanel {
    animation: dg-rise 0.45s ease both;
}

@keyframes dg-ripple {
    to { transform: scale(16); opacity: 0; }
}

.dg-m-steps, .dg-m-log { margin: 0 0 12px; padding-left: 1.2rem; }

.dg-m-faqitem { border-bottom: 1px solid var(--color-border); }

.dg-m-faqbtn {
    width: 100%;
    text-align: left;
    min-height: 48px;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: #333;
    font-family: var(--dg-font-head);
    font-size: 1.05rem;
    cursor: pointer;
}

.dg-m-faqpanel { padding: 0 0 12px; }

.dg-l-prose { max-width: 760px; }

.dg-l-prose .dg-l-grid { max-width: none; }

.dg-m-card {
    background: #fffdf8;
    border-radius: 12px;
    padding: 0 0 16px;
    box-shadow: 6px 6px 14px #e4d2bf;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dg-m-card h2, .dg-m-card p, .dg-m-card .dg-m-btn { margin-left: 16px; margin-right: 16px; }

.dg-m-band {
    border-radius: 12px 12px 0 0;
    min-height: 72px;
    display: flex;
    align-items: flex-end;
    padding: 12px 16px;
    font-family: var(--dg-font-head);
    color: #3a2408;
}

.dg-m-band--hay { background: linear-gradient(135deg, #ffd700, #e67e22); }
.dg-m-band--silo { background: linear-gradient(135deg, #e74c3c, #f5c16c); }
.dg-m-band--cob { background: linear-gradient(135deg, #f1c40f, #c0392b); }

.dg-m-crumbs { color: var(--color-text-light); font-size: 0.92rem; }

.dg-l-review {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 220px;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.dg-m-still--wide {
    grid-column: auto;
    grid-row: auto;
    max-width: 220px;
    max-height: 280px;
}

.dg-m-form { display: grid; gap: 8px; max-width: 520px; }

.dg-m-form input, .dg-m-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.dg-l-foot {
    background: #3a2418;
    color: #fef5e7;
    padding: 36px 0 28px;
}

.dg-l-foot a, .dg-l-foot a:visited { color: #ffd700; }

.dg-l-footgrid {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 0.8fr;
    gap: 24px;
}

.dg-l-foot ul { list-style: none; margin: 0; padding: 0; }

.dg-m-footlabel {
    font-family: var(--dg-font-head);
    color: #ffd700;
    margin-bottom: 8px;
}

.dg-m-textbtn {
    background: none;
    border: 0;
    padding: 0;
    color: #ffd700;
    font: inherit;
    cursor: pointer;
    min-height: 44px;
}

.dg-m-legal {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding-top: 16px;
    font-size: 0.92rem;
}

.dg-m-cookie { display: none; }

.dg-m-cookie:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 110;
    left: 0;
    right: 0;
    bottom: 0;
    background: #c0392b;
    color: #fff8ee;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.16);
}

.dg-m-cookie a, .dg-m-cookie a:visited { color: #ffd700; }

.dg-m-cookiebar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.dg-m-cookie p { margin: 0; }

@media (max-width: 1100px) {
    .dg-l-nav, .dg-l-balance { display: none; }

    .dg-m-burger { display: block; }

    .dg-l-shade {
        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;
    }

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

    .dg-l-drawer a {
        display: block;
        padding: 10px 20px;
        color: #c0392b;
        text-decoration: none;
        font-family: var(--dg-font-head);
    }

    .dg-m-close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: #c0392b;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
    }

    .dg-l-drawer--narrow {
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(75vw, 320px);
        padding: 64px 0 20px;
        transform: translateX(100%);
    }

    .dg-l-drawer--narrow a { padding: 10px 20px; font-size: .95rem; }

    body.dg-is-open { overflow: hidden; }
    body.dg-is-open .dg-l-shade { opacity: 1; visibility: visible; }
    body.dg-is-open .dg-l-drawer--narrow { visibility: visible; transform: translateX(0); }

    .dg-m-logo img { width: 120px; }
}

@media (max-width: 768px) {
    .dg-l-grid { grid-template-columns: repeat(2, 1fr); }

    .dg-l-hero { display: block; min-height: 0; }

    .dg-m-herostill {
        position: relative;
        inset: auto;
        height: 220px;
        max-width: 100%;
    }

    .dg-m-heropanel { width: 100%; max-width: 100%; }

    .dg-l-split, .dg-l-footgrid, .dg-l-review, .dg-m-rank {
        grid-template-columns: 1fr;
    }

    .dg-m-icon { grid-row: auto; width: 72px; height: 72px; }

    .dg-m-name, .dg-m-dev, .dg-m-desc, .dg-m-facts, .dg-m-actions, .dg-m-still {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .dg-m-rank .dg-m-still {
        display: block;
        margin: 16px auto 0;
        justify-self: center;
    }

    .dg-m-cookiebar {
        flex-direction: column;
        align-items: stretch;
        padding-left: 12px;
        padding-right: 12px;
    }

    .dg-m-cookie .dg-m-btn { min-height: 44px; }
}

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

@media (prefers-reduced-motion: reduce) {
    .dg-l-block, .dg-l-band, .dg-l-cta, .dg-m-rank, .dg-m-heropanel, .dg-m-ink {
        animation: none;
    }
}
