/* БАЗОВЫЕ СТИЛИ ДЛЯ НОВОГО МАКЕТА (КАРКАС) */
:root { --tm-red: #d31212; --tm-dark: #1a1a1a; --tm-gray: #f5f5f5; }
body { font-family: sans-serif; margin: 0; padding: 0; color: var(--tm-dark); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 15px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
.section-title { font-size: 28px; font-weight: bold; margin-bottom: 20px; }

/* 1. ГРИД БАННЕРОВ */
.tm-hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 20px; margin-bottom: 40px; }
.tm-hero-main { position: relative; border-radius: 12px; overflow: hidden; min-height: 400px; background: #eee; }
.tm-hero-side { display: flex; flex-direction: column; gap: 20px; }
.tm-hero-side-item { position: relative; border-radius: 12px; overflow: hidden; flex: 1; background: #ddd; }
.tm-banner-content { position: absolute; top: 0; left: 0; padding: 40px; z-index: 2; color: #fff; }
.tm-btn-red { display: inline-block; background: var(--tm-red); color: #fff; padding: 12px 24px; border-radius: 6px; font-weight: bold; }

/* 2. КАТЕГОРИИ (2 КОЛОНКИ) */
.tm-cat-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.tm-cat-card { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 20px; text-align: center; transition: 0.3s; }
.tm-cat-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* 3. УСЛУГИ/НАВЕСНОЕ (3 КОЛОНКИ) */
.tm-services-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.tm-service-item { position: relative; border-radius: 12px; overflow: hidden; }
.tm-service-label { position: absolute; bottom: 20px; left: 20px; background: var(--tm-red); color: #fff; padding: 8px 16px; border-radius: 4px; font-weight: bold; }

/* 4. БРЕНДЫ */
.tm-brands { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 40px; gap: 20px; }
.tm-brands img { max-height: 40px; filter: grayscale(100%); transition: 0.3s; }
.tm-brands img:hover { filter: grayscale(0%); }

/* 5. ФОРМА ЗАХВАТА */
.tm-lead-form { background: var(--tm-red); border-radius: 12px; padding: 40px; display: flex; justify-content: space-between; align-items: center; color: #fff; margin-bottom: 40px; }
.tm-form-inputs { display: flex; gap: 15px; width: 60%; flex-wrap: wrap; }
.tm-form-inputs input { padding: 15px; border: none; border-radius: 6px; flex: 1; min-width: 200px; }
.tm-form-inputs button { background: var(--tm-dark); color: #fff; border: none; padding: 15px 30px; border-radius: 6px; cursor: pointer; font-weight: bold; }

/* 6. НОВОСТИ (4 КОЛОНКИ) */
.tm-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.tm-news-card { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; overflow: hidden; padding-bottom: 15px;}
.tm-news-card img { width: 100%; height: 180px; object-fit: cover; }
.tm-news-card-content { padding: 15px; }

/* 7. ПРЕИМУЩЕСТВА (ГРИД ИКОНОК) */
.tm-adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 40px; }
.tm-adv-item { background: #fff; border: 1px solid #eaeaea; padding: 20px; border-radius: 8px; display: flex; align-items: center; gap: 15px; font-size: 14px; font-weight: bold;}
.tm-adv-item i { color: var(--tm-red); font-size: 24px; }

/* 8. О КОМПАНИИ (ВИДЕО + ТЕКСТ) */
.tm-about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; align-items: center; }
.tm-video-wrapper { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #000; display: flex; justify-content: center; align-items: center;}

/* 9. FAQ */
.tm-faq { margin-bottom: 40px; }
.tm-faq details { border: 1px solid #ddd; border-radius: 6px; margin-bottom: 10px; padding: 15px; background: #fff; cursor: pointer; }
.tm-faq summary { font-weight: bold; list-style: none; outline: none; position: relative;}
.tm-faq summary::-webkit-details-marker { display: none; }

/* 10. КАРТА */
.tm-map-section { position: relative; height: 500px; margin-top: 40px; }
.tm-map-contacts { position: absolute; top: 50px; left: 10%; background: var(--tm-red); color: #fff; padding: 30px; border-radius: 12px; z-index: 10; width: 300px; }

@media (max-width: 992px) {
    .tm-hero-grid, .tm-cat-2, .tm-about { grid-template-columns: 1fr; }
    .tm-services-3, .tm-news-grid, .tm-adv-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-lead-form { flex-direction: column; text-align: center; gap: 20px; }
    .tm-form-inputs { width: 100%; }
}
@media (max-width: 576px) {
    .tm-services-3, .tm-news-grid, .tm-adv-grid { grid-template-columns: 1fr; }
}
/* НОВЫЕ СТИЛИ HEADER ПОД ТЕХМАШИНЕРИ */
:root { --tm-red: #d31212; --tm-dark: #1a1a1a; }

.tm-header-top { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 20px;}
.tm-logo img { height: 50px; }

.tm-catalog-btn { background: var(--tm-red); color: #fff; border: none; border-radius: 6px; padding: 10px 20px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 8px; text-decoration: none;}
.tm-catalog-btn i { font-size: 14px; }

.tm-search-wrapper { flex: 1; display: flex; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; height: 40px;}
.tm-search-wrapper input { border: none; padding: 0 15px; width: 100%; outline: none; }
.tm-search-wrapper button { background: none; border: none; padding: 0 15px; cursor: pointer; color: #999; }

.tm-user-actions { display: flex; gap: 20px; align-items: center; }
.tm-action-item { text-align: center; color: var(--tm-dark); text-decoration: none; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tm-action-item i { font-size: 18px; color: #555;}
.tm-action-item:hover i { color: var(--tm-red); }

.tm-socials { display: flex; gap: 8px; align-items: center; }
.tm-socials a { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; text-decoration: none; }
.tm-social-wa { background: #25D366; }
.tm-social-tg { background: #0088cc; }
.tm-social-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.tm-phone-block { text-align: right; }
.tm-phone-block a { font-size: 18px; font-weight: bold; color: var(--tm-dark); text-decoration: none; display: block; }
.tm-phone-block span { font-size: 11px; color: #888; }

/* Нижнее навигационное меню */
.tm-nav-bottom { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; position: relative;}
.tm-nav-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 25px; align-items: center; }
.tm-nav-menu > li > a { color: var(--tm-dark); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.2s;}
.tm-nav-menu > li > a:hover { color: var(--tm-red); }
.tm-nav-menu > li > a.highlight { color: var(--tm-red); }

.tm-call-btn { background: var(--tm-red); color: #fff; padding: 8px 20px; border-radius: 6px; font-size: 14px; font-weight: bold; text-decoration: none; }

/* Дропдаун меню */
.tm-dropdown { position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 8px; width: 300px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 100; padding: 10px 0;}
.has-dropdown:hover .tm-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.tm-dropdown li { list-style: none; }
.tm-dropdown a { display: block; padding: 10px 20px; color: var(--tm-dark); text-decoration: none; font-size: 14px; border-bottom: 1px solid #f9f9f9;}
.tm-dropdown a:hover { background: #f5f5f5; color: var(--tm-red); }
.has-submenu { position: relative; }
.has-submenu .tm-dropdown.submenu { left: 100%; top: 0; margin-left: 2px; }

@media (max-width: 992px) {
    .desktop-only { display: none !important; }
}
/* НОВЫЕ СТИЛИ FOOTER ПОД ТЕХМАШИНЕРИ (СВЕТЛАЯ ТЕМА) */
.tm-footer { background: #f8f8f8; color: #333; padding: 60px 0 20px; font-family: sans-serif; border-top: 1px solid #eaeaea; }
.tm-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr; gap: 30px; margin-bottom: 40px; }

.tm-ft-logo img { height: 60px; margin-bottom: 20px; }

.tm-ft-contacts p { margin: 0 0 12px 0; font-size: 14px; color: #555; display: flex; align-items: flex-start; gap: 10px; }
.tm-ft-contacts i { color: var(--tm-red, #d31212); margin-top: 3px; font-size: 16px; }
.tm-ft-contacts a { color: #1a1a1a; text-decoration: none; font-weight: bold; }
.tm-ft-contacts a:hover { color: var(--tm-red, #d31212); }

.tm-ft-socials { display: flex; gap: 10px; margin: 20px 0; }
.tm-ft-socials a { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; text-decoration: none; transition: 0.3s; }
.tm-ft-socials a:hover { transform: translateY(-3px); }

.tm-ft-title { font-weight: 800; font-size: 16px; margin: 0 0 20px 0; color: #1a1a1a; }

.tm-ft-menu { list-style: none; padding: 0; margin: 0 0 30px 0; }
.tm-ft-menu li { margin-bottom: 12px; }
.tm-ft-menu a { color: #666; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.tm-ft-menu a:hover { color: var(--tm-red, #d31212); }

.tm-ft-btn { background: var(--tm-red, #d31212); color: #fff; border: none; padding: 12px 24px; border-radius: 6px; font-weight: bold; cursor: pointer; width: 100%; max-width: 220px; transition: 0.3s; margin-top: 10px; }
.tm-ft-btn:hover { background: #b00f0f; }

.tm-ft-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #ddd; padding-top: 20px; font-size: 13px; color: #888; flex-wrap: wrap; gap: 15px; }
.tm-ft-bottom a { color: #888; text-decoration: underline; }
.tm-ft-bottom a:hover { color: var(--tm-red, #d31212); }

@media (max-width: 992px) {
    .tm-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .tm-footer-grid { grid-template-columns: 1fr; }
    .tm-ft-bottom { flex-direction: column; text-align: center; }
}
     /* МОДАЛЬНОЕ ОКНО TECHMACHINERY */
 :root { --tm-red: #d31212; --tm-dark: #1a1a1a; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none; /* Переключается через JS */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 15px;
}

/* Когда модалка открыта (добавь этот класс через JS) */
.modal-overlay.active { display: flex; }

.modal-window {
    background: #fff;
    width: 100%;
    max-width: 700px;
    border-radius: 16px;
    position: relative;
    padding: 45px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}
.modal-close:hover { color: var(--tm-red); }

.modal-window h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--tm-dark);
    margin-bottom: 30px;
    line-height: 1.3;
    text-align: center;
}

.modal-form { display: grid; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.3s;
    background: #f9f9f9;
    box-sizing: border-box;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--tm-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(211, 18, 18, 0.1);
}

/* Сетка 3 в ряд для Телефона, Email и Региона */
.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

/* Кнопка (заменяем btn-gold) */
.form-btn {
    background: var(--tm-red);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}
.form-btn:hover { background: #b00f0f; transform: translateY(-2px); }

/* Чекбокс */
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.privacy-text { font-size: 12px; color: #888; line-height: 1.4; }
.privacy-text a { color: var(--tm-red); text-decoration: none; }
.privacy-text a:hover { text-decoration: underline; }

/* Окно успеха */
#success-message i { color: var(--tm-red) !important; }
.close-success-btn {
    background: #eee;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}
.close-success-btn:hover { background: #ddd; }

@media (max-width: 600px) {
    .modal-window { padding: 30px 20px; }
    .form-row-3 { grid-template-columns: 1fr; }
    .modal-window h3 { font-size: 18px; }
}
/* БАЗОВЫЕ СТИЛИ HEADER */
:root { --tm-red: #d31212; --tm-dark: #1a1a1a; }

/* position: relative важен для того, чтобы мега-меню растягивалось по ширине этого контейнера */
.tm-header-top { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 20px; position: relative; }
.tm-logo img { height: 50px; }

.catalog-wrapper.has-megamenu { position: static; }
.tm-catalog-btn { background: var(--tm-red); color: #fff; border: none; border-radius: 6px; padding: 10px 20px; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 8px; text-decoration: none;}
.tm-catalog-btn i { font-size: 14px; }

.tm-search-wrapper { flex: 1; display: flex; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; height: 40px;}
.tm-search-wrapper input { border: none; padding: 0 15px; width: 100%; outline: none; }
.tm-search-wrapper button { background: none; border: none; padding: 0 15px; cursor: pointer; color: #999; }

.tm-user-actions { display: flex; gap: 20px; align-items: center; }
.tm-action-item { text-align: center; color: var(--tm-dark); text-decoration: none; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tm-action-item i { font-size: 18px; color: #555;}
.tm-action-item:hover i { color: var(--tm-red); }

.tm-socials { display: flex; gap: 8px; align-items: center; }
.tm-socials a { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; text-decoration: none; }
.tm-social-wa { background: #25D366; }
.tm-social-tg { background: #0088cc; }
.tm-social-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.tm-phone-block { text-align: right; }
.tm-phone-block a { font-size: 18px; font-weight: bold; color: var(--tm-dark); text-decoration: none; display: block; }
.tm-phone-block span { font-size: 11px; color: #888; }

/* НИЖНЕЕ МЕНЮ */
.tm-nav-bottom { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; position: relative;}
.tm-nav-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 25px; align-items: center; }
.tm-nav-menu > li > a { color: var(--tm-dark); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.2s;}
.tm-nav-menu > li > a:hover, .tm-nav-menu > li > a.highlight { color: var(--tm-red); }

.tm-call-btn { background: var(--tm-red); color: #fff; padding: 8px 20px; border-radius: 6px; font-size: 14px; font-weight: bold; text-decoration: none; }

/* === МЕГА-МЕНЮ (ПОД КРАСНОЙ КНОПКОЙ) === */
.tm-megamenu {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-radius: 0 0 12px 12px;
    padding: 30px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 2px solid var(--tm-red);
}

/* Открытие при наведении на красную кнопку и само меню */
.catalog-wrapper.has-megamenu:hover .tm-megamenu { opacity: 1; visibility: visible; transform: translateY(0); }

/* ТАБЫ В МЕГА-МЕНЮ */
.tm-mega-tabs { display: inline-flex; background: #eee; border-radius: 30px; padding: 4px; margin-bottom: 30px; }
.tm-mega-tab { padding: 10px 25px; border-radius: 25px; font-size: 14px; font-weight: bold; color: #555; cursor: pointer; transition: 0.3s; }
.tm-mega-tab.active { background: var(--tm-red); color: #fff; }

/* КОНТЕНТ МЕГА-МЕНЮ */
.tm-mega-content { display: flex; gap: 60px; }
.tm-mega-col h4 { font-size: 18px; color: #1a1a1a; margin: 0 0 15px 0; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.tm-mega-col h4 span { font-size: 12px; color: #999; font-weight: normal; }
.tm-mega-col ul { list-style: none; padding: 0; margin: 0; }
.tm-mega-col li { margin-bottom: 12px; }
.tm-mega-col a { color: #555; text-decoration: none; font-size: 14px; transition: 0.2s; display: flex; justify-content: space-between; width: 100%;}
.tm-mega-col a:hover { color: var(--tm-red); }
.tm-mega-col a span { color: #999; font-size: 12px; }

/* СКРЫТИЕ МОБИЛЬНЫХ ЭЛЕМЕНТОВ НА ДЕСКТОПЕ */
.mobile-menu-overlay, .mobileFABButton { display: none !important; }

@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .mobile-controls { display: block !important; }
    .mobile-menu-overlay { display: none !important; }
    .mobile-menu-overlay.active { display: block !important; }
    .mobileFABButton { display: flex !important; flex-direction: row; padding: 0 10px; align-items: center; justify-content: space-between; position: fixed; bottom: 10px; z-index:9; width:100%; gap:10px; box-sizing: border-box; }
}
/* СТИЛИ ДЛЯ БЛОКА КАТЕГОРИЙ (5 В РЯД) */
.tm-section-subtitle { color: #999; font-size: 16px; margin-bottom: 30px; margin-top: -10px; }

/* Сетка на 5 колонок */
.tm-cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px; /* Уменьшили отступ между карточками, чтобы влезли */
    margin-bottom: 40px;
}

.tm-cat-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px 15px; /* Уменьшили внутренние отступы */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.tm-cat-card:hover {
    border-color: var(--tm-red, #d31212);
    box-shadow: 0 10px 25px rgba(211, 18, 18, 0.08);
    transform: translateY(-3px);
}

/* Картинки стали чуть меньше по высоте */
.tm-cat-img-wrap {
    text-align: center;
    margin-bottom: 15px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tm-cat-img-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.3s ease; }
.tm-cat-card:hover .tm-cat-img-wrap img { transform: scale(1.05); }

/* Заголовок родителя */
.tm-cat-title {
    font-size: 16px; /* Уменьшили шрифт, чтобы влез в узкую карточку */
    font-weight: 800;
    color: var(--tm-dark, #1a1a1a);
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
}
.tm-cat-title span {
    color: #999;
    font-size: 11px;
    font-weight: 600;
    display: block; /* Вывели количество товаров на новую строку под заголовком */
    margin-top: 4px;
}

/* Список подкатегорий */
.tm-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.tm-cat-list li a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 12px; /* Шрифт подкатегорий поменьше */
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    transition: color 0.2s;
    width: 100%;
    line-height: 1.3;
}
.tm-cat-list li a:hover { color: var(--tm-red, #d31212); }
.tm-cat-list li a span {
    color: #999;
    font-size: 11px;
    margin-left: 6px;
    white-space: nowrap;
}

/* Адаптив для разных экранов, чтобы не ломалось */
@media (max-width: 1200px) {
    .tm-cat-grid { grid-template-columns: repeat(4, 1fr); } /* На ноутах 4 в ряд */
}
@media (max-width: 992px) {
    .tm-cat-grid { grid-template-columns: repeat(3, 1fr); } /* На планшетах 3 в ряд */
}
@media (max-width: 768px) {
    .tm-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } /* На смартфонах 2 в ряд */
    .tm-cat-card { padding: 15px 10px; }
}
@media (max-width: 480px) {
    .tm-cat-grid { grid-template-columns: 1fr; } /* На совсем мелких 1 в ряд */
}
/* СТИЛИ ДЛЯ ЛИД-ФОРМЫ (КРАСНЫЙ БЛОК С КАРТИНКОЙ) */
.tm-lead-section {
    margin-bottom: 60px;
}

.tm-lead-container {
    display: flex;
    border-radius: 16px;
    overflow: hidden; /* Чтобы картинка и фон не вылезали за скругления */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: var(--tm-red, #d31212);
}

.tm-lead-content {
    flex: 0 0 65%; /* Красный блок занимает 65% ширины */
    padding: 50px 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tm-lead-image {
    flex: 0 0 35%; /* Картинка занимает 35% */
    /* СЮДА ПОДСТАВЬ ССЫЛКУ НА РЕАЛЬНУЮ КАРТИНКУ БОБКЭТА ИЗ МАКЕТА */
    background: url('/assets/img/lead-bg-bobcat.jpg') center/cover no-repeat;
    min-height: 100%;
}

.tm-lead-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.tm-lead-content p {
    font-size: 16px;
    margin: 0 0 35px 0;
    opacity: 0.9;
}

.tm-lead-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.tm-lead-input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.75); /* Легкий прозрачный фон как на макете */
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: background 0.3s;
}

.tm-lead-input::placeholder { color: #555; }
.tm-lead-input:focus { background: #fff; }

.tm-lead-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.tm-lead-btn:hover {
    background: #222;
    transform: translateY(-2px);
}

/* Кастомный чекбокс */
.tm-lead-agreement {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    width: fit-content;
}

.tm-lead-agreement input { display: none; }

.tm-lead-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}

.tm-lead-agreement input:checked + .tm-lead-checkbox::after {
    content: '✔';
    color: #fff;
    font-size: 14px;
}

.tm-lead-agreement a {
    color: #fff;
    text-decoration: underline;
}
.tm-lead-agreement a:hover {
    text-decoration: none;
}

/* Адаптив */
@media (max-width: 1200px) {
    .tm-lead-content { padding: 40px; }
    .tm-lead-form-grid { grid-template-columns: repeat(2, 1fr); } /* 2 в ряд на планшетах */
}
@media (max-width: 992px) {
    .tm-lead-container { flex-direction: column; }
    .tm-lead-image { min-height: 250px; }
}
@media (max-width: 576px) {
    .tm-lead-content { padding: 30px 20px; }
    .tm-lead-form-grid { grid-template-columns: 1fr; } /* 1 в ряд на мобилках */
}
/* БАЗОВЫЕ ПЕРЕМЕННЫЕ */
:root { --tm-red: #d31212; --tm-dark: #1a1a1a; --tm-gray: #f5f5f5; }

.breadcrumbs { font-size: 13px; color: #888; margin-bottom: 20px; }
.breadcrumbs a { color: #555; text-decoration: none; }
.breadcrumbs a:hover { color: var(--tm-red); }

.page-title { font-size: 32px; font-weight: 800; color: var(--tm-dark); margin-bottom: 30px; }

/* БРЕНДЫ */
.tm-brands-row { display: flex; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; align-items: center; }
.tm-brands-row img { height: 40px; filter: grayscale(100%); opacity: 0.7; transition: 0.3s; }
.tm-brands-row img:hover { filter: grayscale(0%); opacity: 1; }

/* ПЛАШКИ ПОДКАТЕГОРИЙ */
.tm-subcats-pills { display: flex; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.tm-subcat-pill {
    display: flex; align-items: center; gap: 12px; background: #fff;
    border: 1px solid #eaeaea; padding: 10px 20px; border-radius: 8px;
    text-decoration: none; color: var(--tm-dark); font-weight: 600; font-size: 14px;
    transition: 0.2s; box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.tm-subcat-pill:hover { border-color: var(--tm-red); box-shadow: 0 5px 15px rgba(211,18,18,0.1); }
.tm-subcat-pill img { width: 40px; height: 30px; object-fit: contain; }

/* ЛЕЙАУТ: САЙДБАР + ГРИД */
.catalog-layout { display: flex; gap: 30px; align-items: flex-start; }
.catalog-sidebar { flex: 0 0 280px; background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #eaeaea; }
.product-list-wrapper { flex: 1; min-width: 0; }

/* СТИЛИ ФИЛЬТРОВ */
.filter-group { margin-bottom: 25px; }
.filter-title { font-size: 16px; font-weight: 700; margin: 0 0 15px 0; border-bottom: 1px solid #eee; padding-bottom: 10px;}
.filter-content { display: flex; flex-direction: column; gap: 10px; max-height: 250px; overflow-y: auto; }
.custom-checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; color: #555; }
.custom-checkbox input { accent-color: var(--tm-red); width: 16px; height: 16px; cursor: pointer; }

/* ПЕРЕКЛЮЧАТЕЛИ ВИДА (СЕТКА/СПИСОК) */
.view-toggles { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 20px; }
.view-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    background: #fff; border: 1px solid #ddd; border-radius: 6px; color: #666; cursor: pointer; transition: 0.2s;
}
.view-btn:hover { border-color: #aaa; }
.view-btn.active { background: var(--tm-red); color: #fff; border-color: var(--tm-red); }

/* КАРТОЧКА ТОВАРА ПО МАКЕТУ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid #eaeaea;
    border-radius: 12px; padding: 20px; transition: 0.3s; position: relative;
}
.product-card:hover { border-color: var(--tm-red); box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(-3px); }

.prod-fav-icon { position: absolute; top: 15px; right: 15px; color: #ccc; font-size: 20px; cursor: pointer; transition: 0.2s; }
.prod-fav-icon:hover { color: var(--tm-red); }

.prod-img { height: 180px; margin-bottom: 15px; display: flex; justify-content: center; align-items: center; }
.prod-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.prod-title { font-size: 16px; font-weight: 800; color: var(--tm-dark); margin: 0 0 15px 0; line-height: 1.4; text-align: center; }

.prod-specs { margin-bottom: 20px; flex-grow: 1; }
.spec-row { display: flex; justify-content: space-between; font-size: 13px; color: #666; margin-bottom: 8px; }
.spec-row .dots { flex-grow: 1; border-bottom: 1px dotted #ccc; margin: 0 8px; opacity: 0.5; }
.spec-row span:last-child { font-weight: 700; color: var(--tm-dark); }

.prod-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.btn-request-cp {
    background: #000; color: #fff; text-align: center; padding: 12px 15px;
    border-radius: 6px; font-weight: bold; font-size: 13px; border: none;
    cursor: pointer; transition: 0.3s; flex: 1;
}
.btn-request-cp:hover { background: var(--tm-red); }
.prod-link { color: var(--tm-red); font-size: 13px; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.prod-link:hover { text-decoration: underline; }

/* === РЕЖИМ СПИСКА (LIST-LAYOUT) === */
.product-grid.list-layout { grid-template-columns: 1fr; }
.product-grid.list-layout .product-card { flex-direction: row; align-items: center; gap: 30px; padding: 20px 30px; }
.product-grid.list-layout .prod-img { height: 140px; width: 200px; margin-bottom: 0; flex-shrink: 0; }
.product-grid.list-layout .prod-title { text-align: left; margin: 0 0 10px 0; font-size: 18px; }
.product-grid.list-layout .prod-specs { margin-bottom: 0; flex-grow: 1; padding-left: 20px; border-left: 1px solid #eaeaea; }
.product-grid.list-layout .prod-card-actions { flex-direction: column; width: 160px; flex-shrink: 0; margin-top: 0; gap: 15px; }
.product-grid.list-layout .btn-request-cp { width: 100%; }
.product-grid.list-layout .prod-link { align-self: center; }

/* СТИЛИ ДЛЯ НИЖНИХ БЛОКОВ ПО МАКЕТУ */
.tm-adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 60px; margin-bottom: 40px; }
.tm-adv-item { background: #fff; border: 1px solid #eaeaea; padding: 20px; border-radius: 8px; display: flex; align-items: center; gap: 15px; font-size: 14px; font-weight: bold;}
.tm-adv-item i { color: var(--tm-red); font-size: 24px; }

.tm-about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; margin-top: 40px; align-items: center; }
.tm-video-wrapper { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #000; display: flex; justify-content: center; align-items: center;}

.tm-faq { margin-bottom: 40px; }
.tm-faq details { border: 1px solid #ddd; border-radius: 6px; margin-bottom: 10px; padding: 15px; background: #fff; cursor: pointer; }
.tm-faq summary { font-weight: bold; list-style: none; outline: none; position: relative;}
.tm-faq summary::-webkit-details-marker { display: none; }

.tm-map-section { position: relative; height: 500px; margin-top: 40px; }
.tm-map-contacts { position: absolute; top: 50px; left: 10%; background: var(--tm-red); color: #fff; padding: 30px; border-radius: 12px; z-index: 10; width: 300px; }

/* МОБИЛЬНЫЙ АДАПТИВ */
.mobile-filter-btn { display: none; }
@media (max-width: 992px) {
    .catalog-layout { flex-direction: column; }
    .catalog-sidebar { display: none; width: 100%; }
    .catalog-sidebar.active { display: block; position: fixed; inset: 0; z-index: 1000; border-radius: 0; overflow-y: auto; }
    .filter-header-mobile { display: flex !important; justify-content: space-between; align-items: center; font-size: 18px; font-weight: bold; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
    .mobile-filter-btn { display: flex; background: #000; color: #fff; width: 100%; padding: 15px; border-radius: 6px; font-weight: bold; justify-content: center; border: none; margin-bottom: 20px; }

    .tm-adv-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-about { grid-template-columns: 1fr; }
    .product-grid.list-layout .product-card { flex-direction: column; padding: 20px; }
    .product-grid.list-layout .prod-img { width: 100%; }
    .product-grid.list-layout .prod-specs { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 15px; margin-top: 15px; width: 100%; }
    .product-grid.list-layout .prod-card-actions { width: 100%; flex-direction: row; margin-top: 15px; align-items: center; }
}
@media (max-width: 576px) {
    .tm-adv-grid { grid-template-columns: 1fr; }
    .view-toggles { display: none; } /* На мобилках всегда сетка */
}
/* === ПЕРЕМЕННЫЕ === */
:root { --tm-red: #d31212; --tm-dark: #1a1a1a; --tm-gray: #f5f5f5; }

.breadcrumbs { font-size: 13px; color: #888; margin-bottom: 20px; }
.breadcrumbs a { color: #555; text-decoration: none; transition: 0.2s; }
.breadcrumbs a:hover { color: var(--tm-red); }

/* === КАРТА КОНТАКТОВ === */
.tm-contact-map-wrap { position: relative; height: 500px; border-radius: 16px; overflow: hidden; margin-bottom: 50px; background: #e0e0e0; }
.tm-contact-map-overlay { position: absolute; top: 40px; left: 40px; background: var(--tm-red); color: #fff; padding: 40px; border-radius: 12px; width: 400px; z-index: 10; box-shadow: 0 15px 30px rgba(211, 18, 18, 0.2); }
.tm-contact-map-overlay h3 { font-size: 24px; font-weight: 800; margin-top: 0; margin-bottom: 25px; }

.tm-contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.tm-contact-info-item { display: flex; gap: 15px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.tm-contact-info-item i { font-size: 20px; margin-top: 2px; width: 20px; text-align: center; }

.tm-btn-black-full { background: #000; color: #fff; border: none; padding: 16px; border-radius: 8px; font-weight: bold; width: 100%; cursor: pointer; transition: 0.3s; font-size: 15px; }
.tm-btn-black-full:hover { background: #222; transform: translateY(-2px); }

/* === ФОРМА ЗАЯВКИ === */
.tm-form-section { margin-bottom: 80px; }
.tm-form-heading { font-size: 28px; font-weight: 800; color: var(--tm-dark); margin-bottom: 30px; }

.tm-contact-form { background: #f9f9f9; padding: 40px; border-radius: 16px; }
.tm-form-group { margin-bottom: 20px; }
.tm-form-group label { display: block; font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }

.tm-input { width: 100%; background: #ebebeb; border: none; padding: 16px 20px; border-radius: 8px; font-size: 15px; color: #333; outline: none; transition: 0.3s; box-sizing: border-box; }
.tm-input:focus { background: #fff; box-shadow: 0 0 0 2px rgba(211, 18, 18, 0.2); }
textarea.tm-input { resize: vertical; min-height: 120px; }

.tm-form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tm-form-footer { display: flex; align-items: center; gap: 30px; margin-top: 10px; }
.tm-btn-submit { background: var(--tm-red); color: #fff; border: none; padding: 16px 40px; border-radius: 8px; font-weight: bold; font-size: 16px; cursor: pointer; transition: 0.3s; }
.tm-btn-submit:hover { background: #b00f0f; transform: translateY(-2px); }

.tm-privacy-check { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #666; cursor: pointer; }
.tm-privacy-check input { display: none; }
.tm-checkbox-box { width: 20px; height: 20px; background: var(--tm-red); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tm-privacy-check input:checked + .tm-checkbox-box::after { content: '✔'; color: #fff; font-size: 12px; }
.tm-privacy-check a { color: var(--tm-red); text-decoration: none; }
.tm-privacy-check a:hover { text-decoration: underline; }

/* Адаптив для мобилок */
@media (max-width: 992px) {
    .tm-contact-map-overlay { position: relative; top: 0; left: 0; width: 100%; border-radius: 16px 16px 0 0; }
    .tm-contact-map-wrap { height: auto; display: flex; flex-direction: column; }
    .tm-form-row-3 { grid-template-columns: 1fr; gap: 0; }
    .tm-form-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
    .tm-btn-submit { width: 100%; }
}
@media (max-width: 576px) {
    .tm-contact-form { padding: 20px; }
}
/* СТИЛИ ДЛЯ БЛОКА КАТЕГОРИЙ (5 В РЯД) — КОПИЯ С ГЛАВНОЙ */
.tm-cat-grid-main {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 60px;
}

.tm-cat-card-main {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.tm-cat-card-main:hover {
    border-color: var(--tm-red, #d31212);
    box-shadow: 0 10px 25px rgba(211, 18, 18, 0.08);
    transform: translateY(-3px);
}

.tm-cat-img-wrap-main {
    text-align: center;
    margin-bottom: 15px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tm-cat-img-wrap-main img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.3s ease; }

.tm-cat-title-main {
    font-size: 16px;
    font-weight: 800;
    color: var(--tm-dark, #1a1a1a);
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
}
.tm-cat-title-main span {
    color: #999;
    font-size: 11px;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

.tm-cat-list-main {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.tm-cat-list-main li a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    transition: color 0.2s;
    width: 100%;
    line-height: 1.3;
}
.tm-cat-list-main li a:hover { color: var(--tm-red, #d31212); }
.tm-cat-list-main li a span:last-child {
    color: #999;
    font-size: 11px;
    margin-left: 6px;
    white-space: nowrap;
}

@media (max-width: 1200px) { .tm-cat-grid-main { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .tm-cat-grid-main { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .tm-cat-grid-main { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tm-cat-card-main { padding: 15px 10px; }
}
@media (max-width: 480px) { .tm-cat-grid-main { grid-template-columns: 1fr; } }
/* === ПЕРЕМЕННЫЕ === */
:root { --tm-red: #d31212; --tm-dark: #1a1a1a; --tm-gray: #f5f5f5; }

.breadcrumbs { font-size: 13px; color: #888; margin-bottom: 20px; }
.breadcrumbs a { color: #555; text-decoration: none; transition: 0.2s; }
.breadcrumbs a:hover { color: var(--tm-red); }

.tm-section-title { font-size: 24px; font-weight: 800; color: var(--tm-dark); margin: 0 0 25px 0; }

/* === БЛОК О КОМПАНИИ (ПЕРВЫЙ ЭКРАН) === */
.tm-about-top { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 60px; align-items: center; }
.tm-about-text h1 { font-size: 32px; font-weight: 800; margin: 0 0 20px 0; line-height: 1.2; text-transform: uppercase; }
.tm-about-text p { font-size: 15px; color: #444; line-height: 1.6; margin-bottom: 15px; }
.tm-about-img { text-align: center; }
.tm-about-img img { max-width: 100%; height: auto; }

/* === ПРЕИМУЩЕСТВА С ЦИФРАМИ === */
.tm-numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 60px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.tm-num-card { padding: 40px; position: relative; color: #fff; overflow: hidden; }
.tm-num-card.gray { background: #555; }
.tm-num-card.red { background: var(--tm-red); }
.tm-num-card.white { background: #fff; color: var(--tm-dark); border: 1px solid #eaeaea; }

.tm-num-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 15px 0; position: relative; z-index: 2; }
.tm-num-card p { font-size: 14px; line-height: 1.5; margin: 0; position: relative; z-index: 2; opacity: 0.9; }
.tm-num-bg { position: absolute; bottom: -20px; right: -10px; font-size: 150px; font-weight: 900; line-height: 1; opacity: 0.1; z-index: 1; pointer-events: none; }

/* === КАТЕГОРИИ (ЧТО ПРЕДЛАГАЕМ) === */
.tm-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 60px; }
.tm-cat-card { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 30px; text-align: center; transition: 0.3s; }
.tm-cat-card:hover { border-color: var(--tm-red); box-shadow: 0 10px 30px rgba(0,0,0,0.05); transform: translateY(-3px); }
.tm-cat-card img { height: 160px; object-fit: contain; margin-bottom: 20px; }
.tm-cat-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px 0; }
.tm-cat-card p { font-size: 14px; color: #666; margin: 0; line-height: 1.5; }

/* === УСЛУГИ (СЕРВИС) === */
.tm-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 60px; }
.tm-srv-item { background: #fdfdfd; border: 1px solid #eaeaea; padding: 20px; border-radius: 8px; display: flex; align-items: center; gap: 15px; font-size: 14px; font-weight: bold; color: var(--tm-dark); transition: 0.3s; }
.tm-srv-item:hover { border-color: var(--tm-red); background: #fff; }
.tm-srv-item i { color: var(--tm-red); font-size: 24px; width: 30px; text-align: center; }

/* === ЦИФРЫ КОМПАНИИ (СЕРЫЕ БЛОКИ) === */
.tm-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 60px; border-radius: 12px; overflow: hidden; }
.tm-stat-card { padding: 40px; position: relative; color: #fff; background: #888; border-right: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.tm-stat-card.red { background: var(--tm-red); border-right: none; }
.tm-stat-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px 0; position: relative; z-index: 2; }
.tm-stat-card p { font-size: 13px; line-height: 1.5; margin: 0; position: relative; z-index: 2; opacity: 0.9; }
.tm-stat-bg { position: absolute; bottom: -20px; right: -10px; font-size: 100px; font-weight: 900; line-height: 1; opacity: 0.15; z-index: 1; pointer-events: none; }

/* === FAQ === */
.tm-faq { margin-bottom: 60px; }
.tm-faq details { border: 1px solid #eaeaea; border-radius: 6px; margin-bottom: 10px; padding: 15px 20px; background: #fff; cursor: pointer; transition: 0.3s; }
.tm-faq details:hover { border-color: var(--tm-red); }
.tm-faq summary { font-weight: bold; font-size: 15px; list-style: none; outline: none; position: relative; color: var(--tm-dark); }
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq p { padding-top: 15px; color: #555; line-height: 1.6; font-size: 14px; margin: 0; border-top: 1px dashed #eaeaea; margin-top: 15px; }

/* === ЛИД ФОРМА С КАРТОЙ === */
.tm-map-section { position: relative; height: 500px; border-radius: 16px; overflow: hidden; }
.tm-map-contacts { position: absolute; top: 40px; left: 40px; background: var(--tm-red); color: #fff; padding: 40px; border-radius: 12px; z-index: 10; width: 400px; box-shadow: 0 15px 30px rgba(211, 18, 18, 0.2); }
.tm-map-contacts h3 { font-size: 24px; font-weight: 800; margin-top: 0; margin-bottom: 25px; }
.tm-map-info-item { display: flex; gap: 15px; align-items: flex-start; font-size: 15px; line-height: 1.5; margin-bottom: 15px; }
.tm-map-info-item i { font-size: 20px; margin-top: 2px; width: 20px; text-align: center; }
.tm-btn-black-full { background: #000; color: #fff; border: none; padding: 16px; border-radius: 8px; font-weight: bold; width: 100%; cursor: pointer; transition: 0.3s; font-size: 15px; margin-top: 10px;}
.tm-btn-black-full:hover { background: #222; transform: translateY(-2px); }

/* АДАПТИВ */
@media (max-width: 992px) {
    .tm-about-top, .tm-cat-grid { grid-template-columns: 1fr; gap: 30px; }
    .tm-numbers-grid, .tm-stats-grid { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; gap: 15px; }
    .tm-num-card, .tm-stat-card { border-radius: 12px; border: 1px solid #eaeaea; }
    .tm-services-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-map-contacts { position: relative; top: 0; left: 0; width: 100%; border-radius: 16px 16px 0 0; }
    .tm-map-section { height: auto; display: flex; flex-direction: column; }
}
@media (max-width: 576px) {
    .tm-services-grid { grid-template-columns: 1fr; }
}
/* === ПЕРЕМЕННЫЕ === */
:root { --tm-red: #d31212; --tm-dark: #1a1a1a; --tm-gray: #f5f5f5; }

.breadcrumbs { font-size: 13px; color: #888; margin-bottom: 20px; }
.breadcrumbs a { color: #555; text-decoration: none; transition: 0.2s; }
.breadcrumbs a:hover { color: var(--tm-red); }

.tm-section-title { font-size: 24px; font-weight: 800; color: var(--tm-dark); margin: 0 0 25px 0; }

/* === БЛОК О КОМПАНИИ (ПЕРВЫЙ ЭКРАН) === */
.tm-about-top { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 60px; align-items: center; }
.tm-about-text h1 { font-size: 32px; font-weight: 800; margin: 0 0 20px 0; line-height: 1.2; text-transform: uppercase; }
.tm-about-text p { font-size: 15px; color: #444; line-height: 1.6; margin-bottom: 15px; }
.tm-about-img { text-align: center; }
.tm-about-img img { max-width: 100%; height: auto; }

/* === ПРЕИМУЩЕСТВА С ЦИФРАМИ === */
.tm-numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 60px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.tm-num-card { padding: 40px; position: relative; color: #fff; overflow: hidden; }
.tm-num-card.gray { background: #555; }
.tm-num-card.red { background: var(--tm-red); }
.tm-num-card.white { background: #fff; color: var(--tm-dark); border: 1px solid #eaeaea; }
.tm-num-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 15px 0; position: relative; z-index: 2; }
.tm-num-card p { font-size: 14px; line-height: 1.5; margin: 0; position: relative; z-index: 2; opacity: 0.9; }
.tm-num-bg { position: absolute; bottom: -20px; right: -10px; font-size: 150px; font-weight: 900; line-height: 1; opacity: 0.1; z-index: 1; pointer-events: none; }

/* === КАТЕГОРИИ (5 В РЯД) === */
.tm-cat-grid-main { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 60px; }
.tm-cat-card-main { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 20px 15px; transition: all 0.3s ease; display: flex; flex-direction: column; text-decoration: none; }
.tm-cat-card-main:hover { border-color: var(--tm-red); box-shadow: 0 10px 25px rgba(211, 18, 18, 0.08); transform: translateY(-3px); }
.tm-cat-img-wrap-main { text-align: center; margin-bottom: 15px; height: 120px; display: flex; align-items: center; justify-content: center; }
.tm-cat-img-wrap-main img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.3s ease; }
.tm-cat-title-main { font-size: 16px; font-weight: 800; color: var(--tm-dark); text-align: center; margin-bottom: 15px; line-height: 1.2; }
.tm-cat-title-main span { color: #999; font-size: 11px; font-weight: 600; display: block; margin-top: 4px; }
.tm-cat-list-main { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.tm-cat-list-main li a { color: #1a1a1a; text-decoration: none; font-size: 12px; display: flex; justify-content: space-between; align-items: baseline; transition: color 0.2s; width: 100%; line-height: 1.3; }
.tm-cat-list-main li a:hover { color: var(--tm-red); }
.tm-cat-list-main li a span:last-child { color: #999; font-size: 11px; margin-left: 6px; white-space: nowrap; }

/* === 8 ПЛАШЕК УСЛУГ (ИЗ ГЛАВНОЙ) === */
.tm-adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 60px; }
.tm-adv-item { background: #fdfdfd; border: 1px solid #eaeaea; padding: 20px; border-radius: 8px; display: flex; align-items: center; gap: 15px; font-size: 14px; font-weight: bold; color: var(--tm-dark); transition: 0.3s; }
.tm-adv-item:hover { border-color: var(--tm-red); background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.tm-adv-item i { color: var(--tm-red); font-size: 24px; width: 30px; text-align: center; }

/* === КРАСНАЯ ЛИД-ФОРМА === */
.tm-lead-section { margin-bottom: 60px; }
.tm-lead-container { display: flex; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); background: var(--tm-red); }
.tm-lead-content { flex: 0 0 65%; padding: 50px 60px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.tm-lead-image { flex: 0 0 35%; background: url('/assets/img/lead-bg-bobcat.jpg') center/cover no-repeat; min-height: 100%; }
.tm-lead-content h2 { font-size: 32px; font-weight: 800; margin: 0 0 15px 0; line-height: 1.2; }
.tm-lead-content p { font-size: 16px; margin: 0 0 35px 0; opacity: 0.9; }
.tm-lead-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.tm-lead-input { width: 100%; padding: 16px 20px; border: none; border-radius: 8px; font-size: 15px; background: rgba(255, 255, 255, 0.75); color: #333; outline: none; }
.tm-lead-input:focus { background: #fff; }
.tm-lead-btn { background: #000; color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.tm-lead-btn:hover { background: #222; }
.tm-lead-agreement { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.9); cursor: pointer; }
.tm-lead-agreement input { display: none; }
.tm-lead-checkbox { width: 20px; height: 20px; border: 1px solid #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tm-lead-agreement input:checked + .tm-lead-checkbox::after { content: '✔'; color: #fff; }
.tm-lead-agreement a { color: #fff; text-decoration: underline; }

/* === ЦИФРЫ КОМПАНИИ === */
.tm-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 60px; border-radius: 12px; overflow: hidden; }
.tm-stat-card { padding: 40px; position: relative; color: #fff; background: #888; border-right: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.tm-stat-card.red { background: var(--tm-red); border-right: none; }
.tm-stat-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px 0; position: relative; z-index: 2; }
.tm-stat-card p { font-size: 13px; line-height: 1.5; margin: 0; position: relative; z-index: 2; opacity: 0.9; }
.tm-stat-bg { position: absolute; bottom: -20px; right: -10px; font-size: 100px; font-weight: 900; line-height: 1; opacity: 0.15; z-index: 1; pointer-events: none; }

/* === СЕРВИС: КАРТОЧКИ С ФОНОМ === */
.tm-service-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.tm-srv-img-card { position: relative; border-radius: 12px; overflow: hidden; height: 220px; display: flex; align-items: flex-end; padding: 20px; text-decoration: none; }
.tm-srv-img-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 80%); z-index: 1; transition: 0.3s; }
.tm-srv-img-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.5s ease; }
.tm-srv-img-card:hover .tm-srv-img-bg { transform: scale(1.08); }
.tm-srv-img-card:hover::before { background: linear-gradient(to top, rgba(211,18,18,0.9) 0%, rgba(0,0,0,0) 80%); }
.tm-srv-img-title { position: relative; z-index: 2; background: var(--tm-red); color: #fff; padding: 10px 20px; border-radius: 6px; font-weight: 700; font-size: 14px; display: inline-block; transition: 0.3s; }
.tm-srv-img-card:hover .tm-srv-img-title { background: #fff; color: var(--tm-red); }

/* === FAQ === */
.tm-faq { margin-bottom: 60px; }
.tm-faq details { border: 1px solid #eaeaea; border-radius: 6px; margin-bottom: 10px; padding: 15px 20px; background: #fff; cursor: pointer; transition: 0.3s; }
.tm-faq details:hover { border-color: var(--tm-red); }
.tm-faq summary { font-weight: bold; font-size: 15px; list-style: none; outline: none; position: relative; color: var(--tm-dark); }
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq p { padding-top: 15px; color: #555; line-height: 1.6; font-size: 14px; margin: 0; border-top: 1px dashed #eaeaea; margin-top: 15px; }

/* === КАРТА === */
.tm-map-section { position: relative; height: 500px; margin-bottom: 0; border-radius: 16px; overflow: hidden; }
.tm-map-contacts { position: absolute; top: 40px; left: 40px; background: var(--tm-red); color: #fff; padding: 40px; border-radius: 12px; z-index: 10; width: 400px; box-shadow: 0 15px 30px rgba(211, 18, 18, 0.2); }
.tm-map-contacts h3 { font-size: 24px; font-weight: 800; margin-top: 0; margin-bottom: 25px; }
.tm-map-info-item { display: flex; gap: 15px; align-items: flex-start; font-size: 15px; line-height: 1.5; margin-bottom: 15px; }
.tm-map-info-item i { font-size: 20px; margin-top: 2px; width: 20px; text-align: center; }
.tm-btn-black-full { background: #000; color: #fff; border: none; padding: 16px; border-radius: 8px; font-weight: bold; width: 100%; cursor: pointer; transition: 0.3s; font-size: 15px; margin-top: 10px;}
.tm-btn-black-full:hover { background: #222; transform: translateY(-2px); }

/* АДАПТИВ */
@media (max-width: 1200px) { .tm-cat-grid-main { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) {
    .tm-about-top { grid-template-columns: 1fr; gap: 30px; }
    .tm-numbers-grid, .tm-stats-grid { grid-template-columns: 1fr; border-radius: 0; box-shadow: none; gap: 15px; }
    .tm-num-card, .tm-stat-card { border-radius: 12px; border: 1px solid #eaeaea; }
    .tm-cat-grid-main { grid-template-columns: repeat(3, 1fr); }
    .tm-adv-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-lead-container { flex-direction: column; }
    .tm-lead-image { min-height: 200px; }
    .tm-lead-content { padding: 30px; }
    .tm-lead-form-grid { grid-template-columns: 1fr; }
    .tm-service-img-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-map-contacts { position: relative; top: 0; left: 0; width: 100%; border-radius: 16px 16px 0 0; }
    .tm-map-section { height: auto; display: flex; flex-direction: column; margin-bottom: 0; }
}
@media (max-width: 768px) {
    .tm-cat-grid-main { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tm-cat-card-main { padding: 15px 10px; }
}
@media (max-width: 576px) {
    .tm-cat-grid-main { grid-template-columns: 1fr; }
    .tm-adv-grid { grid-template-columns: 1fr; }
    .tm-service-img-grid { grid-template-columns: 1fr; }
}
/* === ПЕРЕМЕННЫЕ === */
:root { --tm-red: #d31212; --tm-dark: #1a1a1a; --tm-gray: #f5f5f5; }

.breadcrumbs { font-size: 13px; color: #888; margin-bottom: 20px; }
.breadcrumbs a { color: #555; text-decoration: none; transition: 0.2s; }
.breadcrumbs a:hover { color: var(--tm-red); }

.tm-section-title { font-size: 24px; font-weight: 800; color: var(--tm-dark); margin: 0 0 25px 0; }

/* === ВЕРХНИЙ БЛОК ЛИЗИНГА === */
.tm-leasing-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 60px; align-items: center; }
.tm-leasing-text h1 { font-size: 32px; font-weight: 800; margin: 0 0 20px 0; line-height: 1.2; color: var(--tm-dark); }
.tm-leasing-text p { font-size: 15px; color: #444; line-height: 1.6; margin-bottom: 15px; }

.tm-leasing-text h3 { font-size: 18px; font-weight: 800; margin: 30px 0 15px 0; }
.tm-leasing-list { list-style: none; padding: 0; margin: 0; }
.tm-leasing-list li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 14px; color: #444; line-height: 1.5; }
.tm-leasing-list li::before { content: '•'; position: absolute; left: 0; top: 0; color: var(--tm-dark); font-weight: bold; font-size: 18px; }

.tm-leasing-img { text-align: center; }
.tm-leasing-img img { max-width: 100%; height: auto; }

/* === ЭТАПЫ (ШАГИ) СТРЕЛКАМИ === */
.tm-steps-section { margin-bottom: 60px; }
.tm-steps-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; position: relative; margin-bottom: 20px;}
.tm-step-card { display: flex; flex-direction: column; align-items: flex-start; width: 18%; position: relative; z-index: 2; }

.tm-step-num { width: 36px; height: 36px; background: var(--tm-red); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; margin-bottom: 15px; z-index: 2; }
.tm-step-text { font-size: 13px; font-weight: 700; color: var(--tm-dark); line-height: 1.4; }

/* Линия-стрелка между шагами (десктоп) */
.tm-step-card:not(:last-child)::after {
    content: '→'; position: absolute; top: 8px; right: -25px; color: var(--tm-red); font-size: 18px; font-weight: bold;
}

.tm-steps-note { font-size: 13px; color: #666; margin-top: 20px; line-height: 1.5; }

/* === КАЛЬКУЛЯТОР (КРАСНЫЙ БЛОК) === */
.tm-calc-section { margin-bottom: 60px; }
.tm-calc-box { background: var(--tm-red); border-radius: 12px; padding: 40px; color: #fff; }
.tm-calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.tm-calc-group { display: flex; flex-direction: column; gap: 8px; }
.tm-calc-group label { font-size: 13px; font-weight: bold; }
.tm-calc-group input { padding: 15px; border: none; border-radius: 6px; font-size: 15px; background: #fff; color: #333; outline: none; }

.tm-calc-btn-wrap { text-align: center; margin-bottom: 20px; }
.tm-calc-btn { background: #000; color: #fff; border: none; padding: 15px 40px; border-radius: 6px; font-size: 15px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.tm-calc-btn:hover { background: #222; transform: translateY(-2px); }
.tm-calc-disclaimer { font-size: 11px; color: rgba(255,255,255,0.7); line-height: 1.4; text-align: center; }

/* === КАТЕГОРИИ (ИЗ ГЛАВНОЙ) === */
.tm-cat-grid-main { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 60px; }
.tm-cat-card-main { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 20px 15px; transition: all 0.3s ease; display: flex; flex-direction: column; text-decoration: none; }
.tm-cat-card-main:hover { border-color: var(--tm-red); box-shadow: 0 10px 25px rgba(211, 18, 18, 0.08); transform: translateY(-3px); }
.tm-cat-img-wrap-main { text-align: center; margin-bottom: 15px; height: 120px; display: flex; align-items: center; justify-content: center; }
.tm-cat-img-wrap-main img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.3s ease; }
.tm-cat-title-main { font-size: 16px; font-weight: 800; color: var(--tm-dark); text-align: center; margin-bottom: 15px; line-height: 1.2; }
.tm-cat-title-main span { color: #999; font-size: 11px; font-weight: 600; display: block; margin-top: 4px; }
.tm-cat-list-main { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.tm-cat-list-main li a { color: #1a1a1a; text-decoration: none; font-size: 12px; display: flex; justify-content: space-between; align-items: baseline; transition: color 0.2s; width: 100%; line-height: 1.3; }
.tm-cat-list-main li a:hover { color: var(--tm-red); }
.tm-cat-list-main li a span:last-child { color: #999; font-size: 11px; margin-left: 6px; white-space: nowrap; }

/* === КРАСНАЯ ЛИД-ФОРМА === */
.tm-lead-section { margin-bottom: 60px; }
.tm-lead-container { display: flex; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); background: var(--tm-red); }
.tm-lead-content { flex: 0 0 65%; padding: 50px 60px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.tm-lead-image { flex: 0 0 35%; background: url('/assets/img/lead-bg-bobcat.jpg') center/cover no-repeat; min-height: 100%; }
.tm-lead-content h2 { font-size: 32px; font-weight: 800; margin: 0 0 15px 0; line-height: 1.2; }
.tm-lead-content p { font-size: 16px; margin: 0 0 35px 0; opacity: 0.9; }
.tm-lead-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.tm-lead-input { width: 100%; padding: 16px 20px; border: none; border-radius: 8px; font-size: 15px; background: rgba(255, 255, 255, 0.75); color: #333; outline: none; }
.tm-lead-input:focus { background: #fff; }
.tm-lead-btn { background: #000; color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.tm-lead-btn:hover { background: #222; }
.tm-lead-agreement { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.9); cursor: pointer; }
.tm-lead-agreement input { display: none; }
.tm-lead-checkbox { width: 20px; height: 20px; border: 1px solid #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tm-lead-agreement input:checked + .tm-lead-checkbox::after { content: '✔'; color: #fff; }
.tm-lead-agreement a { color: #fff; text-decoration: underline; }

/* === БЛОК ТЕКСТА (ОСОБЕННОСТИ ПОКУПКИ) === */
.tm-text-block { margin-bottom: 60px; font-size: 15px; color: #444; line-height: 1.6; }
.tm-text-block p { margin-bottom: 15px; }

/* === FAQ === */
.tm-faq { margin-bottom: 60px; }
.tm-faq details { border: 1px solid #eaeaea; border-radius: 6px; margin-bottom: 10px; padding: 15px 20px; background: #fff; cursor: pointer; transition: 0.3s; }
.tm-faq details:hover { border-color: var(--tm-red); }
.tm-faq summary { font-weight: bold; font-size: 15px; list-style: none; outline: none; position: relative; color: var(--tm-dark); }
.tm-faq summary::-webkit-details-marker { display: none; }
.tm-faq p { padding-top: 15px; color: #555; line-height: 1.6; font-size: 14px; margin: 0; border-top: 1px dashed #eaeaea; margin-top: 15px; }

/* === КАРТА === */
.tm-map-section { position: relative; height: 500px; margin-bottom: 0; border-radius: 16px; overflow: hidden; }
.tm-map-contacts { position: absolute; top: 40px; left: 40px; background: var(--tm-red); color: #fff; padding: 40px; border-radius: 12px; z-index: 10; width: 400px; box-shadow: 0 15px 30px rgba(211, 18, 18, 0.2); }
.tm-map-contacts h3 { font-size: 24px; font-weight: 800; margin-top: 0; margin-bottom: 25px; }
.tm-map-info-item { display: flex; gap: 15px; align-items: flex-start; font-size: 15px; line-height: 1.5; margin-bottom: 15px; }
.tm-map-info-item i { font-size: 20px; margin-top: 2px; width: 20px; text-align: center; }
.tm-btn-black-full { background: #000; color: #fff; border: none; padding: 16px; border-radius: 8px; font-weight: bold; width: 100%; cursor: pointer; transition: 0.3s; font-size: 15px; margin-top: 10px;}
.tm-btn-black-full:hover { background: #222; transform: translateY(-2px); }

/* === АДАПТИВ === */
@media (max-width: 1200px) { .tm-cat-grid-main { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) {
    .tm-leasing-intro { grid-template-columns: 1fr; gap: 30px; }
    .tm-steps-grid { flex-direction: column; gap: 20px; }
    .tm-step-card { width: 100%; flex-direction: row; align-items: center; gap: 15px; }
    .tm-step-num { margin-bottom: 0; flex-shrink: 0; }
    .tm-step-card::after { display: none; }
    .tm-calc-grid { grid-template-columns: 1fr 1fr; }
    .tm-cat-grid-main { grid-template-columns: repeat(3, 1fr); }
    .tm-lead-container { flex-direction: column; }
    .tm-lead-image { min-height: 200px; }
    .tm-lead-content { padding: 30px; }
    .tm-lead-form-grid { grid-template-columns: 1fr; }
    .tm-map-contacts { position: relative; top: 0; left: 0; width: 100%; border-radius: 16px 16px 0 0; }
    .tm-map-section { height: auto; display: flex; flex-direction: column; margin-bottom: 0; }
}
@media (max-width: 768px) {
    .tm-calc-grid { grid-template-columns: 1fr; }
    .tm-cat-grid-main { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .tm-cat-card-main { padding: 15px 10px; }
}
@media (max-width: 576px) {
    .tm-cat-grid-main { grid-template-columns: 1fr; }
}