/* ============================================================
   Страница «О компании»: первый экран с показателями, надзаголовки
   секций команды и результатов, блок с историей компании.
   Блоки команды и дел переиспользуют team.css / deals.css с главной.
   ============================================================ */

/* padding-bottom подобран под тот же зазор, что между карточками команды
   и надзаголовком «Результаты», — чтобы ритм секций не сбивался. */
.about-hero {
    padding-top: 10px;
    padding-bottom: 120px;
}

.about-hero__stage {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 600px;
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    background-color: #12244b;
    box-shadow: 0 24px 50px -28px rgba(10, 18, 45, 0.55);
}

.about-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 600px;
    padding: 48px 44px;
}

.about-hero__eyebrow {
    font-family: "Vela Sans";
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.about-hero__title {
    font-family: "Vela Sans";
    font-weight: 800;
    font-size: 40px;
    line-height: 1.12;
    letter-spacing: 0;
    color: #fff;
    margin: 18px 0 0;
    max-width: 14ch;
}

.about-hero__lead {
    font-family: "Vela Sans";
    font-weight: 500;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 18px;
    max-width: 46ch;
}

.about-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 32px;
}

.about-hero__stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.about-hero__stat-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.about-hero__stat-icon svg {
    width: 21px;
    height: 21px;
}

.about-hero__stat-body {
    min-width: 0;
}

.about-hero__stat-value {
    font-family: "Vela Sans";
    font-weight: 800;
    font-size: 22px;
    line-height: 1.15;
    color: #fff;
}

.about-hero__stat--text .about-hero__stat-value {
    font-size: 15px;
    line-height: 1.25;
}

.about-hero__stat-label {
    font-family: "Vela Sans";
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 4px;
}

.about-hero__cta {
    margin-top: 32px;
    background-color: #fff;
    color: var(--graphite);
    transition: background-color 0.3s ease;
}

.about-hero__cta:hover {
    background-color: var(--color-slate-200);
}

.about-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.about-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 20, 46, 0.97) 0%, rgba(11, 20, 46, 0.94) 36%, rgba(11, 20, 46, 0.6) 50%, rgba(11, 20, 46, 0) 66%);
}

.about-hero__image,
.about-hero__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.about-hero__image {
    object-fit: cover;
    object-position: center 30%;
}


/* ---------- Надзаголовки и примечание секций ---------- */

/* Надзаголовок лежит в одной колонке с заголовком, а не отдельным
   ребёнком .heading__wrapper: у того gap 40px, и для строки в 12px
   это слишком большой отрыв. */
.about-section__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.about-section__top-row {
    align-items: flex-end;
}

.about-section__eyebrow {
    font-family: "Vela Sans";
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-slate-400);
}

.about-section__note {
    font-family: "Vela Sans";
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-slate-400);
    margin-top: 14px;
}

/* ---------- История компании ---------- */
.about-story {
    padding-bottom: 120px;
}

.about-story__prose {
    max-width: 78ch;
}

/* ============================================================
   Планшет / laptop
   ============================================================ */
@media (max-width: 1279px) {
    .about-hero__content {
        padding: 40px 34px;
    }
    .about-hero__title {
        font-size: 34px;
    }
    .about-hero__stat {
        padding: 14px 15px;
        gap: 12px;
    }
    .about-hero__stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .about-hero__stat-value {
        font-size: 20px;
    }
    .about-hero__stat--text .about-hero__stat-value {
        font-size: 14px;
    }
}

@media (max-width: 1023px) {
    .about-hero,
    .about-story {
        padding-bottom: 105px;
    }
    .about-hero__stage {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        background-color: #0b142e;
    }
    /* Фото уходит под текст и становится широкой полосой: на планшете
       колонка слишком узкая, чтобы вертикальный кадр читался. */
    .about-hero__media {
        order: -1;
        position: relative;
        inset: auto;
        z-index: 0;
        aspect-ratio: 2 / 1;
    }
    .about-hero__media::after {
        background: linear-gradient(180deg, rgba(11, 20, 46, 0) 55%, rgba(11, 20, 46, 0.85) 88%, #0b142e 100%);
    }
    .about-hero__content {
        max-width: none;
        margin-top: -40px;
        position: relative;
        padding: 0 32px 36px;
    }
    .about-hero__title {
        max-width: none;
    }
}

/* ============================================================
   Телефон
   ============================================================ */
@media (max-width: 767px) {
    .about-hero,
    .about-story {
        padding-bottom: 112px;
    }
    .about-hero__stage {
        border-radius: 16px;
    }
    .about-hero__content {
        margin-top: -24px;
        padding: 0 18px 24px;
    }
    .about-hero__title {
        font-size: 26px;
        margin-top: 12px;
    }
    .about-hero__lead {
        font-size: 14px;
        margin-top: 12px;
    }
    .about-hero__stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 22px;
    }
    .about-hero__stat {
        padding: 12px 14px;
        border-radius: 14px;
    }
    .about-hero__stat-icon {
        width: 34px;
        height: 34px;
    }
    .about-hero__stat-icon svg {
        width: 18px;
        height: 18px;
    }
    .about-hero__stat-value {
        font-size: 19px;
    }
    .about-hero__stat--text .about-hero__stat-value {
        font-size: 14px;
    }
    .about-hero__stat-label {
        font-size: 12px;
    }
    .about-hero__cta {
        width: 100%;
        justify-content: center;
        margin-top: 22px;
        padding: 15px 20px;
        font-size: 14px;
    }
    .about-hero__media {
        aspect-ratio: 3 / 2;
    }
    .about-section__eyebrow {
        font-size: 11px;
    }
    .about-section__head {
        gap: 8px;
    }
    .about-section__note {
        font-size: 13px;
    }
}
