/* =========================================
   0. ЦВЕТОВАЯ ПАЛИТРА (CSS VARIABLES)
   ========================================= */
:root {
    /* --- RGB ЦВЕТА (для прозрачности) --- */
    --bg-body-rgb: 222, 222, 222;     /* #DEDEDE */
    --bg-card-rgb: 235, 235, 235;     /* #EBEBEB - чуть светлее для карточек */
    --bg-inverse-rgb: 23, 23, 23;     /* #171717 */
    --bg-ui-light-rgb: 210, 210, 210; /* #D2D2D2 */
    
    /* --- ФОНЫ --- */
    --bg-body: #DEDEDE;               /* Основной фон страницы */
    --bg-card: #EBEBEB;               /* Фон карточек и модальных окон */
    --bg-ui: #CCCCCC;                 /* Фон плашек, серых кнопок, инпутов */
    --bg-ui-hover: #BDBDBD;           /* Наведение на серые плашки/кнопки */
    --bg-ui-light: #D2D2D2;           /* Очень светлые UI элементы */
    
    --bg-inverse: #171717;            /* Темный фон (подвал, кнопки, прелоадер) */
    --bg-inverse-hover: #111111;      /* Темный фон при наведении */
    --bg-inverse-light: #2A2A2A;      /* Светло-темный (для ховеров кнопок) */
    --bg-inverse-lighter: #4D4D4D;    /* Новый Серый (#4D4D4D) */
    
    /* --- ТЕКСТ --- */
    --text-main: #171717;             /* Главный темный текст */
    --text-muted: #4D4D4D;            /* Приглушенный текст (Серый) */
    --text-light: #737373;            /* Второстепенный текст (лейблы, теги) */
    --text-inverse: #DEDEDE;          /* Светлый текст на темном фоне (Белый) */
    --text-inverse-muted: #999999;    /* Приглушенный светлый текст */
    --text-inverse-light: #B3B3B3;    /* Текст в подвале и куки */
    --text-studio: #F25623;           /* Спец. цвет для надписи "Студия Дизайна" */
    
    /* --- АКЦЕНТЫ И ГРАНИЦЫ --- */
    --accent-color: #F25623;          /* Основной акцентный цвет (Оранжевый) */
    --accent-brand: #F25623;          /* Фирменный цвет (Оранжевый) */
    --accent-yellow: #F25623;         /* Желтый акцент заменен на Оранжевый */
    
    --border-color-dark: #C2C2C2;     /* Темные рамки (инпуты, скроллбар) */
    
    /* --- СТАТУСЫ --- */
    --status-success: #22c55e;        /* Зеленый маркер (Оригинал) */
    --status-success-bg: #dcfce7;     /* Светло-зеленый фон бейджа (Оригинал) */
    --status-success-text: #166534;   /* Темно-зеленый текст бейджа (Оригинал) */
    
    --status-error: #ef4444;          /* Ошибка */
    --status-error-bg: #fef2f2;       /* Фон ошибки */
}

/* =========================================
   1. БАЗОВЫЕ СТИЛИ И ТИПОГРАФИКА
   ========================================= */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-user-select: none; 
    user-select: none; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    background-color: var(--bg-body); 
    color: var(--text-main);
    font-family: 'Geologica', sans-serif;
    overflow: hidden;
    width: 100vw; 
    height: 100dvh;
    position: relative;
    touch-action: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overscroll-behavior-y: none;
}

body.shaking { animation: shake-anim 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake-anim {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

h1, h2, h3, h4, h5, h6, 
.bento-huge-text, .bento-medium-text, 
.mb-title, .info-title, .static-card-title,
.panel-header-title { text-wrap: balance; }

p, .service-desc, .info-desc, .static-card-desc, .panel-header-sub, .service-extended-text { 
    text-wrap: pretty; 
    hyphens: auto; 
    line-height: 1.6; 
}

@supports not (height: 100dvh) { body { height: 100vh; } }

#blur-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(var(--bg-body-rgb), 0.8); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    z-index: 9000; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.4s ease; 
    will-change: opacity; 
}
#blur-overlay.active { opacity: 1; pointer-events: auto; }

/* =========================================
   2. РАЗДЕЛЕНИЕ 60/40 (Левая и Правая панели для ПК)
   ========================================= */
#left-sidebar { 
    position: fixed; 
    left: 0; 
    top: 0; 
    bottom: 0; 
    width: 60vw; 
    background: transparent; 
    z-index: 900; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 40px; 
    padding-bottom: 80px; 
}
.sidebar-logo { pointer-events: auto; margin-bottom: auto; z-index: 1000; }
.sidebar-logo img { width: 70px; filter: brightness(0) invert(1); display: block; }

#right-sidebar { 
    position: fixed; 
    right: 0; 
    top: 0; 
    bottom: 0; 
    width: 40vw; 
    background: transparent; 
    z-index: 900; 
    display: flex; 
    flex-direction: column; 
    padding: clamp(12px, 1.5vw, 24px); 
    padding-bottom: clamp(30px, 4vw, 60px); 
    gap: clamp(8px, 1vw, 16px); 
    pointer-events: none; 
}

.typewriter-wrapper { 
    background: var(--bg-card); 
    border-radius: 24px; 
    padding: clamp(10px, 1.2vw, 16px) clamp(16px, 1.8vw, 24px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    font-size: clamp(0.75rem, 0.9vw, 1rem); 
    font-weight: 700; 
    color: var(--text-main); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    flex-shrink: 0; 
    min-height: clamp(40px, 4.5vw, 60px); 
    pointer-events: auto; 
}
.cursor-blink { 
    display: inline-block; 
    width: 2px; 
    height: 1.1em; 
    background-color: var(--text-main); 
    margin-left: 4px; 
    animation: blink 1s step-end infinite; 
}
@keyframes blink { from, to { opacity: 1; } 50% { opacity: 0; } }

.right-content-area { position: relative; flex-grow: 1; width: 100%; pointer-events: none; }

/* === BENTO GRID === */
.bento-grid { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: 1.5fr 1.2fr 1fr; 
    gap: clamp(8px, 1vw, 16px); 
    opacity: 0; 
    pointer-events: none; 
    transform: translateY(30px) scale(0.96); 
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
    will-change: transform, opacity; 
}
.bento-grid.active { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.bento-grid.active > * { opacity: 0; animation: panelFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.bento-grid.active > *:nth-child(1) { animation-delay: 0.05s; } 
.bento-grid.active > *:nth-child(2) { animation-delay: 0.1s; } 
.bento-grid.active > *:nth-child(3) { animation-delay: 0.15s; } 
.bento-grid.active > *:nth-child(4) { animation-delay: 0.2s; } 
.bento-grid.active > *:nth-child(5) { animation-delay: 0.25s; }

.bento-card { 
    --card-pad: clamp(12px, 2.2vw, 24px);
    background: var(--bg-card); 
    border-radius: 24px; 
    padding: var(--card-pad); 
    display: flex; 
    flex-direction: column; 
    cursor: pointer; 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background-color 0.4s ease, color 0.4s ease; 
    color: var(--text-main); 
    overflow: hidden; 
    position: relative; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    container-type: inline-size;
}
.bento-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.bento-card:active { transform: scale(0.97); transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.bento-card > * { transition: opacity 0.4s ease-in-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); position: relative; z-index: 2; }
.bento-card.hide-content > * { opacity: 0 !important; transform: scale(0.92) translateY(10px); pointer-events: none; }
.bento-card.hide-card { opacity: 0 !important; transform: scale(0.85) translateY(20px) !important; pointer-events: none; }

.bento-home { grid-area: 1 / 1 / 3 / 2; justify-content: space-between; } 
.bento-home:hover { background-color: var(--bg-inverse); color: var(--text-inverse); }
.bento-home-icon { transition: stroke 0.4s ease; }
.bento-home:hover .bento-home-icon { stroke: var(--text-inverse); }

@keyframes button-pulse {
    0% { box-shadow: 0 4px 10px rgba(0,0,0,0.02), 0 0 0 0 rgba(var(--bg-inverse-rgb), 0.2); }
    70% { box-shadow: 0 4px 10px rgba(0,0,0,0.02), 0 0 0 12px rgba(var(--bg-inverse-rgb), 0); }
    100% { box-shadow: 0 4px 10px rgba(0,0,0,0.02), 0 0 0 0 rgba(var(--bg-inverse-rgb), 0); }
}

@keyframes button-pulse-dark {
    0% { box-shadow: 0 4px 10px rgba(0,0,0,0.02), 0 0 0 0 rgba(222, 222, 222, 0.3); }
    70% { box-shadow: 0 4px 10px rgba(0,0,0,0.02), 0 0 0 12px rgba(222, 222, 222, 0); }
    100% { box-shadow: 0 4px 10px rgba(0,0,0,0.02), 0 0 0 0 rgba(222, 222, 222, 0); }
}

@keyframes organic-pulse-inverse {
    0% { box-shadow: 0 0 0 0 rgba(222, 222, 222, 0.2); }
    70% { box-shadow: 0 0 0 15px rgba(222, 222, 222, 0); }
    100% { box-shadow: 0 0 0 0 rgba(222, 222, 222, 0); }
}

@keyframes float-bottom-glow-multi {
    0% { transform: translateX(-15%) translateY(8px) scaleX(1); opacity: 0.6; filter: blur(25px) hue-rotate(0deg); }
    50% { transform: translateX(15%) translateY(-2px) scaleX(1.15); opacity: 0.9; filter: blur(20px) hue-rotate(15deg); }
    100% { transform: translateX(-15%) translateY(8px) scaleX(1); opacity: 0.6; filter: blur(25px) hue-rotate(0deg); }
}

.explicit-btn {
    display: inline-flex; align-items: center; gap: clamp(3px, 3cqw, 8px); background: var(--bg-ui-light);
    padding: clamp(4px, 2.5cqw, 8px) clamp(8px, 5cqw, 16px); border-radius: 100px;
    font-size: clamp(0.55rem, 4cqw, 0.75rem); font-weight: 800; color: var(--text-main);
    text-transform: uppercase; letter-spacing: 0.05em; margin: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    cursor: pointer; z-index: 10; white-space: nowrap; flex-shrink: 0; border: 1px solid var(--border-color-dark);
}

.bento-home .explicit-btn { animation: button-pulse 2.5s infinite cubic-bezier(0.16, 1, 0.3, 1); }
.explicit-btn svg { width: clamp(14px, 1.2vw, 18px); height: clamp(14px, 1.2vw, 18px); flex-shrink: 0; }
.explicit-btn:hover { background: var(--bg-ui); transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 15px rgba(0,0,0,0.05); }

.bento-home:hover .explicit-btn { background: var(--bg-inverse-light); color: var(--text-inverse); border-color: rgba(222, 222, 222, 0.2); animation: button-pulse-dark 2.5s infinite cubic-bezier(0.16, 1, 0.3, 1); }
.bento-home:hover .explicit-btn:hover { background: var(--bg-inverse-lighter); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }

.bento-home-badge { transition: background 0.4s ease, color 0.4s ease; padding: clamp(4px, 2.5cqw, 8px) clamp(8px, 5cqw, 16px); font-size: clamp(0.55rem, 4cqw, 0.75rem); font-weight: 800; letter-spacing: 0.05em; margin: 0; white-space: nowrap; flex-shrink: 0; background: var(--bg-ui-light); }
.bento-home:hover .bento-home-badge { background: var(--bg-inverse-light); color: var(--text-inverse); }

.bento-home-content-wrapper { position: relative; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.bento-home-main-text { transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.bento-home-quote-text { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-30%); opacity: 0; pointer-events: none; transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); font-size: clamp(0.85rem, 8cqw, 1.8rem); font-weight: 700; line-height: 1.3; color: var(--text-inverse); text-wrap: balance; }
.quote-author { display: block; margin-top: clamp(6px, 4cqw, 12px); font-size: clamp(0.6rem, 4.5cqw, 0.85rem); font-weight: 600; color: var(--text-light); letter-spacing: 0.05em; text-transform: uppercase; }

.bento-home:hover .bento-home-main-text { opacity: 0; transform: scale(0.95); }
.bento-home:hover .bento-home-quote-text { opacity: 1; transform: translateY(-50%); }

.bento-services { grid-area: 1 / 2 / 2 / 3; } 
.bento-faq      { grid-area: 2 / 2 / 3 / 3; }  
.bento-solutions { grid-area: 3 / 1 / 4 / 2; position: relative; overflow: hidden; } 
.bento-form     { grid-area: 3 / 2 / 4 / 3; } 

/* Вернули оригинальный неоновый градиент */
.bento-solutions::before, .mb-card-solutions::before {
    content: ''; position: absolute; bottom: -20px; left: -10%; width: 120%; height: 60px;
    background-image: radial-gradient(at 20% 50%, #7928CA 0%, transparent 60%), radial-gradient(at 80% 50%, #FF0080 0%, transparent 60%), radial-gradient(at 50% 10%, #00DFD8 0%, transparent 70%);
    background-blend-mode: screen; filter: blur(25px); border-radius: 100px;
    animation: float-bottom-glow-multi 6s ease-in-out infinite; pointer-events: none; z-index: 1; will-change: transform, opacity, filter;
}
.bento-solutions:hover::before { animation-duration: 3s; opacity: 1; filter: blur(18px) hue-rotate(10deg); }

.bento-form { background-color: var(--bg-inverse) !important; color: var(--text-inverse) !important; border: 1px solid rgba(222, 222, 222, 0.1); }
.bento-form .bento-huge-text, .bento-form .bento-label-bottom { color: var(--text-inverse) !important; }
.bento-form .bento-action-circle { background: var(--bg-ui-light) !important; animation: organic-pulse-inverse 2.5s infinite cubic-bezier(0.16, 1, 0.3, 1); }
.bento-form:hover .bento-action-circle { background: var(--text-inverse) !important; animation: none; }
.bento-form:hover .bento-action-circle svg { stroke: var(--bg-inverse) !important; }

.bento-header-flex { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; } 
.justify-end { justify-content: flex-end; } 

.bento-footer-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: clamp(0.5rem, 3.5cqw, 0.7rem); font-weight: 700; color: var(--text-light); text-transform: uppercase; margin-top: 16px; flex-wrap: nowrap; }
.bento-footer-tags { display: flex; gap: clamp(2px, 2.5cqw, 12px); align-items: center; white-space: nowrap; flex-shrink: 1; }

.bento-badge { padding: clamp(3px, 2cqw, 6px) clamp(6px, 4cqw, 12px); border-radius: 100px; font-size: clamp(0.55rem, 3.5cqw, 0.7rem); font-weight: 700; display: inline-flex; align-items: center; gap: clamp(3px, 2cqw, 6px); background: var(--bg-ui-light); color: var(--text-main); } 
.badge-green { background: var(--status-success-bg); color: var(--status-success-text); } 
.dot-pulse { width: 6px; height: 6px; background: var(--status-success); border-radius: 50%; animation: pulse-dot 2s infinite; }

/* Вернули зеленую пульсацию */
@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.title-swap-container { position: relative; width: 100%; display: block; }
.title-default { display: block; transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); opacity: 1; transform: translateY(0); }
.title-hover { position: absolute; top: 0; left: 0; width: 100%; transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); opacity: 0; transform: translateY(15px); pointer-events: none; text-wrap: balance;}

.bento-card:hover .title-default { opacity: 0; transform: translateY(-15px); }
.bento-card:hover .title-hover { opacity: 1; transform: translateY(0); }

.bento-huge-text { font-size: clamp(0.95rem, 9.5cqw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-transform: uppercase; word-break: break-word; hyphens: auto;} 
.bento-medium-text { font-size: clamp(0.85rem, 7.5cqw, 1.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em;} 
.bento-label-bottom { font-size: clamp(0.55rem, 4cqw, 0.75rem); font-weight: 800; text-transform: uppercase; color: var(--text-light); letter-spacing: 0.05em; margin-top: 0; }
.bento-center-content { flex-grow: 1; display: flex; align-items: center; justify-content: center; } 
.bento-abstract-shape { width: clamp(30px, 20cqw, 60px); height: clamp(30px, 20cqw, 60px); background: linear-gradient(135deg, var(--bg-inverse), var(--bg-inverse-lighter)); border-radius: clamp(8px, 5cqw, 16px) clamp(2px, 1.5cqw, 4px) clamp(8px, 5cqw, 16px) clamp(2px, 1.5cqw, 4px); transform: rotate(15deg); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); } 
.bento-card:hover .bento-abstract-shape { transform: rotate(0deg) scale(1.1); }
.bento-flex-row { display: flex; justify-content: space-between; align-items: center; width: 100%; } 

.bento-action-circle { width: clamp(24px, 15cqw, 50px); height: clamp(24px, 15cqw, 50px); background: var(--bg-ui-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); flex-shrink: 0; } 
.bento-action-circle svg { width: clamp(12px, 8cqw, 24px); height: clamp(12px, 8cqw, 24px); flex-shrink: 0; stroke: var(--text-main); }
.bento-card:hover .bento-action-circle { background: var(--bg-inverse); transform: translateX(clamp(4px, 2.5cqw, 8px)); } 
.bento-card:hover .bento-action-circle svg { stroke: var(--text-inverse); }

.bento-solutions .title-hover {
    font-size: clamp(0.75rem, 6.5cqw, 1.2rem) !important;
}
.bento-form .title-default {
    font-size: clamp(0.85rem, 8cqw, 1.8rem) !important;
}
.bento-form .title-hover {
    font-size: clamp(0.7rem, 6cqw, 1.1rem) !important;
}

.bento-form .bento-action-circle {
    position: absolute;
    top: var(--card-pad);
    right: var(--card-pad);
    z-index: 10;
}

.bento-faq-circle {
    width: clamp(24px, 15cqw, 50px);
    height: clamp(24px, 15cqw, 50px);
    background: var(--bg-ui);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    color: var(--text-main);
}
.bento-faq-circle svg {
    width: clamp(12px, 8cqw, 24px);
    height: clamp(12px, 8cqw, 24px);
    flex-shrink: 0;
    stroke: currentColor;
}
.bento-card:hover .bento-faq-circle {
    background: var(--bg-inverse);
    color: var(--text-inverse);
}

.bento-card-desc {
    font-size: clamp(0.65rem, 4.2cqw, 0.82rem);
    line-height: 1.45;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: auto;
    margin-bottom: clamp(8px, 4cqw, 14px);
    text-align: left;
    
    /* Hover fade & slide styling */
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}
.bento-card:hover .bento-card-desc {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.bento-form .bento-card-desc {
    color: var(--text-inverse-muted) !important;
}



.label-swap-container {
    position: relative;
    display: block;
    width: 100%;
    height: 1.2em;
    overflow: hidden;
}
.label-default {
    display: block;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: translateY(0);
}
.label-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    white-space: nowrap;
}
.bento-card:hover .label-default {
    opacity: 0;
    transform: translateY(-12px);
}
.bento-card:hover .label-hover {
    opacity: 1;
    transform: translateY(0);
}

@container (max-width: 230px) {
    .explicit-btn {
        padding: 4px 10px !important;
    }
    .explicit-btn > span {
        display: none !important;
    }
    .bento-footer-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }
    .bento-footer-tags {
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
    .bento-home-badge {
        margin-top: 2px !important;
    }
}


/* === АНИМИРОВАННЫЕ ПАНЕЛИ КОНТЕНТА === */
.panel-view { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg-card); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.1); opacity: 0; pointer-events: none; clip-path: inset(var(--inset-top, 50%) var(--inset-right, 50%) var(--inset-bottom, 50%) var(--inset-left, 50%) round 24px); transition: clip-path 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-in-out; z-index: 10; }
.panel-view.active { opacity: 1; pointer-events: auto; clip-path: inset(-50px -50px -50px -50px round 24px); }
.panel-view.active .panel-inner-scroll > * { opacity: 0; animation: panelFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.panel-view.active .panel-inner-scroll > *:nth-child(1) { animation-delay: 0.1s; } 
.panel-view.active .panel-inner-scroll > *:nth-child(2) { animation-delay: 0.15s; } 
.panel-view.active .panel-inner-scroll > *:nth-child(3) { animation-delay: 0.2s; } 
.panel-view.active .panel-inner-scroll > *:nth-child(4) { animation-delay: 0.25s; } 
.panel-view.active .panel-inner-scroll > *:nth-child(5) { animation-delay: 0.3s; }
@keyframes panelFadeInUp { 0% { opacity: 0; transform: translateY(30px) scale(0.96); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

.panel-header-top { display: flex; justify-content: flex-start; margin-bottom: 24px; }
.panel-back-btn { background: var(--bg-ui); border: none; padding: 10px 16px; border-radius: 100px; font-weight: 700; cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); font-size: 0.85rem; color: var(--text-main); display: inline-flex; align-items: center; gap: 8px;}
.panel-back-btn:hover { background: var(--bg-ui-hover); transform: translateX(-6px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.panel-inner-scroll { 
    flex-grow: 1; 
    overflow-y: auto; 
    overflow-x: hidden;
    padding: 12px 24px 40px 24px; 
    margin: -12px -24px -24px -24px; 
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}
.panel-inner-scroll::-webkit-scrollbar { width: 4px; } 
.panel-inner-scroll::-webkit-scrollbar-thumb { background: var(--border-color-dark); border-radius: 4px; }

.panel-header-title { font-size: 2rem; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; letter-spacing: -0.02em; color: var(--text-main); }
.panel-header-sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; font-weight: 500; line-height: 1.4;}

/* ДИЗАЙН: Форма */
.form-services-title { font-size: 0.95rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; text-transform: uppercase; }
.form-services-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.service-pill-label { cursor: pointer; user-select: none; } 
.service-pill-label input { display: none; }
.service-pill-span { display: inline-block; padding: 12px 20px; background: var(--bg-ui); border-radius: 12px; color: var(--text-muted); font-size: 0.85rem; font-weight: 700; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); border: 2px solid transparent; }
.service-pill-label input:checked + .service-pill-span { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--accent-color); box-shadow: 0 8px 20px rgba(242, 86, 35, 0.15); transform: translateY(-3px) scale(1.02); }
.service-pill-label:hover .service-pill-span { background: var(--bg-ui-hover); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-input, .contact-textarea { width: 100%; padding: 16px 20px; border-radius: 16px; border: 2px solid transparent; background: var(--bg-ui); font-family: inherit; font-size: 1rem; font-weight: 500; color: var(--text-main); outline: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.contact-input::placeholder, .contact-textarea::placeholder { color: var(--text-light); font-weight: 400; }
.contact-input:focus, .contact-textarea:focus { background: var(--bg-card); border-color: var(--accent-color); box-shadow: 0 10px 25px rgba(0,0,0,0.06); transform: translateY(-2px); }
.contact-textarea { resize: none; height: 120px; }

.consent-wrapper { display: flex; align-items: flex-start; gap: 12px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; font-weight: 500; margin-top: 20px; }
.consent-wrapper input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 2px solid var(--border-color-dark); border-radius: 6px; margin-top: 1px; flex-shrink: 0; cursor: pointer; display: grid; place-content: center; background: var(--bg-card); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.consent-wrapper input[type="checkbox"]::before { content: ""; width: 10px; height: 10px; transform: scale(0); transition: 0.2s transform cubic-bezier(0.16, 1, 0.3, 1); box-shadow: inset 1em 1em var(--accent-color); transform-origin: center; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.consent-wrapper input[type="checkbox"]:checked { border-color: var(--accent-color); } 
.consent-wrapper input[type="checkbox"]:checked::before { transform: scale(1); }
.consent-wrapper a { color: var(--text-main); text-decoration: underline; cursor: pointer; font-weight: 700; }

.contact-submit-btn { background: var(--bg-inverse); color: var(--text-inverse); border: none; border-radius: 16px; height: 60px; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 32px; }
.contact-submit-btn:hover { background: var(--bg-inverse-hover); transform: translateY(-4px) scale(1.01); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

/* =========================================
   ЯНДЕКС ID АВТОЗАПОЛНЕНИЕ (BRAND IDENTITY)
   ========================================= */
.yandex-autofill-container {
    margin-bottom: 24px;
    width: 100%;
}
.yandex-autofill-btn {
    --id-logo-yandex-color: #FFFFFF;
    --id-logo-brand-color: #FFFFFF;
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 54px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    cursor: pointer;
    font-family: 'Geologica', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 24px;
}
.yandex-autofill-btn:hover {
    background: #111111;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.yandex-autofill-btn:active {
    transform: translateY(0) scale(0.98);
}
.yandex-logo-svg {
    flex-shrink: 0;
    display: block;
}
.yandex-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}
.yandex-action-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
}

.contact-input.autofilled-glow {
    animation: autofillPulseGlow 1.5s ease;
}
@keyframes autofillPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
        border-color: #22c55e;
        background: rgba(34, 197, 94, 0.05);
    }
    50% {
        box-shadow: 0 0 15px 5px rgba(34, 197, 94, 0.2);
        border-color: #22c55e;
        background: rgba(34, 197, 94, 0.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        border-color: transparent;
        background: var(--bg-ui);
    }
}

/* ДИЗАЙН: Контакты */
.socials-row { display: flex; gap: 16px; margin-bottom: 32px; }
.social-btn { width: 64px; height: 64px; background: var(--bg-ui); border-radius: 20px; display: flex; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); color: var(--text-main); }
.social-btn img { width: 28px; height: 28px; transition: filter 0.3s; }
.social-btn:hover { background: var(--accent-brand); transform: translateY(-6px) scale(1.05); box-shadow: 0 20px 30px rgba(242, 86, 35, 0.4); color: var(--text-inverse); }
.social-btn:hover img { filter: brightness(0) invert(1); }
.contacts-list { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--bg-ui); border-radius: 20px; color: var(--text-main); text-decoration: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.contact-card:hover { background: var(--bg-card); box-shadow: 0 20px 40px rgba(0,0,0,0.08); transform: translateY(-4px) scale(1.01); }
.contact-icon-box { width: 48px; height: 48px; background: var(--bg-card); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--text-main); box-shadow: 0 4px 10px rgba(0,0,0,0.02); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);}
.contact-card:hover .contact-icon-box { transform: scale(1.1) rotate(-5deg); }
.contact-card-text { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-value { font-size: 1.1rem; font-weight: 600; }

/* ДИЗАЙН: Услуги / Аккордеон (FAQ) */
.static-service-row { display: flex; flex-direction: column; padding: 24px; background: var(--bg-ui); border-radius: 24px; margin-bottom: 16px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; }
.static-service-row:hover { background: var(--bg-card); transform: translateY(-4px) scale(1.01); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

.static-service-header { display: flex; gap: 20px; align-items: center; width: 100%; }
.static-service-icon { width: 56px; height: 56px; min-width: 56px; min-height: 56px; background: var(--bg-inverse); color: var(--text-inverse); border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 8px 15px rgba(0,0,0,0.15); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.static-service-row:hover .static-service-icon { transform: scale(1.05) rotate(5deg); }

.static-service-info { flex-grow: 1; }
.service-title { font-size: 1.25rem; font-weight: 800; line-height: 1.2; margin-bottom: 8px; color: var(--text-main); }
.service-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; font-weight: 500;}

.service-chevron { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-ui-hover); border-radius: 50%; color: var(--text-main); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s, color 0.4s; }
.static-service-row.expanded .service-chevron { transform: rotate(180deg); background: var(--bg-inverse); color: var(--text-inverse); }

.static-service-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.static-service-row.expanded .static-service-body { grid-template-rows: 1fr; }
.static-service-body-inner { overflow: hidden; }

.service-extended-text { padding-top: 16px; margin-top: 16px; border-top: 1px solid rgba(0,0,0,0.06); font-size: 0.95rem; color: var(--text-muted); }

/* === СЛОЖНЫЙ КОНСТРУКТОР ПРОЕКТА === */
.builder-steps-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-ui);
    padding: 6px;
    border-radius: 100px;
    user-select: none;
}
.step-nav-item {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 10px 4px;
    border-radius: 100px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.step-nav-item.active {
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.step-nav-item.completed {
    color: var(--accent-brand);
}

.builder-step { display: none; }
.builder-step.active { display: block; animation: panelFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.builder-group-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    margin-top: 16px;
}

.builder-section { margin-bottom: 32px; }
.builder-section-title { font-size: 1.1rem; font-weight: 800; color: var(--text-main); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.02em; border-bottom: 2px solid var(--bg-ui); padding-bottom: 8px;}
.builder-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.builder-column { display: contents; }

@media (max-width: 1200px) { 
    .builder-columns { grid-template-columns: 1fr; } 
    .b-card-header { min-height: auto; }
}

.builder-item { cursor: pointer; display: block; position: relative; height: 100%; flex-shrink: 0; }
.builder-item input { display: none; }

.builder-content { 
    background: #ffffff; 
    border: 2px solid #E6E6EB; 
    border-radius: 24px; 
    padding: 0; 
    height: 100%; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    display: flex; 
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

/* === TOP CONTAINER (HEADER) === */
.b-card-header {
    background: #F3F3F5;
    padding: 24px 24px 28px 24px;
    border-bottom: 1px solid #E6E6EB;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    min-height: 150px;
}



.b-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    width: 100%;
}

.b-card-tag {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.05);
    padding: 3px 10px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.b-card-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-main);
}

.b-header { 
    font-size: 1.15rem; 
    font-weight: 800; 
    color: #171717; 
    margin: 0; 
    line-height: 1.2;
    transition: color 0.3s ease;
}

.b-desc { 
    font-size: 0.8rem; 
    color: #5F5F6E; 
    line-height: 1.45; 
    font-weight: 500;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

/* === NEW PRICE & BUTTON BOX === */
.b-price-btn-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F3F3F5;
}

.b-card-price {
    font-size: 1.8rem;
    font-weight: 850;
    color: #171717;
    letter-spacing: -0.02em;
    font-family: 'Geologica', sans-serif;
    line-height: 1;
}

/* === SELECTION PILL BUTTON === */
.b-select-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    background: #EAEAEF;
    color: #171717;
    border: none;
}

.b-select-btn:hover {
    background: #DFDFE5;
}

.b-select-btn::after {
    content: "Добавить в проект";
}

.radio-type .b-select-btn::after {
    content: "Добавить в проект";
}

.check-type .b-select-btn::after {
    content: "Добавить в проект";
}

/* === BOTTOM CONTAINER (FEATURES) === */
.b-card-features {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    flex-grow: 1;
    border-radius: 20px 20px 0 0;
    margin-top: -16px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.02);
}

.b-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: #3A3A4A;
    font-weight: 500;
    line-height: 1.4;
}

.b-feature-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: #171717;
    stroke-width: 2.5;
    fill: none;
    margin-top: 2px;
}

/* === HOVER & ACTIVE STATES === */
.builder-item:hover .builder-content { 
    border-color: rgba(242, 86, 35, 0.4); 
    transform: translateY(-3px); 
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.builder-item:hover .b-select-btn {
    background: #DFDFE5;
}

/* Selected state */
.builder-item input:checked + .builder-content { 
    background: #ffffff; 
    border-color: var(--accent-brand); 
    box-shadow: 0 20px 40px rgba(242, 86, 35, 0.18); 
}

/* Glowing Dark Mesh Gradient on select */
.builder-item input:checked + .builder-content .b-card-header {
    background-image: 
        radial-gradient(at 0% 0%, rgba(242, 86, 35, 0.22) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.18) 0px, transparent 50%),
        linear-gradient(180deg, #1A1B23 0%, #111218 100%);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.builder-item input:checked + .builder-content .b-header { 
    color: #ffffff; 
}

.builder-item input:checked + .builder-content .b-desc {
    color: rgba(255, 255, 255, 0.7);
}

.builder-item input:checked + .builder-content .b-card-tag {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.builder-item input:checked + .builder-content .b-select-btn {
    background: #171717;
    color: #ffffff;
    border-color: #171717;
}

.radio-type.builder-item input:checked + .builder-content .b-select-btn::after {
    content: "В проекте ⚡️";
}

.check-type.builder-item input:checked + .builder-content .b-select-btn::after {
    content: "В проекте ⚡️";
}

/* === STEPPER CONTROL === */
.b-counter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    width: 100%;
}
.stepper-control {
    display: flex;
    align-items: center;
    background: var(--bg-ui-light);
    border: 1px solid var(--border-color-dark);
    border-radius: 100px;
    padding: 2px;
    gap: 12px;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.3s;
}
.builder-item input:checked + .builder-content .stepper-control {
    background: var(--bg-card);
    border-color: rgba(242, 86, 35, 0.3);
}
.step-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.step-btn:hover {
    background: var(--bg-inverse);
    color: var(--text-inverse);
}
.step-btn:active {
    transform: scale(0.9);
}
.step-value {
    font-size: 0.85rem;
    font-weight: 800;
    min-width: 16px;
    text-align: center;
    color: var(--text-main);
}

.b-detailed-name {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}
.b-detailed-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.b-detailed-badge.base {
    background: var(--accent-brand);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-right: 8px;
    display: inline-block;
    flex-shrink: 0;
    line-height: 1.4;
}
.b-detailed-bullet {
    width: 6px;
    height: 6px;
    background: var(--accent-brand);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.b-detailed-dots {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 8px;
    border-bottom: 2px dotted rgba(0, 0, 0, 0.12);
    margin: 0 8px;
    position: relative;
    top: 3px;
    transition: border-color 0.25s ease;
}
.builder-total-bar { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 16px 24px; 
    background: rgba(245, 245, 247, 0.85); 
    backdrop-filter: blur(24px); 
    -webkit-backdrop-filter: blur(24px); 
    border-top: 1px solid rgba(0, 0, 0, 0.08); 
    display: flex; 
    flex-direction: column; 
    gap: 12px;
    border-radius: 0 0 24px 24px; 
    z-index: 20; 
    align-items: stretch;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.builder-receipt-container {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 6px 16px 10px 16px;
    transition: all 0.3s ease;
}
.builder-receipt-container:hover {
    opacity: 0.95;
}
.b-receipt-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}
.b-receipt-tags {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
}
.b-receipt-tags::-webkit-scrollbar { display: none; }

/* === toggle button & dropdown list === */
.b-receipt-toggle-btn {
    margin-left: auto;
    margin-right: 6px;
    background: var(--bg-inverse);
    border: none;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-inverse);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    line-height: 1;
}
.b-receipt-toggle-btn:hover {
    background: var(--accent-brand);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 86, 35, 0.2);
}
.b-receipt-toggle-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    stroke: currentColor;
    flex-shrink: 0;
}
.builder-detailed-receipt {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.builder-total-bar.expanded {
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.08);
}
.builder-total-bar.expanded .builder-detailed-receipt {
    max-height: 280px;
    padding: 16px 0 20px 0;
    overflow-y: auto;
}
.builder-total-bar.expanded .b-receipt-toggle-icon {
    transform: rotate(180deg);
}
.b-detailed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.b-detailed-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.builder-total-bar.expanded .b-detailed-item {
    animation: fadeInDetailedItem 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.builder-total-bar.expanded .b-detailed-item:nth-child(1) { animation-delay: 0.04s; }
.builder-total-bar.expanded .b-detailed-item:nth-child(2) { animation-delay: 0.08s; }
.builder-total-bar.expanded .b-detailed-item:nth-child(3) { animation-delay: 0.12s; }
.builder-total-bar.expanded .b-detailed-item:nth-child(4) { animation-delay: 0.16s; }
.builder-total-bar.expanded .b-detailed-item:nth-child(5) { animation-delay: 0.2s; }
.builder-total-bar.expanded .b-detailed-item:nth-child(n+6) { animation-delay: 0.24s; }

@keyframes fadeInDetailedItem {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.b-detailed-item.base-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}
.b-detailed-item.base-item .b-detailed-text {
    font-weight: 700;
    color: var(--text-main);
}

.b-detailed-price {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-main);
    font-family: 'Geologica', monospace;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-detailed-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-detailed-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-right: 6px;
    font-size: 0.55rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
    opacity: 0.6;
    vertical-align: middle;
}
.b-detailed-item.expanded .b-detailed-caret {
    transform: rotate(90deg);
    color: var(--accent-brand);
    opacity: 1;
}

.b-detailed-info {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--text-muted);
    font-weight: 500;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin-top 0.35s ease;
    text-transform: none;
    letter-spacing: normal;
}
.b-detailed-item.expanded .b-detailed-info {
    max-height: 120px;
    opacity: 1;
    margin-top: 8px;
    padding: 0 4px;
}
.builder-item input:checked + .builder-content .b-detailed-info {
    color: rgba(255, 255, 255, 0.6);
}

/* Hover effects */
.b-detailed-item:hover {
    color: var(--text-main);
}
.b-detailed-item:not(.base-item):hover .b-detailed-main {
    transform: translateX(4px);
}
.b-detailed-item:hover .b-detailed-text {
    color: var(--text-main);
}
.b-detailed-item:hover .b-detailed-dots {
    border-bottom-color: rgba(242, 86, 35, 0.4);
}
.b-detailed-item:hover .b-detailed-price {
    color: var(--accent-brand);
    transform: scale(1.03);
}
.b-detailed-item:hover .b-detailed-bullet {
    transform: scale(1.3);
}

.receipt-tag {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border-color-dark);
    animation: tagPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}
.receipt-tag:hover {
    background: #fff;
    border-color: var(--accent-brand);
    color: var(--accent-brand);
    transform: scale(1.03);
}
@keyframes tagPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.recommended-badge {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-start;
    margin-top: 6px;
    margin-bottom: 2px;
    font-size: 0.62rem;
    font-weight: 800;
    background: #FFF0EB;
    color: var(--accent-brand);
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: none;
    z-index: 5;
    white-space: nowrap;
    width: fit-content;
}
.builder-item.smart-active .recommended-badge {
    display: none !important;
}
@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242, 86, 35, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(242, 86, 35, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242, 86, 35, 0); }
}

/* --- СТИЛИ УМНЫХ РЕКОМЕНДАЦИЙ --- */
.b-recommend-reason {
    font-size: 0.78rem;
    font-weight: 600;
    color: #F25623;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #FFF5F2;
    border: 1px solid rgba(242, 86, 35, 0.12);
    line-height: 1.4;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
    text-transform: none;
    flex-shrink: 0;
}
.builder-item.smart-active .b-recommend-reason {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.builder-item.smart-active .builder-content {
    border-color: var(--accent-brand);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(242, 86, 35, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.builder-item.smart-active:hover .builder-content {
    border-color: var(--accent-brand);
    box-shadow: 0 15px 35px rgba(242, 86, 35, 0.12);
    transform: translateY(-2px);
}
.builder-item.smart-active .b-card-features::before {
    content: "Советуем добавить в проект";
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    height: 22px;
    padding: 0 14px;
    background: var(--accent-brand);
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(242, 86, 35, 0.18);
    white-space: nowrap;
    transition: all 0.3s ease;
}
.builder-item.smart-active input:checked + .builder-content .b-card-features::before {
    content: "Отличный выбор";
}

/* --- СТИЛИ ПОДРОБНОГО ОПИСАНИЯ КАРТОЧЕК --- */
.b-detailed-desc-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding-top: 0;
}
.b-more-btn {
    font-size: 0.65rem;
    font-weight: 850;
    color: #171717;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 14px;
    border-radius: 100px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 110px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-select: none;
    border: 1px solid transparent;
}
.b-more-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}
.b-more-btn:active {
    transform: scale(0.95);
}
.builder-item input:checked + .builder-content .b-more-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}
.builder-item input:checked + .builder-content .b-more-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}
.b-detailed-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin 0.4s ease;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #7A7A8A;
    font-weight: 500;
}
.b-detailed-desc.active {
    max-height: 150px;
    opacity: 1;
    margin-top: 0;
}
.builder-item input:checked + .builder-content .b-detailed-desc {
    color: rgba(255, 255, 255, 0.6);
}

/* Десктопная конфигурация */
.builder-bar-bottom { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.b-total-stats { display: flex; align-items: center; gap: 20px; }
.b-stat { display: flex; flex-direction: column; }
.b-stat.divider { width: 2px; height: 30px; background: var(--bg-ui); }
.b-label { font-size: 0.75rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; }
.b-val { font-size: 1.4rem; font-weight: 800; color: var(--text-main); line-height: 1.2; }
.time-val { color: var(--accent-brand); }

/* =========================================
   3. МОБИЛЬНЫЙ КОНТЕНТ (Полноэкранные Окна)
   ========================================= */
#mobile-content-view { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100dvh; 
    z-index: 10000; 
    display: none; 
    flex-direction: column; 
    overflow: hidden; 
    pointer-events: none; 
    transform: translateY(30px); 
    opacity: 0; 
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
    background: var(--bg-card);
}
#mobile-content-view.active { display: flex; pointer-events: auto; transform: translateY(0); opacity: 1; }
.mobile-header { 
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
    padding-top: max(40px, calc(env(safe-area-inset-top) + 20px)); 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    min-height: 80px; 
    position: relative; 
    z-index: 10; 
}
.btn-close-menu { 
    position: absolute; 
    right: 20px; 
    top: calc(50% + (env(safe-area-inset-top) / 2) + 10px); 
    transform: translateY(-50%); 
    width: 40px; 
    height: 40px; 
    background: var(--bg-ui); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    color: var(--text-main); 
    transition: background 0.3s; 
}
@supports not (padding-top: env(safe-area-inset-top)) { .btn-close-menu { top: 50%; } }
.mobile-view-title { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; text-align: center; }

.mobile-body-scroll { 
    flex-grow: 1; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
    padding: 20px; 
    padding-bottom: 40px; 
} 

#mobile-bottom-bar {
    display: none;
    flex-shrink: 0;
    width: 100%;
    background: rgba(var(--bg-inverse-rgb), 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(222, 222, 222, 0.1);
    z-index: 99;
    box-sizing: border-box;
}

/* =========================================
   4. НОВЫЙ ДИЗАЙН ИНФО-БЛОКОВ ВОКРУГ КАРТОЧКИ (ПК)
   ========================================= */
.desktop-info-block { 
    position: absolute; 
    z-index: 1000; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1); 
}
.desktop-info-block.visible { opacity: 1; pointer-events: auto; }

#desktop-info-left { right: calc(50% + 250px); top: 45%; transform: translateY(-50%) translateX(-40px); text-align: right; max-width: 320px; }
#desktop-info-left.visible { transform: translateY(-50%) translateX(0); }

#desktop-info-right { left: calc(50% + 250px); top: 45%; transform: translateY(-50%) translateX(40px); text-align: left; max-width: 280px; }
#desktop-info-right.visible { transform: translateY(-50%) translateX(0); }

#desktop-info-bottom { top: calc(45% + 170px); left: 50%; transform: translateX(-50%) translateY(40px); display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
#desktop-info-bottom.visible { transform: translateX(-50%) translateY(0); }

.info-title { font-size: clamp(1.2rem, 1.6vw, 1.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--text-inverse); text-shadow: 0 3px 12px rgba(0,0,0,0.6); margin-bottom: 8px; text-transform: uppercase; word-break: break-word; overflow-wrap: break-word; hyphens: auto; }
.info-subtitle { font-size: clamp(0.85rem, 0.9vw, 0.95rem); color: var(--bg-ui); text-shadow: 0 2px 10px rgba(0,0,0,0.7); font-weight: 700; line-height: 1.3; }
.info-desc { font-size: clamp(0.8rem, 0.85vw, 0.9rem); color: var(--bg-ui-light); text-shadow: 0 2px 10px rgba(0,0,0,0.7); line-height: 1.5; font-weight: 500; }

.info-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.info-tag { font-size: 0.7rem; background: var(--bg-card); padding: 6px 14px; border-radius: 100px; font-weight: 700; text-transform: uppercase; color: var(--text-main); letter-spacing: 0.05em; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }

.info-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--bg-inverse); color: var(--text-inverse); height: 46px; padding: 0 28px; border-radius: 100px; font-size: 0.9rem; font-weight: 800; text-decoration: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; border: none; text-transform: uppercase; letter-spacing: 0.02em; box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.info-btn:hover { background: var(--bg-inverse-hover); transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 30px rgba(0,0,0,0.4); color: var(--text-inverse); }

@media (max-width: 768px) { .desktop-info-block { display: none !important; } }

/* =========================================
   10. СТАТИЧНЫЙ МОБИЛЬНЫЙ ДИЗАЙН (БАЗА)
   ========================================= */
.mobile-static-layout { display: none; }

/* =========================================
   5. ФИЗИЧЕСКИЕ КАРТОЧКИ И НОВЫЙ CARD STACK (ПК)
   ========================================= */
#desktop-card-stack { 
    position: absolute; 
    top: 45%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 440px; 
    height: 280px; 
    z-index: 100; 
    display: none; 
    pointer-events: auto; 
}
@media (min-width: 769px) { #desktop-card-stack { display: block; } }

.stack-card { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--bg-card); 
    border-radius: 24px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); 
    transform-origin: center top; 
    overflow: hidden; 
    cursor: pointer; 
    border: 1px solid rgba(0,0,0,0.05); 
    will-change: transform, opacity; 
    -webkit-backface-visibility: hidden; 
    backface-visibility: hidden; 
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.stack-card:hover { filter: brightness(1.05); }

.card-inner-text { padding: 24px; text-align: center; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.card-mini-title { font-weight: 800; font-size: 1.4rem; line-height: 1.1; margin-bottom: 4px; text-transform: uppercase; color: var(--text-main); }
.card-mini-sub { font-size: 0.9rem; color: var(--text-main); font-weight: 600; }
.card-dark { background-color: var(--bg-inverse); color: var(--text-inverse); } 
.card-dark .card-mini-title, .card-dark .card-mini-sub { color: var(--text-inverse); }

@media (min-width: 769px) and (max-width: 1440px), (min-width: 769px) and (max-height: 800px) {
    #desktop-card-stack { width: 320px; height: 200px; }
    #desktop-info-left { right: calc(50% + 180px); max-width: 180px; transform: translateY(-50%) translateX(-25px); }
    #desktop-info-left.visible { transform: translateY(-50%) translateX(0); }
    #desktop-info-right { left: calc(50% + 180px); max-width: 180px; transform: translateY(-50%) translateX(25px); }
    #desktop-info-right.visible { transform: translateY(-50%) translateX(0); }
    #desktop-info-bottom { top: calc(45% + 130px); }
    .info-title { font-size: clamp(1rem, 1.3vw, 1.3rem); }
    .info-subtitle { font-size: 0.8rem; line-height: 1.3; }
    .info-desc { font-size: 0.75rem; line-height: 1.4; }
    .info-tag { font-size: 0.65rem; padding: 4px 10px; }
    .info-btn { height: 40px; padding: 0 20px; font-size: 0.8rem; }
    #left-sidebar { padding: 20px; }
    .sidebar-logo img { width: 50px; }

    /* Bento grid adjustments for small/scaled viewports */
    #right-sidebar {
        padding: clamp(10px, 1.5vw, 16px) !important;
        padding-bottom: clamp(20px, 3vw, 40px) !important;
        gap: clamp(8px, 1vw, 12px) !important;
    }
    .typewriter-wrapper {
        min-height: clamp(36px, 4vw, 48px) !important;
        padding: 8px 16px !important;
        font-size: clamp(0.7rem, 0.8vw, 0.85rem) !important;
    }
    .bento-grid {
        gap: clamp(8px, 1vw, 12px) !important;
    }
    .bento-card {
        --card-pad: clamp(10px, 1.6vw, 16px) !important;
        padding: var(--card-pad) !important;
    }
    .bento-huge-text {
        font-size: clamp(0.9rem, 7.5cqw, 1.35rem) !important;
    }
    .bento-medium-text {
        font-size: clamp(0.75rem, 6.2cqw, 1.1rem) !important;
    }
    .bento-card-desc {
        font-size: clamp(0.6rem, 3.8cqw, 0.75rem) !important;
        margin-top: auto !important;
        margin-bottom: clamp(6px, 3cqw, 10px) !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    .bento-label-bottom {
        font-size: clamp(0.5rem, 3.5cqw, 0.65rem) !important;
    }
    .bento-solutions .title-hover {
        font-size: clamp(0.65rem, 5.5cqw, 0.95rem) !important;
    }
    .bento-form .title-default {
        font-size: clamp(0.8rem, 7.5cqw, 1.3rem) !important;
    }
    .bento-form .title-hover {
        font-size: clamp(0.65rem, 5.5cqw, 0.95rem) !important;
    }
    .bento-action-circle {
        width: clamp(20px, 12cqw, 40px) !important;
        height: clamp(20px, 12cqw, 40px) !important;
    }
    .bento-action-circle svg {
        width: clamp(10px, 6cqw, 18px) !important;
        height: clamp(10px, 6cqw, 18px) !important;
    }
    .builder-steps-nav {
        padding: 4px !important;
        margin-bottom: 16px !important;
        gap: 4px !important;
    }
    .step-nav-item {
        font-size: clamp(0.5rem, 2.8vw, 0.68rem) !important;
        padding: 6px 2px !important;
        white-space: nowrap !important;
    }
    .panel-header-sub {
        text-align: justify !important;
        font-size: clamp(0.8rem, 4.2vw, 0.95rem) !important;
    }
}

@media (min-width: 769px) and (max-height: 680px) {
    .bento-card-desc {
        display: none !important;
    }
    .bento-huge-text {
        font-size: clamp(0.85rem, 7cqw, 1.25rem) !important;
    }
    .bento-medium-text {
        font-size: clamp(0.7rem, 5.8cqw, 1.05rem) !important;
    }
}

@media (min-width: 2000px) and (min-height: 1100px) {
    #desktop-card-stack { width: 600px; height: 380px; }
    #desktop-info-left { right: calc(50% + 350px); max-width: 400px; transform: translateY(-50%) translateX(-50px); }
    #desktop-info-left.visible { transform: translateY(-50%) translateX(0); }
    #desktop-info-right { left: calc(50% + 350px); max-width: 350px; transform: translateY(-50%) translateX(50px); }
    #desktop-info-right.visible { transform: translateY(-50%) translateX(0); }
    #desktop-info-bottom { top: calc(45% + 240px); }
    .info-title { font-size: clamp(2rem, 2.5vw, 2.8rem); }
    .info-subtitle { font-size: 1.2rem; }
    .info-desc { font-size: 1.1rem; line-height: 1.6; }
    .info-tag { font-size: 0.85rem; padding: 8px 18px; }
    .info-btn { height: 60px; padding: 0 40px; font-size: 1.1rem; }
    #left-sidebar { padding: 60px; }
    .sidebar-logo img { width: 90px; }
}

/* =========================================
   6. CASE VIEWER (ПК: 60% слева)
   ========================================= */
#case-viewer { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 60vw; 
    height: 100%; 
    background: var(--bg-card); 
    z-index: 11000; 
    display: flex; 
    flex-direction: column; 
    transform: translateY(100%); 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: 10px 0 40px rgba(0,0,0,0.08); 
    content-visibility: auto; 
}
#case-viewer.active { transform: translateY(0); }
.viewer-close { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    border: none; 
    background: var(--bg-ui); 
    color: var(--text-main); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 10; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}
.viewer-close:hover { background: var(--bg-inverse); color: var(--text-inverse); transform: rotate(90deg) scale(1.1); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.viewer-close:hover svg { stroke: var(--text-inverse); }
.viewer-scroll-area { flex-grow: 1; overflow-y: auto; padding: 0 0 80px 0; scroll-behavior: smooth; }
.case-hero { padding: 100px 20px 60px 20px; max-width: 800px; margin: 0 auto; text-align: center; }
.case-hero h1 { font-size: clamp(1.5rem, 8vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; color: var(--text-main); }
.case-subtitle { font-size: clamp(1.1rem, 5vw, 1.5rem); color: var(--text-muted); margin-bottom: 24px; font-weight: 500; line-height: 1.4; }
.viewer-content { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.viewer-content h2 { font-size: clamp(1.3rem, 6vw, 2rem); font-weight: 700; margin: 48px 0 24px 0; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-main); }
.case-block-subtitle { font-size: clamp(1.1rem, 5vw, 1.5rem); font-weight: 600; margin-top: 40px; margin-bottom: 16px; color: var(--text-main); line-height: 1.3; }
.viewer-content p { font-size: 1.125rem; margin-bottom: 24px; max-width: 70ch; color: var(--text-main); }
.viewer-content ul, .viewer-content ol { margin-bottom: 24px; padding-left: 20px; font-size: 1.125rem; color: var(--text-main); }
.viewer-content li { margin-bottom: 8px; padding-left: 4px; }
.viewer-content ul { list-style-type: disc; } 
.viewer-content ol { list-style-type: decimal; }
.case-tags { color: var(--text-muted); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.case-block-img { margin: 32px 0; border-radius: 12px; overflow: hidden; border: none; box-shadow: none;}
.case-block-img img { width: 100%; height: auto; display: block; }
.case-block-video { width: 100%; height: auto; border-radius: 12px; margin: 32px 0; display: block; background: #000; border: none; box-shadow: none;}
.viewer-footer { max-width: 800px; margin: 60px auto 0 auto; padding: 40px 20px; border-top: 1px solid var(--border-color-dark); display: flex; flex-direction: column; align-items: center; }
.viewer-next-label { font-size: 0.9rem; color: var(--text-light); margin-bottom: 8px; font-weight: 700; }
.btn-next-case { font-size: 1.5rem; font-weight: 800; border: none; background: transparent; cursor: pointer; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); color: var(--text-main); }
.btn-next-case:hover { opacity: 0.7; transform: translateX(8px) scale(1.02); }

/* Карусель */
.case-carousel-wrapper { width: calc(100% + 40px); position: relative; left: -20px; margin-top: 40px; margin-bottom: 40px; overflow: hidden; border-radius: 0; min-height: 200px; user-select: none; }
.case-carousel-wrapper::before, .case-carousel-wrapper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 15%; z-index: 10; pointer-events: none; }
.case-carousel-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-card) 0%, transparent 100%); } 
.case-carousel-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-card) 0%, transparent 100%); }
.carousel-click-zone { position: absolute; top: 0; bottom: 0; width: 15%; z-index: 20; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.carousel-click-zone.prev { left: 0; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E") 16 16, w-resize; }
.carousel-click-zone.next { right: 0; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") 16 16, e-resize; }
@media (hover: none) and (pointer: coarse) { .carousel-click-zone { display: none; } }
.case-carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; cursor: grab; align-items: center; min-width: 100%; height: 100%; }
.case-carousel-track:active { cursor: grabbing; }
.case-carousel-slide { flex-shrink: 0; width: 80%; max-width: 600px; padding: 0 10px; box-sizing: border-box; display: flex; justify-content: center; align-items: center; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease; transform: scale(0.9); opacity: 0.4; }
.case-carousel-slide.active { transform: scale(1); opacity: 1; z-index: 5; animation: none; }
.case-carousel-slide img { width: 100%; height: auto; border-radius: 12px; display: block; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.carousel-indicators-bar { display: none; justify-content: center; gap: 6px; margin-top: 16px; padding-bottom: 10px; }
.carousel-dot { width: 24px; height: 6px; background: var(--border-color-dark); border: none; border-radius: 4px; transition: background-color 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.carousel-dot.active { background: var(--accent-color); transform: scaleX(1.2); }

/* =========================================
   7. ЛИГАЛ / ЮРИДИЧЕСКАЯ ИНФА
   ========================================= */
.legal-entity-info { 
    position: fixed; 
    bottom: 80px; 
    left: 24px; 
    font-size: 0.75rem; 
    color: var(--text-inverse); 
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    z-index: 20; 
    line-height: 1.4; 
    opacity: 0.9; 
    pointer-events: none; 
    transition: opacity 0.3s; 
}

#orientation-blocker { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; background-color: var(--bg-inverse); color: var(--text-inverse); z-index: 99999; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.orientation-content svg { margin-bottom: 24px; animation: rotate-phone 2s ease-in-out infinite; }
.orientation-content p { font-size: 1.2rem; font-weight: 600; line-height: 1.4; color: var(--text-inverse); }
@keyframes rotate-phone { 0% { transform: rotate(-90deg); } 50% { transform: rotate(0deg); } 100% { transform: rotate(-90deg); } }

@media screen and (max-width: 950px) and (orientation: landscape) and (max-height: 500px) {
    #orientation-blocker { display: flex; }
    #case-viewer, .mobile-bg-layer, #blur-overlay, #mobile-content-view, #left-sidebar, #right-sidebar { display: none !important; }
}

/* =========================================
   ИЗОЛЯЦИЯ ПАНЕЛИ "О НАС" (ЧТОБЫ НЕ ЛЕЗЛА НА ПК)
   ========================================= */
#mobile-about-panel, #about-close-zone {
    display: none;
}

/* =========================================
   8. АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ (ИСПРАВЛЕНИЕ СКРОЛЛА И НОВЫЙ SHEET MODAL)
   ========================================= */
@media (max-width: 768px) {
    #left-sidebar, #right-sidebar { display: none !important; }
    
    body { background-color: transparent !important; touch-action: none !important; overflow: hidden !important; }
    
    .legal-entity-info { display: none; }

    /* === УВЕЛИЧИВАЕМ ОТСТУП ДЛЯ ВСЕХ МОБИЛЬНЫХ СКРОЛЛОВ === */
    .mobile-body-scroll {
        padding-bottom: 130px !important;
    }
    
    .mobile-static-layout { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: flex-start;
        width: 100%; 
        height: 100dvh; 
        padding: max(16px, env(safe-area-inset-top)) 16px max(90px, calc(env(safe-area-inset-bottom) + 75px)); 
        box-sizing: border-box; 
        overflow: hidden; 
        z-index: 10; 
        background-color: transparent; 
        pointer-events: auto;
        transform-origin: 50% 10%;
        transition: opacity 0.6s ease;
    }

    #video-layer::after {
        background: rgba(23, 23, 23, 0.45); /* Под цвет нового темного фона */
    }

    #video-layer {
        transform-origin: 50% 10%;
        transition: opacity 0.6s ease; 
    }

    body.about-open .mobile-static-layout,
    body.about-open #video-layer {
        opacity: 0.5;
        pointer-events: none;
    }
    
    #mobile-about-panel {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 85dvh;
        background: rgba(23, 23, 23, 0.88) !important;
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 32px 32px 0 0;
        z-index: 99999;
        transform: translateY(calc(100% - 75px));
        transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
        flex-direction: column;
        box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.4);
        border-top: 1.5px solid rgba(242, 86, 35, 0.45);
        will-change: transform;
    }

    body.about-open #mobile-about-panel {
        transform: translateY(0);
        background: rgba(17, 17, 17, 0.96) !important;
    }

    .mb-about-header {
        height: 75px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 14px;
        cursor: grab;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }
    .mb-about-header:active { cursor: grabbing; }
    
    .mb-about-drag-handle {
        width: 44px;
        height: 4px;
        background: rgba(222, 222, 222, 0.2);
        border-radius: 4px;
        margin-bottom: 12px;
        transition: background 0.3s, transform 0.3s;
    }
    .mb-about-header:active .mb-about-drag-handle { background: rgba(222, 222, 222, 0.5); }
    body.about-open .mb-about-drag-handle {
        background: rgba(242, 86, 35, 0.6);
        transform: scaleX(1.1);
    }
    
    .mb-about-title {
        color: var(--text-inverse);
        font-weight: 800;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: flex;
        align-items: center;
        gap: 8px;
        pointer-events: none;
    }
    .mb-about-title svg { transition: transform 0.4s ease; opacity: 0.7; }
    body.about-open .mb-about-title svg { transform: rotate(180deg); }

    .mb-about-content {
        padding: 0 24px 40px 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-grow: 1;
        opacity: 0;
        transition: opacity 0.4s;
    }
    body.about-open .mb-about-content {
        opacity: 1;
        transition-delay: 0.2s;
    }

    .mb-about-content h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; color: var(--text-inverse); text-transform: uppercase; line-height: 1.1; }
    .mb-about-content p.mb-about-lead { font-size: 1rem; color: var(--text-inverse-muted); line-height: 1.4; font-weight: 600; margin-bottom: 0px; }
    
    /* Новые стили для сетки статистики */
    .mb-about-stats-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        padding: 16px 20px;
        margin: 24px 0 12px 0;
        text-align: center;
    }
    .mb-about-stat-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .mb-about-stat-item .stat-number {
        font-size: 1.6rem;
        font-weight: 800;
        color: var(--accent-brand);
        line-height: 1;
    }
    .mb-about-stat-item .stat-label {
        font-size: 0.7rem;
        color: var(--text-inverse-muted);
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.05em;
    }
    .mb-about-stats-grid .stat-divider {
        width: 1px;
        height: 32px;
        background: rgba(255, 255, 255, 0.08);
    }

    .mb-about-block { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(222,222,222,0.1); }
    .mb-about-block h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; color: var(--text-inverse); text-transform: uppercase; }
    .mb-about-block p { font-size: 0.95rem; color: var(--text-inverse-muted); line-height: 1.5; font-weight: 500; }

    #about-close-zone {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 15dvh;
        z-index: 99998;
        cursor: pointer;
    }
    body.about-open #about-close-zone { display: block; }
    
    .mb-studio-label { font-size: 0.65rem; color: var(--text-studio); margin-bottom: 0px; text-transform: uppercase; letter-spacing: 0.15em; text-align: center; display: block; font-weight: 600; }
    .mobile-logo-box { display: flex; align-items: center; justify-content: center; margin: clamp(6px, 1.5vh, 12px) 0; flex-shrink: 0; background: transparent; box-shadow: none; border-radius: 0; width: auto; height: auto; pointer-events: none;}
    .mobile-logo-box img { width: clamp(70px, 10vh, 90px); filter: brightness(0) invert(1); }
    .mb-pill { background: var(--bg-card); padding: 6px 16px; border-radius: 100px; font-size: clamp(0.65rem, 1.5vh, 0.75rem); font-weight: 700; box-shadow: 0 8px 25px rgba(0,0,0,0.06); margin-bottom: clamp(12px, 2.5vh, 24px); border: none; min-width: 240px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-main); letter-spacing: 0.01em; pointer-events: none;}
    
    .mobile-bento-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr minmax(70px, 80px) minmax(100px, 1.3fr); gap: clamp(6px, 1.5vh, 8px); width: 100%; max-width: 400px; flex-grow: 1; margin-bottom: 0; min-height: 0; pointer-events: auto; }
    .mb-card { background: var(--bg-card); border-radius: 16px; padding: clamp(10px, 2.5vh, 16px); display: flex; flex-direction: column; justify-content: space-between; height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.03); cursor: pointer; transition: transform 0.2s; pointer-events: auto; position: relative; overflow: hidden; }
    .mb-card > * { position: relative; z-index: 2; }
    .mb-card:active { transform: scale(0.96); }
    .mb-card-top { display: flex; justify-content: space-between; width: 100%; align-items: flex-start; pointer-events: none; }
    .mb-icon { width: clamp(28px, 4.5vh, 32px); height: clamp(28px, 4.5vh, 32px); background: rgba(var(--bg-ui-light-rgb), 0.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-main); }
    .mb-icon svg { width: 14px; height: 14px; }
    .mb-badge { font-size: clamp(0.5rem, 1vh, 0.55rem); font-weight: 800; background: rgba(var(--bg-ui-light-rgb), 0.8); padding: 4px 8px; border-radius: 100px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
    .mb-badge.badge-green { background: var(--status-success-bg); color: var(--status-success-text); display: flex; align-items: center; gap: 4px; }
    .mb-card-bottom { pointer-events: none; }
    .mb-card-bottom h3 { font-size: clamp(0.85rem, 2vh, 0.95rem); font-weight: 800; text-transform: uppercase; margin-bottom: 0; color: var(--text-main); line-height: 1.1; letter-spacing: -0.02em; }
    .mb-card-bottom p { font-size: clamp(0.6rem, 1.2vh, 0.7rem); color: var(--text-light); font-weight: 600; margin: 0 0 4px 0; }
    .mb-card.mb-card-form { grid-column: 1 / -1; background-color: var(--bg-inverse); flex-direction: row; align-items: center; padding: 12px 20px; height: 100%; border: 1px solid rgba(222, 222, 222, 0.1); }
    .mb-card.mb-card-form .mb-card-top { width: auto; }
    .mb-card.mb-card-form .mb-badge { display: none; }
    .mb-card.mb-card-form .mb-card-bottom { display: flex; flex-direction: column; margin-left: 20px; flex-grow: 1; }
    .mb-card.mb-card-form h3, .mb-card.mb-card-form p { color: var(--text-inverse); }
    .mb-card.mb-card-form p { opacity: 0.7; }
    .mb-card.mb-card-form .mb-icon { background: rgba(222, 222, 222, 0.1); }
    .mb-card.mb-card-form .mb-icon svg { stroke: var(--text-inverse); }
    .mb-card.mb-card-wide { grid-column: 1 / -1; height: 100%; position: relative; padding: 0; overflow: hidden; border: none; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
    .mb-cases-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background: var(--bg-inverse); pointer-events: none; }
    .mb-cases-slider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease-in-out, transform 4s linear; transform: scale(1); }
    .mb-cases-slider img.active { opacity: 0.7; transform: scale(1.05); }
    .mb-cases-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.8) 100%); color: var(--text-inverse); pointer-events: none; }
    .mb-cases-header { display: flex; justify-content: space-between; align-items: flex-start; }
    .mb-cases-header .mb-badge { background: rgba(222,222,222,0.2); color: var(--text-inverse); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
    .mb-cases-header .mb-icon { background: rgba(222,222,222,0.2); color: var(--text-inverse); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
    .mb-cases-overlay-footer { text-align: left; }
    .mb-cases-overlay-footer h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0; color: var(--text-inverse); text-transform: uppercase; }
    .mb-cases-overlay-footer p { font-size: 0.8rem; color: var(--text-inverse-light); font-weight: 600; margin: 0 0 4px 0; transition: opacity 0.3s ease; }

    .mobile-sticky-builder-header {
        position: sticky;
        top: -20px;
        margin: -20px -20px 24px -20px;
        width: calc(100% + 40px);
        background: rgba(var(--bg-inverse-rgb), 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 100;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(222,222,222,0.05);
        color: var(--text-inverse);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    .msb-label-btn {
        font-size: 0.65rem;
        font-weight: 900;
        text-transform: uppercase;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        padding: 6px 14px;
        border-radius: 100px;
        cursor: pointer;
        letter-spacing: 0.05em;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        transition: all 0.2s ease;
        user-select: none;
        -webkit-user-select: none;
        font-family: inherit;
        outline: none;
    }
    .msb-label-btn:active {
        background: rgba(255, 255, 255, 0.18);
        transform: scale(0.95);
    }
    .msb-values { display: flex; align-items: center; gap: 12px; }
    .msb-values .build-price-val { font-size: 1.1rem; font-weight: 800; color: var(--text-inverse); line-height: 1; }
    .msb-values .build-time-val { font-size: 0.8rem; font-weight: 700; color: var(--accent-yellow); line-height: 1; }
    .msb-divider { width: 4px; height: 4px; background: var(--text-inverse-muted); border-radius: 50%; }

    /* === ОБРАБОТКА ДЕТАЛЬНОЙ СМЕТЫ В КОНЦЕ === */
    .builder-total-bar { 
        position: static !important; 
        border-radius: 20px; 
        padding: 20px; 
        flex-direction: column; 
        gap: 16px; 
        align-items: stretch; 
        background: var(--bg-ui-light); 
        box-shadow: none; 
        border: 1px solid var(--border-color-dark); 
        width: 100% !important; 
        margin-top: 24px; 
        margin-bottom: 20px; 
    }
    .builder-total-bar .b-receipt-toggle-btn {
        display: none !important;
    }
    .builder-total-bar .b-receipt-tags {
        display: none !important;
    }
    .builder-total-bar .builder-detailed-receipt {
        max-height: none !important;
        padding: 12px 0 16px 0 !important;
        overflow-y: visible !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
    .builder-total-bar .b-detailed-item {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* === КНОПКА ПОД СМЕТОЙ ПО ЦЕНТРУ === */
    .builder-bar-bottom { 
        flex-direction: column !important; 
        gap: 16px !important; 
        align-items: center !important; 
    }
    
    .b-total-stats { 
        justify-content: center !important; 
        width: 100% !important; 
    }
    
    .builder-total-bar .btn-send-build-action { 
        width: 100% !important; 
        margin: 0 !important;
        justify-content: center !important;
    }

    /* === ПЛАШКА С КУКИ === */
    .cookie-banner.show {
        bottom: 90px !important; /* Устанавливаем высоту над панелью "О Нас" */
        z-index: 100000 !important;
    }

    #mobile-content-view .mobile-legal-info { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color-dark); font-size: 0.8rem; color: var(--text-light); line-height: 1.5; text-align: center; }
    #mobile-content-view .static-card { 
        background: #ffffff; 
        border-radius: 24px; 
        overflow: hidden; 
        margin-bottom: 24px; 
        box-shadow: 0 8px 30px rgba(0,0,0,0.03); 
        border: 2px solid #E6E6EB; 
        cursor: pointer; 
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        pointer-events: auto; 
        display: flex;
        flex-direction: column;
        position: relative;
    }
    #mobile-content-view .static-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    }
    #mobile-content-view .static-card img { 
        width: 100%; 
        height: auto; 
        display: block; 
        pointer-events: none; 
        border-bottom: 1px solid #E6E6EB;
    }
    #mobile-content-view .static-card-content { 
        padding: 24px; 
        pointer-events: none; 
        background: #ffffff;
        border-radius: 20px 20px 0 0;
        margin-top: -16px;
        position: relative;
        z-index: 2;
        box-shadow: 0 -10px 25px rgba(0,0,0,0.02);
        display: flex;
        flex-direction: column;
    }
    #mobile-content-view .static-card-title { 
        font-size: 1.25rem; 
        font-weight: 800; 
        color: #171717;
        margin-bottom: 8px; 
        line-height: 1.2; 
        text-transform: none; 
        letter-spacing: -0.02em;
        font-family: 'Geologica', sans-serif;
    }
    #mobile-content-view .static-card-subtitle { 
        font-size: 0.65rem; 
        font-weight: 900; 
        text-transform: uppercase; 
        color: var(--text-light); 
        letter-spacing: 0.05em; 
        background: rgba(0, 0, 0, 0.05); 
        padding: 3px 10px; 
        border-radius: 100px; 
        width: fit-content; 
        display: inline-block; 
        margin-bottom: 12px;
        margin-left: -10px !important;
    }
    #mobile-content-view .static-card-desc { 
        font-size: 0.82rem; 
        color: #5F5F6E; 
        line-height: 1.45; 
        font-weight: 500;
        margin-bottom: 0;
    }
    #mobile-content-view .static-card-btn-box {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #F3F3F5;
        width: 100%;
    }
    #mobile-content-view .static-card-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 42px;
        border-radius: 100px;
        font-size: 0.85rem;
        font-weight: 800;
        background: #EAEAEF;
        color: #171717;
        width: 100%;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        font-family: inherit;
    }
    #mobile-content-view .static-card:active .static-card-btn {
        background: var(--bg-inverse);
        color: var(--text-inverse);
    }
    
    #mobile-content-view .static-service-row { display: flex; flex-direction: column; padding: 20px; border: none; background: var(--bg-ui); border-radius: 16px; margin-bottom: 12px; box-shadow: none; transition: none; transform: none;}
    #mobile-content-view .static-service-header { display: flex; gap: 16px; align-items: center; }
    #mobile-content-view .static-service-icon { width: 48px; height: 48px; min-width: 48px; min-height: 48px; border-radius: 12px; }
    #mobile-content-view .service-title { font-size: 1.1rem !important; margin-bottom: 4px !important; }
    #mobile-content-view .service-desc { font-size: 0.95rem; }
    #mobile-content-view .service-chevron { width: 32px; height: 32px; background: var(--bg-ui-hover); color: var(--text-main); }
    #mobile-content-view .static-service-row.expanded .service-chevron { transform: rotate(180deg); background: var(--bg-inverse); color: var(--text-inverse); transition: transform 0.3s; }
    
    #mobile-content-view .static-form-container { padding: 20px; background: var(--bg-card); border-radius: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: none; }
    #mobile-content-view .contact-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; color: var(--text-main); text-decoration: none; transition: opacity 0.2s; background: transparent; padding: 0; box-shadow: none; transform: none; border-radius: 0; }
    #mobile-content-view .contact-row:hover { opacity: 0.7; transform: none; box-shadow: none; background: transparent;}
    #mobile-content-view .contact-icon-box { width: auto; height: auto; background: transparent; box-shadow: none; color: currentColor; transform: none; }
    #mobile-content-view .contact-label { font-size: 0.8rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom:0;}
    #mobile-content-view .contact-value { font-size: 1.1rem; font-weight: 600; }
    
    #mobile-content-view .socials-row { display: flex; gap: 12px; margin-top: 10px; margin-bottom: 8px; }
    #mobile-content-view .social-btn { width: 44px; height: 44px; background: transparent; border: 1px solid var(--bg-ui); border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: var(--text-main); transform: none; box-shadow: none;}
    #mobile-content-view .social-btn img { width: 30px; height: 30px; filter: none; }
    #mobile-content-view .social-btn:hover { background: var(--accent-brand); color: var(--text-inverse); border-color: var(--accent-brand); transform: none; box-shadow: none; }
    #mobile-content-view .social-btn:hover img { filter: brightness(0) invert(1); }
    
    #mobile-content-view .form-services-title { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; margin-top: 4px; }
    #mobile-content-view .form-services-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
    #mobile-content-view .service-pill-span { display: inline-block; padding: 8px 14px; background: var(--bg-ui); border-radius: 100px; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; transition: all 0.2s; border: 1px solid transparent; }
    #mobile-content-view .service-pill-label input:checked + .service-pill-span { background: var(--bg-inverse); color: var(--text-inverse); border-color: var(--accent-color); box-shadow: 0 2px 6px rgba(242, 86, 35, 0.1); transform: none; }
    
    #mobile-content-view .contact-input, #mobile-content-view .contact-textarea { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-color-dark); background: var(--bg-ui); font-family: inherit; font-size: 0.95rem; outline: none; transition: border-color 0.2s, background 0.2s; font-weight: normal; }
    #mobile-content-view .contact-input:focus, #mobile-content-view .contact-textarea:focus { border-color: var(--accent-color); background: var(--bg-card); transform: none; box-shadow: none;}
    #mobile-content-view .contact-submit-btn { margin-top: auto; background: var(--bg-inverse); color: var(--text-inverse); border: none; border-radius: 100px; height: 48px; flex-shrink: 0; font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform 0.1s, background 0.2s; text-transform: none; letter-spacing: normal;}
    #mobile-content-view .contact-submit-btn:hover { background: var(--bg-inverse-hover); transform: none; box-shadow: none; }
    #case-viewer { width: 100%; box-shadow: none; }
    .carousel-indicators-bar { display: flex; } 
    .case-carousel-slide { width: 85vw; } 
}

@media (max-height: 700px) and (max-width: 768px) {
    .mobile-static-layout { 
        padding: max(8px, env(safe-area-inset-top)) 12px max(80px, calc(env(safe-area-inset-bottom) + 75px)) !important; 
    }
    .mobile-logo-box img { width: 60px; }
    .mobile-logo-box { margin: 4px 0; }
    .mb-pill { margin-bottom: 8px; padding: 4px 16px; min-height: 28px; font-size: 0.68rem; }
    .mb-studio-label { margin-bottom: 0px; font-size: 0.6rem; }
    .mobile-bento-grid { 
        grid-template-rows: 1fr 1fr minmax(52px, 60px) minmax(80px, 1.1fr) !important;
        gap: 6px !important;
    }
    .mb-card { 
        padding: 10px 12px !important; 
    }
    .mb-card-bottom h3 { font-size: 0.82rem; }
    .mb-card.mb-card-form h3 { font-size: 0.92rem; }
    .mb-cases-overlay-footer h3 { font-size: 0.95rem; }
    .mb-cases-overlay-footer p { font-size: 0.72rem; }
}

/* =========================================
   9. ВАЛИДАЦИЯ ФОРМЫ (ИНЛАЙН-ОШИБКИ)
   ========================================= */
.input-wrapper { display: flex; flex-direction: column; width: 100%; position: relative; margin-bottom: 8px; }
.error-msg { display: none; color: var(--status-error); font-size: 0.75rem; font-weight: 700; margin-top: 6px; padding-left: 16px; }
.input-wrapper.has-error .error-msg { display: block; animation: panelFadeInUp 0.3s ease; }
.input-wrapper.has-error .contact-input, .input-wrapper.has-error .contact-textarea { border-color: var(--status-error) !important; background: var(--status-error-bg); }
.input-wrapper.has-error .consent-wrapper input[type="checkbox"] { border-color: var(--status-error) !important; }
.input-wrapper.consent-container .error-msg { margin-top: 8px; padding-left: 0; }

/* =========================================
   11. ВИДЕО-СЛОЙ И ПРЕЛОАДЕР
   ========================================= */
#video-layer {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100dvh;
    overflow: hidden; z-index: -1;
}
#video-layer video {
    width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1;
}
#video-layer::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(23, 23, 23, 0.15); z-index: 2; pointer-events: none;
}

#intro-layer {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh;
    z-index: 99999; pointer-events: auto; cursor: pointer;
    background-color: var(--bg-inverse);
    transition: background-color 1.2s ease;
}
#intro-layer.reveal {
    background-color: transparent; 
}

.intro-text {
    position: absolute; top: 50%; left: 50%;
    text-align: center; color: var(--text-inverse);
    font-size: clamp(1.8rem, 3.5vw, 4rem); font-weight: 800; text-transform: uppercase;
    line-height: 1.1; letter-spacing: -0.02em;
    opacity: 0;
    animation: textFadeInOut 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.intro-text span { color: var(--accent-yellow); }

.intro-logo {
    position: absolute; top: 50%; left: 50%;
    width: 70px; 
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.5);
    transform-origin: center center;
}
.intro-logo img { width: 100%; filter: brightness(0) invert(1); display: block; }

@keyframes textFadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); filter: blur(10px); }
    20% { opacity: 1; transform: translate(-50%, -50%); filter: blur(0); }
    80% { opacity: 1; transform: translate(-50%, -50%); filter: blur(0); }
    100% { opacity: 0; transform: translate(-50%, -60%); filter: blur(10px); }
}

@media (min-width: 769px) {
    body.video-bg { background-color: transparent; }
    #left-sidebar, #right-sidebar { opacity: 0; transition: opacity 0.8s ease; }
    body.desktop-loaded #left-sidebar, body.desktop-loaded #right-sidebar { opacity: 1; }
    .sidebar-logo img { opacity: 0; transition: opacity 0.4s ease; }
    body.desktop-loaded .sidebar-logo img { opacity: 1; }
}

/* =========================================
   12. ПОДВАЛ И ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ
   ========================================= */
#footer-trigger {
    position: fixed;
    bottom: 24px;
    left: 24px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-inverse);
    background: rgba(var(--bg-inverse-rgb), 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(222, 222, 222, 0.1);
}
#footer-trigger:hover {
    transform: translateY(-4px);
    background: var(--bg-inverse);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
@media (max-width: 768px) { #footer-trigger { display: none; } }

#footer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100%;
    background: rgba(var(--bg-inverse-rgb), 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 95000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#footer-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.footer-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(222, 222, 222, 0.1);
    border: none;
    border-radius: 50%;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-inverse);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}
.footer-close:hover {
    background: rgba(222, 222, 222, 0.2);
    transform: rotate(90deg) scale(1.05);
}
.footer-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 100px 24px 60px 24px;
}
.footer-content-inner {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-inverse);
}
.footer-hero {
    margin-bottom: 48px;
}
.footer-hero h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.footer-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-inverse-muted);
}
.footer-blocks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.footer-accordion {
    border-bottom: 1px solid rgba(222, 222, 222, 0.1);
    padding-bottom: 16px;
}
.f-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 0;
}
.f-block-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
}
.f-chevron {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(222,222,222,0.05);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s, background 0.3s;
}
.footer-accordion.expanded .f-chevron {
    transform: rotate(180deg);
    background: rgba(222,222,222,0.15);
}
.f-block-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}
.footer-accordion.expanded .f-block-body {
    grid-template-rows: 1fr;
}
.f-block-body-inner {
    overflow: hidden;
    padding-top: 16px;
}
.f-block-body-inner p {
    color: var(--text-inverse-muted);
    font-size: 1.05rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 500px;
    background: rgba(var(--bg-inverse-rgb), 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(222, 222, 222, 0.1);
}
.cookie-banner.show {
    bottom: 24px;
}
.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}
.cookie-content p {
    font-size: 0.8rem;
    color: var(--text-inverse-light);
    line-height: 1.4;
}
.cookie-content a {
    color: var(--accent-yellow);
    text-decoration: underline;
}
.cookie-btn {
    background: var(--text-inverse);
    color: var(--bg-inverse);
    border: none;
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.cookie-btn:hover {
    background: var(--bg-ui-light);
}

/* === TOAST NOTIFICATIONS (PUMPL TOASTS) === */
#pumpl-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.pumpl-toast {
    pointer-events: auto;
    background: rgba(var(--bg-inverse-rgb), 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(222, 222, 222, 0.1);
    color: var(--text-inverse);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateY(-20px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 380px;
}
.pumpl-toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.pumpl-toast.success .toast-icon {
    color: var(--status-success);
}
.pumpl-toast.error .toast-icon {
    color: var(--status-error);
}
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.toast-message {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}
@media (max-width: 768px) {
    #pumpl-toast-container {
        top: auto;
        bottom: calc(100px + env(safe-area-inset-bottom));
        left: 16px;
        right: 16px;
        align-items: center;
    }
    .pumpl-toast {
        max-width: 100%;
        width: 100%;
        transform: translateY(20px) scale(0.9);
    }
}

/* =========================================
   === CONSTRUCTOR CARD INFO ACCORDION ===
   ========================================= */

/* Accordion expand logic driven solely by input:checked state */
.b-info-extended {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.4s, border-top-color 0.4s, padding-top 0.4s;
    width: 100%;
}
.builder-item input:checked + .builder-content .b-info-extended {
    grid-template-rows: 1fr;
    margin-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-top-color: rgba(242, 86, 35, 0.2);
    padding-top: 12px;
}
.b-info-extended-inner {
    overflow: hidden;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    font-weight: 500;
    text-transform: none;
}
.builder-item input:checked + .builder-content .b-info-extended-inner {
    color: #222222 !important;
    font-weight: 500;
}


/* --- СТИЛИ СТАТУСА ОФЛАЙН --- */
#desktop-status-dot.offline {
    background: var(--text-light) !important;
    animation: none !important;
    box-shadow: none !important;
}
#desktop-status-text.offline {
    color: var(--text-light) !important;
}
.mb-badge.badge-offline {
    background: var(--bg-ui) !important;
    color: var(--text-muted) !important;
}
.mb-badge.badge-offline .dot-pulse {
    background: var(--text-light) !important;
    animation: none !important;
    box-shadow: none !important;
}

/* --- АДАПТИВНОСТЬ СТАТУСА ОФЛАЙН (ПЕРЕНОС СТРОКИ) --- */
@container (max-width: 350px) {
    .explicit-btn {
        flex-direction: column !important;
        align-items: flex-start !important;
        border-radius: 16px !important;
        padding: 8px 12px !important;
        gap: 6px !important;
        white-space: normal !important;
    }
    #desktop-status-desc {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid currentColor !important;
        padding-top: 6px !important;
        width: 100%;
        display: block !important;
        text-align: left !important;
        white-space: normal !important;
        opacity: 0.8 !important;
    }
}

/* === BEHANCE QR CARD INTEGRATION === */
.behance-qr-card {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 24px);
    padding: clamp(16px, 2.5vw, 24px);
    background: var(--bg-ui);
    border-radius: 24px;
    border: 2px solid transparent;
    margin-bottom: 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.behance-qr-card:hover {
    background: var(--bg-card);
    border-color: #0057ff;
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 87, 255, 0.15);
}
.behance-qr-left {
    flex-shrink: 0;
    width: clamp(90px, 10vw, 120px);
    height: clamp(90px, 10vw, 120px);
    background: #171717;
    border-radius: 16px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.behance-qr-card:hover .behance-qr-left {
    transform: scale(1.05) rotate(-3deg);
}
.behance-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(1); /* Inverts black QR to white on the dark backdrop */
    transition: filter 0.3s;
}
.behance-qr-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.behance-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #0057ff;
    color: #fff;
    padding: 4px 10px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 87, 255, 0.2);
}
.behance-qr-title {
    font-size: clamp(1.1rem, 1.3vw, 1.35rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    text-transform: uppercase;
}
.behance-qr-desc {
    font-size: clamp(0.8rem, 0.85vw, 0.85rem);
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 500;
}
.behance-qr-btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-inverse);
    color: var(--text-inverse);
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.behance-qr-card:hover .behance-qr-btn {
    background: #0057ff;
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 6px 15px rgba(0, 87, 255, 0.35);
}

/* Responsive styles for mobile screen sizes */
@media (max-width: 576px) {
    .behance-qr-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }
    .behance-qr-left {
        margin: 0 auto;
        width: 120px;
        height: 120px;
    }
    .behance-qr-right {
        align-items: center;
    }
    .behance-qr-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Custom Tooltip System for Badges */
.pumpl-tooltip-trigger {
    position: relative;
}
.pumpl-tooltip-content {
    visibility: hidden;
    opacity: 0;
    width: 260px;
    background: #171717;
    color: #ffffff;
    text-align: left;
    border-radius: 12px;
    padding: 12px;
    position: absolute;
    z-index: 9999;
    bottom: 135%; /* Position above the badge */
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    pointer-events: none;
}
/* Tooltip Arrow */
.pumpl-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #171717 transparent transparent transparent;
}
.pumpl-tooltip-trigger:hover .pumpl-tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip mobile layout adaptation */
@media (max-width: 768px) {
    .pumpl-tooltip-content {
        left: auto;
        right: -80px;
        transform: translateY(6px);
    }
    .pumpl-tooltip-content::after {
        left: auto;
        right: 90px;
    }
    .pumpl-tooltip-trigger:hover .pumpl-tooltip-content {
        transform: translateY(0);
    }
}

/* ==========================================================================
   КЛИКАБЕЛЬНЫЕ ФИЛЬТРЫ И НАВИГАЦИЯ СТЕКА (ДОБАВЛЕНО ДЛЯ УЛУЧШЕНИЯ UX)
   ========================================================================== */

.filter-label-text {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-inverse);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Стилизация интерактивных тегов */
.info-tag {
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid transparent !important;
}

.info-tag:hover {
    background: var(--bg-inverse) !important;
    color: var(--text-inverse) !important;
    transform: translateY(-2px) scale(1.05);
}

:root {
    --tag-height: 28px;
}
@media (min-width: 769px) and (max-width: 1440px), (min-width: 769px) and (max-height: 800px) {
    :root {
        --tag-height: 24px;
    }
}
@media (min-width: 2000px) and (min-height: 1100px) {
    :root {
        --tag-height: 36px;
    }
}

.info-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.info-tag {
    height: var(--tag-height) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.info-tag.active-filter {
    background: var(--accent-color) !important;
    color: var(--text-inverse) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 4px 15px rgba(242, 86, 35, 0.4) !important;
    cursor: default !important;
}

.info-tag.active-filter:hover {
    transform: none !important;
}

/* Отдельная круглая кнопка закрытия рядом */
.filter-close-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--tag-height) !important;
    height: var(--tag-height) !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.15) !important;
    color: var(--text-inverse) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid transparent !important;
    padding: 0 !important;
}

.filter-close-btn svg {
    display: block;
    width: calc(var(--tag-height) * 0.38);
    height: calc(var(--tag-height) * 0.38);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-close-btn:hover {
    background: #ff4d4d !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4) !important;
}

.filter-close-btn:hover svg {
    transform: rotate(90deg);
}

.filter-close-btn:active {
    transform: translateY(-1px) scale(0.95) !important;
}

/* Элементы управления стеком на ПК */
.stack-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    z-index: 1000;
    pointer-events: auto;
}

.stack-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 0;
}

.stack-nav-btn:hover {
    background: var(--bg-inverse);
    color: var(--text-inverse);
    border-color: var(--bg-inverse);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stack-nav-btn:active {
    transform: scale(0.95);
}

/* Анимированная подсказка для прокрутки стека */
.stack-scroll-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-inverse);
    margin-top: 8px;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.mouse-icon-svg {
    stroke: var(--text-inverse);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
    animation: mouse-float 2s ease-in-out infinite;
}

.mouse-wheel-line {
    animation: mouse-wheel-move 1.5s infinite;
}

@keyframes mouse-wheel-move {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(4px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes mouse-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Мобильный горизонтальный фильтр-бар */
.mobile-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    margin: -20px -20px 16px -20px;
    background: var(--bg-ui-light);
    border-bottom: 1px solid var(--border-color-dark);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mobile-filter-bar::-webkit-scrollbar {
    display: none;
}

.mobile-filter-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--bg-card);
    color: var(--text-main);
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-filter-pill.active {
    background: var(--accent-color);
    color: var(--text-inverse);
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(242, 86, 35, 0.25);
}

/* Адаптивность для ультра-узких экранов (например, Galaxy Fold в сложенном состоянии) */
@media (max-width: 360px) {
    .mb-card-top {
        gap: 6px;
    }
    .mb-card:not(.mb-card-wide) .mb-icon {
        width: 26px !important;
        height: 26px !important;
        flex-shrink: 0 !important;
    }
    .mb-card:not(.mb-card-wide) .mb-icon svg {
        width: 12px !important;
        height: 12px !important;
    }
    .mb-card:not(.mb-card-wide) .mb-badge {
        font-size: 0.46rem !important;
        padding: 3px 6px !important;
        letter-spacing: 0.02em !important;
        white-space: nowrap !important;
        max-width: 76px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-block !important;
        text-align: center !important;
        vertical-align: middle !important;
    }
    #mobile-status-badge {
        max-width: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
}

