/* === ИЗОЛИРОВАННЫЕ СТИЛИ ИНТЕРАКТИВНОЙ ПЛИТКИ КАЛЬКУЛЯТОРОВ === */
.wp-calc-menu-wrapper, .wp-calc-menu-wrapper * {
    box-sizing: border-box !important;
    line-height: normal !important;
}
.wp-calc-menu-wrapper {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 20px auto !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
.wp-calc-menu-wrapper p { margin: 0 !important; padding: 0 !important; display: inline !important; }
.wp-calc-menu-wrapper br { display: none !important; }

/* Заголовки категорий */
.wp-calc-menu-wrapper .category-title {
    font-size: 22px !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    margin: 30px 0 15px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Сетка для плиток (CSS Grid) */
.wp-calc-menu-wrapper .tiles-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
}

/* Сама плитка (карточка) */
.wp-calc-menu-wrapper .calc-tile-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
    position: relative !important;
    min-height: 140px !important;
}

/* Эффект наведения мышки */
.wp-calc-menu-wrapper .calc-tile-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0,123,255,0.12) !important;
    border-color: #007bff !important;
}

/* Верхняя часть карточки: иконка и заголовок */
.wp-calc-menu-wrapper .tile-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}
.wp-calc-menu-wrapper .tile-icon {
    font-size: 24px !important;
    min-width: 32px !important;
    text-align: center !important;
}
.wp-calc-menu-wrapper .tile-name {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333333 !important;
    margin: 0 !important;
    transition: color 0.2s ease !important;
}
.wp-calc-menu-wrapper .calc-tile-card:hover .tile-name {
    color: #007bff !important;
}

/* Описание калькулятора */
.wp-calc-menu-wrapper .tile-desc {
    font-size: 13px !important;
    color: #666666 !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
}

/* Нижняя панель: класс и кнопка */
.wp-calc-menu-wrapper .tile-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
}
.wp-calc-menu-wrapper .badge-class {
    font-size: 11px !important;
    font-weight: bold !important;
    color: #007bff !important;
    background: #e8f4fd !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
}
.wp-calc-menu-wrapper .arrow-link {
    font-size: 16px !important;
    color: #a0aec0 !important;
    transition: color 0.2s ease !important;
}
.wp-calc-menu-wrapper .calc-tile-card:hover .arrow-link {
    color: #007bff !important;
}

/* Адаптивность под планшеты и мобильные */
@media (max-width: 900px) {
    .wp-calc-menu-wrapper .tiles-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
}
@media (max-width: 550px) {
    .wp-calc-menu-wrapper .tiles-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .wp-calc-menu-wrapper .category-title { font-size: 19px !important; }
    .wp-calc-menu-wrapper .calculator-card { padding: 15px 10px !important; }
}

/* === ИНТЕРАКТИВНОЕ МЕНЮ БЫСТРОЙ НАВИГАЦИИ === */
.wp-calc-nav-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto 30px auto !important;
    padding: 15px !important;
    background-color: #fafafa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

.wp-calc-nav-title {
    font-size: 15px !important;
    font-weight: bold !important;
    color: #4a5568 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.wp-calc-nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.wp-calc-nav-links li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wp-calc-nav-links a {
    display: inline-block !important;
    padding: 8px 14px !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.wp-calc-nav-links a:hover {
    background-color: #007bff !important;
    color: #ffffff !important;
    border-color: #007bff !important;
}

/* Включаем плавный скролл для всей страницы при клике на якорь */
html {
    scroll-behavior: smooth !important;
}
