.site-header,
.site-footer {
    flex-shrink: 0;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
    width: 100%;
}

.site-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 16px 20px;
    color: #fff;
    background: rgba(70, 43, 13, 0.86);
    border: 1px solid rgba(255, 232, 160, 0.38);
    border-radius: 20px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.site-coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #5a3500;
    font-size: 14px;
    font-weight: 1000;
    letter-spacing: -0.7px;
    background:
        radial-gradient(circle at 35% 25%, #fff4b8 0%, #f4c44d 32%, #c58417 64%, #7a4b00 100%);
    border: 2px solid rgba(255, 244, 185, 0.84);
}

.site-header-actions,
.site-footer-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.site-phone,
.site-messenger,
.site-footer-contacts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 232, 160, 0.34);
}

.site-phone {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    background: linear-gradient(135deg, rgba(214, 158, 46, 0.92), rgba(138, 86, 15, 0.9));
}

.site-phone small {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.88;
}

.site-messenger.telegram,
.site-footer-contacts .telegram { background: linear-gradient(135deg, #2AABEE, #229ED9); }

.site-messenger.whatsapp,
.site-footer-contacts .whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }

.site-messenger.max,
.site-footer-contacts .max { background: linear-gradient(135deg, #6C5CE7, #4834D4); }

.site-footer {
    max-width: 1180px;
    width: 100%;
    margin: auto auto 0;
    padding: 26px 18px 34px;
    color: #5f4b24;
    text-align: center;
}

.site-footer-contacts {
    justify-content: center;
    margin-bottom: 18px;
}

.site-footer-contacts a:first-child {
    font-size: 18px;
    background: linear-gradient(135deg, rgba(214, 158, 46, 0.9), rgba(138, 86, 15, 0.88));
}

.site-footer-note {
    max-width: 920px;
    margin: 0 auto 16px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    background: rgba(62, 38, 12, 0.72);
    border: 1px solid rgba(255, 232, 160, 0.38);
    border-radius: 14px;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    margin-bottom: 16px;
}

.site-footer-links a {
    color: #7a4b00;
    font-weight: 700;
}

@media (max-width: 760px) {
    .site-header {
        position: sticky;
        top: 8px;
        z-index: 20;
        flex-direction: column;
        align-items: stretch;
        margin: 8px 10px 0;
        padding: 12px;
        border-radius: 18px;
    }

    .site-brand {
        justify-content: center;
        font-size: 24px;
    }

    .site-coin {
        width: 42px;
        height: 42px;
        font-size: 12px;
    }

    .site-header-actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .site-phone,
    .site-messenger {
        min-height: 38px;
        padding: 8px 6px;
        font-size: 12px;
        text-align: center;
    }

    .site-phone small {
        display: none;
    }
}
