/**
 * PROMIS - Стили
 * RAL 7024 графит = #4a5559
 * VB: @vitalybik vitalybik@gmail.com 2026
 */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Навигация */
.nav-link { position: relative; color: #333; font-weight: 600; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: #4a5559; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: #4a5559; transition: width 0.2s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-nav-link { display: block; padding: 0.75rem 1rem; color: #333; font-weight: 600; border-radius: 0.5rem; transition: background 0.2s, color 0.2s; }
.mobile-nav-link:hover, .mobile-nav-link.active { background: #f0f0f0; color: #4a5559; }

/* Кнопка CTA - стиль с фото клиента */
.btn-cta {
    background: #4a5559;
    color: white;
    display: inline-block;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}
.btn-cta:hover {
    background: #3a4347;
    transform: translateY(-1px);
}
.btn-cta:active {
    transform: translateY(0);
}

/* Герой */
.hero-gradient {
    background: linear-gradient(135deg, rgba(74, 85, 89, 0.92) 0%, rgba(51, 51, 51, 0.88) 100%);
}

/* Карточки */
.category-card { transition: transform 0.3s, box-shadow 0.3s; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); }
.case-card { transition: transform 0.3s, box-shadow 0.3s; }
.case-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); }

/* Формы */
input:focus, textarea:focus, select:focus { outline: none; border-color: #4a5559; box-shadow: 0 0 0 3px rgba(74, 85, 89, 0.15); }

/* Lazy-loading */
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s; }
img[loading="lazy"].loaded, img[loading="lazy"]:not([data-src]) { opacity: 1; }

/* Анимации */
.fade-in-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* Фильтры */
.filter-btn { padding: 0.5rem 1rem; border-radius: 9999px; font-weight: 600; font-size: 0.875rem; transition: background 0.2s, color 0.2s; border: 2px solid #e5e7eb; background: white; color: #333; }
.filter-btn:hover { border-color: #4a5559; color: #4a5559; }
.filter-btn.active { background: #4a5559; color: white; border-color: #4a5559; }

/* Форма */
.calc-form { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; }

/* Статистика */
.stat-number { font-size: 2.5rem; font-weight: 700; color: white; line-height: 1; }

/* Хлебные крошки */
.breadcrumb a { color: #4a5559; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Скроллбар */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #4a5559; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a4347; }

/* Мобильная адаптация */
@media (max-width: 640px) {
    .hero-title { font-size: 1.75rem; line-height: 1.3; }
    .section-title { font-size: 1.5rem; }
}

/* Табы */
.tab-btn { padding: 0.75rem 1.5rem; font-weight: 600; color: #666; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.tab-btn:hover { color: #4a5559; }
.tab-btn.active { color: #4a5559; border-bottom-color: #4a5559; }
