/* ============================================
   HERO ДЛЯ СТРАНИЦЫ "О ЗАВОДЕ"
   ============================================ */

.about-hero {
    background: var(--base-neutral-lightest, #F9FAFF);
    padding: 60px 0;
    position: relative;
    padding-bottom: 110px;
}

.about-hero__container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    flex-wrap: wrap;
    align-content: center;
}

/* Левая колонка */
.about-hero__content {
    flex: 0 0 591px;
    max-width: 710px;
    min-width: 288px;
    display: flex;
    flex-direction: column;
    gap: 12px;


}

/* Заголовок */
.about-hero__title {
    display: block;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    line-height: 0;
}

.about-hero__title-dark,
.about-hero__title-red {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 35.2px;
}

.about-hero__title-dark {
    color: var(--base-grey-primary, #262730);
}

.about-hero__title-red {
    color: var(--base-brand-primary, #AA0017);
}

/* Подзаголовок */
.about-hero__subtitle {
    color: var(--base-grey-secondary, #414454);
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

/* Кнопка */
.about-hero__btn {
    align-self: flex-start;
    /* если нужно убрать лишние отступы */
    margin: 0;
    margin-top: 36px;
}

/* Правая колонка (изображение) */
.about-hero__media {
    flex: 1 1 0;
    height: 460px;
    max-width: 976px;
    min-width: 288px;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.about-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-hero__image--gif {
    object-fit: cover;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Планшет (<= 1024px) */
@media (max-width: 1023px) {
    .about-hero {
        padding: 40px 0;
    }

    .about-hero__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .about-hero__content,
    .about-hero__media {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }

    .about-hero__content {
        min-width: 0;
    }

    .about-hero__media {
        height: auto;
        min-height: 178px;
    }

    .about-hero__image {
        height: auto;
        max-height: 400px;
    }
}

/* Мобильный (<= 767px) */
@media (max-width: 767px) {
    .about-hero {
        padding: 30px 0;
    }

    .about-hero__title-dark,
    .about-hero__title-red {
        font-size: 24px;
        line-height: 28px;
    }

    .about-hero__content {
        gap: 12px;

    }

    .about-hero__subtitle {
        font-size: 14px;
        line-height: 20px;
    }
}


/*ABOUT*/
.about__title {
    line-height: 130%;
}

/*PRODUCTION SECTION*/
.production__title {
    font-size: 24px;
}


/* ============================================
   БЛОК "ПРОИЗВОДСТВЕННЫЕ УЧАСТКИ"
   ============================================ */
.production-areas {
    background: var(--base-neutral-background, #F2F4FA);
    padding: 60px 0;
}

.production-areas__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

/* Галерея */
.production-areas__gallery {
    flex: 0 0 714px;
    max-width: 976px;
    min-width: 288px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.production-areas__slider,
.production-areas__single {
    width: 100%;
    height: 383px;
    overflow: hidden;
    position: relative;
}

.production-areas__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контролы слайдера */
.production-areas__controls {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 56px;
}

.production-areas__pagination {
    flex: 1;
    display: flex;
    gap: 4px;
}

.production-areas__pagination .swiper-pagination-bullet {
    width: 100px;
    height: 4px;
    background: var(--base-neutral-strong, #C5CAD8);
    border-radius: 0;
    opacity: 1;
    margin: 0;
}

.production-areas__pagination .swiper-pagination-bullet-active {
    background: var(--base-brand-primary, #AA0017);
}

/* Стрелки */
.production-areas__arrows {
    display: flex;
    gap: 12px;
}

.production-areas__arrow {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--base-neutral-light, #DFE2ED);
    color: var(--base-grey-primary, #262730);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.production-areas__arrow:hover {
    background: var(--base-neutral-strong, #C5CAD8);
}

.production-areas__arrow .btn__triangle {
    position: absolute;
    top: 0;
    right: -27px;
    width: 27px;
    height: 20px;
    z-index: 0;
    pointer-events: none;
}

.production-areas__arrow svg:first-child {
    position: relative;
    z-index: 1;
}

.production-areas__arrow:hover svg:first-child {
    color: var(--base-neutral-lightest);
}

/* Контент */
.production-areas__content {
    flex: 1 0 0;
    max-width: 710px;
    min-width: 288px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.production-areas__badge {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid var(--base-brand-primary, #AA0017);
    color: var(--base-brand-primary, #AA0017);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 21px;
    width: max-content;
}

.production-areas__title {
    color: var(--base-grey-primary, #262730);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 28.8px;
    margin: 0;
}

.production-areas__description {
    color: var(--base-grey-secondary, #414454);
    font-size: 16px;
    line-height: 24px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1199px) {
    .production-areas__gallery {
        flex-basis: 60%;
    }

    .production-areas__content {
        flex-basis: 40%;
    }
}

@media (max-width: 1023px) {
    .production-areas__container {
        flex-direction: column;
        align-items: flex-start;
    }

    .production-areas__gallery,
    .production-areas__content {
        flex-basis: 100%;
        max-width: 100%;
        width: 100%;
    }

    .production-areas__slider,
    .production-areas__single {
        height: auto;
        max-height: 383px;
    }

    .production-areas__pagination .swiper-pagination-bullet {
        width: 60px;
    }
}

@media (max-width: 767px) {
    .production-areas {
        padding: 40px 0;
    }

    .production-areas__title {
        font-size: 20px;
        line-height: 24px;
    }

    .production-areas__controls {
        flex-wrap: wrap;
        gap: 12px;
        display: none;
    }

    .production-areas__pagination {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .production-areas__arrows {
        order: 1;
        width: 100%;
        justify-content: space-between;
    }
}




/* ============================================
   БЛОК "ИСТОРИЯ"
   ============================================ */

.history {
    padding: 60px 0;
    background: var(--base-neutral-lightest, #F9FAFF);
    overflow: hidden;
}

.history__container {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   ГАЛЕРЕЯ (полноширинная)
   ============================================ */
.history__gallery {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    overflow: hidden;
}

.history__slider {
    position: relative;
}

.history__slider .slick-list {
    overflow: visible;
    padding: 0 !important;
}

.history__slider .slick-track {
    display: flex;
    align-items: center;
}

/* ============================================
   СЛАЙДЫ
   ============================================ */
.history__slide {
    width: 714px;               /* фиксированная ширина по макету */
    height: 502px;
    margin: 0 6px;              /* половина gap 12px */
    position: relative;
    overflow: hidden;
    transition: filter 0.3s;
}

.history__slide:last-child {
    margin-right: 0;
}

.history__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.history__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Оверлей затемнения для неактивных слайдов */
.history__image-overlay {
    position: absolute;
    inset: 0;
    background: var(--base-grey-primary, #262730);
    mix-blend-mode: color;
    transition: opacity 0.3s;
    opacity: 1;
    pointer-events: none;
}

/* Активный слайд — цветной */
.history__slide.slick-current .history__image-overlay {
    opacity: 0;
}

/* ============================================
   КОНТРОЛЫ (пагинация + стрелки)
   ============================================ */
.history__controls {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Пагинация — полоски без цифр */
.history__pagination {
    flex: 1;
    display: flex;
    gap: 4px;
}

.history__pagination .slick-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.history__pagination .slick-dots li {
    width: 100px;
    height: 4px;
    background: var(--base-neutral-strong, #C5CAD8);
    transition: background 0.3s;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.history__pagination .slick-dots li.slick-active {
    background: var(--base-brand-primary, #AA0017);
}

/* Скрываем кнопку с цифрой внутри полоски */
.history__pagination .slick-dots li button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    font-size: 0;
    line-height: 0;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
}

/* Стрелки */
.history__arrows {
    display: flex;
    gap: 12px;
}

.history__arrow {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--base-neutral-light, #DFE2ED);
    color: var(--base-grey-primary, #262730);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.history__arrow:hover svg:first-child{
    color: var(--base-neutral-lightest);
    z-index: 1;
}

.history__arrow .btn__triangle {
    position: absolute;
    top: 0;
    right: -27px;
    width: 27px;
    height: 20px;
    z-index: 0;
    pointer-events: none;
}

.history__arrow svg:first-child {
    position: relative;
    z-index: 1;
}

/* ============================================
   ЗАГОЛОВОК И ОПИСАНИЕ
   ============================================ */
.history__heading-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px;
}

.history__heading {
    flex: 0 0 591px;
    max-width: 710px;
    min-width: 288px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history__badge {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid var(--base-brand-primary, #AA0017);
    color: var(--base-brand-primary, #AA0017);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 21px;
    align-self: flex-start;
}

.history__title {
    color: var(--base-grey-primary, #262730);
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 35.2px;
    margin: 0;
}

.history__description {
    flex: 1 1 710px;
    max-width: 710px;
    min-width: 288px;
    color: var(--base-grey-secondary, #414454);
    font-size: 16px;
    line-height: 24px;
}

/* ============================================
   ТАЙМЛАЙН
   ============================================ */
.history__timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.history__timeline-item {
    flex: 1 1 0;
    min-width: 288px;
    max-width: 710px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history__timeline-item--left {
    max-width: 591px;
}

.history__timeline-right {
    flex: 1 1 0;
    max-width: 710px;
    min-width: 288px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history__timeline-title {
    color: var(--base-grey-primary, #262730);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.history__timeline-desc {
    color: var(--base-grey-secondary, #414454);
    font-size: 16px;
    line-height: 24px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1199px) {
    .history__slide {
        width: 50vw;
        height: 400px;
    }
    .history__pagination .slick-dots li {
        width: 80px;
    }
}

@media (max-width: 1023px) {
    .history__container {
        gap: 32px;
    }

    .history__slide {
        width: 80vw;
        height: auto;
        max-height: 400px;
        align-self: stretch;
    }

    .history__heading-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .history__heading,
    .history__description {
        flex-basis: 100%;
        max-width: 100%;
    }

    .history__timeline {
        flex-direction: column;
    }

    .history__timeline-item,
    .history__timeline-right,
    .history__timeline-item--left {
        max-width: 100%;
        width: 100%;
    }

    .history__controls {
        flex-wrap: wrap;
        gap: 12px;
        display: none;
    }

    .history__pagination {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .history__pagination .slick-dots li {
        width: 60px;
        flex: none;
    }

    .history__arrows {
        order: 1;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .history {
        padding: 40px 0;
    }

    .history__title {
        font-size: 24px;
        line-height: 28px;
    }

    .history__slide {
        width: 100vw;
        max-height: 400px;
    }

    .history__pagination .slick-dots li {
        width: 40px;
    }
}