/* Страница «О компании» — Figma frame 2055:1571 */

.about-page,
.about-page .about.about--page,
.about-page .about-why {
    font-family: var(--font-sans);
}

.about-page {
    --about-content-max: 1200px;
    --about-page-pad-x: clamp(16px, 8.33vw, 120px);
    --about-blue: #0453f0;
    --about-blue-alt: #0452f0;
    --about-shadow-card:
        0 4px 6px -4px rgba(24, 39, 75, 0.12),
        0 8px 8px -4px rgba(24, 39, 75, 0.08);
    --about-cards-gap: 26px;
    --about-layout-gap: 33px;
    --about-quote-width: 427px;
    background: #fff;
}

/* --- Hero --- */

.about-page__hero {
    padding: clamp(48px, 5.5vw, 80px) 0 clamp(12px, 2vw, 20px);
    text-align: left;
}

.about-page__hero .container {
    padding-left: var(--about-page-pad-x);
    padding-right: var(--about-page-pad-x);
    box-sizing: border-box;
}

.about-page__hero h1 {
    margin: 0;
    font-size: 35px;
    line-height: 1.12;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #000;
}

/* --- Intro (about--page) --- */

.about.about--page > .container {
    padding: 0 var(--about-page-pad-x) clamp(40px, 5vw, 56px);
    box-sizing: border-box;
}

.about.about--page .about__kicker {
    margin: 0 0 clamp(24px, 3vw, 32px);
    max-width: none;
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--about-blue);
}

/* Intro: фото слева, текст справа; на мобиле — колонка */
.about.about--page .about__intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 616px) minmax(0, 1fr);
    gap: clamp(32px, 5.5vw, 75px);
    align-items: start;
    max-width: var(--about-content-max);
    margin: 0 0 clamp(32px, 5vw, 48px);
}

.about.about--page .about__media {
    margin: 0;
    padding: 0;
    max-width: none;
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 624 / 316;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--about-shadow-card);
    line-height: 0;
}

.about.about--page .about__copy {
    max-width: 491px;
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #000;
}

.about.about--page .about__copy p {
    margin: 0 0 24px;
}

.about.about--page .about__copy p:last-child {
    margin-bottom: 0;
}

.about.about--page .about__copy strong {
    font-weight: 600;
}

.about.about--page .about__media img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center;
    vertical-align: top;
}

/* Stats — стили как на главной (main.css), без переопределений */

/* --- Why --- */

.about-why {
    padding: clamp(40px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
    background: #fff;
}

.about-why__container {
    padding-left: var(--about-page-pad-x);
    padding-right: var(--about-page-pad-x);
    box-sizing: border-box;
}

.about-why__title {
    margin: 0 0 clamp(20px, 3vw, 28px);
    max-width: var(--about-content-max);
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #000;
}

.about-why__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--about-quote-width);
    gap: var(--about-layout-gap);
    align-items: stretch;
    max-width: var(--about-content-max);
}

.about-why__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: var(--about-cards-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-why__cards .about-why__card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.about-why__cards .about-why__card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.about-why__cards .about-why__card:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
}

.about-why__cards .about-why__card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.about-why__card {
    margin: 0;
    padding: 20px;
    min-height: 145px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--about-shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.about-why__card-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: -0.16px;
    text-transform: none;
    color: #000;
}

.about-why__card-num {
    display: inline;
    font-weight: 600;
    color: #000;
}

.about-why__card-text {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #000;
}

.about-why__quote {
    margin: 0;
    padding: clamp(24px, 3vw, 32px);
    border: none;
    border-radius: 20px;
    background: var(--about-blue-alt);
    color: #fff;
    box-shadow: var(--about-shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 316px;
    box-sizing: border-box;
}

.about-why__quote p {
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
}

.about-why__quote-author {
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
}

/* --- Responsive --- */

@media (max-width: 1100px) {
    .about.about--page .about__intro-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(24px, 4vw, 32px);
        max-width: none;
    }

    .about.about--page .about__media,
    .about.about--page .about__copy {
        grid-column: auto;
        grid-row: auto;
        max-width: none;
    }

    .about-why__layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
    }

    .about-why__quote {
        min-height: 0;
    }
}

@media (max-width: 900px) {
    .about.about--page .about__stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        min-height: 0;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .about-why__cards {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }

    .about-why__cards .about-why__card:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .about-why__card {
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .about-page__hero h1 {
        font-size: clamp(28px, 7vw, 35px);
    }

    .about.about--page > .container {
        padding-bottom: clamp(24px, 4vw, 32px);
    }

    .about.about--page .about__intro-grid {
        margin-bottom: clamp(24px, 4vw, 32px);
    }

    .about.about--page .about__media {
        aspect-ratio: auto;
        min-height: 200px;
    }

    .about.about--page .about__media img {
        height: auto;
        min-height: 200px;
        aspect-ratio: 624 / 316;
    }
}
