/* ==============================
   about.css
   Стили для страницы "О компании"
   ============================== */

/* -----------------------------
   ОСНОВНОЙ КОНТЕНТ / СЕКЦИИ
------------------------------ */

/* Отступ, чтобы контент не скрывался под фиксированными top-bar и header */
main {
    margin-top: 140px;
    padding: 20px;
    background: #f8f8f8;
}

/* Общие стили для секций */
.company-info,
.brand-info,
.history,
.models {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Заголовки внутри main */
main h1,
main h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f25c05;
    transition: color 0.3s ease;
    margin-bottom: 20px;
    text-align: center;
}

/* Текст внутри секций */
.content-wrapper {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    color: #1a3c5e;
}

/* Отступ для параграфов */
.company-info p,
.brand-info p,
.models p {
    text-indent: 30px;
    margin-bottom: 15px;
}

/* -----------------------------
   БЛОК "БРЕНД MUL"
------------------------------ */
.brand-container {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.brand-container:hover {
    transform: translateY(-5px);
}

.brand-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
    transition: opacity 0.3s ease;
}

.brand-container img:hover {
    opacity: 0.9;
}

.brand-text {
    width: 50%;
    padding: 20px;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
    background: #ffffff;
    border-radius: 0 10px 10px 0;
    transition: background 0.3s ease;
    color: #1a3c5e;
}

.brand-text:hover {
    background: #f9f9f9;
}

/* Для обёртки картинки с подписью */
.brand-image-wrapper {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-image-wrapper img {
    width: 100%;
    border-radius: 10px 0 0 10px;
    object-fit: cover;
}

.brand-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #1a3c5e;
    text-align: center;
    line-height: 1.3;
}

/* -----------------------------
   БЛОК "ИСТОРИЯ БРЕНДА MUL"
------------------------------ */
.history-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.history-block {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #1a3c5e;
    padding: 20px;
}

.history-block:hover {
    transform: translateY(-5px);
}

.history-top {
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.history-year {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #f25c05;
}

.history-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #1a3c5e;
    margin-bottom: 0;
}

.history-body {
    flex: 1;
    text-align: justify;
}

.history-text {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    text-indent: 20px;
    color: #1a3c5e;
}

/* -----------------------------
   МОДЕЛЬНЫЙ РЯД
------------------------------ */
.models .content-wrapper p {
    margin-bottom: 15px;
}

/* -----------------------------
   ГАЛЕРЕЯ ПРОИЗВОДСТВЕННЫХ ЛИНИЙ
------------------------------ */
.plant-gallery {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.plant-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plant-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.plant-item img:hover {
    transform: scale(1.04);
    opacity: 0.9;
}

.plant-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #1a3c5e;
    text-align: center;
    max-width: 95%;
    line-height: 1.3;
}

/* -----------------------------
   HERO-изображение в "О компании"
------------------------------ */
.company-hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.company-hero {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.company-hero-caption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #1a3c5e;
    text-align: center;
    line-height: 1.4;
}

/* -----------------------------
   АДАПТИВНОСТЬ
------------------------------ */
@media screen and (max-width: 1024px) {
    .brand-container {
        flex-direction: column;
    }

    .brand-container .brand-image-wrapper,
    .brand-container .brand-text {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .history-block {
        width: 100%;
    }

    .company-hero {
        height: 240px;
    }
}
