.raymobile-panel,
    .raymobile-sheet-overlay,
    .raymobile-sheet {
        display: none;
    }

    @media all and (max-width: 768px) {
        :root {
            --raymobile-panel-height: 64px;
            --raymobile-sheet-bottom: calc(var(--raymobile-panel-height) + env(safe-area-inset-bottom));
        }

        html,
        body {
            max-width: 100%;
            overflow-x: hidden !important;
        }

        .raymobile-panel,
        .raymobile-sheet-overlay,
        .raymobile-sheet {
            max-width: 100vw !important;
            overflow-x: hidden !important;
            box-sizing: border-box !important;
        }

        .raymobile-panel *,
        .raymobile-sheet * {
            box-sizing: border-box;
        }

        .c-panel.c-panel-template-1 {
            display: none !important;
        }

        body {
            padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
        }

        .raymobile-panel {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            z-index: 1200;
            display: flex;
            align-items: stretch;
            justify-content: space-around;
            min-height: 64px;
            padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
            background: #fff;
            box-shadow: 0 -4px 24px rgba(27, 30, 37, 0.08);
            box-sizing: border-box;
        }


        .raymobile-panel-item {
            flex: 1 1 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 0;
            padding: 1px 6px;
            border: 0;
            border-radius: 12px;
            background: transparent;
            color: #777;
            text-decoration: none;
            font-family: inherit;
            line-height: 1;
            -webkit-tap-highlight-color: transparent;
        }

        .raymobile-panel-item:active,
        .raymobile-panel-item.raymobile-panel-active {
            color: #1d1d1d;
        }

        .raymobile-panel-button {
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
        }

        .raymobile-panel-icon {
            display: block;
            width: 25px;
            height: 25px;
            margin-bottom: 4px;
            color: currentColor;
        }

        .raymobile-panel-icon svg,
        .raymobile-sheet-icon svg {
            display: block;
            width: 100%;
            height: 100%;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.85;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .raymobile-panel-name {
            display: block;
            max-width: 100%;
            font-size: 11.5px;
            line-height: 1.12;
            color: currentColor;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .raymobile-sheet-overlay {
            position: fixed;
            left: 0;
            right: 0;
            top: 0;
            bottom: var(--raymobile-sheet-bottom);
            z-index: 1180;
            display: block;
            background: rgba(0, 0, 0, 0.48);
            opacity: 0;
            pointer-events: none;
            touch-action: none;
            transition: opacity 180ms ease;
        }

        .raymobile-sheet {
            position: fixed;
            left: 0;
            right: 0;
            /* 1px ниже, чтобы сама плашка перекрывала тонкий зазор над нижней панелью */
            bottom: calc(var(--raymobile-sheet-bottom) - 1px);
            z-index: 1190;
            display: block;
            max-height: none;
            overflow: hidden;
            overscroll-behavior: none;
            background: #fff;
            border-radius: 24px 24px 0 0;
            box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.14);
            opacity: 0;
            pointer-events: none;
            transform: translateY(18px);
            transition: opacity 180ms ease, transform 180ms ease;
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            touch-action: none;
        }

        .raymobile-sheet::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -2px;
            height: 3px;
            background: #fff;
            pointer-events: none;
        }

        .raymobile-sheet-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 62px;
            padding: 0 16px 0 20px;
            border-bottom: 1px solid #f0f0f0;
            box-sizing: border-box;
        }

        .raymobile-sheet-title {
            font-size: 20px;
            line-height: 1.2;
            font-weight: 700;
            color: #1d1d1d;
        }

        .raymobile-sheet-close {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border: 0;
            border-radius: 50%;
            padding: 0;
            background: #f5f5f5;
            color: #777;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .raymobile-sheet-close svg {
            width: 24px;
            height: 24px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
        }

        .raymobile-sheet-list {
            display: block;
            padding: 0;
        }

        .raymobile-sheet-link {
            display: flex;
            align-items: center;
            min-height: 62px;
            padding: 0 22px;
            color: #2c2c2c;
            text-decoration: none;
            border-bottom: 1px solid #f4f4f4;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        .raymobile-sheet-link:last-child {
            border-bottom: 0;
        }

        .raymobile-sheet-icon {
            flex: 0 0 auto;
            width: 27px;
            height: 27px;
            margin-right: 18px;
            color: #8b8b8b;
        }

        .raymobile-sheet-link > span:last-child,
        .raymobile-contact-title {
            font-size: 18px;
            line-height: 1.2;
            font-weight: 600;
        }

        .raymobile-contact-link {
            align-items: flex-start;
            padding-top: 14px;
            padding-bottom: 14px;
        }

        .raymobile-contact-text {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .raymobile-contact-title {
            display: block;
            color: #2c2c2c;
        }

        .raymobile-contact-subtitle {
            display: block;
            margin-top: 5px;
            font-size: 13px;
            line-height: 1.25;
            font-weight: 400;
            color: #888;
        }

        .raymobile-max-wrap {
            padding: 16px 20px 26px;
        }

        .raymobile-max-button {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 52px;
            padding: 0 18px;
            border-radius: 14px;
            background: linear-gradient(135deg, #2b8cff 0%, #7b61ff 45%, #00c2ff 100%);
            color: #fff;
            text-decoration: none;
            font-size: 16px;
            line-height: 1.2;
            font-weight: 700;
            box-shadow: 0 10px 20px rgba(43, 140, 255, 0.22);
            -webkit-tap-highlight-color: transparent;
        }

        .raymobile-max-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 42px;
            height: 24px;
            margin-right: 10px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.18);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: .04em;
        }



        /* Когда открыто штатное бургер-меню Intec, наша нижняя панель уходит на второй план. */
        html.raymobile-burger-open .raymobile-panel {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            -webkit-transform: translateY(110%);
            transform: translateY(110%);
            transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
        }

        html.raymobile-burger-open .raymobile-sheet,
        html.raymobile-burger-open .raymobile-sheet-overlay {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }

        /* Когда открыт popup-поиск Intec, наша нижняя панель уходит на второй план. */
        html.raymobile-search-open .raymobile-panel {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            -webkit-transform: translateY(110%);
            transform: translateY(110%);
            transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
        }

        html.raymobile-search-open .raymobile-sheet,
        html.raymobile-search-open .raymobile-sheet-overlay {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }

        html.raymobile-products-open,
        html.raymobile-contacts-open {
            overflow: hidden;
        }

        html.raymobile-products-open body,
        html.raymobile-contacts-open body {
            overflow: hidden;
            touch-action: none;
        }

        html.raymobile-products-open .raymobile-sheet,
        html.raymobile-contacts-open .raymobile-sheet {
            touch-action: none;
        }

        html.raymobile-products-open .raymobile-sheet-overlay,
        html.raymobile-contacts-open .raymobile-sheet-overlay,
        html.raymobile-products-open #raymobile-products-sheet,
        html.raymobile-contacts-open #raymobile-contacts-sheet {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        html.raymobile-products-open .raymobile-panel-item[data-raymobile-products-open],
        html.raymobile-contacts-open .raymobile-panel-item[data-raymobile-contacts-open] {
            color: #1d1d1d;
        }
    }

