* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    /* Яркий, довольно насыщенный градиент */
    background: linear-gradient(135deg, #a2caff 0%, #f6cfff 100%);
    background-attachment: fixed;
    transition: background 0.4s ease;
}

body.marketplace-ozon {
    background: linear-gradient(135deg, #8fc0ff 0%, #d9e8ff 100%);
    background-attachment: fixed;
}

body.marketplace-wb {
    background: linear-gradient(135deg, #e6399e 0%, #ff9edb 100%);
    background-attachment: fixed;
}

/* ───────────── Кнопки ───────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.btn:hover {
    opacity: 0.85;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary:active {
    background: #1d54c7;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-outline:active {
    background: #eef3ff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-text:active {
    color: #1d54c7;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn.zone-done {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    opacity: 1;
}

.btn-primary {
    background: #2b6cf6;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #2b6cf6;
    color: #2b6cf6;
}

.btn-excel {
    background: #1d7a4f;
    color: #fff;
}

.btn-danger {
    background: #c0392b;
    color: #fff;
}

.btn-danger:hover {
    background: #a5321f;
}

.orphan-cabinet-card {
    background: #fff7f6;
    border: 1px solid #f3d9d5;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 10px;
}

.orphan-cabinet-card .muted {
    font-size: 13px;
    margin: 2px 0;
}

.orphan-cabinet-card .btn-danger {
    margin-top: 10px;
}

.btn-text {
    background: none;
    border: none;
    color: #555;
    text-decoration: underline;
    padding: 4px 8px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}


.logo img {
    height: 32px;
    display: block;
}
/* ───────────── Header ───────────── */

.header, .cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header {
    position: fixed;
    top: 10px;
    left: 0.5%;
    width: 99%;
    z-index: 100;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 40px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.logo {
    font-weight: bold;
    font-size: 16px;
    color: #2b6cf6;
    cursor: pointer;
}

.header-buttons {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 36px;
}

.lp-nav a {
    color: #444;
    font-size: 15.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 10px;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.lp-nav a:hover {
    background: #f0f1f4;
    color: #1a1a1a;
}

.lp-nav-highlight {
    position: relative;
    border: 1.5px solid #2b6cf6 !important;
    color: #2b6cf6 !important;
    font-weight: 700 !important;
}

.lp-nav-highlight:hover {
    background: #eef4ff !important;
}

.lp-nav-badge {
    position: absolute;
    top: -9px;
    right: -6px;
    background: #1d7a4f;
    color: #fff !important;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 2px 5px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.header-buttons .btn,
.cabinet-header .user-info .btn {
    padding: 12px 28px;
    font-size: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #555;
}

/* ───────────── Значения, унаследованные из старого лендинга (v1) и до сих
   пор используемые в новом (v2, префикс lp-) — .feature-icon рисует SVG-иконки
   в блоке "Что умеет сервис", .price используется в карточке цены ───────────── */

.feature-icon {
    width: 28px;
    height: 28px;
    color: #2b6cf6;
    margin-bottom: 10px;
}

.price {
    font-size: 44px;
    margin: 8px 0 4px;
    text-align: center;
}

.price span {
    font-size: 18px;
    color: #888;
}

.lp-price-cta {
    text-align: center;
    margin-top: 16px;
}


.footer {
    text-align: center;
    padding: 24px;
    color: #888;
    font-size: 13px;
}

.footer a {
    color: #2b6cf6;
    text-decoration: none;
}

/* ───────────── Футер лендинга (бренд + реквизиты + ссылки) ───────────── */

.lp-footer {
    background: #fff;
    border-top: 1px solid #eef0f5;
    padding-block: 48px 24px;
    padding-inline: max(20px, calc((100% - 1360px) / 2));
}

.lp-footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.lp-footer-logo img {
    height: 26px;
}

.lp-footer-tagline {
    margin-top: 10px;
    font-size: 14px;
    color: #667;
}

.lp-footer-email {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: #2b6cf6;
    text-decoration: none;
}

.lp-footer-legal {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #999;
}

.lp-footer-links {
    display: flex;
    gap: 64px;
}

.lp-footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.lp-footer-col a {
    font-size: 14px;
    color: #667;
    text-decoration: none;
}

.lp-footer-col a:hover {
    color: #2b6cf6;
}

.lp-footer-copy {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f1f5;
    font-size: 13px;
    color: #999;
}

/* ───────────── Онбординг / Login формы ───────────── */

.auth-logo {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    cursor: pointer;
}

.auth-logo img {
    height: 32px;
}

.onboarding-card {
    max-width: 480px;
    margin: 24px auto 60px;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.onboarding-card h2 {
    margin-bottom: 8px;
}

.onboarding-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.onboarding-card label {
    display: block;
    font-size: 13px;
    color: #444;
    margin-bottom: 4px;
    margin-top: 12px;
}

.onboarding-card input {
    width: 100%;
    padding: 10px;
    margin-bottom: 4px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.onboarding-card label.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #444;
    margin-top: 16px;
    margin-bottom: 4px;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 2px 0 0;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label a {
    color: #2b6cf6;
    text-decoration: underline;
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

.onboarding-card button[type="submit"],
.onboarding-card .btn {
    margin-top: 16px;
    width: 100%;
}

.hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2b6cf6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    margin-left: 4px;
    position: relative;
    vertical-align: middle;
}

.hint::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background: #333;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.08s ease;
    pointer-events: none;
    z-index: 20;
}

.hint::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.08s ease;
    pointer-events: none;
    z-index: 20;
}

.hint:hover::after,
.hint:hover::before {
    opacity: 1;
    visibility: visible;
}

.form-error {
    color: #e63946;
    margin-top: 8px;
    font-size: 13px;
}

/* ───────────── Плашка статуса подписки ───────────── */

.subscription-banner {
    background: #fff3cd;
    padding: 12px 24px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.subscription-banner.blocked {
    background: #ffe0e0;
    color: #b00020;
}

/* ───────────── Личный кабинет ───────────── */

.cabinet-layout {
    display: flex;
    position: relative;
    min-height: calc(100vh - 64px);
    background: linear-gradient(135deg, #cce4ff 10%, #fae3ff 90%);
    background-attachment: fixed;
    transition: background 0.4s ease;
}

body.marketplace-wb .cabinet-layout {
    background: linear-gradient(135deg, #ffcdf0 10%, #ffe3f5 90%);
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #cce4ff 10%, #fae3ff 90%);
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: background 0.4s ease, width 0.45s cubic-bezier(.4,0,.2,1),
                padding 0.45s cubic-bezier(.4,0,.2,1), opacity 0.35s ease, border-color 0.4s ease;
}

.cabinet-layout.analytics-active .sidebar {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    border-right-color: transparent;
    pointer-events: none;
}

body.marketplace-wb .sidebar {
    background: linear-gradient(135deg, #ffcdf0 10%, #ffe3f5 90%);
}

.marketplace-switch {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 18px;
}

.marketplace-switch-btn {
    position: relative;
    flex: 1;
    padding: 8px 0;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-weight: 700;
    font-size: 13.5px;
    color: #666;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.marketplace-switch-btn.wb-locked {
    cursor: not-allowed;
    opacity: 0.65;
}

.dev-badge {
    position: absolute;
    top: -9px;
    right: -6px;
    background: #ff9800;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 2px 5px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.marketplace-switch-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

.marketplace-switch-btn.active[data-marketplace="ozon"] {
    background: #2b6cf6;
    color: #fff;
}

.marketplace-switch-btn.active[data-marketplace="wb"] {
    background: #cb11ab;
    color: #fff;
}

.sidebar h3 {
    font-size: 14px;
    color: #000000;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-align: center;
}

.sidebar ul {
    list-style: none;
    margin: 12px 0;
}

.sidebar li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 4px;
    text-align: left;
}

.sidebar li .cabinet-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.cabinet-demo-badge {
    flex-shrink: 0;
    background: #7c3aed;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 0.03em;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 6px;
    color: #888;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #2b6cf6;
}

.sidebar li:hover {
    background: #f0f3fa;
}

.sidebar li.active {
    background: #eef3ff;
    color: #2b6cf6;
    font-weight: 500;
}

#add-cabinet-btn {
    width: 100%;
    margin-top: 8px;
}

.sidebar-footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.sidebar-footer .btn-text {
    display: block;
    width: 100%;
    text-align: center;
}

.main-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    margin: 20px 260px 20px 0;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: margin 0.45s cubic-bezier(.4,0,.2,1);
}

.cabinet-layout.analytics-active .main-content {
    margin-right: 20px;
}

.mode-tabs {
    display: flex;
    gap: 4px;
    margin: -24px -32px 20px -32px;
    padding: 0 24px;
    background: #f2f3f5;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e5e5e5;
}

.mode-tab {
    padding: 14px 30px;
    border: none;
    background: transparent;
    color: #888;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: 0.02em;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.mode-tab:hover:not(.active) {
    color: #555;
    background: rgba(255, 255, 255, 0.5);
}

.mode-tab.active {
    background: #fff;
    color: #2b6cf6;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
}

.mode-tab-side {
    margin-left: auto;
}

.side-widgets {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.4,0,.2,1);
}

.cabinet-layout.analytics-active .side-widgets {
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #444;
    padding: 6px;
    margin-right: 10px;
    border-radius: 8px;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.mobile-drawer {
    display: contents;
}

.mobile-drawer-overlay {
    display: none;
}

.subscription-widget-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-left: 3px solid #2b6cf6;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.subscription-widget-card.expired {
    border-left-color: #e63946;
}

.sbp-notice-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: #2b6cf6;
    color: #fff;
    padding: 10px 24px 10px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 4px 14px rgba(43, 108, 246, 0.3);
    z-index: 5;
}

.sbp-notice-popup::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #2b6cf6;
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}

.sbp-notice-popup-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #fff;
    opacity: 0.75;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 2px;
}

.sbp-notice-popup-close:hover {
    opacity: 1;
}

.subscription-widget-title {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.subscription-widget-days {
    font-size: 34px;
    font-weight: 700;
    color: #2b6cf6;
    line-height: 1;
}

.subscription-widget-card.expired .subscription-widget-days {
    color: #e63946;
}

.subscription-widget-sub {
    font-size: 12px;
    color: #999;
    margin-bottom: 14px;
}

.subscription-widget-btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
}

/* ───────────── Мини-опрос под виджетом подписки ───────────── */

.poll-widget-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-left: 3px solid #a259e6;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.poll-widget-question {
    font-size: 13.5px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
}

.poll-widget-actions {
    display: flex;
    gap: 8px;
}

.poll-widget-btn {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #e3e6ee;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
}

.poll-widget-btn:hover {
    border-color: #a259e6;
    color: #a259e6;
}

.poll-widget-thanks {
    text-align: center;
    font-size: 13.5px;
    color: #1d7a4f;
    border-left-color: #1d7a4f;
}

.print-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.print-section:last-child {
    margin-bottom: 0;
}

.fbs-warehouse-title {
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef4ff;
    font-size: 16px;
    color: #2b6cf6;
}

.empty-state-preview {
    position: relative;
    opacity: 0.8;
    pointer-events: none;
}

.empty-state-preview-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 10px;
    background: #fff3cd;
    color: #8a6d1f;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.empty-state-kpis {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.empty-state-kpi {
    flex: 1;
    min-width: 140px;
    background: #f7f8fa;
    border-left: 4px solid #ccc;
    border-radius: 8px;
    padding: 12px 16px;
}

.empty-state-kpi.good {
    border-left-color: #15803d;
}

.empty-state-kpi-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.empty-state-kpi-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
    color: #1a1a1a;
}

.empty-state-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
}

.empty-state-breakdown-row b {
    font-weight: 600;
    color: #1a1a1a;
}

.empty-state-breakdown-total {
    border-bottom: none;
    border-top: 2px solid #e5e5e5;
    margin-top: 4px;
    padding-top: 10px;
    font-weight: 700;
}

.empty-state-breakdown-total span,
.empty-state-breakdown-total b {
    color: #1d7a4f;
    font-weight: 700;
}

.empty-state-nudge {
    text-align: center;
    color: #2b6cf6;
    font-size: 17px;
    font-weight: 700;
    padding: 16px 20px;
    margin-top: 6px;
    border: 1.5px solid #2b6cf6;
    border-radius: 10px;
    background: #eef4ff;
}

.add-cabinet-btn-accent {
    border-color: #2b6cf6 !important;
    color: #2b6cf6 !important;
    animation: add-cabinet-pulse 1.8s ease-in-out infinite;
}

@keyframes add-cabinet-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(43, 108, 246, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(43, 108, 246, 0); }
}

.content-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
}

.warehouse-filter-select {
    min-width: 160px;
    font-family: inherit;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px;
}

.warehouse-rename-btn {
    width: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.warehouse-rename-btn .btn-icon {
    margin: 0;
}

#refresh-btn,
#excel-btn,
#print-btn,
.fbs-export-excel-btn,
.fbs-print-btn {
    min-width: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-label-short {
    display: none;
}

.btn-label-full {
    display: inline;
}

.print-progress {
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 160px;
    max-width: 240px;
}

.print-progress-bar {
    flex: 1;
    height: 8px;
    background: #eef1f6;
    border-radius: 999px;
    overflow: hidden;
}

.print-progress-fill {
    height: 100%;
    width: 0%;
    background: #2b6cf6;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.print-progress-label {
    font-size: 12.5px;
    color: #777;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ───────────── Таблицы ───────────── */

.shipments-table,
.articles-table,
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20, 30, 60, 0.06);
}

.history-table {
    table-layout: fixed;
}

.shipments-table th,
.shipments-table td,
.articles-table th,
.articles-table td,
.history-table th,
.history-table td,
.admin-table th,
.admin-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f0f1f5;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

.articles-table th:not(:first-child),
.articles-table td:not(:first-child) {
    text-align: center;
}

.shipments-table th,
.articles-table th,
.history-table th,
.admin-table th {
    background: transparent;
    border-bottom: 1px solid #e8eaf0;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9aa1b3;
}

.article-separately-cell {
    text-align: center;
}

.shipments-table tbody tr,
.articles-table tbody tr,
.history-table tbody tr,
.admin-table tbody tr {
    transition: background-color 0.12s ease;
}

.shipments-table tbody tr:nth-child(even),
.articles-table tbody tr:nth-child(even),
.history-table tbody tr:nth-child(even),
.admin-table tbody tr:nth-child(even) {
    background: #fafbfd;
}

.shipments-table tbody tr:hover,
.articles-table tbody tr:hover,
.history-table tbody tr:hover,
.admin-table tbody tr:hover {
    background: #f7f9fd;
}

.shipments-table tbody tr {
    box-shadow: inset 3px 0 0 transparent;
}

.shipments-table tbody tr:hover {
    box-shadow: inset 3px 0 0 #2b6cf6;
}

.qty-badge {
    display: inline-block;
    min-width: 22px;
    padding: 3px 10px;
    background: #eaf1ff;
    color: #2b6cf6;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
}

.shipments-table tbody tr:last-child td,
.articles-table tbody tr:last-child td,
.history-table tbody tr:last-child td,
.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.col-num {
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #333;
}

.col-article {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-name {
    padding-left: 32px;
    overflow: hidden;
}

.col-warehouse {
    color: #777;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 12px;
}

.name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

.name-text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.name-wrap .badge-urgent,
.name-wrap .badge-multi,
.name-wrap .badge-multi-qty {
    flex-shrink: 0;
}

.col-date {
    color: #777;
    font-size: 13px;
    white-space: nowrap;
}

.col-file {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 260px;
}

.file-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: #9aa1b3;
}

.file-icon svg {
    width: 17px;
    height: 17px;
}

.file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.col-action {
    width: 1%;
    text-align: right;
    padding-left: 4px !important;
    padding-right: 10px !important;
}

.table-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #667;
    text-decoration: none;
}

.table-icon-btn:hover {
    background: #eef1f9;
    color: #2b6cf6;
}

.table-icon-btn svg {
    width: 16px;
    height: 16px;
    margin: 0;
}

.row-multi {
    background: #fff9f8;
}

.badge-multi {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.badge-urgent {
    display: inline-block;
    background: #d97706;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.badge-multi-qty {
    display: inline-block;
    background: #2b6cf6;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.print-toggles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.print-toggle-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.highlight-urgent-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 4px;
}

.urgent-help-wrap {
    position: relative;
    display: inline-flex;
}

.urgent-help-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.urgent-help-icon:hover {
    border-color: #2b6cf6;
    color: #2b6cf6;
}

.urgent-help-tooltip {
    display: none;
    position: absolute;
    top: 26px;
    left: 0;
    z-index: 50;
    width: 260px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12.5px;
    line-height: 1.5;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.urgent-help-tooltip.open {
    display: block;
}

.highlight-urgent-toggle input {
    margin: 0;
    cursor: pointer;
}

/* ───────────── Блок артикулов ───────────── */

.articles-section {
    margin-top: 24px;
}

.articles-section h3 {
    margin-bottom: 12px;
}

.inline-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.inline-form input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.upload-block {
    margin-bottom: 16px;
}

.upload-block label {
    display: inline-block;
    cursor: pointer;
}

/* ───────────── Админка ───────────── */

.admin-layout {
    padding: 24px 40px;
}

.admin-tabs {
    margin: 0 0 20px 0;
    padding: 0 12px;
}

.admin-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: #e0393e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

.admin-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-stats .stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 160px;
    text-align: center;
}

.admin-stats .stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #2b6cf6;
}

.admin-stats .stat-card .stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.admin-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.admin-section-header h2 {
    margin: 0;
}

.admin-hint {
    color: #888;
    font-size: 13px;
    margin: 0 0 12px;
}

.admin-inline-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.admin-inline-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
}

.admin-inline-controls input[type="number"] {
    padding: 6px 8px;
    border: 1px solid #e3e6ee;
    border-radius: 6px;
}

.admin-inline-controls input[type="date"] {
    padding: 6px 8px;
    border: 1px solid #e3e6ee;
    border-radius: 6px;
}

.balance-preset-btn.active {
    background: #2b6cf6;
    color: #fff;
    border-color: #2b6cf6;
}

.balance-cards {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.balance-card {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 16px 24px;
    min-width: 160px;
}

.balance-card-label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.balance-card-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    margin-top: 4px;
    color: #1a1a1a;
}

.admin-search-input {
    padding: 8px 12px;
    border: 1px solid #e3e6ee;
    border-radius: 8px;
    font-size: 14px;
    width: 240px;
}

.admin-search-input:focus {
    outline: none;
    border-color: #2b6cf6;
}

.stat-card-online .stat-value {
    color: #1d7a4f;
}

.online-dot {
    font-size: 10px;
    vertical-align: middle;
}

.last-seen-online {
    color: #1d7a4f;
    font-weight: 600;
}

.last-seen-never {
    color: #999;
    font-style: italic;
}

.days-left {
    font-size: 12.5px;
    color: #888;
}

.days-left-warn {
    color: #b45309;
    font-weight: 600;
}

.days-left-expired {
    color: #c0392b;
    font-weight: 600;
}

.admin-section h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* ───────────── Адаптив (минимальный, только ПК согласно требованиям) ───────────── */

@media (max-width: 900px) {
    .features-layout {
        flex-direction: column;
    }

    .features-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ───────────── Вкладки ───────────── */

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #2b6cf6;
}

.tab-btn.active {
    color: #2b6cf6;
    border-bottom-color: #2b6cf6;
    font-weight: 500;
}

.tab-content {
    min-height: 300px;
}

/* ───────────── Способы загрузки артикулов (под-вкладки) ───────────── */

.upload-method-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.upload-method-btn {
    padding: 9px 18px;
    border: 1px solid #e3e6ee;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.upload-method-btn:hover {
    border-color: #b9c6e8;
    color: #2b6cf6;
}

.upload-method-btn.active {
    background: #2b6cf6;
    border-color: #2b6cf6;
    color: #fff;
}

.upload-option-card h4 {
    margin-bottom: 8px;
    font-size: 16px;
    color: #1a1a1a;
}

.upload-option-card > .btn {
    margin-top: 12px;
}

/* ───────────── Карточка синхронизации по API ───────────── */

.api-sync-card {
    max-width: 440px;
    margin: 24px auto 0;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e3e6ee;
    box-shadow: 0 2px 10px rgba(20, 30, 60, 0.06);
    text-align: center;
}

.api-sync-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eef3ff;
    color: #2b6cf6;
    margin-bottom: 14px;
}

.api-sync-icon svg {
    width: 22px;
    height: 22px;
    margin: 0;
}

.api-sync-card h4 {
    font-size: 17px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.api-sync-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.55;
    margin-bottom: 18px;
}

.api-sync-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    background: #fff8ec;
    border: 1px solid #f3e2b8;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #7a5c1e;
    margin-bottom: 20px;
}

.api-sync-note svg {
    color: #c9932b;
    flex-shrink: 0;
    margin: 1px 0 0;
}

.api-sync-btn {
    width: 100%;
}

#sync-api-result {
    text-align: center;
    margin-top: 10px;
}

.upload-template-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #f7f9fd;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.upload-template-row .btn {
    flex-shrink: 0;
}

/* ───────────── Инлайн-редактирование названия артикула ───────────── */

.article-name-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    background: transparent;
}

.article-name-input:hover {
    border-color: #e3e6ee;
}

.article-name-input:focus {
    outline: none;
    border-color: #2b6cf6;
    background: #fff;
}

.article-name-input.article-name-saved {
    background: #e9f5ee;
    border-color: #1d7a4f;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.article-cogs-input {
    width: 100%;
    max-width: 130px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    background: transparent;
    color: #1a1a1a;
}

.article-cogs-input::placeholder {
    color: #c2c6d0;
    text-align: right;
}

.article-cogs-input:hover {
    border-color: #e3e6ee;
    background: #fafbfd;
}

.article-cogs-input:focus {
    outline: none;
    border-color: #2b6cf6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(43, 108, 246, 0.08);
}

/* Убираем стрелочки браузера у number-инпута — со стрелочками поле выглядит
   тяжеловесно и не в стиле остальной таблицы */
.article-cogs-input::-webkit-outer-spin-button,
.article-cogs-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.article-cogs-input[type="number"] {
    -moz-appearance: textfield;
}


/* ───────────── Общие элементы контента ───────────── */

.empty-state {
    color: #888;
    padding: 20px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    margin: 12px 0;
}

.stats-line {
    color: #666;
    font-size: 14px;
    margin: 12px 0;
}

.cancellation-rate {
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 8px;
    cursor: help;
}

.cancellation-rate.rate-ok {
    background: #e9f5ee;
    color: #1d7a4f;
}

.cancellation-rate.rate-warning {
    background: #fff4e0;
    color: #b8790a;
}

.cancellation-rate.rate-danger {
    background: #fde8e9;
    color: #c2293a;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ───────────── Артикулы ───────────── */

.articles-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* ───────────── Поставки FBO ───────────── */

.fbo-header {
    margin-bottom: 16px;
}

.fbo-supply-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fbo-supply-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
}

.fbo-supply-header:hover {
    background: #fafafa;
}

.fbo-supply-toggle-icon {
    color: #888;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.fbo-supply-header.open .fbo-supply-toggle-icon {
    transform: rotate(90deg);
}

.fbo-supply-title {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.fbo-supply-meta {
    font-size: 12.5px;
    color: #888;
    margin-top: 2px;
}

.fbo-supply-zone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0 18px 14px;
}

.fbo-supply-zone-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 16px;
}

.fbo-zone-actions-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.fbo-zone-actions-group .btn {
    width: 100%;
    text-align: center;
    line-height: 20px;
}

#refresh-btn,
.warehouse-filter-select,
.warehouse-rename-btn {
    line-height: 20px;
    box-sizing: border-box;
}

.fbo-supply-zone-hint {
    font-size: 12px;
    color: #a15c00;
    background: #fff8e9;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
    max-width: 100%;
}

.fbo-supply-card::after {
    content: "";
    display: block;
    clear: both;
}

.fbo-supply-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-small {
    padding: 7px 12px;
    font-size: 12.5px;
}

.fbo-supply-body {
    padding: 0 18px 16px;
    border-top: 1px solid #f2f2f2;
}

@media (max-width: 600px) {
    .fbo-supply-header {
        flex-wrap: wrap;
    }

    .fbo-supply-actions {
        width: 100%;
        margin-top: 8px;
    }

    .fbo-supply-actions .btn {
        flex: 1;
    }
}

/* ───────────── Загрузка Excel ───────────── */

.upload-dropzone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: #2b6cf6;
    background: #f0f5ff;
}

.upload-hint {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
}

.upload-format-info {
    margin-top: 24px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
}

.upload-format-info h4 {
    margin-bottom: 12px;
    font-size: 14px;
}

.format-table {
    width: 100%;
    font-size: 13px;
}

.format-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* ───────────── Модальные окна ───────────── */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 480px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

.welcome-intro {
    color: #444;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.welcome-benefits {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.welcome-benefit-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #2b6cf6;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

.welcome-trial-note {
    background: #eef4ff;
    border-left: 3px solid #2b6cf6;
    border-radius: 8px;
    padding: 10px 14px;
    color: #2b6cf6;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 20px;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.welcome-actions .btn-large {
    width: 100%;
}

.support-modal-box {
    width: 620px;
    max-height: 88vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
}

.modal-body {
    padding: 20px;
}

.feedback-choice {
    display: flex;
    gap: 12px;
}

.feedback-choice-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    border: 1px solid #e3e6ee;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}

.feedback-choice-btn:hover {
    border-color: #2b6cf6;
    color: #2b6cf6;
}

.feedback-choice-icon {
    display: inline-flex;
}

.feedback-choice-icon svg {
    width: 28px;
    height: 28px;
}

.btn-icon {
    width: 15px;
    height: 15px;
    vertical-align: -3px;
    margin-right: 6px;
    flex-shrink: 0;
}

.star-rating {
    display: flex;
    gap: 6px;
    font-size: 32px;
    line-height: 1;
}

.star {
    color: #d9dce4;
    cursor: pointer;
}

.star:hover,
.star.star-active {
    color: #f5a623;
}

.modal-body label {
    display: block;
    font-size: 13px;
    color: #444;
    margin: 12px 0 4px;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.modal-body button[type="submit"] {
    margin-top: 16px;
    width: 100%;
}

/* ───────────── Техподдержка ───────────── */

.support-messages {
    max-height: 380px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding: 8px;
    background: #f7f8fa;
    border-radius: 8px;
}

.support-message {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 14px;
}

.support-message.from-user {
    background: #eef3ff;
    text-align: right;
}

.support-message.from-admin {
    background: #fff;
}

.support-message-image {
    display: block;
    max-width: 220px;
    max-height: 220px;
    border-radius: 8px;
    margin: 4px 0;
    cursor: zoom-in;
}

.support-message.from-user .support-message-image {
    margin-left: auto;
}

.support-message-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 3px;
}

.support-message.from-user .support-message-head {
    flex-direction: row-reverse;
}

.support-message-time {
    font-size: 11.5px;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
}

.support-message-read-status {
    text-align: right;
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.support-message-read-status.is-read {
    color: #2b6cf6;
}

.thread-last-message-time {
    font-size: 12.5px;
    color: #999;
    margin-left: 8px;
}

/* ───────────── Админка: доп. элементы ───────────── */

.thread-item, .feedback-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.poll-admin-item {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.poll-admin-item:last-child {
    border-bottom: none;
}

.poll-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.poll-admin-status {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #999;
    background: #f0f1f5;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.poll-admin-status.active {
    color: #1d7a4f;
    background: #e9f5ee;
}

.poll-admin-results {
    margin-top: 12px;
}

.poll-admin-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 13px;
    color: #555;
}

.poll-admin-bar-row span {
    width: 130px;
    flex-shrink: 0;
}

.poll-admin-bar {
    flex: 1;
    height: 8px;
    background: #f0f1f5;
    border-radius: 999px;
    overflow: hidden;
}

.poll-admin-bar-fill {
    height: 100%;
    background: #2b6cf6;
    border-radius: 999px;
}

.poll-admin-bar-fill-no {
    background: #9aa1b3;
}

.poll-admin-total {
    margin-top: 8px;
    font-size: 12.5px;
    color: #999;
}

.poll-admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.badge {
    background: #e63946;
    color: #fff;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 6px;
    text-decoration: none;
}

.modal-body .inline-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.modal-body .inline-form input {
    width: auto;
    min-width: 0;
    flex: 1;
}

.modal-body .inline-form button {
    width: auto;
    flex-shrink: 0;
    margin-top: 0;
}

/* ───────────── Форма техподдержки с растягивающимся textarea ───────────── */

.modal-body .support-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
}

.modal-body .support-form textarea {
    box-sizing: border-box;
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    min-height: 44px;
    max-height: 200px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    overflow-y: auto;
    line-height: 1.4;
}

.modal-body .support-form textarea:focus {
    outline: none;
    border-color: #2b6cf6;
}

.modal-body .support-form button {
    flex: 0 0 auto;
    height: 44px;
    width: auto;
    margin-top: 0;
}

.modal-body .support-form .support-attach-btn {
    width: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body .support-form .support-attach-btn .btn-icon {
    margin: 0;
}

.history-columns {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.history-column {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.legal-page {
    max-width: 1000px;
    margin: 100px auto 60px;
    padding: 48px 56px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    line-height: 1.75;
}

.updates-page {
    max-width: 760px;
    margin: 100px auto 60px;
    padding: 48px 56px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.updates-page h1 {
    font-size: 32px;
    margin-bottom: 6px;
}

.updates-subtitle {
    color: #888;
    margin-bottom: 36px;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.update-entry {
    display: flex;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid #eee;
}

.update-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.update-date {
    flex-shrink: 0;
    width: 100px;
    color: #2b6cf6;
    font-weight: 700;
    font-size: 13.5px;
    padding-top: 2px;
}

.update-body h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.update-body p {
    color: #555;
    line-height: 1.6;
    font-size: 14.5px;
}

@media (max-width: 600px) {
    .updates-page {
        margin: 84px 12px 40px;
        padding: 28px 22px;
    }

    .update-entry {
        flex-direction: column;
        gap: 6px;
    }

    .update-date {
        width: auto;
    }
}

.legal-page h1 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.legal-updated {
    color: #999;
    font-size: 13px;
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.legal-page h2 {
    font-size: 17px;
    margin-top: 36px;
    margin-bottom: 14px;
    color: #2b6cf6;
    font-weight: 600;
}

.legal-page p {
    margin-bottom: 14px;
    color: #333;
    font-size: 15px;
}

/* Явно переопределяем глобальный сброс списков из базовых стилей сайта */
.legal-page ul.legal-list {
    list-style-type: disc !important;
    padding-left: 24px !important;
    margin: 16px 0 20px 0 !important;
}

.legal-page ul.legal-list li {
    display: list-item !important;
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
    padding-left: 4px;
}

.legal-page a {
    color: #2b6cf6;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   Landing v2 — новые блоки главной страницы (префикс lp-)
   Мёртвые классы старого лендинга (why-service, hero-banner,
   video-demo и др.) вычищены при аудите перед деплоем.
   ═══════════════════════════════════════════════════════════ */

.lp-main {
    padding-top: 110px; /* отступ под фиксированную шапку */
}

.lp-section {
    padding-block: 56px;
    padding-inline: max(20px, calc((100% - 1360px) / 2));
}

.lp-tint {
    background: #eef3fb;
}

/* --- штрихкод-маркер секций --- */
.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.lp-eyebrow::before {
    content: '';
    width: 104px;
    height: 34px;
    background: repeating-linear-gradient(
        90deg,
        #1a1a1a 0 4px, transparent 4px 10px,
        #1a1a1a 10px 12px, transparent 12px 16px,
        #1a1a1a 16px 22px, transparent 22px 26px
    );
}

.lp-eyebrow span {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
}

.lp-new-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: linear-gradient(120deg, #2b6cf6, #a233e0);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.lp-title {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.lp-lead {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    max-width: 760px;
}

/* --- Hero --- */
.lp-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    padding-block: 48px 64px;
    padding-inline: max(20px, calc((100% - 1360px) / 2));
}

.lp-hero-banner-section {
    padding-inline: max(20px, calc((100% - 1360px) / 2));
    padding-bottom: 64px;
}

.lp-hero h1 {
    font-size: 46px;
    line-height: 1.2;
    color: #1a1a1a;
}

.lp-hero h1 em {
    font-style: normal;
    color: #2b6cf6;
}

/* ═══════ Интерактивный баннер: FBS / FBO / Аналитика ═══════
   Три диагональные карточки; при наведении/фокусе/тапе активная
   разворачивается на всю ширину с описанием, остальные уезжают
   в стороны от неё (влево или вправо, в зависимости от позиции). */
.hero-banner {
    position: relative;
    height: 500px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(40, 30, 110, 0.28);
    background: linear-gradient(100deg, #2b6cf6 0%, #7c3fe0 50%, #e024c6 100%);
}

.hero-card {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 33.334%;
    cursor: pointer;
    outline: none;
    transition: left 0.6s cubic-bezier(.22, .85, .3, 1), width 0.6s cubic-bezier(.22, .85, .3, 1);
}

.hero-card:nth-child(1) { left: 0; width: 40%; }
.hero-card:nth-child(2) { left: 40%; width: 30%; }   /* было 41% */
.hero-card:nth-child(3) { left: 70%; width: 30%; }

.hero-card-shape {
    position: absolute;
    top: 0;
    right: -90px;
    bottom: 0;
    left: -90px;
    transform: skewX(-6deg);
}

.hero-card-shape-1 { background: linear-gradient(120deg, #2b6cf6 0%, #6a4eea 100%); }
.hero-card-shape-2 { background: linear-gradient(120deg, #6247e8 0%, #a233e0 100%); box-shadow: 34px 0 50px -6px rgba(10, 0, 40, 0.55); }
.hero-card-shape-3 { background: linear-gradient(120deg, #a233e0 0%, #e024c6 100%); }
.hero-card:nth-child(1) .hero-card-shape-1 { box-shadow: 34px 0 50px -6px rgba(10, 0, 40, 0.55); }

.hero-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 175px;
    padding-left: 44px;
    padding-right: 24px;
    color: #fff;
    overflow: hidden;
}

/* У FBO и "Аналитики" левая граница панели рисуется соседней (более поздней
   по DOM) фигурой, которая нахлёстывается поверх — из-за этого их реальный
   видимый левый край уже смещён левее собственной рамки блока примерно на
   90+ px, и с обычным отступом (44px, как у FBS) текст оказывался в сумме
   на ~168px от видимого среза вместо нужных ~48px. Компенсируем отрицательным
   отступом слева — измерено и подобрано по пикселям на реальном рендере.

   Важно: применяем ТОЛЬКО когда ни одна карточка не активна (обычный
   свёрнутый вид) — если оставить это правило действовать всегда, при
   уезжании карточки в сторону (когда активна СОСЕДНЯЯ) отрицательный
   отступ утягивал её текст обратно в видимую область, и было видно
   кусок чужого названия у края баннера. */
.hero-banner:not(.active-0):not(.active-1):not(.active-2) .hero-card:nth-child(2) .hero-card-content,
.hero-banner:not(.active-0):not(.active-1):not(.active-2) .hero-card:nth-child(3) .hero-card-content {
    padding-left: 0;
    margin-left: -46px;
}

/* Когда карточка 2 или 3 становится активной (разворачивается на всю
   ширину баннера, начиная от самого левого края) — компенсация чужого
   наложения ей больше не нужна, она сама теперь "первая" по факту, как
   FBS. Без сброса отрицательный отступ утаскивал текст за левый край
   баннера, и он обрезался. */
.hero-banner.active-1 .hero-card:nth-child(2) .hero-card-content,
.hero-banner.active-2 .hero-card:nth-child(3) .hero-card-content {
    padding-left: 44px;
    margin-left: 0;
}

.hero-card-label {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.hero-card-desc {
    margin-top: 18px;
    max-width: 420px;
    font-size: 16.5px;
    line-height: 1.55;
    font-weight: 400;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

.hero-card-features {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    max-width: 460px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease 0.18s, transform 0.35s ease 0.18s;
}

.hero-card-features li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 10px;
}

.hero-card-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75);
}

.hero-card-features li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 7.5px;
    width: 5px;
    height: 3px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg);
}

.hero-card-image {
    position: absolute;
    right: 40px;
    top: 50%;
    width: 720px;
    max-width: 60%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top left;
    border-radius: 14px;
    box-shadow: 0 24px 55px rgba(8, 0, 35, 0.5);
    opacity: 0;
    z-index: 1;
    cursor: zoom-in;
    transform: translateY(-50%) translateX(24px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s, max-width 0.2s ease;
}

/* Промежуточные размеры экрана — баннер уже не во всю ширину десктопа, но
   ещё не мобильная раскладка (та начинается ниже, на 720px, и там картинка
   скрыта совсем). Без этих правил на средних экранах картинка (которая
   растёт вместе с шириной баннера) могла наезжать на текст (который не
   уменьшается, у него фиксированный max-width). */
/* Ноутбучные экраны (~1150-1400px) — тот же диапазон, что и у раскладки
   кабинета. Баннер здесь заметно уже, чем на большом мониторе (там у него
   свой потолок в 1360px с солидными полями по бокам, здесь же почти во всю
   ширину экрана) — полноразмерная картинка (720px) в этом промежутке ещё
   не уменьшалась (следующая точка была только на 1150px), и наезжала на
   текст рядом с собой. */
@media (max-width: 1400px) {
    .hero-card-image { max-width: 38%; }
    .hero-card-desc, .hero-card-features { max-width: 300px; }
    .hero-card-label { font-size: 30px; }
}

@media (max-width: 1150px) {
    .hero-card-image { max-width: 42%; }
    .hero-card-desc, .hero-card-features { max-width: 320px; }
    .hero-card-label { font-size: 26px; }
}

@media (max-width: 900px) {
    .hero-card-image { max-width: 34%; }
    .hero-card-desc, .hero-card-features { max-width: 260px; }
    .hero-card-content { padding-right: 14px; }
    .hero-card-label { font-size: 22px; }
}

.hero-banner.active-0 .hero-card:nth-child(1) .hero-card-image,
.hero-banner.active-1 .hero-card:nth-child(2) .hero-card-image,
.hero-banner.active-2 .hero-card:nth-child(3) .hero-card-image {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.hero-card-hint {
    position: absolute;
    left: 44px;
    bottom: 26px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    opacity: 0.75;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Та же компенсация наложения соседней панели, что и у основного текста
   выше (см. .hero-card-content для панелей 2/3) — иначе подсказка "Навести"
   у FBO и "Аналитики" не совпадала бы по отступу с заголовком над ней. */
.hero-card:nth-child(2) .hero-card-hint,
.hero-card:nth-child(3) .hero-card-hint {
    left: -44px;
}

.hero-card:focus-visible .hero-card-shape {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

/* Активные состояния — какая карточка развёрнута и куда уезжают остальные */
.hero-banner.active-0 .hero-card:nth-child(1) { left: 0; width: 100%; }
.hero-banner.active-0 .hero-card:nth-child(2) { left: 100%; }
.hero-banner.active-0 .hero-card:nth-child(3) { left: 133.334%; }

.hero-banner.active-1 .hero-card:nth-child(1) { left: -100%; }
.hero-banner.active-1 .hero-card:nth-child(2) { left: 0; width: 100%; }
.hero-banner.active-1 .hero-card:nth-child(3) { left: 100%; }

.hero-banner.active-2 .hero-card:nth-child(1) { left: -133.334%; }
.hero-banner.active-2 .hero-card:nth-child(2) { left: -100%; }
.hero-banner.active-2 .hero-card:nth-child(3) { left: 0; width: 100%; }

.hero-banner.active-0 .hero-card:nth-child(1) .hero-card-desc,
.hero-banner.active-1 .hero-card:nth-child(2) .hero-card-desc,
.hero-banner.active-2 .hero-card:nth-child(3) .hero-card-desc {
    opacity: 1;
    transform: translateY(0);
}

.hero-banner.active-0 .hero-card:nth-child(1) .hero-card-features,
.hero-banner.active-1 .hero-card:nth-child(2) .hero-card-features,
.hero-banner.active-2 .hero-card:nth-child(3) .hero-card-features {
    opacity: 1;
    transform: translateY(0);
}

.hero-banner.active-0 .hero-card:nth-child(1) .hero-card-hint,
.hero-banner.active-1 .hero-card:nth-child(2) .hero-card-hint,
.hero-banner.active-2 .hero-card:nth-child(3) .hero-card-hint,
.hero-banner.active-0 .hero-card:nth-child(2) .hero-card-hint,
.hero-banner.active-0 .hero-card:nth-child(3) .hero-card-hint,
.hero-banner.active-1 .hero-card:nth-child(1) .hero-card-hint,
.hero-banner.active-1 .hero-card:nth-child(3) .hero-card-hint,
.hero-banner.active-2 .hero-card:nth-child(1) .hero-card-hint,
.hero-banner.active-2 .hero-card:nth-child(2) .hero-card-hint {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero-card, .hero-card-shape, .hero-card-desc, .hero-card-features, .hero-card-hint, .hero-card-image {
        transition: none !important;
    }
}

/* Мобильная раскладка — наведение недоступно на сенсорных экранах,
   поэтому просто показываем три карточки одна под другой, с текстом
   всегда видимым, без анимации разворачивания */
@media (max-width: 720px) {
    .hero-banner { height: auto; box-shadow: none; border-radius: 0; background: none; }
    .hero-card,
    .hero-banner.active-0 .hero-card,
    .hero-banner.active-1 .hero-card,
    .hero-banner.active-2 .hero-card {
        position: relative;
        left: 0 !important;
        width: 100% !important;
        min-height: 160px;
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 14px;
        transition: none;
    }
    .hero-card-shape { position: absolute; inset: 0; top: 0; right: 0; bottom: 0; left: 0; transform: none; }
    .hero-card-content { padding: 26px 22px; padding-bottom: 22px; height: auto; overflow: visible; }
    .hero-banner .hero-card:nth-child(2) .hero-card-content,
    .hero-banner .hero-card:nth-child(3) .hero-card-content {
        padding-left: 22px !important;
        margin-left: 0 !important;
    }
    .hero-card-label { font-size: 30px; }
    .hero-card-desc { opacity: 1; transform: none; max-width: 100%; margin-top: 8px; }
    .hero-card-features { opacity: 1; transform: none; max-width: 100%; }
    .hero-card-hint { display: none; }
    .hero-card-image {
        display: block;
        position: static;
        opacity: 1;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 10;
        margin-top: 16px;
        transform: none;
        box-shadow: 0 12px 30px rgba(8, 0, 35, 0.35);
    }
}

.lp-hero-value {
    margin-top: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.lp-hero-price {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.lp-hero-price {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 14px;
    padding: 8px 18px;
    background: #eef4ff;
    border-radius: 999px;
    color: #2b6cf6;
    font-size: 20px;
    font-weight: 800;
}

.lp-hero-price span {
    font-size: 13.5px;
    font-weight: 600;
    color: #6b86c9;
}

.lp-hero-sub {
    margin-top: 16px;
    font-size: 19px;
    line-height: 1.6;
    color: #444;
    max-width: 580px;
}

.lp-hero-audience {
    margin-top: 16px;
    padding: 14px 18px;
    max-width: 580px;
    box-sizing: border-box;
    background: #eef4ff;
    border-left: 3px solid #2b6cf6;
    border-radius: 8px;
    font-size: 15.5px;
    line-height: 1.55;
    color: #333;
}

.lp-hero-audience strong {
    color: #1a4fc4;
}

.lp-hero-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lp-note {
    margin-top: 10px;
    font-size: 14px;
    color: #667;
}

.lp-origin {
    margin-top: 22px;
    font-size: 14.5px;
    color: #555;
}

.lp-origin::before {
    content: '— ';
    color: #2b6cf6;
    font-weight: 700;
}

/* --- сигнатурный элемент: лента этикеток (реальные PDF-наклейки сервиса) --- */
.lp-tape {
    position: relative;
    padding: 20px 0 40px;
    min-height: 420px;
}

.lp-label-img {
    display: block;
    position: absolute;
    width: 78%;
    max-width: 460px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(20, 30, 60, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.lp-label-1 {
    top: 0;
    left: 0;
    transform: rotate(-4deg);
    z-index: 2;
}

.lp-label-2 {
    top: 150px;
    left: 16%;
    transform: rotate(3deg);
    z-index: 1;
}

/* --- карточки-боли --- */
.lp-pain-layout {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.lp-pain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.lp-pain-image img {
    width: 80%;
    height: auto;
    border-radius: 16px;
}

.lp-pain {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.lp-pain-mark {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 12.5px;
    color: #b4443c;
    background: #fbedeb;
    padding: 3px 10px;
    border-radius: 6px;
}

.lp-pain p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.55;
    color: #555;
}

.lp-pain p strong {
    color: #1a1a1a;
}

/* --- шаги --- */
.lp-steps {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: lpstep;
}

.lp-step {
    background: #fff;
    border-radius: 12px;
    padding: 26px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.lp-step::before {
    counter-increment: lpstep;
    content: counter(lpstep, decimal-leading-zero);
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 14px;
    color: #2b6cf6;
}

.lp-step h3 {
    margin-top: 8px;
    font-size: 19px;
    color: #1a1a1a;
}

.lp-step p {
    margin-top: 8px;
    font-size: 15.5px;
    line-height: 1.55;
    color: #555;
}

.lp-step-time {
    display: inline-block;
    margin-top: 12px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 12.5px;
    color: #1d7a4f;
    background: #e9f5ee;
    padding: 3px 10px;
    border-radius: 6px;
}

.lp-steps-note {
    margin-top: 24px;
    padding: 16px 20px;
    background: #e8effe;
    border-radius: 12px;
    color: #1d54c7;
    font-size: 16.5px;
    line-height: 1.55;
}

/* --- демо / скорость --- */
.lp-demo-frame {
    margin-top: 32px;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 14px;
}

.lp-demo-screen {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: radial-gradient(ellipse at 30% 20%, #2d2f3a 0%, #1e1f26 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lp-demo-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.lp-demo-placeholder {
    text-align: center;
    color: #a7a9b4;
    font-size: 15px;
    padding: 24px;
}

.lp-demo-play {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #2b6cf6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-demo-play::before {
    content: '';
    border-left: 17px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px;
}

.lp-demo-caption {
    margin-top: 18px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.lp-demo-caption .big {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a1a;
}

.lp-demo-caption .small {
    font-size: 16.5px;
    color: #555;
}

/* --- функции --- */
.lp-features-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lp-feature {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.lp-feature .feature-icon {
    margin-bottom: 10px;
}

.lp-feature h3 {
    font-size: 18px;
    color: #2b6cf6;
}

.lp-feature p {
    margin-top: 7px;
    font-size: 15.5px;
    line-height: 1.55;
    color: #555;
}

.lp-feature.lp-soon {
    background: rgba(255, 255, 255, 0.55);
    border: 1.5px dashed #b9c6e8;
    box-shadow: none;
}

.lp-soon-tag {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 11px;
    color: #667;
    border: 1px solid #c4cbdd;
    border-radius: 6px;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: 2px;
}

.lp-features-cta {
    margin-top: 32px;
    text-align: center;
}

/* --- сравнение --- */
.lp-compare-wrap {
    margin-top: 32px;
    overflow-x: auto;
}

.lp-compare {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.lp-compare th,
.lp-compare td {
    padding: 14px 16px;
    text-align: left;
    font-size: 15.5px;
    line-height: 1.5;
    text-align: center;
    border-bottom: 1px solid #eef0f5;
    vertical-align: top;
    color: #444;
}

.lp-compare thead th {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    background: #f7f9fd;
}

.lp-compare tbody tr:last-child td {
    border-bottom: none;
}

.lp-compare td:first-child {
    color: #667;
    width: 24%;
}

.lp-compare .lp-col-us {
    background: #e8effe;
    color: #1d54c7;
    font-weight: 600;
}

.lp-compare thead .lp-col-us {
    background: #2b6cf6;
    color: #fff;
}

.lp-compare-footnote {
    margin-top: 12px;
    font-size: 13px;
    color: #667;
}

.lp-compare-footnote a {
    color: #2b6cf6;
}

/* --- цена (расширение существующей карточки) --- */
.pricing {
    text-align: center;
}

.lp-pricing-card {
    display: inline-block;
    background: #fff;
    padding: 40px 48px;
    border-radius: 16px;
    border: 2px solid #2b6cf6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
    max-width: 560px;
}

.lp-price-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.lp-price-list li {
    position: relative;
    padding-left: 26px;
    margin-top: 8px;
    font-size: 16px;
    color: #555;
}

.lp-price-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 7px;
    border-left: 2.5px solid #1d7a4f;
    border-bottom: 2.5px solid #1d7a4f;
    transform: rotate(-45deg);
}

.lp-price-promise {
    margin-top: 18px;
    font-weight: 700;
    font-size: 16.5px;
    color: #1a1a1a;
}

.lp-pricing-card .btn {
    margin-top: 24px;
}

/* --- FAQ --- */
.lp-faq {
    margin-top: 28px;
}

.lp-faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-top: 12px;
}

.lp-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 17px;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.lp-faq-item summary::-webkit-details-marker {
    display: none;
}

.lp-faq-item summary::after {
    content: '+';
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #2b6cf6;
    flex-shrink: 0;
}

.lp-faq-item[open] summary::after {
    content: '–';
}

.lp-faq-body {
    padding: 0 22px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* --- история + финальный CTA --- */
.lp-story {
    background: #1e2f66;
    border-radius: 20px;
    padding: 56px 48px;
    text-align: center;
    color: #e9ecf5;
}

.lp-story .lp-eyebrow {
    justify-content: center;
}

.lp-story .lp-eyebrow::before {
    background: repeating-linear-gradient(
        90deg,
        #e9ecf5 0 4px, transparent 4px 10px,
        #e9ecf5 10px 12px, transparent 12px 16px,
        #e9ecf5 16px 22px, transparent 22px 26px
    );
}

.lp-story .lp-eyebrow span {
    color: #9aa5c7;
}

.lp-story h2 {
    font-size: 30px;
    line-height: 1.3;
    max-width: 26ch;
    margin: 0 auto;
    color: #fff;
}

.lp-story p {
    margin: 18px auto 0;
    max-width: 60ch;
    font-size: 17px;
    line-height: 1.6;
    color: #b9c2dd;
}

.lp-story .btn {
    margin-top: 30px;
}

/* --- адаптив лендинга --- */
@media (max-width: 900px) {
    .lp-hero {
        grid-template-columns: 1fr;
    }

    .lp-tape {
        position: static;
        min-height: 0;
        max-width: 440px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .lp-label-img {
        position: static;
        width: 100%;
        max-width: none;
        transform: none;
    }

    .lp-nav {
        display: none;
    }

    .lp-footer-top {
        flex-direction: column;
        gap: 28px;
    }

    .lp-footer-links {
        gap: 40px;
    }

    .lp-pain-layout {
        grid-template-columns: 1fr;
    }

    .lp-pain-grid,
    .lp-steps,
    .lp-features-grid {
        grid-template-columns: 1fr;
    }

    .lp-hero h1 {
        font-size: 34px;
    }

    .lp-title {
        font-size: 36px;
    }

    /* Шапка (сайт и кабинет) — логотип и кнопки уменьшаем, чтобы умещались на узком экране */
    .header {
        padding: 8px 14px;
    }

    .logo img {
        height: 24px;
    }

    .header-buttons {
        gap: 6px;
    }

    .header-buttons .btn {
        padding: 8px 12px;
        font-size: 12.5px;
    }

    .user-info {
        gap: 6px;
        font-size: 12.5px;
    }

    .user-info .btn {
        padding: 8px 12px;
        font-size: 12.5px;
    }

    /* Кнопки вкладки "Печать" в кабинете — короткие подписи только на мобильном */
    .btn-label-short {
        display: inline;
    }

    .btn-label-full {
        display: none;
    }

    /* Выезжающее меню кабинета — на мобильном скрываем магазины и подписку
       за кнопкой-гамбургером, чтобы сразу показать рабочую область */
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cabinet-layout {
        display: block;
        min-height: auto;
    }

    .mobile-drawer {
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        max-width: 82vw;
        height: 100vh;
        background: linear-gradient(135deg, #cce4ff 10%, #fae3ff 90%);
        z-index: 2001;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
        transition: left 0.28s ease, background 0.4s ease;
    }

    body.marketplace-wb .mobile-drawer {
        background: linear-gradient(135deg, #ffcdf0 10%, #ffe3f5 90%);
    }

    .mobile-drawer.open {
        left: 0;
    }

    .mobile-drawer .sidebar {
        width: auto;
        background: none;
        padding: 0;
        border-right: none;
    }

    .mobile-drawer .side-widgets {
        position: static;
        width: auto;
        top: auto;
        right: auto;
    }

    .mobile-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 18, 28, 0.5);
        z-index: 2000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }

    .mobile-drawer-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    .main-content {
        margin: 16px 12px !important;
        width: auto;
        padding: 18px;
    }

    .mode-tabs {
        margin: -18px -18px 16px -18px;
        padding: 0 14px;
    }

    .mode-tab {
        padding: 12px 18px;
        font-size: 13.5px;
    }
}

/* ───────────── Обучающий тур по кабинету ───────────── */

.onboarding-spotlight {
    position: fixed;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(15, 18, 28, 0.68);
    z-index: 3000;
    pointer-events: none;
    transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.onboarding-tooltip {
    position: fixed;
    z-index: 3001;
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
    transition: top 0.3s ease, left 0.3s ease;
}

.onboarding-tooltip-step {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2b6cf6;
    margin-bottom: 6px;
}

.onboarding-tooltip-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 16px;
}

.onboarding-tooltip-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.onboarding-skip-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
}

.onboarding-skip-btn:hover {
    color: #666;
    text-decoration: underline;
}

.onboarding-next-btn {
    padding: 9px 18px;
    font-size: 13.5px;
    white-space: nowrap;
}

/* ───────────── Проверка оплаты (баннер после возврата с ЮKassa) ───────────── */

.payment-check-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ───────────── Вкладка "Аналитика" ───────────── */

.analytics-dashboard-iframe {
    width: 100%;
    min-height: 400px;
    border: none;
    overflow: hidden;
}

.scroll-to-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #2b6cf6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(43, 108, 246, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
    z-index: 1500;
}

.scroll-to-top-btn:hover {
    background: #1f57d1;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
}

.shipments-collapsible {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20, 30, 60, 0.06);
    margin-top: 16px;
    position: relative;
}

.shipments-collapsible .shipments-table-nostyle {
    margin-top: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    table-layout: fixed;
}

.shipments-collapse-clip {
    max-height: 42px;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.shipments-collapse-clip.expanded {
    max-height: 6000px;
}

.shipments-collapse-fade {
    position: relative;
    height: 50px;
    margin-top: -50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 55%, #fff 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    pointer-events: none;
}

.shipments-collapse-fade.hidden {
    display: none;
}

.shipments-expand-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #2b6cf6;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(20, 30, 60, 0.1);
    transition: background 0.15s ease;
}

.shipments-expand-btn:hover {
    background: #f4f5f7;
}

/* ═══════ Лайтбокс — увеличение картинки в баннере по клику ═══════ */
.hero-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 30, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.hero-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.hero-lightbox-img {
    max-width: min(1100px, 100%);
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.hero-lightbox.open .hero-lightbox-img {
    transform: scale(1);
}

.hero-lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.hero-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .hero-lightbox, .hero-lightbox-img {
        transition: none !important;
    }
}

@media (max-width: 720px) and (orientation: portrait) {
    /* В вертикальном режиме на телефоне первый экран не должен быть весь
       занят текстом — оставляем заголовок с сутью и кнопки, а подробное
       описание (то же самое, по сути, ещё раз объясняется ниже на странице,
       в блоке "Функции") убираем, чтобы кнопка была видна сразу, без скролла. */
    .lp-hero-sub,
    .lp-origin {
        display: none;
    }
}

/* Ноутбучные экраны (~1280-1400px, типично для 14-16") — на десктопе
   правая панель подписки спозиционирована абсолютно поверх места,
   зарезервированного через margin-right у main-content. На широком
   мониторе места хватает всем, но здесь сайдбар (260px) + зарезервированное
   место справа (260px) вместе съедают слишком много — собственному
   содержимому main-content (кнопки, карточки поставок FBO) не хватает
   ширины, и оно вылезает/накладывается на соседние блоки.

   Решение — объединить сайдбар и правую панель подписки в одну левую
   колонку, одну под другой, вместо раздельных "слева" и "плавающая справа
   поверх запаса места". main-content тогда получает всю освободившуюся
   ширину как единый блок, без гонки с зарезервированным справа местом. */
@media (max-width: 1400px) {
    .mobile-drawer {
        display: flex;
        flex-direction: column;
        width: 260px;
        flex-shrink: 0;
        gap: 16px;
        /* Единый градиент на весь столбец — раньше он был только у sidebar,
           а тот теперь короче всего столбца (снизу к нему пристыкована
           панель подписки), из-за чего ниже sidebar был виден резкий
           переход на сплошной цвет вместо плавного градиента. */
        background: linear-gradient(135deg, #cce4ff 10%, #fae3ff 90%);
        border-radius: 12px;
        transition: width 0.45s cubic-bezier(.4,0,.2,1), opacity 0.35s ease;
        overflow: hidden;
    }
    body.marketplace-wb .mobile-drawer {
        background: linear-gradient(135deg, #ffcdf0 10%, #ffe3f5 90%);
    }
    .sidebar { background: none; border-right: none; }

    .side-widgets {
        position: static;
        width: 100%;
    }
    .main-content {
        margin-right: 20px;
    }

    /* Раньше при переходе на "Аналитика" сворачивался только сам sidebar
       (внутренний блок), а внешний столбец (mobile-drawer), в котором он
       теперь лежит вместе с панелью подписки, держал фиксированную ширину
       260px и не давал main-content расшириться — визуально панель уезжала,
       но освободившееся место не отдавалось. Сворачиваем весь столбец. */
    .cabinet-layout.analytics-active .mobile-drawer {
        width: 0;
        opacity: 0;
        pointer-events: none;
    }
}

/* ───────────── Бесплатный генератор этикеток (публичная страница) ───────────── */

.flg-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.flg-intro h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.flg-card-hint {
    color: #888;
    font-size: 13px;
    margin: -8px 0 14px;
}

.flg-cta-note {
    background: #eef4ff;
    border-left: 3px solid #2b6cf6;
    border-radius: 8px;
    padding: 12px 16px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
    max-width: 760px;
    margin-bottom: 24px;
}

.flg-cta-note a {
    color: #2b6cf6;
    font-weight: 700;
}

.flg-split {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 20px;
    align-items: start;
}

.flg-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.flg-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.flg-card h2 {
    margin: 0 0 14px;
    font-size: 15.5px;
    color: #333;
}

.flg-rows-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.flg-rows-head h2 { margin: 0; }

/* Компактная сетка полей — вместо огромных полей в один столбец */
.flg-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px 12px;
}

.flg-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    color: #555;
    font-weight: 600;
}

.flg-field-sm { max-width: 110px; }

.flg-field input, .flg-field select {
    padding: 7px 9px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 400;
    color: #1a1a1a;
    background: #fff;
}

.flg-field input:focus, .flg-field select:focus {
    outline: none;
    border-color: #2b6cf6;
}

.flg-field-required span::after {
    content: " *";
    color: #c0392b;
    font-weight: 700;
}

.flg-row {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.flg-row:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.flg-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.flg-row-title { font-size: 13.5px; color: #444; }

.flg-row-remove {
    background: none;
    border: 1px solid #eee;
    border-radius: 6px;
    color: #999;
    cursor: pointer;
    width: 24px;
    height: 24px;
    font-size: 12px;
    line-height: 1;
}

.flg-row-remove:hover {
    background: #fdeeee;
    color: #c0392b;
    border-color: #f5c6c6;
}

.flg-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px 12px;
    margin-bottom: 12px;
}

.flg-row-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px dashed #f0f0f0;
    font-size: 12.5px;
    color: #555;
}

.flg-row-marks label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 400;
}

.flg-extra-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.flg-extra-field {
    display: flex;
    gap: 6px;
    align-items: center;
}

.flg-extra-field input {
    flex: 1;
    padding: 6px 9px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12.5px;
}

.flg-extra-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
    padding: 4px 6px;
}

.flg-add-extra {
    margin-top: 8px;
    font-size: 12.5px;
    padding: 4px 8px;
}

.flg-submit-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.flg-error {
    color: #c0392b;
    background: #fdeeee;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    max-width: 100%;
}

/* ───────────── Правая колонка — живой предпросмотр ───────────── */

.flg-right {
    position: sticky;
    top: 20px;
}

.flg-preview-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.flg-preview-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #999;
    margin-bottom: 10px;
}

.flg-preview-box {
    background: #f7f8fa;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.flg-preview-label-shape {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(20, 20, 40, 0.08);
    width: 100%;
    max-width: 380px;
    aspect-ratio: 58 / 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px;
    overflow: hidden;
}

.flg-preview-label-shape svg {
    max-width: 100%;
    height: auto;
}

.flg-preview-fields {
    text-align: center;
    font-size: 10px;
    line-height: 1.4;
    color: #333;
    overflow: hidden;
}

.flg-preview-badges {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
}

.flg-preview-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.2px solid #1a1a1a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.flg-preview-facts {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.flg-preview-facts li {
    font-size: 13px;
    color: #555;
    padding-left: 18px;
    position: relative;
}

.flg-preview-facts li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1d7a4f;
    font-weight: 700;
}

@media (max-width: 900px) {
    .flg-split {
        grid-template-columns: 1fr;
    }
    .flg-right {
        position: static;
        order: -1;
    }
    .flg-preview-label-shape {
        max-width: 200px;
    }
}

@media (max-width: 720px) {
    .flg-page { padding: 20px 16px 40px; }
    .flg-intro h1 { font-size: 22px; }
    .flg-row-grid, .flg-field-grid { grid-template-columns: 1fr 1fr; }
}
