@media print {
    nav, header, footer, aside, .sidebar, .menu, .breadcrumb,
    .comments, .no-print { display: none !important; }
    
    article, .content, #content, main, .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body {
        margin: 0;
        padding: 0;
    }
    
    @page {
        margin: 1.5cm;
    }
}/* Добавьте в ваш CSS — только стили, без сдвигов */

/* Стилизуем поля ввода */
.left_cell input[type="text"],
.left_cell input[type="email"],
.left_cell input[type="password"] {
    border: 1px solid #d0d0d0;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: #fff;
}

* {
    border-radius: 0 !important;
}

.left_cell input:focus {
    outline: none;
    border-color: #000;
}

/* Кнопка входа */
.left_cell button[type="submit"] {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 10px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.left_cell button[type="submit"]:hover {
    background: #fff;
    color: #000;
}

/* Кнопка регистрации */
.left_cell .cancel a {
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
}

.left_cell .cancel a:hover {
    color: #000;
    border-bottom-color: #000;
}

/* Блок ошибок */
.left_cell .message_error {
    background: #fafafa;
    border-left: 3px solid #d32f2f;
    padding: 8px 12px;
    margin: 10px 0;
    font-size: 13px;
}

/* Разделитель "Или" */
.center_cell {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

/* OpenID кнопки */
.right_cell h3 {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
}

.right_cell a {
    display: block;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: 0.2s;
    margin-bottom: 8px;
}

.right_cell a:hover {
    background: #fff;
    border-color: #aaa;
}



#user_profile_title {
    gap: 0;
}

#user_profile_title .avatar img,
#user_profile_title .avatar .avatar__image,
#user_profile_title .avatar .avatar__inlist {
    border-radius: 0 !important;
}

#user_profile_title .name h1 {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.05;
    font-weight: 700;
}

#user_profile_title .status {
    margin-top: 4px;
    line-height: 1.15;
    font-size: 12px;
}

#user_profile_title .status .text {
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
}

.profile-metrics {
    gap: 6px;
}

.profile-stat {
    min-width: 78px;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 0 !important;
    box-shadow: none;
}

.profile-stat__label {
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9aa0a6;
    margin-bottom: 5px;
    text-align: center;
    font-weight: 600;
}

.profile-stat__value-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.profile-stat__value-row--center {
    justify-content: center;
}

.profile-stat__value {
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    color: #111827;
}

.profile-stat__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    text-decoration: none !important;
    transition: color .15s ease;
}

.profile-stat__action:hover,
.profile-stat__action:focus {
    color: #111827;
    text-decoration: none !important;
}

.profile-stat--positive .profile-stat__value {
    color: #198754;
}

.profile-stat--neutral .profile-stat__value {
    color: #495057;
}

.profile-stat--rating .profile-stat__value {
    color: #2563eb;
}

#user_status_widget {
    margin-top: 6px;
}

#user_status_widget .status-row-compact {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

#status_input {
    height: 32px;
    min-height: 32px;
    padding: 3px 8px;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.status-date-wrap {
    display: inline-flex;
    align-items: center;
    height: 32px;
    border: 1px solid #e5e7eb;
    background: #fafaf7;
    border-radius: 0 !important;
    overflow: hidden;
}

.status-date-wrap__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 8px;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    background: #f3f4f6;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
}

#status_until_date {
    width: 132px;
    height: 30px;
    min-height: 30px;
    border: 0 !important;
    background: transparent !important;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.1;
    box-shadow: none !important;
}

.status-templates {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.status-template-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px !important;
    margin: 0 !important;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: none !important;
}

.status-template-btn:hover,
.status-template-btn:focus {
    text-decoration: none !important;
    box-shadow: none !important;
}

.status-template-btn svg {
    width: 15px;
    height: 15px;
}

#user_profile_rates,
#user_profile_ratings,
.icms-profile__tabs.nav-tabs .nav-link {
    border-radius: 0 !important;
}

@media (max-width: 767px) {
    .profile-metrics {
        gap: 4px;
        margin-left: 4px !important;
    }

    .profile-stat {
        min-width: 64px;
        padding: 5px 6px;
    }

    .profile-stat__label {
        font-size: 9px;
    }

    .profile-stat__value {
        font-size: 14px;
    }

    #user_status_widget .status-row-compact {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    #status_input {
        min-width: 150px;
    }

    #status_until_date {
        width: 122px;
    }
}

/* Легкое покачивание при появлении новых уведомлений */
@keyframes bell-shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.notices-counter .counter:not(:empty) {
    animation: bell-shake 0.5s ease-in-out;
}



/* Улучшенные стили для модального окна */
.modal-dialog.modal-fullscreen-sm-down {
    margin: 0;
}

/* Горизонтальное расположение виджетов в футере */
.footer [class*="col-"] {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer .widget {
    flex: 1;
    min-width: 150px;
}

/* Единый размер для всех иконок Font Awesome в футере */
.footer .fa,
.footer .fas,
.footer .far,
.footer .fal,
.footer .fab {
    font-size: 20px !important;
    width: auto !important;
    height: auto !important;
}
@media (max-width: 576px) {
    .modal-dialog.modal-fullscreen-sm-down {
        max-width: 100%;
        height: 100%;
        margin: 0;
    }
    
    .modal-dialog.modal-fullscreen-sm-down .modal-content {
        height: 100%;
        border-radius: 0;
    }
    
    .modal-dialog.modal-fullscreen-sm-down .modal-body {
        height: calc(100% - 130px);
        overflow-y: auto;
    }
}

/* Индикатор для свайпа */
.modal-header::after {
    content: '';
    display: none;
}

@media (max-width: 576px) {
    .modal-header::after {
        display: block;
        width: 40px;
        height: 5px;
        background: #ddd;
        border-radius: 0px;
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .modal-header {
        padding-top: 20px;
        position: relative;
    }
}

/* Кнопка закрытия более заметная */
.btn-close {
    background-size: 1.2em;
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* Нижняя панель для мобильных */
.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 12px;
}

.modal-footer .btn {
    padding: 12px;
    font-size: 16px;
}

/* Основной контейнер — сетка как в игровых лентах */
.yolk-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #faf9f6; /* Светлый фон */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Карточка элемента — острые края (никаких скруглений) */
.yolk-item {
    text-decoration: none;
    color: #333;
    display: block;
    border: 3px solid #333; /* Жирная черная обводка */
    background-color: white;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    box-shadow: 8px 8px 0 #f5c542; /* Желтая тень (желток) */
    
    /* Острые углы */
    border-radius: 0;
}

/* Эффект при наведении — подпрыгивание */
.yolk-item:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 #f5c542;
}

/* Блок с изображением */
.yolk-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Квадратное фото, как в играх */
    overflow: hidden;
    border-bottom: 3px solid #333;
    background-color: #eee;
}

.yolk-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезает фото, чтобы заполнить квадрат */
    display: block;
}

/* Заголовок записи */
.yolk-title {
    padding: 15px 12px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
    background-color: white;
    color: #222;
    word-break: break-word;
    
    /* Можно добавить псевдо-элемент для имитации скрепки или ярлычка */
    position: relative;
}

/* Опционально: маленький декор в углу как в старых приложениях */
.yolk-title::before {
    content: "⚡";
    color: #f5c542;
    font-size: 14px;
    margin-right: 6px;
    font-weight: bold;
}

/* Стили для блока цены на странице товара */
.sc_item_view .sc_price_block {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 5px solid #28a745;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sc_item_view .sc_price_block .sc_price {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    display: inline-block;
}

.sc_item_view .sc_price_block .sc_price .price_value {
    font-size: 36px;
    color: #28a745;
    margin-right: 5px;
}

.sc_item_view .sc_price_block .sc_price .price_currency {
    font-size: 24px;
    color: #6c757d;
    font-weight: 400;
    margin-left: 3px;
}

/* Если цена со скидкой (старая цена) */
.sc_item_view .sc_price_block .sc_old_price {
    font-size: 18px;
    color: #dc3545;
    text-decoration: line-through;
    margin-left: 15px;
    opacity: 0.8;
    display: inline-block;
}

/* Если есть дополнительная информация о цене (например, за единицу) */
.sc_item_view .sc_price_block .sc_price_hint {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #dee2e6;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .sc_item_view .sc_price_block .sc_price {
        font-size: 28px;
    }
    
    .sc_item_view .sc_price_block .sc_price .price_value {
        font-size: 32px;
    }
    
    .sc_item_view .sc_price_block .sc_price .price_currency {
        font-size: 20px;
    }
}


.price-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.price-filter-item {
    position: relative;
    flex: 0 1 160px;
    min-width: 120px;
}

.price-filter-input {
    width: 100%;
    height: 40px;
    padding: 0 42px 0 14px;
    border: 1px solid #d6d9de;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    transition: all .2s ease;
    box-sizing: border-box;
}

.price-filter-input::placeholder {
    color: #9ca3af;
}

.price-filter-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.price-filter-currency {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .price-filter-row {
        gap: 8px;
    }

    .price-filter-item {
        flex: 1 1 0;
        min-width: 0;
    }

    .price-filter-input {
        padding-left: 12px;
        padding-right: 38px;
    }
}

.two-columns {
  display: flex;
  align-items: flex-start; /* колонки прижаты к верху */
  gap: 20px; /* отступ между колонками */
}

.column {
  /* ничего особенного */
}

/* Магия — делаем колонки "липкими" */
.column-left,
.column-right {
  position: sticky;
  top: 60px;          /* отступ от верха экрана при прокрутке */
  align-self: flex-start;
}

.two-columns {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap; /* разрешаем перенос на узких экранах */
}

.column-left,
.column-right {
  position: sticky;
  top: 60px;
  align-self: flex-start;
}

/* На узких экранах — отключаем sticky */
@media (max-width: 768px) {
  .column-left,
  .column-right {
    position: relative; /* или static — sticky перестаёт работать */
    top: auto;          /* сбрасываем смещение */
  }
  
  .two-columns {
    flex-direction: column; /* блоки строго друг под другом */
  }
}


.sb{display:flex;align-items:center;gap:15px;margin:15px 0;padding:15px;border-radius:8px;flex-wrap:wrap;justify-content:center}
.sb img{border-radius:4px;display:block}
.sr{flex:1;min-width:220px}
.sl{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:8px}
.sl a{display:flex;align-items:center;justify-content:center;width:38px;height:38px;background:#e0e0e0;color:#555;font-size:16px;text-decoration:none;transition:.2s;border-radius:50%;border:1px solid #ccc}
.sl a:hover{transform:translateY(-2px)}
.sl .wa:hover{background:#25D366;color:#fff;border-color:#25D366}
.sl .tg:hover{background:#08c;color:#fff;border-color:#08c}
.sl .tt:hover{background:#000;color:#fff;border-color:#000}
.sl .yt:hover{background:#F00;color:#fff;border-color:#F00}
.sl .fb:hover{background:#1877F2;color:#fff;border-color:#1877F2}
.sl .em:hover{background:#EA4335;color:#fff;border-color:#EA4335}
.sl .cp:hover{background:#555;color:#fff;border-color:#555}
.sl .pr:hover{background:#1976D2;color:#fff;border-color:#1976D2}
.st{font-size:12px;color:#999;text-align:center;font-style:italic}
.st hr{margin:6px 0;border:none;border-top:1px solid #ddd}
.ps{display:none}
@media(max-width:600px){.sb{flex-direction:column}.sl a{width:34px;height:34px;font-size:14px}}
@media print{
nav,header,footer,aside,.sidebar,.menu,.breadcrumb,.comments,.no-print{display:none!important}
body{padding:0!important;margin:0!important}
.sb{display:none!important}
.ps{display:block!important;margin-top:20px;padding-top:12px;border-top:2px solid #000}
.ps h3{font-size:14pt;margin-bottom:8px}
.ps div{font-size:11pt;line-height:1.8}
.ps i{width:20px;text-align:center;margin-right:4px}
@page{margin:1.5cm}
}
