:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent: #10b981;
    --dark: #0f172a; }
body {
    font-family: system-ui,
    -apple-system, "Segoe UI",
    Roboto, sans-serif; color:
    #334155;
}
h1, h2, h3, h4 {
    color: var(--dark);
    font-weight: 700;
}

/* Навигация */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0; }
.navbar-toggler {
    color: white;
    border: 2px solid white;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.5rem 0; }
.navbar.scrolled .nav-link { color: #334155 !important; }
.navbar.scrolled .navbar-brand { color: var(--dark) !important; }
.navbar.scrolled .navbar-toggler {
    color: black;
    border: 2px solid black;
}
.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.expanded {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.5rem 0; }
.navbar.expanded .nav-link { color: #334155 !important; }
.navbar.expanded .navbar-brand { color: var(--dark) !important; }
.navbar.expanded .navbar-toggler {
    color: black;
    border: 2px solid black;
}
.navbar.expanded .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
    min-height: 100vh; padding-top: 80px; position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%); border-radius: 50%;
}
.hero-text h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: white; margin-bottom: 1rem; }
.hero-text h1 span { color: var(--accent); }
.hero-text p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 2rem; }
.btn-primary-custom { background: var(--primary); border: none; color: white; padding: 12px 28px; border-radius: 50px; font-weight: 600; }
.btn-primary-custom:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); }
.btn-outline-custom { border: 2px solid rgba(255,255,255,0.4); color: white; padding: 12px 28px; border-radius: 50px; font-weight: 600; background: transparent; }
.btn-outline-custom:hover { background: white; color: var(--primary); border-color: white; }
.hero-dashboard { background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; padding: 24px; }
.dash-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.dash-row:last-child { border-bottom: none; }

/* Общие блоки */
.section-label { background: #e0f2fe; color: var(--primary); padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; margin-bottom: 12px; }
.about-image { background: linear-gradient(135deg, #0f172a, #1e293b); min-height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; border-radius: 16px; position: relative; overflow: hidden; }
.about-badge { background: var(--accent); padding: 10px 20px; border-radius: 10px; font-weight: 700; margin-bottom: 12px; }
.card { transition: all 0.3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important; }
.service-card { position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), #0ea5e9); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.service-card:hover::before { transform: scaleX(1); }

/* Карточки категорий */
.category-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}
.category-card:hover .category-img {
    transform: scale(1.05);
}
.category-img-wrapper {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.category-icon {
    font-size: 4rem;
    opacity: 0.3;
    position: absolute;
}
.category-body {
    padding: 24px;
}
.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}
.category-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}
.category-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.category-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}
.badge-count {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}


/* Фильтры категорий*/
.filter-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
}

/* Карточки решений */
.solution-card { border: none; border-radius: 16px; overflow: hidden; transition: all 0.3s ease; }
.solution-card:hover { transform: translateY(-8px); box-shadow: 0 12px 35px rgba(0,0,0,0.12) !important; }
.solution-img {
    height: 200px; background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.solution-img .icon { font-size: 4.5rem; opacity: 0.25; transition: transform 0.3s; }
.solution-card:hover .solution-img .icon { transform: scale(1.1); }
.solution-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s; }
.solution-img.has-img img { opacity: 1; }
.solution-img.has-img .icon { display: none; }

/* Карточки контактов*/
.contact-card { border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.3s; }
.contact-card:hover { transform: translateY(-4px); }

/* Таблица реквизитов */
.requisites-table th { width: 35%; background: #f8fafc; font-weight: 600; color: #475569; }
.requisites-table td { background: #fff; }

/* Карта */
.map-wrapper { background: #e2e8f0; border-radius: 12px; overflow: hidden; height: 320px; }
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

/* Анимации */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stats-section { background: var(--dark); }
.stats-section h3 { font-size: 2.5rem; font-weight: 800; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 0.25rem rgba(2, 132, 199, 0.25); }

/* Footer */
.footer { background: var(--dark); }

/* Адаптивность */
@media (max-width: 768px) {
    .category-img-wrapper { height: 180px; }
    .category-body { padding: 18px; }
    .category-title { font-size: 1.1rem; }
}
