:root {
    --tg-red: #8f0000;
    --tg-red-dark: #690000;
    --tg-gold: #d8ad49;
    --tg-gold-light: #f2d783;
    --tg-ink: #241d1d;
    --tg-muted: #756b6b;
    --tg-surface: #ffffff;
    --tg-background: #faf8f5;
    --tg-border: #e8dfd5;
}

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

body {
    display: flex;
    flex-direction: column;
    background: var(--tg-background);
    color: var(--tg-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
    text-underline-offset: 0.2em;
}

.site-header {
    background: var(--tg-surface);
    border-bottom: 1px solid var(--tg-border);
    box-shadow: 0 6px 24px rgba(60, 35, 25, 0.05);
    position: relative;
    z-index: 1000;
}

.topbar {
    background: linear-gradient(90deg, var(--tg-red-dark), var(--tg-red));
    color: #fff7e5;
}

.topbar-text {
    letter-spacing: 0.03em;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
}

.language-switcher a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 600;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: var(--tg-gold-light);
}

.site-navbar {
    background: rgba(255, 255, 255, 0.98);
    min-height: 92px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-right: 2rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.brand-logo {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(216, 173, 73, 0.55);
    box-shadow: 0 7px 20px rgba(105, 0, 0, 0.12);
}

.brand-text {
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    color: var(--tg-red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.brand-text small {
    margin-top: 0.35rem;
    color: var(--tg-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.site-navbar .nav-link {
    color: var(--tg-ink);
    font-weight: 600;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: var(--tg-red);
    background: #fbf2eb;
}

.btn-brand-outline {
    border: 1px solid var(--tg-red);
    color: var(--tg-red);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
    background: var(--tg-red);
    border-color: var(--tg-red);
    color: #fff;
}

.site-main {
    flex: 1 0 auto;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--tg-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(59, 38, 28, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 38, 28, 0.09);
}

.product-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.price {
    color: var(--tg-red);
    font-size: 1.15rem;
    font-weight: 700;
}

.site-footer {
    color: rgba(255, 255, 255, 0.84);
}

.footer-main {
    background: #231b18;
}

.footer-bottom {
    background: #171211;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
}

.footer-brand {
    max-width: 520px;
}

.footer-logo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(216, 173, 73, 0.5);
}

.footer-brand-name {
    color: var(--tg-gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-brand-tagline,
.footer-description {
    color: rgba(255, 255, 255, 0.67);
}

.footer-description {
    line-height: 1.75;
    max-width: 580px;
}

.footer-heading {
    color: var(--tg-gold-light);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-links li + li {
    margin-top: 0.55rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.73);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--tg-gold-light);
}

.footer-system-label {
    color: rgba(242, 215, 131, 0.72);
    letter-spacing: 0.04em;
}

@media (max-width: 991.98px) {
    .site-navbar {
        min-height: auto;
    }

    .brand-logo {
        width: 62px;
        height: 62px;
    }

    .site-navbar .navbar-collapse {
        border-top: 1px solid var(--tg-border);
        margin-top: 0.75rem;
        padding: 1rem 0 0.5rem;
    }

    .site-navbar .nav-item + .nav-item {
        margin-top: 0.25rem;
    }
}
