/* --- СТАРЫЕ СТИЛИ О КОМПАНИИ (ДЛЯ СОВМЕСТИМОСТИ) --- */
.company {
	display: flex;
	flex-direction: column;
}
.company-title {
	text-align: left;
}
.company-row {
	display: flex;
	align-items: center;
	padding: 10px 0;
	justify-content: space-between;
}
.company-row-img {
	background-position: 50%;
	background-repeat: no-repeat;
	background-size: contain;
	height: 260px;
	width: 580px;
	flex-grow: 1;
}
.company-text {
	display: flex;
	flex-grow: 0;
	flex-direction: column;
	padding: 0 20px;
}
.company-info {
}
.row-reverse {
	flex-direction: row-reverse;
}
.company-row-title {
	font-size: 24px;
	padding: 30px 0;
	font-weight: bold;
}
.company-footer {
	margin: 0px auto;
	width: 70%;
}
.company-footer-title {
	font-size: 24px;
	font-weight: bold;
	margin: 10px 0;
	text-align: center;
}
#company-img1 {
	background-image: url(img/1.png);
}
#company-img2 {
	background-image: url(img/2.png);
}
#company-img3 {
	background-image: url(img/3.png);
}
#company-img4 {
	background-image: url(img/4.png);
}

/* --- ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ ЛЕНДИНГА --- */
:root {
    --brand-red: #B31F24; /* Фирменный красный Батяня */
    --text-dark: #222222;
    --text-muted: #666666;
    --bg-light: #f9f9f9;
    --transition-speed: 0.3s;
}

.company-landing {
    font-family: 'Inter', 'Montserrat', -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Общие стили заголовков разделов */
.company-landing .section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    margin: 60px 0 30px 0;
    letter-spacing: 0.5px;
}

/* --- БЛОК 1: HERO --- */
.company-hero {
    padding: 40px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-logo img {
    max-width: 280px;
    height: auto;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 32px; /* Уменьшили размер, чтобы текст смотрелся аккуратнее */
    font-weight: 700;
    line-height: 1.25;
    color: #2b2b2b; /* Сделали цвет чуть мягче, глубоким темно-серым */
    margin-top: 15px; /* Слегка увеличили отступ от логотипа сверху */
    margin-bottom: 25px; /* Отступ до описания снизу */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 420px; /* Ограничиваем ширину, чтобы текст красиво переносился на две строки, как в макете */
    text-align: left;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    background-color: var(--brand-red);
    color: #ffffff !important;
    padding: 14px 30px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background var(--transition-speed);
}

.hero-btn:hover {
    background-color: #921418;
}

.hero-map-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-wrapper {
    width: 100%;
    max-width: 450px;
}

.map-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.map-stats {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.stat-badge {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
}

.stat-badge strong {
    color: var(--brand-red);
    font-size: 24px;
    display: block;
    text-align: center;
    line-height: 1;
}

/* --- БЛОК 2: КЛЮЧЕВЫЕ ЦИФРЫ --- */
.company-facts {
    background-color: var(--bg-light);
    padding: 40px 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.fact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fact-icon {
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fact-icon img {
    height: 100%;
    width: auto;
}

.fact-text {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
}

/* --- БЛОК 3: КРУПНЫЕ ПРОЕКТЫ --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-item {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed);
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-img-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #eee;
}

.project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 15px;
}

.project-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.project-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* --- БЛОК 4: БРЕНДЫ (Бегущая строка) --- */
.brands-slider-container {
    overflow: hidden;
    padding: 25px 0;
    background: #ffffff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.brands-marquee {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.brands-marquee img {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    /* Убрали grayscale(100%) и opacity(0.6) — теперь логотипы сразу цветные и яркие */
    filter: none; 
    opacity: 1;
    transition: transform var(--transition-speed);
}

/* Оставим аккуратный интерактивный эффект: легкое увеличение при наведении */
.brands-marquee img:hover {
    transform: scale(1.08);
}

/* --- БЛОК 5: ПОЧЕМУ ВЫБИРАЮТ НАС --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 6px;
}

.why-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--brand-red);
    text-transform: uppercase;
}

.why-card ul {
    padding-left: 18px;
    margin: 0;
}

.why-card ul li {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* --- ФИНАЛЬНЫЕ СТИЛИ КРАСНОГО ПРОМО-БЛОКА --- */
.company-landing .promo-red-section {
    background-color: #b31f24 !important; /* Насыщенный красный цвет */
    padding: 40px 50px !important;
    border-radius: 8px;
    margin-top: 40px;
    box-sizing: border-box;
    width: 100%;
}

.company-landing .promo-red-container {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    width: 100%;
}

/* Сильный селектор для заголовка, перебивающий любые общие h3 */
.company-landing .promo-red-section h3.promo-red-title {
    color: #ffffff !important; /* Строго белый */
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important; /* Всегда капс */
    margin: 0 !important;
    text-align: left !important;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 280px;
}

/* Сетка колонок */
.company-landing .promo-red-grid {
    display: flex !important;
    flex: 2;
    gap: 40px;
}

.company-landing .promo-red-col {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

/* Белый текст элементов */
.company-landing .promo-red-item {
    color: #ffffff !important; /* Строго белый */
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    text-align: left !important;
    opacity: 0.95;
}


/* --- АДАПТИВНОСТЬ (MEDIA QUERIES) --- */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    /* Адаптив для красного промо-блока */
    .company-landing .promo-red-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 30px;
    }
    .company-landing .promo-red-grid {
        width: 100% !important;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    .facts-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .company-landing .section-title {
        font-size: 22px;
    }
    .map-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Адаптив красного блока под мобилки */
    .company-landing .promo-red-section {
        padding: 30px 20px !important;
    }
    .company-landing .promo-red-section h3.promo-red-title {
        font-size: 24px !important;
    }
    .company-landing .promo-red-grid {
        flex-direction: column !important;
        gap: 16px;
    }
    .company-landing .promo-red-item {
        font-size: 15px !important;
    }
}