:root {
    --primary: #7a1f17;
    --bg: #f8f5ef;
    --border: #ebe4d8;
    --text: #1e1e1e;
    --muted: #756b63;
    --white: #ffffff;
    --black: #1e1e1e;
    --success-bg: #e7f5e8;
    --success-text: #16823a;
    --danger-bg: #ffd9d9;
    --danger-text: #9b1c1c;
    --gold: #d9a441;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
}

a {
    color: inherit;
}

main,
.page-content,
.content-wrapper {
    flex: 1;
}

/* HEADER */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    min-width: 0;
}

.site-logo,
.logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex: 0 0 64px;
}

.site-logo {
    object-fit: contain;
    background: #ffffff;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.brand-text {
    min-width: 0;
}

.brand-title {
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
    color: #241915;
    white-space: nowrap;
}

.brand-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    color: #30211c;
    text-decoration: none;
    background: var(--bg);
    border: 1px solid #e4dace;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.user-menu {
    position: relative;
    justify-self: end;
}

.user-trigger {
    border: none;
    background: var(--bg);
    color: #30211c;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 220px;
    padding-top: 8px;
    z-index: 200;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown-inner {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    overflow: hidden;
}

.user-dropdown a {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    font-weight: 800;
}

.user-dropdown a:hover {
    background: var(--bg);
}

.user-dropdown hr {
    margin: 0;
    border: none;
    border-top: 1px solid #eee;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 900;
    white-space: nowrap;
}

/* COMMON */

.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
}

.box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 7px 18px rgba(55, 33, 25, .05);
}

.box-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 14px;
}

.error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-radius: 15px;
    padding: 13px;
    margin-bottom: 14px;
    font-weight: 900;
}

.hint {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 8px;
}

/* FOOTER */

.site-footer {
    background: #241915;
    color: #ffffff;
    margin-top: auto;
    padding: 28px 14px 110px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-title {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 10px;
}

.footer-line,
.footer-link {
    display: block;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 7px;
    line-height: 1.35;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 700;
    padding: 3px 0;
}

.footer-schedule-row strong {
    color: #ffffff;
}

.footer-schedule-row .closed {
    color: #fca5a5;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-socials a {
    color: #ffffff;
    background: rgba(255,255,255,.1);
    border-radius: 999px;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

/* COOKIE */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    max-width: 760px;
    margin: 0 auto;
    background: #241915;
    color: #ffffff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 14px 38px rgba(0,0,0,.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}
.support-chat-orders {
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #e4dace;
}

.support-orders-title {
    font-size: 12px;
    font-weight: 900;
    color: #7b6d64;
    margin-bottom: 6px;
}

.support-orders-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
}

.support-order-btn {
    flex: 0 0 auto;
    border: 1px solid #e4dace;
    background: #f8f5ef;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    color: #241915;
    cursor: pointer;
}
#cookie-accept {
    border: none;
    background: var(--gold);
    color: #241915;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.support-chat {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 6000;
}

.support-chat-toggle {
    border: none;
    border-radius: 999px;
    background: #241915;
    color: #fff;
    padding: 14px 18px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    cursor: pointer;
}

.support-chat-box {
    display: none;
    width: 340px;
    height: 460px;
    background: #fff;
    border: 1px solid #e4dace;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.support-chat.open .support-chat-box {
    display: flex;
    flex-direction: column;
}

.support-chat.open .support-chat-toggle {
    display: none;
}

.support-chat-header {
    background: #241915;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-chat-header button {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.support-chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background: #f8f5ef;
}

.support-chat-empty {
    color: #7b6d64;
    font-size: 14px;
    font-weight: 700;
}

.support-message {
    max-width: 82%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.35;
}

.support-message.customer {
    margin-left: auto;
    background: #7a1f17;
    color: #fff;
}

.support-message.operator {
    margin-right: auto;
    background: #fff;
    color: #241915;
    border: 1px solid #e4dace;
}

.support-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e4dace;
}

.support-chat-form input {
    flex: 1;
    border: 1px solid #e4dace;
    border-radius: 14px;
    padding: 10px 12px;
    outline: none;
}

.support-chat-form button {
    border: none;
    border-radius: 14px;
    background: #7a1f17;
    color: #fff;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
}
.site-rating-strip {
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 900;
}

.site-rating-strip a {
    color: #9a3412;
    text-decoration: none;
}

.site-rating-strip span {
    color: #7c2d12;
    font-weight: 700;
}
        @media (max-width: 991.98px){
            .top-user{
                margin-top:.75rem;
                justify-content:space-between;
            }
        }
/* TABLET */

@media (max-width: 980px) {
    .site-header-inner {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .site-brand {
        grid-column: 1 / 2;
    }

    .user-menu {
        grid-column: 2 / 3;
        grid-row: 1;
    }

    .site-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 2px;
    }

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

/* MOBILE */

@media (max-width: 640px) {
    .site-header-inner {
        padding: 10px 12px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-brand {
        width: 100%;
    }

    .site-logo,
    .logo-placeholder {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 12px;
    }

    .brand-title {
        font-size: 17px;
        white-space: normal;
    }

    .brand-subtitle {
        font-size: 11px;
        white-space: normal;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .site-nav a {
        padding: 9px 12px;
        font-size: 12px;
    }

    .user-menu {
        width: 100%;
        justify-self: stretch;
    }

    .user-trigger,
    .login-btn {
        width: 100%;
    }

    .user-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 16px;
    }

    #cookie-accept {
        width: 100%;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
    .brand-title {
        font-size: 15px;
    }

    .site-logo,
    .logo-placeholder {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .site-nav a {
        padding: 8px 10px;
    }
}