/* ===== Гайдлайн СКАУТ: цвета, шрифты, стили ===== */
/* Основной цвет: #640faf | Доп. красный: #df3b41 | Шрифт заголовков: Druk Text Wide Cyr | Шрифт текста: Avenir Next Cyr */

:root {
    --brand: #640faf;
    --brand-dark: #4a0b80;
    --brand-light: #7c22c9;
    --accent: #df3b41;
    --accent-light: #e6363d;
    --gray-900: #f4f4f9;
    --gray-800: #e9e9f2;
    --gray-700: #dcdce6;
    --gray-600: #b9b9ca;
    --gray-400: #6b6b82;
    --gray-300: #4d4d63;
    --gray-100: #2c2c3d;
    --text: #1b1b26;
    --white: #ffffff;
    --glass-bg: rgba(255,255,255,0.65);
    --glass-border: rgba(0,0,0,0.10);
    --glass-hover: rgba(255,255,255,0.9);
    --font-display: 'Druk Text Wide Cyr', 'Bebas Neue', 'Oswald', 'Impact', sans-serif;
    --font-body: 'Geologica', 'Avenir Next Cyr', 'Segoe UI', system-ui, sans-serif;
    --shadow-card: 0 4px 24px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background:
        radial-gradient(ellipse 70% 45% at 50% 12%, rgba(100,15,175,0.18), transparent 72%),
        radial-gradient(ellipse 50% 35% at 72% 25%, rgba(223,59,65,0.06), transparent 72%),
        var(--gray-900);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-900); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }

/* ===== Scroll Progress ===== */
#scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    z-index: 9999; width: 0; transition: width 0.1s;
}

/* ===== Particle Canvas ===== */
#particle-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    opacity: 0.3;
}

/* ===== Hero ===== */
.hero {
    position: relative; z-index: 1;
    min-height: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start; text-align: center;
    padding: 2rem 2rem 0; overflow: hidden;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .5rem 1.2rem; border-radius: 100px;
    background: rgba(100,15,175,0.15);
    border: 1px solid rgba(100,15,175,0.25);
    font-family: var(--font-body);
    font-size: .8rem; font-weight: 600; color: var(--brand-light);
    margin-bottom: 1.5rem;
    letter-spacing: .05em;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--brand-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-300);
    max-width: 600px; margin: 0 auto 2.5rem;
}
.hero-stat {
    display: flex; gap: 3rem; flex-wrap: wrap; justify-content: center;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem; font-weight: 800;
    background: linear-gradient(135deg, var(--brand-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.stat-label {
    font-size: .8rem; color: var(--gray-400);
    margin-top: .25rem;
}

/* ===== Section ===== */
.section {
    position: relative; z-index: 1;
    padding: 2rem 1.5rem 2rem;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.section-header p {
    color: var(--gray-400);
    max-width: 500px; margin: 0 auto;
    font-size: .9rem;
}
.section-subtitle {
    display: inline-block; padding: .3rem 1rem; border-radius: 100px;
    background: rgba(100,15,175,0.12);
    border: 1px solid rgba(100,15,175,0.2);
    font-size: .7rem; font-weight: 700; color: var(--brand-light);
    margin-bottom: 1rem;
    letter-spacing: .1em; text-transform: uppercase;
}

/* ===== Filter Bar ===== */
.filter-bar {
    max-width: 1280px; margin: 0 auto 2rem;
    display: flex; flex-wrap: wrap; gap: .4rem;
    justify-content: center;
}
.filter-tab {
    font-family: var(--font-body);
    font-size: .73rem; font-weight: 700;
    padding: .4rem .9rem; border-radius: 100px;
    cursor: pointer; border: 1px solid var(--glass-border);
    background: transparent; color: var(--gray-300);
    transition: all 0.25s; text-transform: uppercase;
    letter-spacing: .04em;
    display: inline-flex; align-items: center; gap: .35rem;
}
.filter-tab svg {
    width: 14px; height: 14px; flex-shrink: 0;
}
.filter-tab:hover {
    border-color: rgba(100,15,175,0.3);
    color: var(--brand);
    background: rgba(100,15,175,0.08);
}
.filter-tab.active {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
}

/* ===== Grid ===== */
.solutions-grid {
    max-width: 1280px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.solutions-grid.filtering .solution-card {
    transition: all 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
}
.solution-card.hidden {
    display: none;
}

/* Card Category Badge */
.card-category {
    display: inline-flex; align-items: center; gap: .3rem;
    align-self: flex-start;
    font-size: .6rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; padding: .15rem .5rem;
    border-radius: 4px;
    margin-bottom: .5rem;
    opacity: 0.7;
}
.card-category svg { width: 10px; height: 10px; }
.cat-monitoring .card-category { background: rgba(100,15,175,0.12); color: var(--brand-light); }
.cat-fuel .card-category { background: rgba(223,59,65,0.12); color: var(--accent-light); }
.cat-video .card-category { background: rgba(100,15,175,0.10); color: var(--brand-light); }
.cat-driving .card-category { background: rgba(223,59,65,0.10); color: var(--accent-light); }
.cat-efficiency .card-category { background: rgba(100,15,175,0.12); color: var(--brand-light); }
.cat-integrations .card-category { background: rgba(100,15,175,0.10); color: var(--brand-light); }
.cat-tachograph .card-category { background: rgba(223,59,65,0.10); color: var(--accent-light); }
.cat-navigation .card-category { background: rgba(100,15,175,0.12); color: var(--brand-light); }
.cat-warehouse .card-category { background: rgba(100,15,175,0.12); color: var(--brand-light); }
.cat-special .card-category { background: rgba(100,15,175,0.10); color: var(--brand-light); }

/* ===== Grid ===== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    align-items: start;
}

/* ===== Card ===== */
.solution-card {
    position: relative; cursor: pointer;
    display: flex; flex-direction: column;
    height: 300px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    overflow: hidden;
}
.solution-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0; transition: opacity 0.3s;
}
.solution-card:hover {
    background: var(--glass-hover);
    border-color: rgba(100,15,175,0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}
.solution-card:hover::before { opacity: 1; }
.solution-card.expanded {
    height: auto;
    border-color: rgba(100,15,175,0.35);
    background: rgba(100,15,175,0.06);
}
.solution-card.expanded::before { opacity: 1; }

.card-front {
    padding: 1.2rem 1.25rem;
    display: flex; flex-direction: column;
    flex: 1 0 auto;
}
.card-icon-wrap {
    display: flex; align-items: center; gap: .8rem;
    margin-bottom: .6rem;
}
.card-icon {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 24px; height: 24px; }
.card-title {
    font-size: .95rem; font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .01em;
}
.card-desc {
    font-size: .8rem; color: var(--gray-300);
    line-height: 1.5; margin-top: .2rem;
}
.card-expand-hint {
    font-size: .75rem; font-weight: 600;
    color: var(--brand-light);
    margin-top: .6rem;
    opacity: 0.5; transition: opacity 0.3s;
    display: flex; align-items: center; gap: .3rem;
}
.solution-card:hover .card-expand-hint,
.solution-card.expanded .card-expand-hint { opacity: 1; }

.card-buy {
    display: inline-flex; align-items: center; gap: .4rem;
    align-self: flex-end;
    margin-top: auto;
    padding: .45rem .95rem; border-radius: 7px;
    font-size: .78rem; font-weight: 700;
    background: var(--brand);
    color: var(--white); text-decoration: none;
    transition: all 0.25s;
}
.card-buy svg { width: 15px; height: 15px; }
.solution-card.expanded .card-buy { margin-top: 0.8rem; }
.card-buy:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(100,15,175,0.35);
}

.card-back {
    max-height: 0; overflow: hidden;
    transition: max-height 0.45s ease, padding 0.3s ease, border 0.3s ease;
    padding: 0 1.25rem;
    border-top: 1px solid transparent;
}
.solution-card.expanded .card-back {
    max-height: 500px;
    padding: 1rem 1.25rem 1.25rem;
    border-top-color: rgba(100,15,175,0.15);
}
.card-back-inner { display: flex; flex-direction: column; gap: .75rem; }

.card-back-section {}
.card-back-section h5 {
    font-family: var(--font-body);
    font-size: .65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--accent); margin-bottom: .2rem;
}
.card-back-section p {
    font-size: .8rem; color: var(--gray-300); line-height: 1.5;
}
.card-back-section ul { list-style: none; padding: 0; }
.card-back-section li {
    font-size: .8rem; color: var(--gray-300);
    padding: .1rem 0 .1rem .85rem;
    position: relative;
}
.card-back-section li::before {
    content: ''; position: absolute; left: 0; top: .5rem;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--brand-light);
}

.card-link { text-align: left; padding-top: .25rem; }
.card-link a {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .8rem; border-radius: 6px;
    font-size: .75rem; font-weight: 700;
    background: rgba(100,15,175,0.12);
    border: 1px solid rgba(100,15,175,0.2);
    color: var(--brand-light); text-decoration: none;
    transition: all 0.25s;
}
.card-link a:hover {
    background: rgba(100,15,175,0.2);
    border-color: var(--brand);
}

/* Icon backgrounds per card */
.c1 .card-icon { background: rgba(100,15,175,0.15); color: var(--brand-light); }
.c2 .card-icon { background: rgba(223,59,65,0.15); color: var(--accent-light); }
.c3 .card-icon { background: rgba(223,59,65,0.12); color: var(--accent-light); }
.c4 .card-icon { background: rgba(223,59,65,0.18); color: var(--accent); }
.c5 .card-icon { background: rgba(100,15,175,0.12); color: var(--brand-light); }
.c6 .card-icon { background: rgba(223,59,65,0.12); color: var(--accent-light); }
.c7 .card-icon { background: rgba(100,15,175,0.15); color: var(--brand-light); }
.c8 .card-icon { background: rgba(100,15,175,0.12); color: var(--brand-light); }
.c9 .card-icon { background: rgba(100,15,175,0.15); color: var(--brand-light); }
.c10 .card-icon { background: rgba(100,15,175,0.12); color: var(--brand-light); }
.c11 .card-icon { background: rgba(100,15,175,0.15); color: var(--brand-light); }
.c12 .card-icon { background: rgba(223,59,65,0.12); color: var(--accent-light); }
.c13 .card-icon { background: rgba(100,15,175,0.12); color: var(--brand-light); }
.c15 .card-icon { background: rgba(100,15,175,0.12); color: var(--brand-light); }
.c16 .card-icon { background: rgba(100,15,175,0.18); color: var(--brand-light); }
.c17 .card-icon { background: rgba(100,15,175,0.15); color: var(--brand-light); }
.c18 .card-icon { background: rgba(223,59,65,0.12); color: var(--accent-light); }
.c19 .card-icon { background: rgba(100,15,175,0.12); color: var(--brand-light); }
.c20 .card-icon { background: rgba(100,15,175,0.15); color: var(--brand-light); }
.c21 .card-icon { background: rgba(223,59,65,0.12); color: var(--accent-light); }

/* ===== CTA ===== */
.cta-section { text-align: center; padding: 2rem 1.5rem 3rem; position: relative; }
.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.cta-section p { color: var(--gray-400); margin-bottom: 2rem; font-size: .95rem; }
.cta-logo-row { display: flex; justify-content: center; margin-top: 1.5rem; }
.cta-logo { display: inline-flex; align-items: center; }
.cta-logo .nav-logo-svg { height: 34px; width: auto; filter: brightness(0); }
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 2rem; border-radius: 8px;
    font-family: var(--font-body);
    font-size: .85rem; font-weight: 700;
    cursor: pointer; text-decoration: none; border: none;
    transition: all 0.25s;
}
.btn-primary {
    background: var(--brand); color: var(--white);
}
.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(100,15,175,0.3);
}
.btn-secondary {
    background: transparent; color: var(--text);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    border-color: rgba(100,15,175,0.3);
    background: rgba(100,15,175,0.08);
}
.cta-phone {
    display: inline-block; margin-top: 1.5rem;
    font-size: 1.5rem; font-weight: 700;
    color: var(--brand); text-decoration: none;
    letter-spacing: .02em;
}

/* ===== Footer ===== */
.footer {
    position: relative; z-index: 1;
    text-align: center; padding: 2rem 1.5rem;
    color: var(--gray-400); font-size: .75rem;
    border-top: 1px solid var(--glass-border);
}
.footer a { color: var(--gray-300); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--brand); }
.footer-social { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--glass-border); transition: color 0.2s, border-color 0.2s, transform 0.2s; }
.footer-social a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%;
    background: var(--brand); color: var(--white);
    cursor: pointer; z-index: 200;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(100,15,175,0.3);
}
.scroll-top svg { width: 22px; height: 22px; }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* ===== Animations ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(.23,1,.32,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.05s; } .d2 { transition-delay: 0.1s; }
.d3 { transition-delay: 0.15s; } .d4 { transition-delay: 0.2s; }
.d5 { transition-delay: 0.25s; } .d6 { transition-delay: 0.3s; }
.d7 { transition-delay: 0.35s; } .d8 { transition-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .solutions-grid { grid-template-columns: 1fr; gap: .75rem; }
    .hero-stat { gap: 1.5rem; }
    .stat-num { font-size: 1.8rem; }
    .section { padding: 3rem 1rem; }
    .card-icon-wrap { gap: .6rem; }
    .card-title { font-size: .85rem; }
}
