* {
    box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

/* ===== ФИРМЕННЫЕ ЦВЕТА ===== */
:root {
    --brand-red: #D02313;
    --brand-red-dark: #A81A0E;
    --brand-red-light: #FDF0EE;
    --brand-red-hover: #B81E10;
    --brand-white: #FFFFFF;
    --brand-gray: #F8F8F8;
    --brand-gray-light: #F0F2F5;
    --brand-dark: #1A1A1A;
    --brand-text: #2D2D2D;
    --brand-text-light: #666666;
}

.w3-brand-red {
    background-color: var(--brand-red) !important;
}
.w3-brand-red-dark {
    background-color: var(--brand-red-dark) !important;
}
.w3-brand-red-light {
    background-color: var(--brand-red-light) !important;
}
.w3-text-red {
    color: var(--brand-red) !important;
}
.w3-border-red {
    border-color: var(--brand-red) !important;
}
.w3-hover-red:hover {
    background-color: var(--brand-red) !important;
    color: #fff !important;
}
.w3-hover-text-red:hover {
    color: var(--brand-red) !important;
}

.btn-red {
    background-color: var(--brand-red) !important;
    color: #fff !important;
    font-weight: 700;
    padding: 16px 44px;
    border-radius: 50px;
    transition: 0.3s;
    border: none;
    font-size: 17px;
    letter-spacing: 0.5px;
    cursor: pointer;
}
.btn-red:hover {
    background-color: var(--brand-red-dark) !important;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(208, 35, 19, 0.35);
}

.btn-outline-red {
    background: transparent !important;
    color: var(--brand-red) !important;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    border: 2px solid var(--brand-red) !important;
    transition: 0.3s;
    font-size: 16px;
    cursor: pointer;
}
.btn-outline-red:hover {
    background: var(--brand-red) !important;
    color: #fff !important;
}

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, #F8F8F8 0%, #FFFFFF 100%);
    color: var(--brand-dark);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--brand-red);
}
.hero-section::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(208, 35, 19, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section .w3-btn {
    background-color: var(--brand-red);
    color: #fff;
    font-weight: 700;
    padding: 16px 44px;
    border-radius: 50px;
    transition: 0.3s;
    border: none;
    font-size: 17px;
    letter-spacing: 0.5px;
}
.hero-section .w3-btn:hover {
    background-color: var(--brand-red-dark);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(208, 35, 19, 0.35);
}

.section-title {
    font-weight: 800;
    color: var(--brand-dark);
    border-left: 6px solid var(--brand-red);
    padding-left: 20px;
    margin-bottom: 40px;
}
.section-title-white {
    font-weight: 800;
    color: #fff;
    border-left: 6px solid var(--brand-red);
    padding-left: 20px;
    margin-bottom: 40px;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar-fixed {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid var(--brand-red);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.navbar-fixed .w3-bar-item {
    color: var(--brand-dark) !important;
    font-weight: 500;
}
.navbar-fixed .w3-bar-item:hover {
    color: var(--brand-red) !important;
}

/* ===== КАРТОЧКИ УСЛУГ ===== */
.service-card {
    border-radius: 16px;
    transition: 0.3s;
    height: 100%;
    border-top: 5px solid var(--brand-red);
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(208, 35, 19, 0.12) !important;
}
.service-card .fa {
    font-size: 40px;
    color: var(--brand-red);
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.advantage-item:last-child {
    border-bottom: none;
}
.advantage-item .fa {
    font-size: 22px;
    min-width: 36px;
    margin-top: 2px;
    color: var(--brand-red);
}

/* ===== СТАНДАРТЫ ===== */
.standard-badge {
    background: #F0F2F5;
    border-radius: 8px;
    padding: 8px 18px;
    margin: 5px 5px 5px 0;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
    transition: 0.2s;
}
.standard-badge:hover {
    background: var(--brand-red);
    color: #fff;
    transform: scale(1.02);
}
.standard-badge.red {
    background: var(--brand-red);
    color: #fff;
}

/* ===== ШАГИ ===== */
.step-number {
    width: 64px;
    height: 64px;
    background: var(--brand-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    margin: 0 auto 16px;
}

/* ===== КЕЙСЫ ===== */
.testimonial-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    border-left: 6px solid var(--brand-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.2s;
}
.footer-links a:hover {
    color: var(--brand-red);
}

.w3-card,
.w3-card-2,
.w3-card-4 {
    padding: 28px !important;
    box-sizing: border-box;
}

.contact-card {
    border-radius: 20px;
    padding: 40px 48px !important;
}

/* ===== ОТРАСЛИ ===== */
.industry-tag {
    background: #F0F2F5;
    color: var(--brand-dark);
    border-radius: 30px;
    padding: 8px 22px;
    margin: 4px;
    display: inline-block;
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
    border: 1px solid transparent;
}
.industry-tag:hover {
    background: var(--brand-red);
    color: #fff;
    transform: scale(1.03);
}
.industry-tag .fa {
    margin-right: 6px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {
    .hero-section h1 {
        font-size: 28px;
    }
    .w3-card,
    .w3-card-2,
    .w3-card-4 {
        padding: 20px !important;
    }
    .contact-card {
        padding: 24px 20px !important;
    }
    .hero-section .w3-btn {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
    }
    .btn-red {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
    }
}
