/* ORIGIN Tech — მთავარი გვერდის სტილები */
        @font-face {
            font-family: 'BPG Banner ExtraSquare Caps';
            src: url('../fonts/bpg-banner-extrasquare-caps.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }
    
        /* ლოგოს ინგლისური ფონტი */
        @font-face {
            font-family: 'Origin Tech Demo';
            src: url('../fonts/origin-tech-demo.otf') format('opentype');
            font-weight: normal; font-style: normal;
            font-display: swap;
        }

        :root {
            --bg-black: #080808;
            --primary-accent: #ff6600;
            --white: #f0ede8;
            --surface: #0e0d0c;
            --border-white: rgba(255, 240, 220, 0.75);
            --page-bg: #06050a;
            --panel-bg: #0d0c10;
            --item-hover-bg: #17141b;
            --fg-rgb: 240, 237, 232;
            --canvas-particle: #6b7a99;
            --canvas-fade: rgba(6, 5, 10, 0.3);
            --canvas-line: rgba(255, 255, 255, 0.15);
            /* მენიუ — ფონის გარეშე: უკან ანიმაცია ისე ჩანს, როგორც არის,
               არც ბნელდება, არც ფერს იცვლის. hover-ზეც ფონი არ ჩნდება */
            --menu-bg: transparent;
            --card-bg: transparent;
            --card-hover-bg: transparent;
            --card-press-bg: transparent;
            --frame-color: rgba(240, 237, 232, 0.4);
            /* მენიუს ბარათის ჩარჩო: ჩვეულებრივ ნეიტრალური ხაზი,
               მიტანაზე — ნარინჯისფერი ნათებით */
            --card-line-accent: rgba(255, 102, 0, 0.7);
            --card-line-glow: 0 0 12px rgba(255, 102, 0, 0.12);
            --card-line-neutral: rgba(240, 237, 232, 0.25);
            /* სოციალური აიქონების ჩარჩო — იგივე ნეიტრალური ხაზი */
            --social-line: rgba(240, 237, 232, 0.25);
        }

        body[data-theme="light"] {
            --white: #121212;
            --surface: #ffffff;
            --border-white: rgba(10, 10, 10, 0.55);
            --page-bg: #ffffff;
            --panel-bg: #ffffff;
            --item-hover-bg: rgba(255, 102, 0, 0.06);
            --fg-rgb: 10, 10, 10;
            --canvas-particle: #8a94aa;
            --canvas-fade: rgba(255, 255, 255, 0.45);
            --canvas-line: rgba(10, 10, 10, 0.18);
            --menu-bg: transparent;
            --card-bg: transparent;
            --card-hover-bg: transparent;
            --card-press-bg: transparent;
            --frame-color: rgba(10, 10, 10, 0.55);
            --card-line-neutral: rgba(10, 10, 10, 0.5);
            --social-line: rgba(10, 10, 10, 0.5);
        }

        /* ღია რეჟიმზე მოდ-სვიჩის გამყოფი ხაზი */
        body[data-theme="light"] .mode-switch-side {
            color: rgba(10, 10, 10, 0.65);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body, html {
            height: 100%; width: 100%;
            background: var(--page-bg);
            overflow: hidden;
            font-family: 'Origin Tech Demo', sans-serif !important;
            color: var(--white);
            position: relative;
            cursor: default;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            transition: background 0.5s ease, color 0.5s ease;
        }

        /* === "სატესტო რეჟიმი" ბანერი — ლოგოს ზევით, ცენტრში === */
        .test-mode-banner {
            position: fixed;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 60;
            font-family: 'BPG Banner ExtraSquare Caps', sans-serif;
            font-size: 0.72rem;
            letter-spacing: 1px;
            color: rgba(var(--fg-rgb), 0.85);
            white-space: nowrap;
            pointer-events: none;
            text-transform: uppercase;
            transition: color 0.5s ease;
        }

        #bgCanvas {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 1;
            pointer-events: none;
        }

        /* === ტელეფონის ნომერი, DARK/LIGHT ღილაკიდან მარცხნივ === */
        /* === ტელეფონის ბლოკი — ტიპინგ-ეფექტიანი ტექსტი, მენიუს ზევით === */
        .header-phone {
            position: fixed;
            top: 60px;
            right: 310px;
            transform: translateY(-50%);
            z-index: 50;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.6s ease;
            text-decoration: none;
            white-space: nowrap;
        }
        .header-phone.intro-done {
            opacity: 1;
            pointer-events: auto;
        }
        .header-phone-frame {
            display: inline-flex;
            align-items: baseline;
            gap: 14px;
            white-space: nowrap;
        }
        .header-phone-label {
            font-family: 'BPG Banner ExtraSquare Caps', sans-serif;
            font-size: 0.8rem;
            font-weight: 400;
            color: rgba(var(--fg-rgb), 0.55);
            transition: color 0.3s ease;
        }
        .header-phone-number {
            font-family: 'BPG Banner ExtraSquare Caps', sans-serif;
            font-size: 0.8rem;
            font-weight: 400;
            letter-spacing: 0.5px;
            color: var(--primary-accent);
            transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease;
            -webkit-text-stroke: 0 transparent;
        }
        /* ნომერი და მისამართი — ლოგოს ნარინჯისფერში; მიტანაზე მუქდება და
           სქელდება (text-stroke ასოს ასქელებს, სიგანე არ იცვლება — ტექსტი არ ხტება) */
        :root { --accent-deep: #c94f00; }
        .header-phone-frame:hover .header-phone-number,
        .header-address:hover .header-address-text {
            color: var(--accent-deep);
            -webkit-text-stroke: 0.6px var(--accent-deep);
        }
        .header-address:hover .header-address-icon svg { stroke: var(--accent-deep); stroke-width: 2.4; }

        body[data-theme="light"] .header-phone-label { color: rgba(10, 10, 10, 0.7); }

        body[data-theme="light"] .card-sub { color: rgba(10, 10, 10, 0.65); }
        body[data-theme="light"] .card-dot { background: rgba(10, 10, 10, 0.3); }

        /* ლოკაცია ტელეფონის გვერდით */
        .header-address {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-left: 20px;
            opacity: 0;
            transition: opacity 0.6s ease 0.3s;
            white-space: nowrap;
        }
        .header-phone.intro-done .header-address { opacity: 1; }
        .header-address-icon {
            width: 13px; height: 13px;
            flex-shrink: 0;
        }
        .header-address-icon svg {
            width: 100%; height: 100%;
            stroke: var(--primary-accent);
            fill: none; stroke-width: 1.8;
            stroke-linecap: round; stroke-linejoin: round;
            transition: stroke 0.25s ease, stroke-width 0.25s ease;
        }
        .header-address-text {
            font-family: 'BPG Banner ExtraSquare Caps', sans-serif;
            font-size: 0.8rem;
            font-weight: 400;
            color: var(--primary-accent);
            transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease;
            -webkit-text-stroke: 0 transparent;
        }

        @media (max-width: 768px), (hover: none) and (pointer: coarse) {
            .header-phone { display: none; }
        }

        /* === ენის გადამრთველი === */
        .lang-switch {
            position: fixed;
            top: 60px; right: 190px;
            transform: translateY(-50%);
            z-index: 55;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.6s ease;
        }
        .lang-switch.intro-done { opacity: 1; pointer-events: auto; }

        /* trigger — ჩარჩოს გარეშე */
        .lang-trigger {
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            transition: opacity 0.2s ease;
        }
        .lang-trigger:hover { opacity: 0.75; }
        .lang-trigger svg {
            width: 44px; height: 44px;
            display: block;
        }
        .lang-icon {
            flex-shrink: 0;
            color: var(--white);
            transition: color 0.3s ease;
        }
        .lang-trigger-code { display: none; }

        /* dropdown — კოდები ერთ რიგში */
        .lang-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            background: var(--panel-bg);
            border: 1px solid var(--border-white);
            display: flex;
            flex-direction: row;
            overflow: hidden;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-6px);
            transition: opacity 0.18s ease, transform 0.18s ease;
            white-space: nowrap;
        }
        .lang-switch.open .lang-dropdown {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        /* ერთი ენის ღილაკი */
        .lang-opt {
            background: none;
            border: none;
            border-right: 1px solid rgba(var(--fg-rgb), 0.15);
            padding: 9px 14px;
            font-family: 'Orbitron', monospace;
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 1.5px;
            color: rgba(var(--fg-rgb), 0.75);
            cursor: pointer;
            transition: color 0.15s ease, background 0.15s ease;
            white-space: nowrap;
        }
        .lang-opt:last-child { border-right: none; }
        .lang-opt:hover { color: var(--white); background: var(--item-hover-bg); }
        .lang-opt.active { color: var(--white); font-weight: 900; }


        /* === მარტივი DARK | პილი | LIGHT გადამრთველი (თემის switch) === */
        .mode-switch {
            position: fixed;
            top: 47px; right: 22px;
            z-index: 50;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.6s ease;
        }
        .mode-switch.intro-done {
            opacity: 1;
            pointer-events: auto;
        }

        .mode-switch-side {
            font-family: 'BPG Banner ExtraSquare Caps', sans-serif;
            font-size: 0.6rem;
            font-weight: 400;
            letter-spacing: 1px;
            color: rgba(var(--fg-rgb), 0.55);
            white-space: nowrap;
            transition: color 0.4s ease;
        }
        .mode-switch-side.active { color: var(--white); }

        .mode-switch-track {
            position: relative;
            width: 52px; height: 26px;
            flex-shrink: 0;
            border-radius: 999px;
            background: rgba(var(--fg-rgb), 0.85);
            transition: background 0.4s ease, box-shadow 0.4s ease;
        }
        /* მუქ რეჟიმზე პილი ივსება ოდნავ ღია ფონით (ფონზე ღიად ჩანს)
           და შემოსაზღვრულია თხელი ჩარჩოთი */
        body:not([data-theme="light"]) .mode-switch-track {
            background: rgba(255, 255, 255, 0.12);
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
        }

        .mode-switch-thumb {
            position: absolute;
            top: 3px; left: 3px;
            width: 20px; height: 20px;
            border-radius: 50%;
            background: var(--page-bg);
            transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), background 0.4s ease;
        }
        /* მუქ რეჟიმზე წრე თეთრია, რომ გამჭვირვალე პილში კარგად ჩანდეს */
        body:not([data-theme="light"]) .mode-switch-thumb {
            background: #ffffff;
        }
        body[data-theme="light"] .mode-switch-thumb {
            transform: translateX(26px);
        }

        @media (max-width: 768px), (hover: none) and (pointer: coarse) {
            .mode-switch { top: 88px; right: auto; left: 50%; transform: translateX(-50%); gap: 8px; }

            .mode-switch-side { font-size: 0.5rem; }
            .mode-switch-track { width: 44px; height: 22px; }
            .mode-switch-thumb { width: 16px; height: 16px; }
            body[data-theme="light"] .mode-switch-thumb { transform: translateX(22px); }
        }

        /* === სოციალური ქსელების ბმულები, ტეგლაინის ქვემოთ, საერთო
           ჩარჩოში — ორივე აიქონი ერთი სტილის (მხოლოდ ხაზოვანი) ===
           ჯერჯერობით მხოლოდ დესკტოპ/ლეპტოპ ვერსიისთვის. */
        .social-icons {
            position: fixed;
            top: 76%; left: 50%;
            transform: translateX(-50%);
            z-index: 35;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: none;
            border: none;
            padding: 8px 0;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.6s ease;
        }
        .social-icons.intro-done {
            opacity: 1;
            pointer-events: auto;
        }
        .social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 46px; height: 46px;
            color: rgba(var(--fg-rgb), 0.7);
            background: transparent;
            /* ჩარჩო — ნეიტრალური ხაზი (როგორიც მენიუს ხაზები იყო) */
            border: 1px solid var(--social-line);
            transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }
        .social-icon:hover {
            color: var(--primary-accent);
            border-color: var(--primary-accent);
        }
        .social-icon svg {
            width: 22px; height: 22px;
            stroke: currentColor;
            fill: none;
            stroke-width: 1.6;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        @media (max-width: 768px), (hover: none) and (pointer: coarse) {
            .social-icons { display: none; }
        }

        /* ========== ICON CARD MENU ========== */
        /* outer wrapper — gap between cards + single outer frame */
        .split-container {
            position: fixed;
            top: 46%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: clamp(400px, 82vw, 920px);
            display: flex;
            flex-direction: row;
            gap: 6px;
            z-index: 40;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.8s ease, visibility 0.8s ease;
            /* outer frame */
            border: 1px solid var(--frame-color);
            box-shadow: none;
            padding: 6px;
            background: var(--menu-bg);
            overflow: visible;
        }
        .mc { display: none; }
        .split-container.visible { opacity: 1; visibility: visible; }
        .menu-track { display: contents; }
        .menu-dots { display: none; }

        /* each card — individual frame, flex grows on hover */
        .menu-item-cmd {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            min-height: clamp(110px, 16vw, 180px);
            padding: 14px 12px 12px;
            text-decoration: none;
            color: inherit;
            cursor: pointer;
            /* individual card border */
            border: 1px solid var(--card-line-neutral);
            background: var(--card-bg);
            overflow: hidden;
            opacity: 0;
            animation-fill-mode: forwards !important;
            transition: flex 0.4s cubic-bezier(0.22,1,0.36,1),
                        background 0.3s ease,
                        border-color 0.3s ease,
                        box-shadow 0.3s ease;
        }

        /* hover: card expands + orange border */
        .menu-item-cmd:hover {
            flex: 2.2;
            background: var(--card-hover-bg);
            border-color: var(--card-line-accent);
            box-shadow: var(--card-line-glow);
            z-index: 2;
        }

        /* ══ GLITCH REVEAL — each card materialises through horizontal scan glitches ══ */
        .split-container.visible .menu-item-cmd:nth-child(1) { animation: glitchReveal 0.7s steps(1) 0.10s forwards; }
        .split-container.visible .menu-item-cmd:nth-child(2) { animation: glitchReveal 0.7s steps(1) 0.30s forwards; }
        .split-container.visible .menu-item-cmd:nth-child(3) { animation: glitchReveal 0.7s steps(1) 0.50s forwards; }
        .split-container.visible .menu-item-cmd:nth-child(4) { animation: glitchReveal 0.7s steps(1) 0.70s forwards; }

        @keyframes glitchReveal {
            0%   { opacity:0; clip-path: inset(100% 0 0 0);   transform: translateX(0); }
            8%   { opacity:1; clip-path: inset(70% 0 20% 0);  transform: translateX(-3px); }
            16%  { opacity:1; clip-path: inset(45% 0 40% 0);  transform: translateX(4px); }
            24%  { opacity:1; clip-path: inset(60% 0 10% 0);  transform: translateX(-2px); }
            32%  { opacity:1; clip-path: inset(20% 0 55% 0);  transform: translateX(3px); }
            40%  { opacity:1; clip-path: inset(30% 0 30% 0);  transform: translateX(-1px); }
            50%  { opacity:1; clip-path: inset(10% 0 60% 0);  transform: translateX(2px); }
            60%  { opacity:1; clip-path: inset(5%  0 10% 0);  transform: translateX(-1px); }
            75%  { opacity:1; clip-path: inset(0%  0 3%  0);  transform: translateX(1px); }
            88%  { opacity:1; clip-path: inset(0%  0 0%  0);  transform: translateX(-0.5px); }
            100% { opacity:1; clip-path: inset(0%  0 0%  0);  transform: translateX(0); }
        }

        /* icon materialises after card fully scans in */
        .menu-item-cmd .card-icon { opacity: 0; animation-fill-mode: forwards !important; transition: opacity 0.3s ease; }
        .split-container.visible .menu-item-cmd:nth-child(1) .card-icon { animation: iconGlitch 0.35s steps(1) 0.82s forwards; }
        .split-container.visible .menu-item-cmd:nth-child(2) .card-icon { animation: iconGlitch 0.35s steps(1) 1.02s forwards; }
        .split-container.visible .menu-item-cmd:nth-child(3) .card-icon { animation: iconGlitch 0.35s steps(1) 1.22s forwards; }
        .split-container.visible .menu-item-cmd:nth-child(4) .card-icon { animation: iconGlitch 0.35s steps(1) 1.42s forwards; }
        @keyframes iconGlitch {
            0%   { opacity:0; filter: brightness(3) saturate(0); transform: scale(1.1) translateX(3px); }
            30%  { opacity:1; filter: brightness(2) saturate(0); transform: scale(0.95) translateX(-2px); }
            60%  { opacity:1; filter: brightness(1.4) saturate(0.5); transform: scale(1.02) translateX(0); }
            100% { opacity:1; filter: none; transform: scale(1); }
        }

        /* card-num badge — last flicker on */
        .split-container.visible .menu-item-cmd:nth-child(1) .card-num { animation: numGlitch 0.25s steps(1) 1.0s both; }
        .split-container.visible .menu-item-cmd:nth-child(2) .card-num { animation: numGlitch 0.25s steps(1) 1.2s both; }
        .split-container.visible .menu-item-cmd:nth-child(3) .card-num { animation: numGlitch 0.25s steps(1) 1.4s both; }
        .split-container.visible .menu-item-cmd:nth-child(4) .card-num { animation: numGlitch 0.25s steps(1) 1.6s both; }
        @keyframes numGlitch {
            0%   { opacity:0; filter: brightness(4); transform: translateX(4px); }
            40%  { opacity:1; filter: brightness(2); transform: translateX(-2px); }
            70%  { opacity:1; filter: brightness(1.2); transform: translateX(1px); }
            100% { opacity:1; filter: none; transform: none; }
        }

        /* MOD // 0X badge — top-right, always visible */
        .card-num {
            position: absolute;
            top: 8px; right: 10px;
            font-family: 'Fira Code', monospace;
            font-size: 0.5rem;
            letter-spacing: 1.5px;
            color: rgba(var(--fg-rgb), 0.3);
            transition: color 0.3s ease;
            white-space: nowrap;
        }
        .menu-item-cmd:hover .card-num { color: rgba(255, 102, 0, 0.9); }

        /* icon — centered, always visible */
        .card-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0;
            transition: margin-bottom 0.35s ease;
        }
        .menu-item-cmd:hover .card-icon { margin-bottom: 10px; }
        .card-icon svg {
            width: clamp(32px, 5vw, 52px);
            height: clamp(32px, 5vw, 52px);
            stroke: rgba(var(--fg-rgb), 0.9);
            fill: none;
            stroke-width: 1.4;
            stroke-linecap: round;
            stroke-linejoin: round;
            transition: stroke 0.3s ease, transform 0.3s ease;
        }
        .menu-item-cmd:hover .card-icon svg {
            stroke: var(--primary-accent);
            transform: scale(1.08);
        }

        /* text block — hidden at rest, slides in on hover */
        .card-text {
            display: flex;
            flex-direction: column;
            gap: 4px;
            align-items: center;
            text-align: center;
            width: 100%;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(6px);
            transition: max-height 0.4s ease, opacity 0.35s ease, transform 0.35s ease;
        }
        .menu-item-cmd:hover .card-text {
            max-height: 80px;
            opacity: 1;
            transform: translateY(0);
        }
        .card-title {
            font-family: 'BPG Banner ExtraSquare Caps', sans-serif;
            font-size: clamp(0.55rem, 0.9vw, 0.78rem);
            font-weight: normal;
            letter-spacing: 0.3px;
            color: rgba(var(--fg-rgb), 1);
            line-height: 1.4;
        }
        .card-sub {
            font-family: 'BPG Banner ExtraSquare Caps', sans-serif;
            font-size: clamp(0.46rem, 0.66vw, 0.58rem);
            letter-spacing: 0.5px;
            color: rgba(var(--fg-rgb), 0.4);
            transition: color 0.3s ease;
        }
        .menu-item-cmd:hover .card-sub { color: rgba(255, 102, 0, 0.75); }

        /* bottom dot */
        .card-dot {
            position: absolute;
            bottom: 8px; right: 8px;
            width: 4px; height: 4px;
            border-radius: 50%;
            background: rgba(var(--fg-rgb), 0.15);
            transition: background 0.25s;
        }
        .menu-item-cmd:hover .card-dot { background: rgba(255, 102, 0, 0.6); }



        /* ========== CENTER DISPLAY ========== */
        .center-display {
            position: fixed;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: clamp(320px, 48vw, 640px);
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.8s ease;
            z-index: 5;
        }
        .center-display.visible { opacity: 1; }
        .cd-origin-ghost {
            width: 100%;
            height: auto;
            display: block;
        }
        .cd-size-ghost {
            width: 100%;
            visibility: hidden;
            display: block;
            pointer-events: none;
        }

        /* ========== CIRCUIT CANVAS — hidden ========== */
        .char-wrap {
            display: none;
        }
        #circuitCanvas {
            width: 100%;
            height: 100%;
            display: block;
        }
        /* legacy – keep in case referenced */
        .cd-title {
            font-family: 'Orbitron', monospace;
            font-size: clamp(0.7rem, 1.05vw, 1.1rem);
            font-weight: 700;
            color: rgba(255,255,255,0.92);
            letter-spacing: 0.22em;
            text-transform: uppercase;
            text-align: center;
            line-height: 1.2;
        }
        .cd-desc {
            font-family: 'Fira Code', monospace;
            font-size: clamp(0.55rem, 0.72vw, 0.8rem);
            color: rgba(255,255,255,0.36);
            letter-spacing: 0.04em;
            line-height: 1.6;
            text-align: center;
            max-width: 300px;
        }

        .logo-wrapper {
            position: fixed; 
            top: 50%; left: 50%;
            transform: translate(-50%, -50%) translateZ(0);
            z-index: 30;
            backface-visibility: hidden;
            will-change: top, left, transform;
            transition: top 1.2s cubic-bezier(0.65, 0, 0.35, 1), 
                        left 1.2s cubic-bezier(0.65, 0, 0.35, 1), 
                        transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
        }

        .logo-wrapper.move-top-left {
            top: 25px; left: 35px;
            transform: translate(0, 0) scale(0.55) translateZ(0);
            transform-origin: top left;
            cursor: pointer;
        }
        /* დაკლიკებადია მხოლოდ ინტროს დასრულების შემდეგ, როცა კუთხეშია */
        .logo-wrapper.move-top-left:hover .logo-title,
        .logo-wrapper.move-top-left:hover .logo-subtitle,
        .logo-wrapper.move-top-left:hover .logo-binary {
            opacity: 0.75;
            transition: opacity 0.25s ease;
        }
        .logo-wrapper.move-top-left:active {
            transform: translate(0, 0) scale(0.53) translateZ(0);
        }

        .logo-binary {
            font-size: clamp(0.8rem, 0.82vw, 1.3rem); letter-spacing: 0.15em;
            color: var(--primary-accent);
            margin-bottom: 4px; white-space: nowrap;
            min-height: 1.2rem;
            transition: color 0.4s ease;
        }

        .logo-title {
            font-size: clamp(3.2rem, 3.4vw, 5.4rem); line-height: 1;
            font-weight: bold; letter-spacing: 3px;
            white-space: nowrap; display: flex;
            min-height: 1em;
        }

        @keyframes letterDropIn {
            from { opacity: 0; transform: translateY(-40px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes letterSlideRight {
            from { opacity: 0; transform: translateX(-18px); }
            to   { opacity: 1; transform: translateX(0); }
        }
        .letter-drop {
            display: inline-block;
            opacity: 0;
            animation: letterDropIn 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
        }
        .letter-slide {
            display: inline-block;
            opacity: 0;
            animation: letterSlideRight 0.38s cubic-bezier(0.22,1,0.36,1) forwards;
        }

        .accent-text { 
            color: var(--primary-accent);
            transition: color 0.4s ease;
        }

        .white-text {
            color: var(--white);
        }

        .logo-subtitle {
            font-size: clamp(1.3rem, 1.4vw, 2.2rem); margin-top: 6px;
            letter-spacing: 0.7em; color: var(--primary-accent);
            text-align: right; margin-left: auto; margin-right: -0.7em; width: fit-content;
            min-height: 2rem;
            transition: color 0.4s ease;
        }

        .center-tagline-box {
            position: fixed;
            top: 67%; left: 50%;
            transform: translate(-50%, -50%) translateY(15px) translateZ(0);
            text-align: center;
            z-index: 30;
            display: flex;
            flex-direction: column;
            gap: 6px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            backface-visibility: hidden;
            transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
        }

        .center-tagline-box.visible {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) translateY(0) translateZ(0);
        }

        .center-tagline-sub {
            font-family: 'BPG Banner ExtraSquare Caps', sans-serif;
            font-size: 0.75rem;
            letter-spacing: 1px;
            color: rgba(var(--fg-rgb), 0.85);
            text-transform: uppercase;
        }
        body[data-theme="light"] .center-tagline-sub {
            color: rgba(10, 10, 10, 1);
        }

        .center-tagline-text {
            font-family: 'Orbitron', sans-serif;
            font-size: 0.85rem;
            letter-spacing: 2.5px;
            color: var(--primary-accent);
            text-transform: uppercase;
            font-weight: 700;
            transition: color 0.4s ease;
        }

        .caret {
            display: inline-block;
            width: 7px; height: 1rem;
            background-color: var(--primary-accent);
            margin-left: 3px; vertical-align: middle;
            animation: blink 0.6s infinite alternate;
            transition: background-color 0.4s ease;
        }

        @keyframes blink {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        .footer-hud-panel {
            position: fixed;
            bottom: 25px; left: 50%;
            transform: translateX(-50%) translateZ(0);
            display: flex;
            align-items: center;
            gap: 16px;
            /* ფონის გარეშე, როგორც მთავარი მენიუ — უკან აიქონები ჩანს */
            background: transparent;
            /* იგივე ფერი, რაც მთავარი მენიუს გარე ჩარჩოს */
            border: 1px solid var(--frame-color);
            padding: 8px 22px; 
            font-family: 'BPG Banner ExtraSquare Caps', sans-serif;
            z-index: 30;
            border-radius: 0;
            backface-visibility: hidden;
        }

        .hud-item {
            display: flex;
            align-items: center;
            gap: 6px; 
            font-size: 0.6rem;
            white-space: nowrap;
        }

        .hud-label { color: rgba(var(--fg-rgb), 0.6); font-weight: normal; font-family: 'BPG Banner ExtraSquare Caps', sans-serif; }
        .hud-val { color: var(--white); font-weight: normal; font-family: 'BPG Banner ExtraSquare Caps', sans-serif; }
        .hud-val.accent { color: var(--primary-accent); transition: color 0.4s ease; }

        .hud-link { color: var(--white); text-decoration: none; transition: color 0.2s ease; font-family: 'BPG Banner ExtraSquare Caps', sans-serif; }
        .hud-link:hover { color: var(--primary-accent); }

        .hud-sep { color: rgba(var(--fg-rgb), 0.3); font-weight: normal; margin: 0 -2px; }

        body[data-theme="light"] .hud-label { color: rgba(10, 10, 10, 0.75); }
        body[data-theme="light"] .hud-val { color: #080808; }
        /* დრო, ტელეფონი და მისამართი — ლოგოს ნარინჯისფერში (ორივე თემაში);
           ბმულებზე მიტანისას მუქდება და სქელდება, როგორც ზედა ჰედერში */
        .hud-val.accent,
        body[data-theme="light"] .hud-val.accent { color: var(--primary-accent); }
        .hud-link.accent { transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease; -webkit-text-stroke: 0 transparent; }
        .hud-link.accent:hover,
        body[data-theme="light"] .hud-link.accent:hover { color: var(--accent-deep); -webkit-text-stroke: 0.5px var(--accent-deep); }
        body[data-theme="light"] .hud-link { color: #080808; }
        body[data-theme="light"] .hud-sep { color: rgba(10, 10, 10, 0.5); }

        .status-indicator-box { display: flex; align-items: center; gap: 6px; }
        .pulse-dot { width: 6px; height: 6px; background-color: #2ecc71; border-radius: 50%; }
        .pulse-dot.closed { background-color: #e74c3c; }

        .store-status-text { font-size: 0.68rem; font-weight: normal; font-family: 'BPG Banner ExtraSquare Caps', sans-serif; }
        body[data-theme="light"] .store-status-text { color: #080808; }
        body[data-theme="light"] .store-hours-mini { color: #080808; }

        /* სამუშაო საათები — ფუტერში ყველაზე გამოსაჩენი ინფორმაცია */
        .store-hours-mini {
            font-family: 'BPG Banner ExtraSquare Caps', sans-serif;
            font-size: 0.64rem;
            color: var(--white);
            letter-spacing: 0.5px;
        }

        @media (max-width: 1250px) {
            .footer-hud-panel { flex-wrap: wrap; justify-content: center; gap: 6px 14px; width: 95%; }
        }

        /* =====================================================
           RESPONSIVE LAYOUT
           • მენიუ/ტეგლაინი/სოც.აიქონები ვერტიკალურად JS-ით
             (layoutPage) ცენტრდება ჰედერსა და ფუტერს შორის.
           • აქ მხოლოდ ზომები და ჰედერის განლაგებაა.
        ===================================================== */

        /* რუსული და ინგლისური — ყველა წარწერა დიდი ასოებით
           (ქართული ფონტი თავისით მთავრულია, ჩინურს ასოთა ზომა არ აქვს) */
        html[lang="en"] body *,
        html[lang="ru"] body * { text-transform: uppercase; }

        /* ადგილის ნაკლებობისას JS ამ კლასებს ამატებს body-ზე */
        body.sq-social .social-icons { display: none !important; }
        body.sq-sub .center-tagline-sub { display: none; }
        body.sq-tag .center-tagline-box { display: none; }

        .menu-dots { display: none !important; }

        /* ---------- დესკტოპის ჰედერი ვიწრო ფანჯარაში ---------- */
        @media (min-width: 769px) and (max-width: 1180px) and (hover: hover) {
            .header-address { display: none; }
        }
        @media (min-width: 769px) and (max-width: 960px) and (hover: hover) {
            .header-phone-label { display: none; }
        }
        @media (max-height: 640px) {
            .store-hours-mini { display: none; }
            .footer-hud-panel { padding: 6px 10px; bottom: 10px; }
        }
        @media (max-height: 500px) and (min-width: 769px) and (hover: hover) {
            .logo-wrapper.move-top-left { transform: translate(0, 0) scale(0.45) translateZ(0); }
        }
        @media (max-height: 460px) {
            .menu-item-cmd { min-height: clamp(76px, 24vh, 140px); }
        }

        /* ---------- დიდი მონიტორები (1800px+) ---------- */
        @media (min-width: 1800px) and (min-height: 900px) {
            .split-container { width: min(1180px, 62vw); padding: 8px; gap: 8px; }
            .menu-item-cmd { min-height: clamp(190px, 12vw, 250px); }
            .card-icon svg { width: 60px; height: 60px; }
            .card-num { font-size: 0.62rem; top: 10px; right: 12px; }
            .card-title { font-size: 0.92rem; }
            .card-sub { font-size: 0.7rem; }
            .menu-item-cmd:hover .card-text { max-height: 100px; }
            .center-tagline-sub { font-size: 0.92rem; }
            .center-tagline-text { font-size: 1.02rem; }
            .test-mode-banner { font-size: 0.82rem; top: 10px; }
            .header-phone-label, .header-phone-number, .header-address-text { font-size: 0.92rem; }
            .header-address-icon { width: 15px; height: 15px; }
            .header-phone { right: 330px; }
            .mode-switch-side { font-size: 0.68rem; }
            .social-icon { width: 54px; height: 54px; }
            .social-icon svg { width: 25px; height: 25px; }
            .footer-hud-panel { padding: 11px 30px; gap: 20px; bottom: 30px; }
            .hud-item, .store-status-text { font-size: 0.72rem; }
            .store-hours-mini { font-size: 0.76rem; }
        }
        @media (min-width: 2200px) and (min-height: 1200px) {
            .logo-wrapper.move-top-left { transform: translate(0, 0) scale(0.66) translateZ(0); top: 30px; left: 44px; }
        }

        /* ---------- მობილური/ტაჩ ლეიაუთი ----------
           ლოგო მარცხნივ, DARK/LIGHT + ენა მარჯვნივ (ლოგოს შუა ხაზზე),
           ტელეფონი და მისამართი — მენიუს ზემოთ, ცენტრში.
           --ctrl-y და --mode-w JS-ით (layoutPage) ითვლება. */
        @media (max-width: 768px), (hover: none) and (pointer: coarse) {
            :root { --ctrl-y: 50px; --mode-w: 110px; }

            .logo-title { font-size: clamp(1.6rem, 5.5vw, 2.6rem); min-height: 1em; }
            .logo-subtitle { font-size: clamp(0.65rem, 2.2vw, 1.05rem); margin-top: 0; min-height: 1.1em; letter-spacing: 0.3em; }
            .logo-binary { font-size: clamp(0.45rem, 1.5vw, 0.7rem); margin-bottom: 1px; min-height: 0.7rem; letter-spacing: 0.08em; }

            .logo-wrapper.move-top-left {
                top: 28px; left: 14px;
                transform: translate(0, 0) scale(0.8) translateZ(0);
                transform-origin: top left;
            }
            .logo-wrapper.move-top-left:active {
                transform: translate(0, 0) scale(0.78) translateZ(0);
            }

            /* მარჯვენა მხარე: [ენა] [DARK ◐ LIGHT] */
            .mode-switch {
                top: var(--ctrl-y); left: auto; right: 14px;
                transform: translateY(-50%); gap: 7px;
            }
            .lang-switch,
            .lang-switch.open {
                top: var(--ctrl-y); left: auto; right: calc(14px + var(--mode-w) + 8px);
                transform: translateY(-50%);
            }
            .lang-trigger { padding: 2px; }
            .lang-trigger svg { width: 32px; height: 32px; }
            .lang-dropdown { left: auto; right: 0; transform: translateY(-6px); }
            .lang-switch.open .lang-dropdown { transform: translateY(0); }

            /* ტელეფონი + მისამართი — მენიუს ზემოთ, ცენტრში (top — JS) */
            .header-phone {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                gap: 6px 18px;
                left: 50%; right: auto;
                transform: translateX(-50%);
                width: calc(100% - 28px);
                white-space: normal;
            }
            .header-phone-frame { gap: 10px; min-height: 1.3em; }
            .header-address { margin-left: 0; }
            .header-phone-label, .header-phone-number, .header-address-text { font-size: 0.74rem; }
            body.sq-phone .header-phone { display: none; }

            /* მენიუ — ბარათებზე სათაური ყოველთვის ჩანს (hover არ არსებობს) */
            .split-container { width: min(92vw, 760px); }
            .menu-item-cmd { padding: 22px 4px 12px; min-height: clamp(118px, 18vw, 170px); }
            .menu-item-cmd:hover { flex: 1; }
            .card-icon, .menu-item-cmd:hover .card-icon { margin-bottom: 8px; }
            .card-icon svg { width: clamp(28px, 6vw, 44px); height: clamp(28px, 6vw, 44px); }
            .card-text,
            .menu-item-cmd:hover .card-text {
                max-height: none; opacity: 1; transform: none;
            }
            .card-title {
                font-size: clamp(0.56rem, 1.5vw, 0.76rem);
                overflow-wrap: anywhere;
                line-height: 1.35;
            }
            .card-sub { display: block; font-size: clamp(0.46rem, 1.2vw, 0.6rem); color: rgba(255, 102, 0, 0.75); overflow-wrap: anywhere; letter-spacing: 0; }
            .card-num { font-size: 0.44rem; top: 7px; right: 8px; }

            /* სიმეტრია: სათაურს და ქვეწარწერას ყოველთვის ორი ხაზის ადგილი
               აქვს — ერთხაზიანი ტექსტი ამ ადგილში ცენტრდება, ასე რომ
               აიქონები და ტექსტები ყველა ბარათში ერთ დონეზეა */
            .card-text { display: flex; flex-direction: column; align-items: center; width: 100%; }
            .card-title, .card-sub {
                display: flex; align-items: center; justify-content: center;
                text-align: center; width: 100%;
            }
            .card-title { min-height: 2.7em; }
            .card-sub { min-height: 2.5em; line-height: 1.25; }

            .footer-hud-panel { bottom: 12px; font-size: 0.65rem; padding: 6px 10px; width: calc(100% - 20px); }
            .store-status-text { font-size: 0.65rem; }
            .hud-sep { display: none; }
        }
        /* ვიწრო ეკრანზე მისამართი ყოველთვის ცალკე ხაზზე — აკრეფისას არ ხტება */
        @media (max-width: 520px) {
            .header-phone { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
        }
        @media (min-width: 521px) and (max-width: 768px),
               (min-width: 521px) and (hover: none) and (pointer: coarse) {
            .header-phone { flex-wrap: nowrap; }
        }

        /* ძალიან ვიწრო ტელეფონზე ლოგო ოდნავ პატარა, რომ ღილაკებს არ შეეხოს */
        @media (max-width: 370px) {
            .logo-wrapper.move-top-left { left: 10px; transform: translate(0, 0) scale(0.66) translateZ(0); }
            .mode-switch { right: 10px; }
            .lang-switch, .lang-switch.open { right: calc(10px + var(--mode-w) + 6px); }
        }

        /* პატარა ტელეფონებზე DARK/LIGHT ოდნავ კომპაქტური */
        @media (max-width: 400px) {
            .mode-switch-side { font-size: 0.48rem; }
            .mode-switch-track { width: 40px; height: 20px; }
            .mode-switch-thumb { width: 14px; height: 14px; }
            body[data-theme="light"] .mode-switch-thumb { transform: translateX(20px); }
            .lang-trigger svg { width: 28px; height: 28px; }
        }
        @media (hover: none) and (pointer: coarse) {
            .menu-item-cmd:active { background: var(--card-press-bg); border-color: var(--card-line-accent); }
        }

        /* ტელეფონი ვერტიკალურად — 2×2 ბადე, რომ ტექსტი წაიკითხებოდეს */
        @media (max-width: 599px) {
            .split-container { width: min(92vw, 420px); flex-wrap: wrap; }
            .menu-item-cmd,
            .menu-item-cmd:hover { flex: 0 0 calc(50% - 3px); min-height: clamp(108px, 31vw, 150px); }
            .card-icon svg { width: clamp(30px, 9vw, 40px); height: clamp(30px, 9vw, 40px); }
            .card-title { font-size: clamp(0.58rem, 2.9vw, 0.74rem); }
            .card-sub { font-size: clamp(0.46rem, 2.3vw, 0.58rem); letter-spacing: 0; }
            .menu-item-cmd { padding-left: 4px; padding-right: 4px; }
            /* 3 ბარათი: ბოლო (კონტაქტი) მთელ სიგანეზე, რომ ცარიელი ადგილი არ დარჩეს */
            .menu-item-cmd:last-child:nth-child(odd),
            .menu-item-cmd:last-child:nth-child(odd):hover { flex-basis: 100%; min-height: clamp(96px, 26vw, 130px); }
        }

        /* ტელეფონი ჰორიზონტალურად (დაბალი და ფართო ეკრანი) */
        @media (max-height: 500px) and (min-width: 520px) and (max-width: 1100px) and (hover: none),
               (max-height: 500px) and (min-width: 520px) and (max-width: 768px) {
            .test-mode-banner { top: 5px; font-size: 0.6rem; }
            .logo-wrapper.move-top-left { top: 14px; left: 16px; transform: translate(0, 0) scale(0.6) translateZ(0); }
            .lang-trigger svg { width: 30px; height: 30px; }
            .header-phone-label, .header-phone-number, .header-address-text { font-size: 0.66rem; }
            .split-container { width: min(84vw, 680px); flex-wrap: nowrap; }
            .menu-item-cmd,
            .menu-item-cmd:hover { flex: 1; min-height: clamp(84px, 25vh, 124px); padding: 18px 3px 8px; }
            .card-icon svg { width: 28px; height: 28px; }
            .card-icon, .menu-item-cmd:hover .card-icon { margin-bottom: 6px; }
            .card-title { font-size: 0.56rem; }
            .footer-hud-panel { bottom: 6px; padding: 4px 10px; gap: 2px 10px; }
        }

        /* ძალიან ვიწრო ეკრანები (≤340px) */
        @media (max-width: 340px) {
            .footer-hud-panel { font-size: 0.58rem; padding: 5px 8px; gap: 3px 8px; }
            .hud-item { font-size: 0.6rem; gap: 4px; }
            .hud-val, .hud-link { font-size: 0.6rem !important; }
            .store-hours-mini { display: none; }
            .test-mode-banner { font-size: 0.62rem; }
        }

        /* თემის გადართვისას ყველა ფერის ცვლილება რბილად, სასიამოვნოდ ხდება —
           ეს fallback ტრანზიშენი ეხმარება ელემენტებს, რომლებსაც საკუთარი
           transition არა აქვთ განსაზღვრული (უფრო სპეციფიკური წესები, თუ
           საკუთარი transition აქვთ განსაზღვრული, პრიორიტეტულია და ეს არ ეხებათ) */
        body, body *, body *::before, body *::after {
            transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, fill 0.5s ease, stroke 0.5s ease;
        }

        /* === თემის გადართვის "პიქსელების ბადის" ეფექტი ===
           ეკრანი კვადრატებად იყოფა და ისინი ტალღისებურად, ცენტრიდან
           გარეთ, თანმიმდევრობით იღებენ ახალ ფერს, შემდეგ ქრებიან */
        .pixel-grid {
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            pointer-events: none;
            z-index: 45;
            display: grid;
        }
        .pixel-cell {
            opacity: 0;
            transform: scale(0.5);
            animation: pixelFlash 0.75s ease-out forwards;
        }
        @keyframes pixelFlash {
            0%   { opacity: 0; transform: scale(0.4); }
            35%  { opacity: 1; transform: scale(1); }
            65%  { opacity: 1; transform: scale(1); }
            100% { opacity: 0; transform: scale(1); }
        }


    

        /* === გვერდებს შორის გადასვლის ეფექტი (js/transition.js) === */
        /* ახალ გვერდზე მისვლისას, სანამ ბადე აიწყობა, ეკრანი დაფარულია */
        html.ot-entering::after {
            content: "";
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: #05060a;
        }
        html.ot-entering.ot-light::after { background: #ffffff; }
        .ot-grid {
            position: fixed;
            inset: 0;
            z-index: 9998;
            display: grid;
            pointer-events: none;
        }
        .ot-grid.ot-blocking { pointer-events: auto; }
        .ot-cell { will-change: opacity, transform; }
        .ot-cell-in  { opacity: 0; animation: otCellIn 0.24s ease-out forwards; }
        .ot-cell-out { opacity: 1; animation: otCellOut 0.42s ease-in forwards; }
        .ot-cell.ot-hot { box-shadow: inset 0 0 0 1px rgba(255, 102, 0, 0.85); }
        .ot-cell-in.ot-hot  { animation-name: otCellInHot; }
        .ot-cell-out.ot-hot { animation-name: otCellOutHot; }
        @keyframes otCellIn  { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
        @keyframes otCellOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.4); } }
        @keyframes otCellInHot {
            0%   { opacity: 0; transform: scale(0.4); background: rgba(255, 102, 0, 0.55); }
            60%  { opacity: 1; transform: scale(1); background: rgba(255, 102, 0, 0.35); }
            100% { opacity: 1; transform: scale(1); }
        }
        @keyframes otCellOutHot {
            0%   { opacity: 1; transform: scale(1); background: rgba(255, 102, 0, 0.45); }
            100% { opacity: 0; transform: scale(0.4); }
        }

/* ======================= PHP ვერსია: ენის ღილაკები ბმულებია ======================= */
a.lang-opt { display: inline-block; text-decoration: none; line-height: normal; }
.lang-opt.is-zh { font-family: system-ui, sans-serif; letter-spacing: 0; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
