/* ============================================
   ABOUT — страница «О компании»
   ============================================ */

.about {
    background: var(--surface-general-primary);
    padding: 80px 0 80px;
    overflow: hidden;
    /* режем всё, что вылезает за вьюпорт */
}

.about__intro,
.about__production,
.about__company {
    scroll-margin-top: 120px;
}

.about__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* ===== ИНТРО + УТП ===== */
.about__intro {
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-width: 0;
}

.about__intro-heading {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about__title {
    color: var(--base-neutral-lightest);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.about__intro-text {
    max-width: 956px;
    color: #E8E1E1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about__intro-text p {
    margin: 0;
}

/* Сетка преимуществ */
.about__advantages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.card-advantage {
    position: relative;
    width: 472px;
    width: calc((100% - 24px) / 3);
    flex: 0 0 calc((100% - 24px) / 3);
    min-height: 148px;
    padding: 12px;
    border-radius: 16px;
    overflow: hidden;
    outline: 1px solid var(--border-primary);
    outline-offset: -1px;
    color: var(--base-neutral-lightest);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.card-advantage--accent {
    background: var(--base-brand-primary);
    outline: none;
    color: var(--text-content-secondary);
}

.card-advantage__decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    color: var(--base-neutral-lightest);
}

.card-advantage__decor-svg {
    position: absolute;
    max-width: none;
}

.card-advantage__decor-svg--top {
    top: 0;
    width: 100%;
    height: 100%;
}

.card-advantage__decor-svg--bottom {
    bottom: 0;
    left: -30%;
    width: 100%;
    height: auto;
}

.about__intro .card-advantage__decor-svg--top {
    top: 0;
    /* width: 472px; */
    left: 0;
    height: 148px;
}

.about__intro .card-advantage__decor-svg--bottom {
    bottom: 0;
    left: 0;
    /* width: 472px; */
    height: 68px;
}

/* Растягиваем узор вслед за карточкой (не только фикс. размер) */
.card-advantage__decor-svg {
    max-width: none;
}



.card-advantage:not(.card-advantage--accent) .card-advantage__decor-svg--top {
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.card-advantage:not(.card-advantage--accent) .card-advantage__decor-svg--bottom {
    left: -21%;
    width: 100%;
    height: auto;
    bottom: 0;
}

.about__intro .card-advantage:not(.card-advantage--accent) .card-advantage__decor-svg--top {
    top: 0;
    left: 0;
    width: 100%;
    height: 128px;
}

.about__intro .card-advantage:not(.card-advantage--accent) .card-advantage__decor-svg--bottom {
    left: -10%;
    width: 100%;
    height: 80px;
    bottom: 0;
}


.card-advantage__content {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.card-advantage__header {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.card-advantage__number {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.card-advantage__title {
    flex: 1 1 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.card-advantage--accent .card-advantage__text {
    color: var(--text-content-tertiary);
}

.card-advantage__text {
    color: #E8E1E1;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

/* ===== НАШЕ ПРОИЗВОДСТВО ===== */
.about__production {
    display: flex;
    flex-direction: column;
    gap: 48px;
    min-width: 0;
    margin-top: 120px;
}

.about__production-title {
    color: var(--base-neutral-lightest);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.about-production {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    /* ВАЖНО: без overflow — swiper сам тянется за контейнер */
}

/* Swiper растянут до правого края экрана:
   2 карточки в контейнере, третья выглядывает и прижата к правому краю */
.about-production__swiper {
    width: calc(100% + 16px);
    /* ≤1440: компенсируем padding контейнера */
    max-width: none;
    min-width: 0;
    overflow: hidden;
}

/* ≥1441: добавляем расстояние от правого края контейнера до края экрана */
@media (min-width: 1441px) {
    .about-production__swiper {
        width: calc(100% + (100vw - 1440px) / 2 + 16px);
    }
}

/* Слайды: ширина через CSS (Swiper: slidesPerView 'auto') */
.about-production__slide {
    /* Десктоп: 2 карточки ровно в контейнере (1440 - padding - gap) / 2 */
    width: calc((min(100vw, 1440px) - 32px - 12px) / 2);
    min-width: 288px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-production__image-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-general-secondary);
}

.about-production__image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-production__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(57, 74, 90, 0.12);
    pointer-events: none;
}

.about-production__caption {
    color: var(--base-neutral-lightest);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

/* Контролы слайдера — остаются ВНУТРИ контейнера */
.about-production__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.about-production__pagination {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--base-neutral-lightest);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.about-production__pagination-current,
.about-production__pagination-total {
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-production__arrows {
    display: flex;
    gap: 12px;
}

.about-production__nav {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: var(--surface-general-accent-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 300ms var(--easing-gentle);
}

.about-production__nav:hover {
    background: var(--surface-general-secondary);
}

.about-production__nav .icon {
    fill: var(--surface-general-secondary);
    color: var(--surface-general-secondary);
    transition: fill 300ms var(--easing-gentle), color 300ms var(--easing-gentle);
}

.about-production__nav svg {
    width: 24px;
    height: 24px;
    color: inherit;
}

.about-production__nav:hover .icon {
    fill: var(--base-neutral-lightest);
    color: var(--base-neutral-lightest);
}

.about-production__nav.swiper-button-disabled {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== КАРТОЧКА КОМПАНИИ ===== */
.about__company {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 120px;
}

.about__company-details {
    flex: 1 1 0;
    min-width: 288px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    align-self: normal;
}

.about__company-title {
    color: var(--base-neutral-lightest);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.about__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about__contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-link-default);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    transition: color 300ms var(--easing-gentle);
}

.about__contact-row .icon {
    fill: currentColor;
    flex-shrink: 0;
}

a.about__contact-row:hover {
    color: var(--text-link-hover);
}

.about__contact-row--address {
    align-items: flex-start;
    font-weight: 500;
    text-transform: none;
}

.about__contact-row--address .icon {
    margin-top: -2px;
}

/* Реквизиты */
.about__requisites {
    width: 835px;
    max-width: 100%;
    background: rgba(250, 250, 250, 0.08);
    border-radius: 16px;
}

.about__requisites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.about__requisites-title {
    color: var(--base-neutral-lightest);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
}

.about__requisites-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-link-default);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 300ms var(--easing-gentle);
}

.about__requisites-download:hover {
    color: var(--text-link-hover);
}

.about__requisites-download .icon {
    fill: currentColor;
}

.about__requisites-divider {
    height: 1px;
    background: var(--border-primary);
}

.about__requisites-list {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about__req-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 6px 0;
    border-bottom: 1px solid rgba(250, 250, 250, 0.12);
}

.about__req-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about__req-label {
    color: #E8E1E1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.about__req-value {
    color: var(--base-neutral-lightest);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: right;
}

/* ===== КАРТА ===== */
.about__map-wrap {
    width: 100%;
    min-width: 0;
    margin-top: 120px;
}

.about__map {
    width: 100%;
    height: 427px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--surface-general-secondary);
}



/* ===== АДАПТИВ: СРЕДНИЙ (1025-1200) — карточка компании ===== */
@media (max-width: 1200px) and (min-width: 1025px) {
    .about__company {
        flex-direction: column;
        align-items: stretch;
    }

    .about__company-details {
        min-height: auto;
    }

    .about__requisites {
        width: 100%;
    }
}

/* ===== АДАПТИВ: ПЛАНШЕТ (835-1440) ===== */
@media (max-width: 1440px) {
    .about__container {
        gap: 12px;
    }

    /* 2 с половиной карточки: swiper прижат к правому краю */
    .about-production__slide {
        width: calc((100vw - 32px - 36px) / 2.5);
    }

    .about__company-details {
        min-height: auto;
    }

    .card-advantage {
        width: calc((100% - 12px) / 2);
        flex: 0 0 calc((100% - 12px) / 2);
    }

    .about__map-wrap,
    .about__company,
    .about__production {
        margin-top: 60px;
    }
}

/* ===== АДАПТИВ: МОБИЛЬНЫЙ (≤834) ===== */
@media (max-width: 834px) {
    .about {
        padding: 40px 0 40px;
    }

    .about__container {
        gap: 12px;
    }

    .about__title {
        font-size: 24px;
    }

    .about__production-title,
    .about__company-title {
        font-size: 22px;
    }

    .about__advantages {
        flex-direction: column;
    }

    .card-advantage {
        width: 100%;
        flex: 0 0 100%;
    }

    /* 1 карточка + край второй */
    .about-production__slide {
        width: calc(100vw - 88px);
    }

    .about-production__image-wrapper {
        height: 220px;
    }

    .about__company {
        flex-direction: column;
    }

    .about__requisites {
        width: 100%;
    }

    .about__requisites-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .about__req-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .about__req-value {
        text-align: left;
    }

    .about__map {
        height: 320px;
    }
}