:root {
    --wood-deep: #1a0f0c;
    --xmas-red: #d41224;
    --xmas-red-deep: #a50e1c;
    --gold: #d4a574;
    --gold-bright: #e8c9a0;
    --cream: #f3e6d4;
    --snow: #fff8f0;
    --glow: rgba(232, 180, 120, 0.35);
    --text: #f7ebe0;
    --muted: rgba(247, 235, 224, 0.72);
    --frame-border: rgba(232, 201, 160, 0.55);
    --content-width: 1440px;
    --font-display: "Cormorant Garamond", "Noto Serif Armenian", Georgia, serif;
    --font-body: "Noto Sans Armenian", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.55;
    background-color: var(--wood-deep);
    overflow-x: hidden;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.page-bg::before {
    content: "";
    position: absolute;
    inset: -3%;
    background: url("assets/images/bg-santa-ai.jpg") center center / cover no-repeat;
    transform: scale(1.02);
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.wrap {
    position: relative;
    z-index: 1;
    width: min(900px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.75rem 0 2.5rem;
}

.site-top {
    width: 100%;
    margin: 0;
    padding: 0.95rem 0 calc(0.75rem + 10px);
    position: relative;
    z-index: 5;
    background: rgba(18, 8, 6, 0.52);
    border: 0;
    border-bottom: 2px solid var(--frame-border);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1px rgba(255, 248, 240, 0.1);
    backdrop-filter: blur(6px);
}

.site-top-inner {
    width: min(var(--content-width), calc(100% - 2rem));
    margin-inline: auto;
}

.site-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.3vw, 2.45rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff6ea;
    flex: 1 1 auto;
}

.brand-home {
    color: inherit;
    text-decoration: none;
}

.brand [data-i18n="brand"] {
    display: inline-block;
    background-image: linear-gradient(
        90deg,
        #ff4d5a 0%,
        #ffd166 18%,
        #fff8f0 32%,
        #5ad67d 48%,
        #5eb8ff 64%,
        #ff9f43 80%,
        #ff4d5a 100%
    );
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation:
        brandXmasShift 4.5s linear infinite,
        brandXmasGlow 2.4s ease-in-out infinite;
    filter:
        drop-shadow(0 0 6px rgba(255, 77, 90, 0.55))
        drop-shadow(0 0 14px rgba(255, 209, 102, 0.4))
        drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

@keyframes brandXmasShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 280% 50%; }
}

@keyframes brandXmasGlow {
    0%, 100% {
        filter:
            drop-shadow(0 0 5px rgba(255, 77, 90, 0.65))
            drop-shadow(0 0 12px rgba(255, 209, 102, 0.35))
            drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
    }
    50% {
        filter:
            drop-shadow(0 0 8px rgba(90, 214, 125, 0.7))
            drop-shadow(0 0 18px rgba(94, 184, 255, 0.5))
            drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
    }
}

.lang {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    flex: 0 0 auto;
}

.lang button {
    appearance: none;
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: calc(2.1rem * 0.7);
    height: calc(2.1rem * 0.7);
    line-height: 0;
    overflow: hidden;
    display: inline-grid;
    place-items: center;
    transition: transform 0.2s ease, filter 0.25s ease;
}

.lang button svg {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.lang button:hover {
    transform: translateY(-1px) scale(1.08);
    filter: brightness(1.08);
}

.lang button.is-active {
    filter: drop-shadow(0 0 8px rgba(255, 200, 120, 0.55));
}

.legal-card {
    background: rgba(18, 8, 6, 0.55);
    border: 1px solid rgba(232, 201, 160, 0.38);
    border-radius: 18px;
    padding: 1.6rem 1.4rem 2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(6px);
}

.legal-card h1 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 700;
    color: var(--snow);
}

.legal-meta {
    margin: 0 0 1.4rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.legal-card h2 {
    margin: 1.5rem 0 0.55rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--cream);
}

.legal-card p,
.legal-card li {
    color: rgba(247, 235, 224, 0.86);
}

.legal-card a { color: var(--gold-bright); }

.legal-card ul {
    margin: 0.4rem 0 0.8rem;
    padding-left: 1.2rem;
}

.legal-card li { margin-bottom: 0.35rem; }

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--gold-bright);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 201, 160, 0.4);
}

footer {
    position: relative;
    z-index: 1;
    width: min(var(--content-width), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

footer .seo-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1.25rem;
    margin-bottom: 0.85rem;
}

footer .seo-footer-links a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}

footer .legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 1.1rem;
    margin: 1rem 0 1.1rem;
}

footer .legal-links a {
    color: rgba(247, 235, 224, 0.78);
    text-decoration: none;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(212, 165, 116, 0.25);
}

footer .legal-links a:hover { color: var(--gold-bright); }

footer .pay-icons {
    display: flex;
    justify-content: center;
    margin: 0 0 1rem;
}

footer .pay-icons img {
    display: block;
    width: min(280px, 72vw);
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.snow {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.snow i {
    position: absolute;
    top: -12vh;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    animation: flakeFall linear infinite;
}

@keyframes flakeFall {
    0% { transform: translate3d(0, -10vh, 0); opacity: 0; }
    8% { opacity: 1; }
    100% { transform: translate3d(var(--drift, 20px), 110vh, 0); opacity: 0.2; }
}

.sparkle {
    position: fixed;
    z-index: 2;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffe9b5;
    box-shadow: 0 0 10px #ffd27a, 0 0 18px #ff9f43;
    pointer-events: none;
    animation: sparkleFloat 5s ease-in-out infinite;
}

@keyframes sparkleFloat {
    0%, 100% { opacity: 0.2; transform: translateY(0) scale(0.7); }
    50% { opacity: 1; transform: translateY(-14px) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 640px) {
    .legal-card { padding: 1.25rem 1rem 1.5rem; }
}
