

/* Start:/bitrix/components/bitrix/breadcrumb/templates/.default/style.min.css?1776332641467*/
.bx-breadcrumb{margin:10px 0}.bx-breadcrumb i{color:#b5bdc2;line-height:13px;font-size:12px;vertical-align:middle;margin-right:5px}.bx-breadcrumb .bx-breadcrumb-item{float:left;margin-bottom:10px;white-space:nowrap;line-height:13px;vertical-align:middle;margin-right:10px}.bx-breadcrumb .bx-breadcrumb-item span{font-family:"Open Sans",Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:13px;white-space:normal}.bx-breadcrumb .bx-breadcrumb-item a{border-bottom:0}
/* End */


/* Start:/local/templates/b2b_techbridge/template_styles.css?177644397370033*/
/* ============================================
   TechBridge B2B Platform - Main Stylesheet
   ============================================ */
@import url('/local/templates/b2b_techbridge/variables.css');

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--tb-font-family);
    font-size: var(--tb-font-size-base);
    line-height: var(--tb-line-height);
    color: var(--tb-gray-900);
    background: var(--tb-body-bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--tb-primary); text-decoration: none; transition: var(--tb-transition); }
a:hover { color: var(--tb-primary-light); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--tb-primary-dark); line-height: 1.3; margin-top: 0; }
h1 { font-size: var(--tb-font-size-h1); }
h2 { font-size: var(--tb-font-size-h2); }
h3 { font-size: var(--tb-font-size-h3); }

img { max-width: 100%; height: auto; }

.tb-container {
    max-width: var(--tb-container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.tb-header {
    background: var(--tb-header-bg);
    box-shadow: var(--tb-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--tb-accent);
}

.tb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--tb-header-height);
    gap: 24px;
}

.tb-logo img {
    height: 42px;
    width: auto;
}

.tb-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tb-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--tb-gray-700);
    font-weight: 500;
    font-size: var(--tb-font-size-sm);
    border-radius: var(--tb-border-radius);
    transition: var(--tb-transition);
    white-space: nowrap;
}

.tb-nav a:hover,
.tb-nav a.active {
    color: var(--tb-primary);
    background: var(--tb-gray-100);
}

.tb-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tb-header-search {
    position: relative;
}

.tb-quick-order-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 8px 16px;
    background: var(--tb-primary, #e85d04);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(232, 93, 4, 0.30);
    transition: background .15s, box-shadow .15s, transform .15s;
}
.tb-quick-order-link:hover {
    background: #c94e00;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.45);
    transform: translateY(-1px);
}
.tb-quick-order-link:active { transform: translateY(0); }
@media (max-width: 900px) {
    .tb-quick-order-link__label { display: none; }
    .tb-quick-order-link { padding: 8px 10px; }
}
.tb-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--tb-accent, #e74c3c);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.tb-search-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    max-height: 480px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    border: 1px solid var(--tb-gray-200);
}
.tb-search-suggest.is-open { display: block; }
.tb-search-suggest__item {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--tb-gray-900);
    border-bottom: 1px solid var(--tb-gray-100);
    transition: background .15s;
    align-items: center;
}
.tb-search-suggest__item:hover,
.tb-search-suggest__item.is-active {
    background: var(--tb-gray-100);
}
.tb-search-suggest__item:last-child { border-bottom: none; }
.tb-search-suggest__img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--tb-gray-100);
    border-radius: 6px;
    object-fit: contain;
    display: block;
}
.tb-search-suggest__info {
    flex: 1;
    min-width: 0;
}
.tb-search-suggest__title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tb-search-suggest__meta {
    font-size: 11px;
    color: var(--tb-gray-500);
}
.tb-search-suggest__price {
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-primary);
    flex-shrink: 0;
}
.tb-search-suggest__footer {
    padding: 10px 12px;
    text-align: center;
    background: var(--tb-gray-100);
    font-size: 12px;
    color: var(--tb-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.tb-search-suggest__empty {
    padding: 16px;
    text-align: center;
    color: var(--tb-gray-500);
    font-size: 13px;
}

.tb-header-search input {
    width: 220px;
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--tb-gray-300);
    border-radius: 20px;
    font-size: var(--tb-font-size-sm);
    background: var(--tb-gray-100);
    transition: var(--tb-transition);
    outline: none;
}

.tb-header-search input:focus {
    width: 280px;
    border-color: var(--tb-primary-light);
    background: var(--tb-white);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.tb-header-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--tb-gray-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.tb-header-search-btn:hover { color: var(--tb-primary, #e85d04); }
.tb-header-search-icon {
    display: block;
}

.tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: var(--tb-font-size-sm);
    font-weight: 600;
    border-radius: var(--tb-border-radius);
    border: none;
    cursor: pointer;
    transition: var(--tb-transition);
    text-decoration: none;
    white-space: nowrap;
}

.tb-btn-primary {
    background: var(--tb-primary);
    color: var(--tb-white);
}

.tb-btn-primary:hover {
    background: var(--tb-primary-light);
    color: var(--tb-white);
    transform: translateY(-1px);
    box-shadow: var(--tb-shadow);
}

.tb-btn-accent {
    background: var(--tb-accent);
    color: var(--tb-white);
}

.tb-btn-accent:hover {
    background: var(--tb-accent-hover);
    color: var(--tb-white);
    transform: translateY(-1px);
    box-shadow: var(--tb-shadow);
}

.tb-btn-outline {
    background: transparent;
    color: var(--tb-primary);
    border: 2px solid var(--tb-primary);
}

.tb-btn-outline:hover {
    background: var(--tb-primary);
    color: var(--tb-white);
}

.tb-btn-lg {
    padding: 14px 32px;
    font-size: var(--tb-font-size-base);
}

/* === Mobile Menu Toggle === */
.tb-mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.tb-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--tb-gray-700);
    margin: 6px 0;
    transition: var(--tb-transition);
}

/* === Hero Section === */
.tb-hero {
    background: linear-gradient(135deg, var(--tb-primary-dark) 0%, var(--tb-primary) 50%, var(--tb-primary-light) 100%);
    color: var(--tb-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.tb-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 40%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><circle cx="100" cy="100" r="120" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2"/></svg>') center/contain no-repeat;
}

.tb-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.tb-hero h1 {
    font-size: 2.75rem;
    color: var(--tb-white);
    margin-bottom: 20px;
    font-weight: 800;
}

.tb-hero p {
    font-size: var(--tb-font-size-lg);
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.tb-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* === Section === */
.tb-section {
    padding: var(--tb-section-padding);
}

.tb-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.tb-section-header h2 {
    margin-bottom: 12px;
}

.tb-section-header p {
    color: var(--tb-gray-700);
    font-size: var(--tb-font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

.tb-section-light { background: var(--tb-white); }
.tb-section-gray { background: var(--tb-gray-100); }

/* === Brand Grid === */
.tb-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.tb-brand-card {
    background: var(--tb-white);
    border: 1px solid var(--tb-gray-200);
    border-radius: var(--tb-border-radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: var(--tb-transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.tb-brand-card:hover {
    border-color: var(--tb-primary-light);
    box-shadow: var(--tb-shadow-hover);
    transform: translateY(-4px);
    color: inherit;
}

.tb-brand-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.tb-brand-card-name {
    font-weight: 600;
    font-size: var(--tb-font-size-sm);
    color: var(--tb-gray-700);
}

.tb-brand-card-count {
    font-size: 12px;
    color: var(--tb-gray-500);
    margin-top: 4px;
}

/* === Category Cards === */
.tb-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tb-category-card {
    background: var(--tb-white);
    border-radius: var(--tb-border-radius-lg);
    padding: var(--tb-card-padding);
    box-shadow: var(--tb-shadow-sm);
    transition: var(--tb-transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tb-category-card:hover {
    box-shadow: var(--tb-shadow-hover);
    transform: translateY(-2px);
    color: inherit;
}

.tb-category-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--tb-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.tb-category-card h3 {
    font-size: var(--tb-font-size-base);
    margin-bottom: 4px;
}

.tb-category-card p {
    font-size: var(--tb-font-size-sm);
    color: var(--tb-gray-500);
    margin: 0;
}

/* === Product Cards === */
.tb-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tb-product-card {
    background: var(--tb-white);
    border-radius: var(--tb-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--tb-shadow-sm);
    transition: var(--tb-transition);
}

.tb-product-card:hover {
    box-shadow: var(--tb-shadow-hover);
    transform: translateY(-2px);
}

.tb-product-card-img {
    height: 200px;
    background: var(--tb-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tb-product-card-img img {
    max-height: 180px;
    object-fit: contain;
}

.tb-product-card-body {
    padding: 16px 20px 20px;
}

.tb-product-card-title {
    font-size: var(--tb-font-size-sm);
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tb-product-card-title a {
    color: var(--tb-gray-900);
}

.tb-product-card-title a:hover {
    color: var(--tb-primary);
}

.tb-product-card-price {
    font-size: var(--tb-font-size-lg);
    font-weight: 700;
    color: var(--tb-primary);
}

.tb-product-card-price-login {
    font-size: var(--tb-font-size-sm);
    color: var(--tb-accent);
    font-weight: 600;
}

/* === CTA Block === */
.tb-cta {
    background: linear-gradient(135deg, var(--tb-primary) 0%, var(--tb-primary-dark) 100%);
    color: var(--tb-white);
    padding: 60px 0;
    text-align: center;
}

.tb-cta h2 { color: var(--tb-white); margin-bottom: 16px; }
.tb-cta p { opacity: 0.9; margin-bottom: 32px; font-size: var(--tb-font-size-lg); }

/* === Tabs (for brand categories) === */
.tb-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.tb-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: var(--tb-font-size-sm);
    font-weight: 500;
    color: var(--tb-gray-700);
    background: var(--tb-white);
    border: 1px solid var(--tb-gray-300);
    cursor: pointer;
    transition: var(--tb-transition);
}

.tb-tab:hover,
.tb-tab.active {
    background: var(--tb-primary);
    color: var(--tb-white);
    border-color: var(--tb-primary);
}

/* === Footer === */
.tb-footer {
    background: var(--tb-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.tb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tb-footer-brand p {
    font-size: var(--tb-font-size-sm);
    margin-top: 16px;
    line-height: 1.7;
}

.tb-footer h4 {
    color: var(--tb-white);
    font-size: var(--tb-font-size-base);
    margin-bottom: 20px;
    font-weight: 600;
}

.tb-footer-links { list-style: none; padding: 0; margin: 0; }
.tb-footer-links li { margin-bottom: 10px; }
.tb-footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: var(--tb-font-size-sm);
    transition: var(--tb-transition);
}
.tb-footer-links a:hover { color: var(--tb-accent); }

.tb-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tb-footer-contact li {
    margin-bottom: 12px;
    font-size: var(--tb-font-size-sm);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tb-footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* === Breadcrumbs === */
.tb-breadcrumbs {
    padding: 8px 0 0;
    font-size: var(--tb-font-size-sm);
    color: var(--tb-gray-500);
}
.tb-breadcrumbs .bx-breadcrumb { margin: 0; }
.tb-breadcrumbs .bx-breadcrumb-item { margin-bottom: 0; }

.tb-breadcrumbs a { color: var(--tb-gray-500); }
.tb-breadcrumbs a:hover { color: var(--tb-primary); }

/* === Workarea === */
.tb-workarea {
    min-height: 60vh;
}

.tb-content {
    padding: 0 0 40px;
}

/* === Responsive === */
@media (max-width: 991px) {
    .tb-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tb-hero h1 { font-size: 2rem; }
    .tb-hero { padding: 60px 0; }
    .tb-nav { display: none; }
    .tb-mobile-toggle { display: block; }
    .tb-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--tb-header-height);
        left: 0;
        right: 0;
        background: var(--tb-white);
        box-shadow: var(--tb-shadow-lg);
        padding: 16px;
        z-index: 999;
    }
    .tb-header-search input { width: 160px; }
    .tb-header-search input:focus { width: 200px; }
}

@media (max-width: 767px) {
    .tb-footer-grid {
        grid-template-columns: 1fr;
    }
    .tb-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .tb-hero h1 { font-size: 1.75rem; }
    .tb-hero-actions { flex-direction: column; }
    .tb-header-search input { width: 100%; }
    .tb-header-search input:focus { width: 100%; }
    .tb-header-search { flex: 1 1 auto; min-width: 0; }
    .tb-brand-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    .tb-section { padding: 40px 0; }
}

/* === Bitrix Panel Override === */
#panel { margin-bottom: 0 !important; }

/* =========================================================
   Catalog (custom minimal template)
   ========================================================= */
.tb-catalog { max-width: 1320px; margin: 0 auto; padding: 0 20px 20px; }

.tb-catalog__header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 8px 0 12px;
    border-bottom: 1px solid var(--tb-gray-200);
    margin-bottom: 16px;
}
.tb-catalog__logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--tb-white);
    border-radius: var(--tb-border-radius);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tb-shadow-sm);
}
.tb-catalog__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tb-catalog__title-block { flex: 0 0 auto; min-width: 0; }

/* Section-scoped search (in catalog header, right of logo/title) */
.tb-section-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    background: var(--tb-white);
    border: 1px solid var(--tb-gray-300);
    border-radius: var(--tb-border-radius);
    padding: 0 14px;
    transition: border-color .15s, box-shadow .15s;
}
@media (max-width: 767px) {
    .tb-section-search { flex: 1 1 100%; width: 100%; }
}
.tb-section-search:focus-within {
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}
.tb-section-search__icon {
    flex-shrink: 0;
    color: var(--tb-gray-500);
    margin-right: 8px;
}
.tb-section-search input[type="text"] {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    padding: 10px 0;
    color: var(--tb-gray-900);
}
.tb-section-search__suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    max-height: 420px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border: 1px solid var(--tb-gray-200);
}
.tb-section-search__suggest.is-open { display: block; }
.tb-section-search__item {
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--tb-gray-900);
    border-bottom: 1px solid var(--tb-gray-100);
    align-items: center;
    transition: background .15s;
}
.tb-section-search__item:hover,
.tb-section-search__item.is-active { background: var(--tb-gray-100); }
.tb-section-search__item:last-child { border-bottom: none; }
.tb-section-search__img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--tb-gray-100);
    border-radius: 6px;
    object-fit: contain;
    display: block;
}
.tb-section-search__info { flex: 1; min-width: 0; }
.tb-section-search__title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tb-section-search__meta { font-size: 11px; color: var(--tb-gray-500); }
.tb-section-search__price {
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-primary);
    flex-shrink: 0;
    white-space: nowrap;
}
.tb-section-search__empty {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--tb-gray-500);
    text-align: center;
}
.tb-section-search__footer {
    padding: 10px 12px;
    text-align: center;
    background: var(--tb-gray-100);
    font-size: 12px;
    color: var(--tb-primary);
    font-weight: 600;
    text-decoration: none;
    display: block;
    border-top: 1px solid var(--tb-gray-200);
}

.tb-catalog__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tb-gray-900);
    margin: 0;
    line-height: 1.2;
    display: inline-block;
}
.tb-catalog__desc { color: var(--tb-gray-700); margin: 4px 0 0; font-size: 13px; }
.tb-catalog__count {
    color: var(--tb-gray-500);
    font-size: 13px;
    display: inline-block;
    margin-left: 12px;
    font-weight: 400;
}

/* Toolbar */
.tb-catalog__toolbar {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: var(--tb-white);
    padding: 12px 16px;
    border-radius: var(--tb-border-radius);
    box-shadow: var(--tb-shadow-sm);
    margin-bottom: 20px;
}
.tb-catalog__toolbar--bottom { margin-top: 20px; margin-bottom: 12px; }
.tb-catalog__sort,
.tb-catalog__perpage {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.tb-catalog__label {
    font-size: 13px;
    color: var(--tb-gray-500);
    margin-right: 4px;
}
.tb-chip {
    display: inline-block;
    padding: 5px 12px;
    font-size: 13px;
    color: var(--tb-gray-700);
    background: var(--tb-gray-100);
    border-radius: 6px;
    text-decoration: none;
    transition: var(--tb-transition);
}
.tb-chip:hover { background: var(--tb-gray-200); color: var(--tb-primary); }
.tb-chip--active { background: var(--tb-primary); color: var(--tb-white); }
.tb-chip--active:hover { background: var(--tb-primary-light); color: var(--tb-white); }

/* List */
.tb-items { display: flex; flex-direction: column; gap: 6px; }

.tb-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    background: var(--tb-white);
    border: 1px solid var(--tb-gray-200);
    border-radius: var(--tb-border-radius);
    padding: 8px 12px;
    transition: var(--tb-transition);
}
.tb-item:hover {
    border-color: var(--tb-primary-light);
    box-shadow: var(--tb-shadow-sm);
}
.tb-item__img {
    width: 70px;
    height: 70px;
    background: var(--tb-gray-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}
.tb-item__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--tb-transition);
}
.tb-item:hover .tb-item__img img { transform: scale(1.04); }
.tb-item__no-img { color: var(--tb-gray-300); }

.tb-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-item__article { font-size: 11px; color: var(--tb-gray-500); text-transform: uppercase; letter-spacing: 0.03em; }
.tb-item__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tb-gray-900);
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tb-item__title:hover { color: var(--tb-primary); }
.tb-item__desc { display: none; }
.tb-item__stock { margin-top: 2px; }

.tb-item__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}
.tb-item__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    white-space: nowrap;
    min-width: 80px;
    line-height: 1.1;
}
.tb-item__price-main {
    font-size: 15px;
    font-weight: 700;
    color: var(--tb-primary);
}
.tb-item__price-orig {
    font-size: 11px;
    font-weight: 500;
    color: var(--tb-gray-500, #6b7280);
    margin-top: 2px;
}
.tb-item__price--req {
    color: var(--tb-accent);
    font-size: 12px;
    font-weight: 600;
}

/* Badge */
.tb-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.tb-badge--ok { background: #e6f4ea; color: #1e7b34; }
.tb-badge--warn { background: #fff3e0; color: #b75d0a; }
.tb-badge--muted { background: #f3f4f6; color: #6b7280; }

/* Quantity */
.tb-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--tb-gray-300);
    border-radius: var(--tb-border-radius);
    overflow: hidden;
    background: var(--tb-white);
    width: 104px;
    min-width: 104px;
    flex-shrink: 0;
    box-sizing: border-box;
}
.tb-qty__btn {
    width: 28px;
    min-width: 28px;
    height: 30px;
    border: none;
    background: var(--tb-gray-100);
    color: var(--tb-gray-700);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tb-transition);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    box-sizing: border-box;
}
.tb-qty__btn:hover { background: var(--tb-gray-200); color: var(--tb-primary); }
.tb-qty__input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 30px;
    padding: 0 4px;
    border: none;
    outline: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--tb-gray-900);
    background: var(--tb-white);
    -moz-appearance: textfield;
    box-sizing: border-box;
}
.tb-qty__input::-webkit-outer-spin-button,
.tb-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Pagination */
.tb-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.tb-pagination__link {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    padding: 0 10px;
    color: var(--tb-gray-700);
    text-decoration: none;
    background: var(--tb-white);
    border: 1px solid var(--tb-gray-200);
    border-radius: 6px;
    transition: var(--tb-transition);
    font-size: 14px;
}
.tb-pagination__link:hover { background: var(--tb-gray-100); color: var(--tb-primary); border-color: var(--tb-gray-300); }
.tb-pagination__link--active {
    background: var(--tb-primary);
    color: var(--tb-white);
    border-color: var(--tb-primary);
}
.tb-pagination__link--active:hover { background: var(--tb-primary-light); color: var(--tb-white); }

/* Empty state */
.tb-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--tb-white);
    border-radius: var(--tb-border-radius-lg);
    color: var(--tb-gray-700);
}

/* Brand grid (catalog root) */
.tb-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.tb-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--tb-white);
    border: 1px solid var(--tb-gray-200);
    border-radius: var(--tb-border-radius-lg);
    padding: 20px 16px;
    min-height: 140px;
    text-decoration: none;
    transition: var(--tb-transition);
    position: relative;
}
.tb-brand-card:hover {
    border-color: var(--tb-primary-light);
    box-shadow: var(--tb-shadow-hover);
    transform: translateY(-2px);
}
.tb-brand-card img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
}
.tb-brand-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tb-gray-700);
    text-align: center;
}
.tb-brand-card__count {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 11px;
    color: var(--tb-gray-500);
    background: var(--tb-gray-100);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Detail page */
.tb-detail {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    padding: 20px 0;
}
.tb-detail__gallery {
    background: var(--tb-white);
    border-radius: var(--tb-border-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    box-shadow: var(--tb-shadow-sm);
}
.tb-detail__gallery img { max-width: 100%; max-height: 400px; object-fit: contain; }
.tb-detail__no-image { color: var(--tb-gray-500); }
.tb-detail__title { font-size: 2rem; margin: 0 0 12px; color: var(--tb-gray-900); }
.tb-detail__meta { color: var(--tb-gray-500); font-size: 13px; margin-bottom: 16px; }
.tb-detail__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    line-height: 1.1;
}
.tb-detail__price-main {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--tb-primary);
}
.tb-detail__price-orig {
    font-size: 1rem;
    font-weight: 500;
    color: var(--tb-gray-500, #6b7280);
    margin-top: 4px;
}
.tb-detail__price--request {
    color: var(--tb-accent);
    font-size: 1.5rem;
}
.tb-detail__buy {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.tb-detail__description {
    background: var(--tb-white);
    padding: 20px;
    border-radius: var(--tb-border-radius);
    color: var(--tb-gray-700);
    line-height: 1.6;
}
.tb-detail__specs {
    background: var(--tb-white);
    padding: 20px;
    border-radius: var(--tb-border-radius);
    margin-top: 16px;
}
.tb-detail__specs h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tb-gray-900);
}
.tb-detail__specs table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.tb-detail__specs table td,
.tb-detail__specs table th {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--tb-gray-200);
    vertical-align: top;
}
.tb-detail__specs table tr:last-child td,
.tb-detail__specs table tr:last-child th {
    border-bottom: none;
}
.tb-detail__specs table td:first-child,
.tb-detail__specs table th:first-child {
    color: var(--tb-gray-500);
    width: 45%;
    font-weight: 500;
}
.tb-detail__specs table td:last-child {
    color: var(--tb-gray-900);
    font-weight: 500;
}

/* Buttons */
.tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border: none;
    border-radius: var(--tb-border-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--tb-transition);
    font-family: inherit;
    line-height: 1.2;
}
.tb-btn--primary { background: var(--tb-primary); color: var(--tb-white); }
.tb-btn--primary:hover { background: var(--tb-primary-light); color: var(--tb-white); }
.tb-btn--lg { padding: 12px 24px; font-size: 15px; }

/* Responsive */
@media (max-width: 992px) {
    .tb-item { grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; }
    .tb-item__img { width: 120px; height: 120px; }
    .tb-detail { grid-template-columns: 300px 1fr; gap: 24px; }
}
@media (max-width: 767px) {
    .tb-catalog__header { flex-direction: column; text-align: center; gap: 16px; }
    .tb-item {
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto;
    }
    .tb-item__img { width: 100px; height: 100px; }
    .tb-item__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid var(--tb-gray-200);
        flex-wrap: wrap;
    }
    .tb-item__price { text-align: left; }
    .tb-detail { grid-template-columns: 1fr; }
    .tb-catalog__toolbar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
    .tb-catalog__title { font-size: 1.5rem; }
    .tb-item { grid-template-columns: 80px 1fr; }
    .tb-item__img { width: 80px; height: 80px; }
}

/* Add to cart JS */
.tb-btn.is-loading { opacity: 0.7; cursor: wait; }
.tb-btn.is-success { background: #28a745; }

/* =========================================================
   Filter Drawer (left push panel — shifts catalog content)
   ========================================================= */

/* Floating FAB button — fixed on the left side */
.tb-filter-fab {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1500;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--tb-primary, #e85d04);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, background .15s;
}
.tb-filter-fab:hover { background: #c94e00; }
body.tb-filter-pushed .tb-filter-fab {
    transform: translate(320px, -50%);
}
.tb-filter-fab__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--tb-accent, #dc3545);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Push panel: fixed on the left, slides into view; body content is shifted via padding */
.tb-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    background: var(--tb-white, #fff);
    box-shadow: 2px 0 16px rgba(0,0,0,.08);
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.tb-filter-pushed .tb-filter-drawer { transform: translateX(0); }

/* Push content: shift body to the right when filter is open */
body { transition: padding-left .3s ease; }
body.tb-filter-pushed { padding-left: 320px; }

.tb-filter-drawer__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.tb-filter-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--tb-gray-200, #e5e7eb);
}
.tb-filter-drawer__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.tb-filter-drawer__close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--tb-gray-500, #6b7280);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: background .15s;
}
.tb-filter-drawer__close:hover { background: var(--tb-gray-100, #f3f4f6); color: var(--tb-primary, #e85d04); }

@media (max-width: 767px) {
    body.tb-filter-pushed { padding-left: 0; }
    .tb-filter-drawer { width: 85vw; box-shadow: 2px 0 24px rgba(0,0,0,.25); }
    body.tb-filter-pushed .tb-filter-fab { transform: translate(85vw, -50%); }
}

.tb-filter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--tb-gray-200);
}
.tb-filter__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--tb-gray-900);
}
.tb-filter__close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--tb-gray-100);
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--tb-gray-700);
    transition: var(--tb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.tb-filter__close:hover { background: var(--tb-gray-200); color: var(--tb-primary); }

.tb-filter__body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}
.tb-filter__group {
    margin-bottom: 20px;
}
.tb-filter__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-gray-700);
    margin-bottom: 8px;
}
.tb-filter__input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--tb-gray-300);
    border-radius: var(--tb-border-radius);
    font-size: 14px;
    outline: none;
    transition: var(--tb-transition);
    background: var(--tb-white);
    font-family: inherit;
}
.tb-filter__input:focus {
    border-color: var(--tb-primary);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.08);
}
.tb-filter__range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.tb-filter__check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--tb-gray-900);
}
.tb-filter__check input {
    width: 18px;
    height: 18px;
    accent-color: var(--tb-primary);
}

.tb-filter__foot {
    padding: 16px 20px;
    border-top: 1px solid var(--tb-gray-200);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tb-filter__reset {
    text-align: center;
    color: var(--tb-gray-500);
    font-size: 13px;
    text-decoration: none;
    transition: var(--tb-transition);
}
.tb-filter__reset:hover { color: var(--tb-danger); }

/* =========================================================
   Custom Cart Page
   ========================================================= */
.tb-cart-page { max-width: 1320px; margin: 0 auto; padding: 0 20px 40px; }
.tb-cart__head { margin-bottom: 24px; }
.tb-cart__title { font-size: 2rem; font-weight: 700; color: var(--tb-gray-900); margin: 0 0 .5rem; }
.tb-cart__subtitle { color: var(--tb-gray-500); margin: 0; font-size: 0.95rem; }

/* Empty state */
.tb-cart-empty {
    background: #fff;
    border: 1px solid var(--tb-gray-200);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
}
.tb-cart-empty h2 { font-size: 1.4rem; margin: 14px 0 8px; color: var(--tb-gray-900); }
.tb-cart-empty p { color: var(--tb-gray-500); max-width: 420px; margin: 0 auto 20px; }
.tb-cart-empty__actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Grid: rows (left) + summary (right) */
.tb-cart__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: flex-start;
}
.tb-cart__list {
    background: #fff;
    border: 1px solid var(--tb-gray-200);
    border-radius: 12px;
    overflow: hidden;
}

.tb-cart-row {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 120px 110px 110px 34px;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--tb-gray-100);
    transition: opacity .2s, background .15s;
}
.tb-cart-row:last-child { border-bottom: none; }
.tb-cart-row:hover { background: #fafbfc; }
.tb-cart-row.is-updating { opacity: 0.5; pointer-events: none; }

.tb-cart-row__img {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tb-gray-100);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.tb-cart-row__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tb-cart-row__no-img { color: var(--tb-gray-300); }

.tb-cart-row__info { min-width: 0; }
.tb-cart-row__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--tb-gray-900);
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.tb-cart-row__name:hover { color: var(--tb-primary); }
.tb-cart-row__meta { font-size: 12px; color: var(--tb-gray-500); }

.tb-cart-row__price { text-align: right; line-height: 1.2; }
.tb-cart-row__price-main { display: block; font-size: 14px; font-weight: 600; color: var(--tb-gray-900); }
.tb-cart-row__price-orig { display: block; font-size: 11px; color: var(--tb-gray-500); margin-top: 2px; }

.tb-cart-row__qty { display: inline-flex; justify-content: center; }

.tb-cart-row__sum {
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: var(--tb-primary);
}

.tb-cart-row__del {
    background: transparent;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--tb-gray-500);
    transition: background .15s, color .15s;
}
.tb-cart-row__del:hover { background: #fce8e6; color: #dc3545; }

/* Summary */
.tb-cart__summary {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid var(--tb-gray-200);
    border-radius: 12px;
    padding: 20px;
}
.tb-cart__summary-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--tb-gray-900);
}
.tb-cart__summary-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--tb-gray-700);
}
.tb-cart__summary-line b { color: var(--tb-gray-900); font-weight: 600; }
.tb-cart__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    margin: 6px 0 14px;
    border-top: 1px solid var(--tb-gray-200);
    border-bottom: 1px solid var(--tb-gray-200);
    font-size: 15px;
}
.tb-cart__summary-total b { color: var(--tb-primary); font-size: 1.4rem; font-weight: 700; }

.tb-cart__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.tb-cart__btn--primary { background: var(--tb-primary); color: #fff; }
.tb-cart__btn--primary:hover { background: #c94e00; color: #fff; transform: translateY(-1px); }
.tb-cart__btn--outline { background: #fff; color: var(--tb-gray-700); border-color: var(--tb-gray-300); }
.tb-cart__btn--outline:hover { border-color: var(--tb-primary); color: var(--tb-primary); }
.tb-cart__btn--full { width: 100%; padding: 14px 22px; font-size: 15px; }

.tb-cart__continue {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--tb-gray-500);
    text-decoration: none;
    font-size: 13px;
}
.tb-cart__continue:hover { color: var(--tb-primary); }

@media (max-width: 991px) {
    .tb-cart__grid { grid-template-columns: 1fr; }
    .tb-cart__summary { position: static; }
}
@media (max-width: 640px) {
    .tb-cart-row {
        grid-template-columns: 64px 1fr 34px;
        grid-template-areas:
            "img info del"
            "img price price"
            "qty qty sum";
        gap: 8px 12px;
    }
    .tb-cart-row__img { width: 64px; height: 64px; grid-area: img; }
    .tb-cart-row__info { grid-area: info; }
    .tb-cart-row__del { grid-area: del; }
    .tb-cart-row__price { grid-area: price; text-align: left; }
    .tb-cart-row__qty { grid-area: qty; justify-content: flex-start; }
    .tb-cart-row__sum { grid-area: sum; text-align: right; }
}

/* Rate note next to original price */
.tb-price-rate {
    display: inline-block;
    font-size: 10px;
    color: var(--tb-gray-500, #6b7280);
    background: var(--tb-gray-100, #f3f4f6);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 400;
    white-space: nowrap;
}
.tb-detail__price-orig .tb-price-rate { font-size: 12px; padding: 2px 8px; margin-left: 8px; }

/* Guest / pending user notices */
.tb-guest-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 14px 16px;
    color: #9a3412;
    font-size: 14px;
    line-height: 1.5;
}
.tb-guest-notice p { margin: 0 0 10px; }
.tb-guest-notice p:last-child { margin: 0; }
.tb-guest-notice__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tb-guest-notice--top {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.tb-guest-notice--top span { flex: 1; min-width: 200px; }
.tb-guest-notice .tb-btn { padding: 8px 18px; font-size: 13px; text-decoration: none; }
.tb-guest-notice .tb-btn--primary { background: var(--tb-primary, #e85d04); color: #fff; border: none; border-radius: 6px; display: inline-flex; align-items: center; }
.tb-guest-notice .tb-btn--primary:hover { background: #c94e00; color: #fff; }
.tb-guest-notice .tb-btn-outline { background: #fff; color: #9a3412; border: 1px solid #fed7aa; border-radius: 6px; display: inline-flex; align-items: center; }
.tb-guest-notice .tb-btn-outline:hover { border-color: #c94e00; color: #c94e00; }

/* Cart submit modal */
.tb-cart__summary-hint { font-size: 12px; color: var(--tb-gray-500, #6b7280); margin: 10px 0 14px; text-align: center; }
.tb-submit-modal__hint { color: var(--tb-gray-700, #374151); margin: 0 0 14px; font-size: 14px; }
.tb-submit-modal__client {
    background: var(--tb-gray-100, #f3f4f6);
    border-radius: 8px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 6px 12px;
    font-size: 13px;
    margin: 0 0 16px;
}
.tb-submit-modal__client dt { color: var(--tb-gray-500, #6b7280); margin: 0; }
.tb-submit-modal__client dd { margin: 0; color: var(--tb-gray-900, #111); font-weight: 500; }
.tb-submit-modal__label { display: block; font-size: 13px; font-weight: 500; color: var(--tb-gray-700, #374151); margin-bottom: 6px; }
#tb-submit-comment {
    width: 100%;
    border: 1px solid var(--tb-gray-300, #d1d5db);
    border-radius: 6px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
    outline: none;
}
#tb-submit-comment:focus { border-color: var(--tb-primary, #e85d04); box-shadow: 0 0 0 3px rgba(232,93,4,.12); }

/* =========================================================
   Submit deal modal (корзина)
   ========================================================= */
.tb-qo-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tb-qo-modal.is-open { display: flex; }
.tb-qo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.tb-qo-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.tb-qo-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--tb-gray-200, #e5e7eb);
}
.tb-qo-modal__head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--tb-gray-900, #111827);
}
.tb-qo-modal__close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--tb-gray-500, #6b7280);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .15s;
}
.tb-qo-modal__close:hover { background: var(--tb-gray-100, #f3f4f6); }
.tb-qo-modal__body {
    padding: 18px 20px;
    overflow-y: auto;
}
.tb-qo-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--tb-gray-200, #e5e7eb);
    background: #fafbfc;
}
.tb-submit-modal__hint {
    color: var(--tb-gray-600, #4b5563);
    font-size: 13px;
    margin: 0 0 14px;
}
.tb-submit-modal__client {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 6px 12px;
    margin: 0 0 16px;
    font-size: 13px;
}
.tb-submit-modal__client dt { color: var(--tb-gray-500, #6b7280); }
.tb-submit-modal__client dd { margin: 0; color: var(--tb-gray-900, #111827); font-weight: 500; }
.tb-submit-modal__label {
    display: block;
    font-size: 13px;
    color: var(--tb-gray-700, #374151);
    margin-bottom: 6px;
    font-weight: 500;
}

/* =========================================================
   Личный кабинет (/personal/)
   ========================================================= */
.tb-personal { max-width: 1320px; margin: 0 auto; padding: 0 20px 40px; }

.tb-personal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #fff 0%, #fff7f0 100%);
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tb-personal__user { display: flex; gap: 16px; align-items: center; min-width: 0; }
.tb-personal__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tb-primary, #e85d04) 0%, #f48c06 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.25);
    flex-shrink: 0;
}
.tb-personal__user-info { min-width: 0; }
.tb-personal__name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--tb-gray-900, #111827);
}
.tb-personal__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-personal__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 14px;
    font-size: 12px;
    color: var(--tb-gray-700, #374151);
}
.tb-personal__chip--company {
    background: var(--tb-gray-100, #f3f4f6);
    color: var(--tb-gray-900, #111827);
    font-weight: 500;
}
.tb-personal__chip--ok { background: #e6f4ea; color: #1e7e34; border-color: #b7e1c4; }
.tb-personal__chip--pending { background: #fff4e5; color: #b45309; border-color: #fcd9a8; }

.tb-personal__logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 8px;
    color: var(--tb-gray-700, #374151);
    font-size: 14px;
    text-decoration: none;
    transition: all .15s;
}
.tb-personal__logout:hover {
    background: #fce8e6;
    color: #dc3545;
    border-color: #f5c2c0;
}

/* Stats row */
.tb-personal__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.tb-personal__stat {
    background: #fff;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 18px 20px;
}
.tb-personal__stat-label {
    font-size: 12px;
    color: var(--tb-gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.tb-personal__stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tb-gray-900, #111827);
    line-height: 1.1;
}
.tb-personal__stat-value span {
    font-size: 0.95rem;
    color: var(--tb-gray-500, #6b7280);
    font-weight: 500;
}
.tb-personal__stat-sub {
    margin-top: 6px;
    font-size: 12px;
    color: var(--tb-gray-500, #6b7280);
    min-height: 1em;
}

/* Tiles grid */
.tb-personal__tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.tb-personal__tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tb-personal__tile:hover {
    transform: translateY(-2px);
    border-color: var(--tb-primary, #e85d04);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    text-decoration: none;
}
.tb-personal__tile-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff7f0;
    color: var(--tb-primary, #e85d04);
    border-radius: 12px;
    transition: background .15s, color .15s;
}
.tb-personal__tile:hover .tb-personal__tile-icon {
    background: var(--tb-primary, #e85d04);
    color: #fff;
}
.tb-personal__tile-body { min-width: 0; }
.tb-personal__tile-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--tb-gray-900, #111827);
    margin-bottom: 4px;
}
.tb-personal__tile-desc {
    font-size: 13px;
    color: var(--tb-gray-500, #6b7280);
    line-height: 1.35;
}
.tb-personal__tile-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--tb-primary, #e85d04);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Guest notice reuse (если уже есть — не дублируем) */
.tb-guest-notice {
    background: #fff;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
}
.tb-guest-notice p { color: var(--tb-gray-600, #4b5563); margin: 0 0 16px; }
.tb-guest-notice__actions { display: inline-flex; gap: 10px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
    .tb-personal__stats, .tb-personal__tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tb-personal__stats, .tb-personal__tiles { grid-template-columns: 1fr; }
    .tb-personal__head { flex-direction: column; align-items: flex-start; }
    .tb-personal__avatar { width: 56px; height: 56px; font-size: 20px; }
    .tb-personal__name { font-size: 1.2rem; }
}

/* =========================================================
   Личный кабинет — общий layout (profile / orders)
   ========================================================= */
.tb-personal-page { max-width: 1320px; margin: 0 auto; padding: 0 20px 40px; }
.tb-personal-page__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.tb-personal-page__back {
    display: inline-block;
    color: var(--tb-gray-500, #6b7280);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 6px;
}
.tb-personal-page__back:hover { color: var(--tb-primary, #e85d04); }
.tb-personal-page__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--tb-gray-900, #111827);
}
.tb-personal-page__subtitle {
    color: var(--tb-gray-500, #6b7280);
    margin: 6px 0 0;
    font-size: 0.95rem;
}

/* =========================================================
   Profile form
   ========================================================= */
.tb-profile { display: flex; flex-direction: column; gap: 20px; }
.tb-profile__section {
    background: #fff;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
}
.tb-profile__section--readonly { background: #fafbfc; }
.tb-profile__section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--tb-gray-900, #111827);
}
.tb-profile__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}
.tb-profile__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.tb-profile__label {
    font-size: 13px;
    color: var(--tb-gray-700, #374151);
    font-weight: 500;
}
.tb-profile__label em {
    color: var(--tb-primary, #e85d04);
    font-style: normal;
    margin-left: 2px;
}
.tb-profile__field input,
.tb-profile__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--tb-gray-900, #111827);
    transition: border-color .15s, box-shadow .15s;
}
.tb-profile__field input:focus,
.tb-profile__field textarea:focus {
    outline: none;
    border-color: var(--tb-primary, #e85d04);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}
.tb-profile__field small {
    font-size: 11px;
    color: var(--tb-gray-500, #6b7280);
}
.tb-profile__field--readonly input[readonly],
.tb-profile__field--readonly .tb-profile__value {
    background: #f3f4f6;
    color: var(--tb-gray-700, #374151);
    cursor: default;
}
.tb-profile__value {
    padding: 10px 12px;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 8px;
    font-size: 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
}
.tb-profile__status {
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
}
.tb-profile__status--ok { background: #e6f4ea; color: #1e7e34; }
.tb-profile__status--pending { background: #fff4e5; color: #b45309; }

.tb-profile__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.tb-profile__msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}
.tb-profile__msg--ok { background: #e6f4ea; color: #1e7e34; border: 1px solid #b7e1c4; }
.tb-profile__msg--error { background: #fde8e8; color: #a61b1b; border: 1px solid #f5c2c0; }

/* =========================================================
   Orders list
   ========================================================= */
.tb-orders__table {
    background: #fff;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
}
.tb-orders__row {
    display: grid;
    grid-template-columns: 80px 140px 140px 180px 1fr;
    gap: 14px;
    padding: 14px 18px;
    align-items: center;
    border-bottom: 1px solid var(--tb-gray-100, #f3f4f6);
    font-size: 14px;
}
.tb-orders__row:last-child { border-bottom: none; }
.tb-orders__row--head {
    background: #fafbfc;
    font-size: 12px;
    font-weight: 600;
    color: var(--tb-gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tb-orders-row {
    cursor: pointer;
    transition: background .15s;
}
.tb-orders-row:hover { background: #fff7f0; }
.tb-orders-row:focus { outline: 2px solid var(--tb-primary, #e85d04); outline-offset: -2px; }
.tb-orders__cell { min-width: 0; }
.tb-orders__cell--id { font-weight: 700; color: var(--tb-gray-900, #111827); }
.tb-orders__cell--sum { font-weight: 600; color: var(--tb-primary, #e85d04); }
.tb-orders__cell--comment {
    color: var(--tb-gray-500, #6b7280);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tb-orders-stage {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.tb-orders-stage--process { background: #fff4e5; color: #b45309; }
.tb-orders-stage--success { background: #e6f4ea; color: #1e7e34; }
.tb-orders-stage--fail { background: #f3f4f6; color: #6b7280; }

.tb-orders-empty {
    background: #fff;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
}
.tb-orders-empty h2 { font-size: 1.3rem; margin: 14px 0 8px; }
.tb-orders-empty p { color: var(--tb-gray-500, #6b7280); margin: 0 0 20px; max-width: 440px; margin-left: auto; margin-right: auto; }

.tb-orders__loading, .tb-orders__error {
    padding: 30px;
    text-align: center;
    color: var(--tb-gray-500, #6b7280);
}
.tb-orders__error { color: #a61b1b; }

/* Order detail modal content */
.tb-qo-modal__dialog--wide { max-width: 720px; }
.tb-order-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 14px;
    background: #fafbfc;
    border-radius: 8px;
    margin-bottom: 16px;
}
.tb-order-meta__label {
    display: block;
    font-size: 11px;
    color: var(--tb-gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.tb-order-meta b { color: var(--tb-gray-900, #111827); font-weight: 600; }

.tb-order-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 16px 0 10px;
    color: var(--tb-gray-900, #111827);
}
.tb-order-products {
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}
.tb-order-products__row {
    display: grid;
    grid-template-columns: 1fr 80px 100px 110px;
    gap: 12px;
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--tb-gray-100, #f3f4f6);
    align-items: center;
}
.tb-order-products__row:last-child { border-bottom: none; }
.tb-order-products__row--head {
    background: #fafbfc;
    font-size: 11px;
    font-weight: 600;
    color: var(--tb-gray-500, #6b7280);
    text-transform: uppercase;
}
.tb-order-comment {
    padding: 12px 14px;
    background: #fff7f0;
    border-radius: 8px;
    font-size: 13px;
    color: var(--tb-gray-900, #111827);
    white-space: pre-wrap;
}
.tb-order-no-products {
    padding: 16px;
    color: var(--tb-gray-500, #6b7280);
    font-size: 13px;
    background: #fafbfc;
    border-radius: 8px;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .tb-profile__grid { grid-template-columns: 1fr; }
    .tb-orders__row {
        grid-template-columns: 70px 1fr 120px;
        gap: 8px;
    }
    .tb-orders__row > div:nth-child(4), .tb-orders__row > div:nth-child(5) {
        grid-column: 1 / -1;
    }
    .tb-order-meta { grid-template-columns: 1fr; }
    .tb-order-products__row { grid-template-columns: 1fr 60px 80px 90px; }
}

/* =========================================================
   Invoices (карточки счетов внутри модалки заявки
   и страница /personal/invoices/)
   ========================================================= */
.tb-invoices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.tb-invoice-card {
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
}
.tb-invoice-card--success { border-left: 4px solid #1e7e34; }
.tb-invoice-card--fail { border-left: 4px solid #dc3545; }
.tb-invoice-card--process { border-left: 4px solid var(--tb-primary, #e85d04); }

.tb-invoice-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.tb-invoice-card__num {
    font-size: 15px;
    font-weight: 700;
    color: var(--tb-gray-900, #111827);
}
.tb-invoice-card__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    font-size: 13px;
    color: var(--tb-gray-700, #374151);
}
.tb-invoice-card__body > div { display: flex; flex-direction: column; gap: 2px; }
.tb-invoice-card__label {
    font-size: 11px;
    color: var(--tb-gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tb-invoice-card__body b { color: var(--tb-gray-900, #111827); font-weight: 600; }

.tb-invoice-card__download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    background: var(--tb-primary, #e85d04);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s;
}
.tb-invoice-card__download:hover { background: #c94d02; color: #fff !important; }
.tb-invoice-card__note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--tb-gray-500, #6b7280);
    font-style: italic;
}

/* Badge в списке заявок «есть счёт» */
.tb-orders__cell--invoice-badge {
    font-size: 12px;
    color: #1e7e34;
    font-weight: 500;
}

/* =========================================================
   Authorization page (/login/)
   ========================================================= */
.tb-auth {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 360px);
    gap: 32px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: start;
}
.tb-auth__card {
    background: #fff;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}
.tb-auth__brand {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tb-primary, #e85d04) 0%, #f48c06 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(232, 93, 4, 0.25);
}
.tb-auth__title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 6px;
    color: var(--tb-gray-900, #111827);
}
.tb-auth__lead {
    text-align: center;
    color: var(--tb-gray-500, #6b7280);
    font-size: 14px;
    margin: 0 0 24px;
}

.tb-auth__alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}
.tb-auth__alert--error {
    background: #fde8e8;
    color: #a61b1b;
    border: 1px solid #f5c2c0;
}

.tb-auth__form { display: flex; flex-direction: column; gap: 16px; }

.tb-auth__field { display: flex; flex-direction: column; gap: 6px; }
.tb-auth__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--tb-gray-700, #374151);
}
.tb-auth__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.tb-auth__input-icon {
    position: absolute;
    left: 14px;
    color: var(--tb-gray-500, #6b7280);
    pointer-events: none;
}
.tb-auth__input-wrap input {
    width: 100%;
    padding: 13px 14px 13px 44px;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    border-radius: 10px;
    font-size: 14px;
    background: #fafbfc;
    color: var(--tb-gray-900, #111827);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.tb-auth__input-wrap input:focus {
    outline: none;
    border-color: var(--tb-primary, #e85d04);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}
.tb-auth__input-wrap input::placeholder {
    color: var(--tb-gray-500, #6b7280);
}

.tb-auth__toggle {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--tb-gray-500, #6b7280);
    border-radius: 6px;
    display: inline-flex;
    transition: background .15s, color .15s;
}
.tb-auth__toggle:hover { background: var(--tb-gray-100, #f3f4f6); color: var(--tb-gray-700, #374151); }
.tb-auth__toggle.is-active { color: var(--tb-primary, #e85d04); }

.tb-auth__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: -4px;
}
.tb-auth__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tb-gray-700, #374151);
    cursor: pointer;
    user-select: none;
}
.tb-auth__checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--tb-primary, #e85d04);
    cursor: pointer;
}
.tb-auth__link {
    font-size: 13px;
    color: var(--tb-primary, #e85d04);
    text-decoration: none;
}
.tb-auth__link:hover { text-decoration: underline; }

.tb-auth__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--tb-primary, #e85d04);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background .15s, transform .05s;
}
.tb-auth__submit:hover { background: #c94d02; }
.tb-auth__submit:active { transform: translateY(1px); }

.tb-auth__divider {
    position: relative;
    text-align: center;
    margin: 24px 0 18px;
    color: var(--tb-gray-500, #6b7280);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.tb-auth__divider::before, .tb-auth__divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    background: var(--tb-gray-200, #e5e7eb);
}
.tb-auth__divider::before { left: 0; }
.tb-auth__divider::after { right: 0; }
.tb-auth__divider span { background: #fff; padding: 0 10px; position: relative; }

.tb-auth__footer { text-align: center; }
.tb-auth__footer p {
    font-size: 13px;
    color: var(--tb-gray-500, #6b7280);
    margin: 0 0 10px;
}
.tb-auth__register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--tb-primary, #e85d04) 0%, #f48c06 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.28);
    transition: transform .15s, box-shadow .15s, filter .15s;
    text-align: center;
}
.tb-auth__register-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.38);
    color: #fff !important;
    text-decoration: none !important;
}
.tb-auth__register-btn:active { transform: translateY(0); }

/* Side panel */
.tb-auth__side {
    padding: 28px;
    background: linear-gradient(135deg, #fff7f0 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
}
.tb-auth__side h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--tb-gray-900, #111827);
}
.tb-auth__side ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tb-auth__side li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--tb-gray-700, #374151);
}
.tb-auth__side li svg {
    flex-shrink: 0;
    color: var(--tb-primary, #e85d04);
    margin-top: 1px;
}
.tb-auth__side-contact {
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--tb-gray-200, #e5e7eb);
    font-size: 13px;
}
.tb-auth__side-contact b {
    display: block;
    margin-bottom: 4px;
    color: var(--tb-gray-900, #111827);
}
.tb-auth__side-contact a {
    color: var(--tb-primary, #e85d04);
    text-decoration: none;
    font-weight: 500;
}
.tb-auth__side-contact a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .tb-auth {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 20px;
        margin: 20px auto;
    }
    .tb-auth__card { padding: 28px 20px; }
    .tb-auth__title { font-size: 1.5rem; }
    .tb-auth__side { padding: 20px; }
}

/* End */
/* /bitrix/components/bitrix/breadcrumb/templates/.default/style.min.css?1776332641467 */
/* /local/templates/b2b_techbridge/template_styles.css?177644397370033 */
