        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #0d0d0d;
            color: var(--tg-theme-text-color, #fff);
            padding: 16px;
            min-height: 100vh;
        }

        .header {
            position: relative;
            width: 100vw;
            left: -16px;
            margin-top: -16px;
            margin-bottom: 16px;
            padding-bottom: 2px;
            border-bottom: none;
            background: none;
            line-height: 0;
        }

        .cart-icon {
            position: fixed;
            top: 53px;
            left: 22px;
            width: 45px;
            height: 45px;
            z-index: 100;
            background: #000;
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
            filter: grayscale(100%) brightness(200%);
            padding: 0;
        }

        .cart-icon svg {
            display: block;
            margin-left: -3px;
        }

        .cart-icon:hover {
            background: #111;
            border-color: rgba(255, 255, 255, 0.25);
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
        }

        .cart-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4444;
            color: #000;
            border-radius: 10px;
            min-width: 20px;
            height: 20px;
            padding: 0 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
        }

        .header-collab {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 0 16px;
            width: 100%;
            box-sizing: border-box;
        }

        .header-collab-x {
            font-size: 28px;
            color: #fff;
            font-weight: 400;
            line-height: 1;
            flex-shrink: 0;
            margin-bottom: 10px;
        }

        .header-logo-wrap {
            flex: 1;
            height: 65px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
        }

        .header-logo-wrap:last-child img {
            margin-bottom: 10px;
        }

        .header-logo {
            max-height: 65px;
            max-width: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            display: block;
        }

        .header h1 {
            font-size: 32px;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #fff, #aaa, #fff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 400;
            letter-spacing: 5px;
            text-transform: uppercase;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
            filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
        }

        .header p {
            color: #666;
            font-size: 14px;
            font-weight: 300;
            letter-spacing: 1px;
        }

        .catalog {
            display: grid;
            gap: 12px;
            opacity: 1;
            transition: opacity 0.15s ease;
            padding: 0 12px;
        }

        .category {
            background: #1a1a1a;
            border-radius: 16px;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.08);
            overflow: visible;
            opacity: 0;
            animation: fadeIn 0.3s ease forwards;
            padding: 12px;
            transition: background 0.15s ease-in, border-color 0.15s ease-in, box-shadow 0.4s ease-out;
        }

        .category:hover, .category:active, .category.touching {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.4);
            box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 4px 24px rgba(255, 255, 255, 0.18);
        }

        .category:hover .category-image, .category:active .category-image, .category.touching .category-image {
            border-color: rgba(255, 255, 255, 0.35);
            box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
        }

        .category.active {
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .category:nth-child(1) { animation-delay: 0s; }
        .category:nth-child(2) { animation-delay: 0.05s; }
        .category:nth-child(3) { animation-delay: 0.1s; }
        .category:nth-child(4) { animation-delay: 0.15s; }

        .category-header {
            display: flex;
            align-items: center;
            gap: 16px;
            position: relative;
            cursor: pointer;
        }

        .category-image {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            object-fit: cover;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: border-color 0.15s ease-in, box-shadow 0.4s ease-out;
        }

        .category-info {
            flex: 1;
        }

        .category-name {
            font-size: 20px;
            font-weight: 400;
            color: #fff;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }

        .category-description {
            font-size: 11px;
            color: #888;
            margin-bottom: 4px;
            line-height: 1.3;
        }

        .category-count {
            font-size: 13px;
            color: #666;
        }

        .category-arrow {
            font-size: 20px;
            color: #666;
            transition: transform 0.3s ease;
        }

        .category.active .category-arrow {
            transform: rotate(180deg);
        }

        .category-content {
            max-height: 0;
            overflow: hidden;
            pointer-events: none;
            margin-top: 0;
            padding: 0;
            display: grid;
            gap: 12px;
        }

        .category.active .category-content {
            max-height: none;
            overflow: visible;
            pointer-events: auto;
            margin-top: 12px;
            padding: 0;
        }

        .catalog {
            display: grid;
            gap: 12px;
            padding: 0 8px;
        }

        .newbies-section {
            padding: 12px;
            background: #1a1a1a;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.08);
            margin: 0 8px 12px;
        }

        .newbies-title {
            font-size: 18px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 12px;
            letter-spacing: 0.5px;
        }

        .newbies-scroll {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding-bottom: 8px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .newbies-scroll::-webkit-scrollbar {
            display: none;
        }

        .newbie-card {
            flex-shrink: 0;
            width: 110px;
            background: #242424;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            overflow: visible;
            position: relative;
            cursor: pointer;
            transition: background 0.15s ease-in, border-color 0.15s ease-in, box-shadow 0.4s ease-out;
        }

        .newbie-card-image {
            border-radius: 12px 12px 0 0;
        }

        .newbie-card:hover, .newbie-card:active, .newbie-card.touching {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.4);
            box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 4px 24px rgba(255, 255, 255, 0.18);
        }

        .newbie-card:active {
            transform: scale(0.97);
        }

        .newbie-card-image {
            width: 100%;
            height: 110px;
            object-fit: cover;
            display: block;
        }

        .newbie-card-name {
            font-size: 11px;
            font-weight: 600;
            color: #fff;
            padding: 6px 8px 2px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .newbie-card-line {
            font-size: 10px;
            color: #666;
            padding: 0 8px 8px;
        }

        .newbie-card-img-wrap {
            position: relative;
        }

        .card-img-wrap {
            position: relative;
            flex-shrink: 0;
            width: 100px;
            height: 100px;
        }

        .new-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            background: #e02020;
            color: #fff;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.5px;
            padding: 2px 5px;
            border-radius: 4px;
            line-height: 1.4;
            pointer-events: none;
            box-shadow: 0 1px 4px rgba(0,0,0,0.5);
            z-index: 1;
        }

        .modal-img-wrap {
            position: relative;
        }

        .new-badge--modal {
            font-size: 14px;
            padding: 4px 10px;
            border-radius: 6px;
            top: 40px;
            right: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.5);
            z-index: 1002;
        }

        .select-weight-hint {
            font-size: 13px;
            color: #555;
            text-align: center;
            padding: 10px 0;
        }

        .best-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            background: #1a6fd4;
            color: #fff;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.5px;
            padding: 2px 5px;
            border-radius: 4px;
            line-height: 1.4;
            pointer-events: none;
            box-shadow: 0 1px 4px rgba(0,0,0,0.5);
            z-index: 1;
        }

        .best-badge--modal {
            font-size: 14px;
            padding: 4px 10px;
            border-radius: 6px;
            top: 40px;
            right: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.5);
            z-index: 1002;
        }

        .card {
            background: #1a1a1a;
            border-radius: 16px;
            padding: 16px;
            display: flex;
            gap: 16px;
            cursor: pointer;
            transition: background 0.15s ease-in, border-color 0.15s ease-in, box-shadow 0.4s ease-out;
            align-items: center;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        }

        .card:hover, .card:active, .card.touching {
            border-color: rgba(255, 255, 255, 0.4);
            box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 4px 24px rgba(255, 255, 255, 0.18);
            background: rgba(255, 255, 255, 0.08);
        }

        .card:active {
            transform: scale(0.98);
        }

        .card-image {
            width: 100px;
            height: 100px;
            border-radius: 12px;
            object-fit: cover;
            object-position: center top;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
        }

        .card-content {
            flex: 1;
            min-width: 0;
        }

        .card-name {
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 6px;
            color: #fff;
            letter-spacing: 0.5px;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .card-description {
            font-size: 13px;
            color: #777;
            margin-bottom: 10px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Фильтры линеек */
        .catalog-filters {
            position: sticky;
            top: 0;
            z-index: 80;
            background: #0d0d0d;
            padding: 6px 0 8px;
        }
        .catalog-filters-scroll {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 0 8px;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .catalog-filters-scroll::-webkit-scrollbar { display: none; }
        .catalog-search-btn {
            flex-shrink: 0;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.15);
            background: transparent;
            color: rgba(255,255,255,0.5);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s, color 0.15s, border-color 0.15s;
        }
        .catalog-search-btn:active, .catalog-search-btn.active {
            background: #fff;
            color: #000;
            border-color: #fff;
        }
        .catalog-filter-btn {
            flex-shrink: 0;
            padding: 6px 14px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.15);
            background: transparent;
            color: rgba(255,255,255,0.5);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s, color 0.15s, border-color 0.15s;
        }
        .catalog-filter-btn.active {
            background: #fff;
            color: #000;
            border-color: #fff;
        }

        /* Кнопки переключения вида */
        .view-toggle {
            display: flex;
            gap: 6px;
            padding: 10px 16px 12px;
            justify-content: flex-start;
        }
        .view-toggle-btn {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.12);
            background: transparent;
            color: rgba(255,255,255,0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.15s, color 0.15s, border-color 0.15s;
        }
        .view-toggle-btn.active {
            background: rgba(255,255,255,0.1);
            color: #fff;
            border-color: rgba(255,255,255,0.3);
        }

        /* Режим плиток: сетка 2 колонки */
        .catalog.view-grid {
            padding: 0;
        }
        .grid-all {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            padding: 8px 4px 0;
        }
        .catalog.view-grid .category-content {
            grid-template-columns: 1fr 1fr;
        }
        .catalog.view-grid .card {
            flex-direction: column;
            align-items: stretch;
            padding: 0;
            gap: 0;
            overflow: visible;
            position: relative;
        }
        .catalog.view-grid .new-badge,
        .catalog.view-grid .best-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            z-index: 2;
        }
        .catalog.view-grid .card-img-wrap {
            width: 100%;
            height: 0;
            padding-bottom: 100%;
            position: relative;
            overflow: hidden;
            border-radius: 16px 16px 0 0;
        }
        .catalog.view-grid .card-image {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border-radius: 0;
            border: none;
            box-shadow: none;
        }
        .grid-card-content {
            padding: 8px 10px 10px;
        }
        .grid-card-name {
            font-size: 13px;
            font-weight: 500;
            color: #fff;
            margin-bottom: 6px;
            line-height: 1.3;
        }
        .grid-weight-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 8px;
        }
        .grid-weight-selector .weight-option {
            font-size: 11px;
            padding: 3px 7px;
        }
        .grid-price-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            overflow: hidden;
        }
        .grid-price {
            font-size: 14px;
            font-weight: 700;
            color: #fff;
            margin: 0;
            min-width: 0;
            flex-shrink: 1;
        }
        .grid-cart-control {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }
        .grid-add-btn {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: rgba(255,255,255,0.12);
            color: #fff;
            border: 1px solid rgba(255,255,255,0.2);
            font-size: 22px;
            font-weight: 300;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
        }
        .grid-add-btn:active { opacity: 0.7; }
        .grid-cart-control .cart-counter {
            gap: 2px;
        }
        .grid-cart-control .cart-counter-btn {
            width: 26px;
            height: 26px;
            font-size: 15px;
        }
        .grid-cart-control .cart-counter-value {
            font-size: 12px;
            width: 22px;
        }
        .catalog.view-grid .show-more-btn {
            grid-column: 1 / -1;
        }

        .card-price {
            font-size: 16px;
            font-weight: 400;
            background: linear-gradient(135deg, #fff, #999);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 0.5px;
        }

        .contact-btn {
            background: linear-gradient(135deg, #fff, #ccc);
            color: #000;
            border: none;
            padding: 6px 16px;
            border-radius: 6px;
            font-size: 12px;
            margin-top: 8px;
            cursor: pointer;
            font-weight: 500;
            letter-spacing: 0.3px;
            transition: all 0.3s ease;
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
            max-width: 100%;
            word-wrap: break-word;
        }

        .contact-btn:hover {
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.12);
            transform: translateY(-2px);
        }

        .show-more-btn {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.25);
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 14px;
            margin-top: 10px;
            margin-left: 20%;
            margin-right: 20%;
            cursor: pointer;
            font-weight: 600;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            width: 60%;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .show-more-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.35);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        }

        .product-price {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            margin-top: 6px;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 4px;
            flex-wrap: wrap;
            min-width: 0;
        }

        #modalCartControl .product-price {
            justify-content: center;
        }

        .product-price .total-price {
            font-size: 14px;
            color: #fff;
            font-weight: 600;
        }
        .choose-weight-hint {
            font-size: 11px;
            color: #666;
            font-weight: 400;
        }

        .grid-price .total-price {
            display: none;
        }

        .weight-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 6px;
            margin-bottom: 8px;
        }

        .weight-option {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            padding: 4px 10px;
            font-size: 11px;
            color: #fff;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .weight-option:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .weight-option.active {
            background: linear-gradient(135deg, #fff, #ccc);
            color: #000;
            border-color: #fff;
        }

        .weight-option.in-cart {
            border-color: rgba(255, 255, 255, 0.5);
            position: relative;
        }

        .weight-option.in-cart::after {
            content: '✓';
            position: absolute;
            top: -4px;
            right: -4px;
            background: #4CAF50;
            color: white;
            font-size: 10px;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .cart-counter {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
        }

        .cart-counter-btn {
            width: 32px;
            height: 32px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            padding: 8px;
            touch-action: manipulation;
        }

        .cart-counter-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .cart-counter-value {
            font-size: 18px;
            font-weight: 700;
            color: #fff;
            min-width: 25px;
            width: 60px;
            text-align: center;
            display: inline-block;
            cursor: pointer;
            padding: 2px 0;
            border-bottom: 1px dashed rgba(255,255,255,0.35);
        }

        .cart-counter-value.qty-small,
        .cart-item-quantity.qty-small {
            font-size: 13px !important;
        }

        /* Стили для счетчика в модальном окне */
        .modal-card #modalCartControl .cart-counter {
            justify-content: center;
            margin-top: 0;
            gap: 20px;
        }

        .modal-card #modalCartControl .cart-counter-btn {
            width: 44px;
            height: 44px;
            font-size: 22px;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .modal-card #modalCartControl .cart-counter-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .modal-card #modalCartControl .cart-counter-value {
            font-size: 24px;
            font-weight: 700;
            min-width: 40px;
        }

        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            align-items: flex-start;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            display: none;
            padding: 0;
            overflow-y: auto;
        }

        .modal-content {
            background: #1a1a1a;
            border-radius: 20px;
            padding: 24px;
            max-width: 500px;
            width: 90%;
            margin: 20px auto;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal.active {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-card {
            background: #1a1a1a;
            border-radius: 20px;
            max-width: 400px;
            width: calc(100% - 16px);
            position: relative;
            transition: opacity 0.3s ease, transform 0.3s ease;
            padding: 24px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
            margin: 40px 8px 40px 8px;
            max-height: calc(100vh - 80px);
            overflow-y: auto;
            opacity: 0;
            transform: translateY(20px);
        }

        .modal.active .modal-card {
            opacity: 1;
            transform: translateY(0);
        }

        .modal-card-image {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 16px;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
        }

        .modal-image {
            max-width: 90%;
            max-height: 90%;
            border-radius: 12px;
            transform: scale(0.8);
            transition: transform 0.3s ease;
            object-fit: contain;
        }

        .modal.active .modal-image {
            transform: scale(1);
        }

        #fullImageModal {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 12vh;
        }

        .modal-card-content {
            padding: 20px;
        }

        .modal-card-name {
            font-size: 26px;
            font-weight: 300;
            margin-bottom: 12px;
            background: linear-gradient(135deg, #fff, #888);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 1px;
        }

        .modal-card-price {
            font-size: 20px;
            font-weight: 400;
            color: #fff;
            margin-bottom: 16px;
            letter-spacing: 0.5px;
        }

        .modal-card-description {
            font-size: 15px;
            color: #777;
            margin-bottom: 14px;
            line-height: 1.6;
        }

        /* ── О нас ───────────────────────────────────────────────────────── */
        #aboutModal .modal-card {
            padding: 0;
        }

        #aboutModal .modal-card-content {
            padding: 16px 20px;
        }

        /* Поиск */
        #searchModal {
            align-items: flex-start;
            padding-top: 60px;
        }
        .search-modal-card {
            background: #1a1a1a;
            border-radius: 20px;
            width: calc(100% - 24px);
            max-width: 420px;
            max-height: 70vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 10px 40px rgba(0,0,0,0.8);
        }
        .search-input-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 16px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .search-input-wrap input {
            flex: 1;
            background: none;
            border: none;
            outline: none;
            color: #fff;
            font-size: 16px;
            caret-color: #fff;
        }
        .search-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }
        .search-clear-btn {
            background: none;
            border: none;
            color: rgba(255,255,255,0.4);
            cursor: pointer;
            padding: 2px;
            display: flex;
            align-items: center;
        }
        .search-results {
            overflow-y: auto;
            flex: 1;
        }
        .search-result-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            cursor: pointer;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            transition: background 0.1s;
        }
        .search-result-item:active { background: rgba(255,255,255,0.06); }
        .search-result-item:last-child { border-bottom: none; }
        .search-result-img {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            object-fit: cover;
            flex-shrink: 0;
            background: #2a2a2a;
        }
        .search-result-info { flex: 1; min-width: 0; }
        .search-result-name {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .search-result-cat {
            font-size: 12px;
            color: rgba(255,255,255,0.4);
            margin-top: 2px;
        }
        .search-empty {
            padding: 32px 16px;
            text-align: center;
            color: rgba(255,255,255,0.3);
            font-size: 14px;
        }

        .about-hero {
            padding: 20px 24px 16px;
            text-align: center;
            border-bottom: 1px solid rgba(255,255,255,0.07);
        }

        .about-logo {
            font-size: 32px;
            font-weight: 200;
            letter-spacing: 4px;
            line-height: 1.2;
            background: linear-gradient(135deg, #fff 30%, #888);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 16px;
            text-transform: uppercase;
        }

        .about-logo span {
            font-size: 13px;
            letter-spacing: 8px;
            font-weight: 400;
        }

        .about-badges {
            display: flex;
            gap: 8px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .about-badge {
            font-size: 12px;
            color: #aaa;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 20px;
            padding: 5px 12px;
            letter-spacing: 0.3px;
        }

        .about-section {
            margin-bottom: 0;
        }

        .about-section-text {
            font-size: 14px;
            color: #888;
            line-height: 1.7;
        }

        .support-about-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 14px;
            background: rgba(36, 161, 222, 0.12);
            border: 1px solid rgba(36, 161, 222, 0.35);
            border-radius: 12px;
            color: #29aae1;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 4px;
            box-shadow: 0 0 20px rgba(36, 161, 222, 0.15);
            transition: all 0.3s ease;
        }

        .support-about-btn:active {
            background: rgba(36, 161, 222, 0.2);
            box-shadow: 0 0 30px rgba(36, 161, 222, 0.3);
        }

        .about-divider {
            height: 1px;
            background: rgba(255,255,255,0.07);
            margin: 14px 0;
        }

        .about-stats {
            display: flex;
            align-items: center;
            justify-content: space-around;
        }

        .about-stat {
            text-align: center;
            flex: 1;
        }

        .about-stat-value {
            font-size: 22px;
            font-weight: 600;
            color: #fff;
            letter-spacing: 0.5px;
        }

        .about-stat-label {
            font-size: 11px;
            color: #555;
            margin-top: 3px;
            letter-spacing: 0.3px;
        }

        .about-stat-sep {
            width: 1px;
            height: 36px;
            background: rgba(255,255,255,0.08);
            flex-shrink: 0;
        }

        .modal-contact-btn {
            width: 100%;
            background: linear-gradient(135deg, #fff, #ccc);
            color: #000;
            border: none;
            padding: 18px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            letter-spacing: 1px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
        }

        .cart-show-more-btn {
            width: 100%;
            background: transparent;
            color: #888;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px;
            padding: 10px;
            font-size: 13px;
            cursor: pointer;
            margin: 4px 0 8px;
        }

        .cart-show-more-btn:active {
            background: rgba(255,255,255,0.05);
        }

        .cart-clear-btn {
            width: 100%;
            background: transparent;
            color: #666;
            border: none;
            padding: 14px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            margin-top: 6px;
            transition: color 0.2s;
        }
        .cart-clear-btn:active {
            color: #ff4444;
        }

        .modal-contact-btn:hover {
            box-shadow: 0 6px 25px rgba(255, 255, 255, 0.25), 0 0 20px rgba(255, 255, 255, 0.15);
            transform: translateY(-3px);
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            cursor: pointer;
            background: rgba(0, 0, 0, 0.6);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
            border: 1px solid rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            z-index: 1001;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .modal-close svg {
            display: block;
            flex-shrink: 0;
        }

        /* Попап ввода количества */
        #qtyPopupOverlay {
            align-items: center;
            justify-content: center;
        }
        #qtyPopupBox {
            position: absolute;
            background: #1c1c1c;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 20px;
            padding: 24px 28px 20px;
            width: 280px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            box-shadow: 0 8px 40px rgba(0,0,0,0.7);
        }
        #qtyPopupLabel {
            font-size: 15px;
            color: #aaa;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        #qtyPopupInput {
            font-size: 32px;
            font-weight: 700;
            color: #fff;
            background: #2a2a2a;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 12px;
            text-align: center;
            padding: 10px;
            outline: none;
            width: 100%;
            box-sizing: border-box;
            -moz-appearance: textfield;
        }
        #qtyPopupInput::-webkit-outer-spin-button,
        #qtyPopupInput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        #qtyPopupDone {
            background: #fff;
            color: #000;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 700;
            padding: 12px;
            cursor: pointer;
            width: 100%;
        }
        #qtyPopupDone:active { opacity: 0.8; }

        .bottom-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(15, 15, 15, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: flex-start;
            z-index: 90;
        }

        .bottom-bar-btn {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            background: none;
            border: none;
            color: #555;
            font-size: 11px;
            font-weight: 500;
            cursor: pointer;
            transition: color 0.15s;
            padding: 10px 0;
            padding-bottom: calc(10px + env(safe-area-inset-bottom) / 2);
        }

        .bottom-bar-btn.active {
            color: #fff;
        }

        .bb-cart-badge {
            position: absolute;
            top: -5px;
            left: 100%;
            margin-left: -8px;
            background: #fff;
            color: #000;
            font-size: 9px;
            font-weight: 700;
            border-radius: 8px;
            min-width: 15px;
            height: 15px;
            line-height: 15px;
            text-align: center;
            padding: 0 4px;
            box-sizing: border-box;
            white-space: nowrap;
        }

        .bottom-bar-btn:active {
            color: #aaa;
        }

        .cart-item {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 10px;
            margin-bottom: 8px;
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .cart-item-image {
            width: 50px;
            height: 50px;
            border-radius: 6px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .cart-item-info {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .cart-item-name {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #fff;
        }

        .cart-item-controls {
            display: flex;
            align-items: center;
            gap: 6px;
            width: 100%;
            flex-wrap: nowrap;
        }

        .cart-item-btn {
            width: 36px;
            height: 36px;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            padding: 0;
            touch-action: manipulation;
        }

        .cart-item-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .cart-item-quantity {
            font-size: 18px;
            font-weight: 700;
            color: #fff;
            min-width: 28px;
            width: 60px;
            text-align: center;
            flex-shrink: 0;
            display: inline-block;
            cursor: pointer;
            padding: 2px 0;
            border-bottom: 1px dashed rgba(255,255,255,0.35);
        }

        .cart-item-quantity.qty-small {
            font-size: 13px;
        }

        .cart-item-delete {
            width: 30px;
            height: 30px;
            background: transparent;
            border: none;
            color: #991b1b;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.3s ease;
            filter: drop-shadow(0 0 8px rgba(153, 27, 27, 0.4));
            margin-left: auto;
        }

        .cart-item-delete:hover {
            filter: drop-shadow(0 0 15px rgba(153, 27, 27, 0.7));
            transform: scale(1.1);
        }

        .cart-empty {
            text-align: center;
            color: #666;
            padding: 40px 20px;
            font-size: 16px;
        }

        .cart-category {
            margin-bottom: 10px;
        }

        .cart-category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            transition: all 0.3s ease;
        }

        .cart-category-header > span:first-child {
            flex: 1;
        }

        .cart-category-header > span:nth-child(2) {
            margin-right: 8px;
        }

        .cart-category-header:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .cart-category-arrow {
            transition: transform 0.3s ease;
            font-size: 12px;
        }

        .cart-category-content {
            margin-top: 8px;
            padding: 8px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, margin-top 0.4s ease-in-out;
        }

        .cart-category-content[style*="display: block"] {
            max-height: 5000px;
        }

        #splashScreen {
            position: fixed;
            inset: 0;
            background: #1c1c1c;
            z-index: 2001;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .splash-spinner {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: conic-gradient(
                rgba(255,255,255,0.85) 0%,
                rgba(255,255,255,0.0) 75%
            );
            -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 5px));
            animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        #registrationModal {
            position: fixed;
            inset: 0;
            background: #0d0d0d;
            z-index: 2000;
            overflow-y: auto;
            display: none;
            align-items: flex-start;
            justify-content: center;
            padding: 40px 20px;
        }

        #registrationModal .modal-content {
            width: 100%;
            max-width: 420px;
            padding: 32px 24px;
            background: #0d0d0d;
        }

        #pendingScreen {
            position: fixed;
            inset: 0;
            background: #0d0d0d;
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 32px;
        }

        #pendingContent {
            text-align: center;
            max-width: 320px;
        }

        #pendingIcon {
            font-size: 64px;
            margin-bottom: 24px;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50%       { opacity: 0.6; transform: scale(0.95); }
        }

        #pendingTitle {
            font-size: 22px;
            font-weight: 400;
            color: #fff;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
        }

        #pendingMessage {
            font-size: 15px;
            color: #777;
            line-height: 1.6;
        }

        .city-input {
            width: 100%;
            padding: 12px;
            background: #1a1a1a;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            color: white;
            font-size: 16px;
            box-sizing: border-box;
            outline: none;
        }

        .city-input::placeholder {
            color: #555;
        }

        .city-input:focus {
            border-color: rgba(255,255,255,0.25);
        }

        .city-dropdown {
            width: 100%;
            max-height: 0;
            overflow: hidden;
            background: #1e1e1e;
            border-radius: 0 0 8px 8px;
            transition: max-height 0.18s ease;
            margin-top: -4px;
            border: 1px solid transparent;
            box-sizing: border-box;
        }

        .city-dropdown.open {
            max-height: 260px;
            overflow-y: auto;
            border-color: rgba(255,255,255,0.12);
        }

        .city-option {
            padding: 11px 14px;
            font-size: 15px;
            color: #ccc;
            cursor: pointer;
        }

        .city-option:not(:last-child) {
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .city-option:active,
        .city-option.active {
            background: rgba(255,255,255,0.09);
            color: #fff;
        }

        /* Отступ снизу для каталога чтобы не перекрывался баром */
        #catalog { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }

        /* Модал истории заказов — пустое состояние */
        .prev-orders-empty {
            text-align: center;
            color: #666;
            padding: 40px 20px;
            font-size: 16px;
        }

        /* Аккордеон заказа */
        .prev-order-list-item {
            margin-bottom: 8px;
            border: 1px solid rgba(255,255,255,0.09);
            border-radius: 10px;
            padding: 12px 14px;
            background: rgba(255,255,255,0.04);
            cursor: pointer;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }

        .prev-order-list-item:active {
            background: rgba(255,255,255,0.08);
        }

        .prev-order-list-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
        }

        .prev-order-list-date {
            font-size: 13px;
            font-weight: 600;
            color: #ccc;
        }

        .prev-order-list-total {
            font-size: 13px;
            color: #888;
        }

        .prev-order-list-preview {
            font-size: 12px;
            color: #666;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .prev-order-detail-items {
            margin-bottom: 4px;
        }

        .prev-order-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            padding: 4px 0;
            font-size: 13px;
            color: #aaa;
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }

        .prev-order-row:last-child {
            border-bottom: none;
        }

        .prev-order-row-name {
            flex: 1;
            margin-right: 8px;
        }

        .prev-order-row-link {
            cursor: pointer;
            color: #d4a843;
            text-decoration: underline;
            text-decoration-color: rgba(212, 168, 67, 0.4);
            text-underline-offset: 2px;
        }

        .prev-order-row-price {
            color: #777;
            white-space: nowrap;
        }

        .prev-order-repeat-btn {
            display: block;
            flex: 1;
            padding: 10px 0;
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(255,255,255,0.14);
            border-radius: 8px;
            color: #ddd;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .prev-order-repeat-btn:active {
            background: rgba(255,255,255,0.13);
        }
