/* =========================================================
   QIYALI ULTRA — ABOUT PAGE
   ========================================================= */

.about-page {

    --about-border: rgba(128, 128, 128, 0.25);
    --about-border-subtle: rgba(128, 128, 128, 0.16);

    width: 100%;

    padding: 100px 0 120px;

    box-sizing: border-box;
}

.about-page > .container {

    width: min(var(--q-container), calc(100% - 40px));
    max-width: 1200px;
}


/* =========================================================
   HERO
   ========================================================= */

.about-hero {
    max-width: 1000px;

    padding: 40px 0 120px;
}

.about-hero__eyebrow,
.about-section-heading__eyebrow,
.about-cta__eyebrow {

    margin: 0 0 16px;

    color: var(--q-accent);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-hero__title {

    margin: 0;

    color: var(--q-text);

    font-size: clamp(48px, 7vw, 88px);
    font-weight: 600;

    line-height: 0.98;
    letter-spacing: -0.055em;
}

.about-hero__description {

    max-width: 700px;

    margin: 36px 0 0;

    color: var(--q-text-muted);

    font-size: 19px;
    line-height: 1.7;
}


/* =========================================================
   INTRO
   ========================================================= */

.about-intro {

    display: grid;

    grid-template-columns: 220px minmax(0, 700px);

    gap: 80px;

    padding: 80px 0;

    border-top: 1px solid var(--about-border);

    box-sizing: border-box;
}

.about-intro__label,
.about-principle__label {

    color: var(--q-text-muted);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-intro__content h2 {

    margin: 0 0 28px;

    color: var(--q-text);

    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;

    line-height: 1.1;
    letter-spacing: -0.035em;
}

.about-intro__content p {

    margin: 0 0 22px;

    color: var(--q-text-muted);

    font-size: 17px;
    line-height: 1.8;
}

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


/* =========================================================
   SECTION HEADING
   ========================================================= */

.about-section-heading {

    max-width: 700px;

    margin-bottom: 56px;
}

.about-section-heading h2 {

    margin: 0;

    color: var(--q-text);

    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;

    line-height: 1.05;
    letter-spacing: -0.04em;
}


/* =========================================================
   FOCUS
   ========================================================= */

.about-focus {

    padding: 100px 0;

    border-top: 1px solid var(--about-border);
}

.about-focus__grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0;

    overflow: hidden;

    border: 1px solid var(--about-border);

    border-radius: 2px;
}

.about-focus__item {

    min-height: 260px;

    padding: 32px;

    background: var(--q-surface);

    border-right: 1px solid var(--about-border-subtle);
    border-bottom: 1px solid var(--about-border-subtle);

    box-sizing: border-box;

    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

.about-focus__item:nth-child(2n) {
    border-right: 0;
}

.about-focus__item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.about-focus__item:hover {
    background: var(--q-surface-alt);
}

.about-focus__number {

    display: block;

    margin-bottom: 60px;

    color: var(--q-text-muted);

    font-size: 12px;
}

.about-focus__item h3 {

    margin: 0 0 12px;

    color: var(--q-text);

    font-size: 24px;
    font-weight: 600;
}

.about-focus__item p {

    max-width: 500px;

    margin: 0;

    color: var(--q-text-muted);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   PRINCIPLE
   ========================================================= */

.about-principle {

    display: grid;

    grid-template-columns: 220px minmax(0, 1fr);

    gap: 80px;

    padding: 120px 0;

    border-top: 1px solid var(--about-border);

    box-sizing: border-box;
}

.about-principle blockquote {

    max-width: 900px;

    margin: 0;
}

.about-principle__mark {

    display: block;

    height: 30px;

    color: var(--q-accent);

    font-size: 64px;
    line-height: 0.5;
}

.about-principle blockquote p {

    margin: 20px 0 0;

    color: var(--q-text);

    font-size: clamp(30px, 4vw, 52px);
    font-weight: 500;

    line-height: 1.15;
    letter-spacing: -0.035em;
}


/* =========================================================
   APPROACH
   ========================================================= */

.about-approach {

    padding: 96px 0 112px;

    border-top: 1px solid var(--about-border);
}

.about-approach__intro {

    max-width: 640px;

    margin: 22px 0 0;

    color: var(--q-text-muted);

    font-size: 17px;
    line-height: 1.75;
}

.about-approach__list {

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-top: 1px solid var(--about-border);
    border-left: 1px solid var(--about-border);
}

.about-approach__item {

    display: grid;

    grid-template-columns: 56px minmax(0, 1fr);

    gap: 24px;

    min-height: 230px;
    padding: 32px 28px;

    background: var(--q-surface);
    border-right: 1px solid var(--about-border);
    border-bottom: 1px solid var(--about-border);

    transition: background-color 180ms ease, transform 180ms ease;
}

.about-approach__item:hover {

    background: var(--q-surface-alt);
}

.about-approach__item > span {

    color: var(--q-accent);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.about-approach__item h3 {

    margin: 0 0 8px;

    color: var(--q-text);

    font-size: 22px;
    font-weight: 600;
}

.about-approach__item p {

    margin: 0;

    color: var(--q-text-muted);

    font-size: 14px;
    line-height: 1.7;
}

.about-approach__outcome {

    display: inline-flex;

    margin-top: 24px;

    color: var(--q-text);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   PARTNERS
   ========================================================= */

.about-partners {

    padding: 96px 0 112px;

    border-top: 1px solid var(--about-border);
}

.about-partners__heading {

    max-width: 760px;
}

.about-partners__description {

    max-width: 620px;

    margin: 20px 0 0;

    color: var(--q-text-muted);

    font-size: 16px;
    line-height: 1.7;
}

.about-partners__grid {

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    border-top: 1px solid var(--about-border);
    border-left: 1px solid var(--about-border);
}

.about-partners__item {

    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;

    border-right: 1px solid var(--about-border);
    border-bottom: 1px solid var(--about-border);
    background: var(--q-surface);

    transition: background-color 180ms ease;
}

.about-partners__item:hover {

    background: var(--q-surface-alt);
}

.about-partners__item img {

    display: block;
    width: auto;
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter 180ms ease, opacity 180ms ease;
}

.about-partners__item:hover img {

    filter: grayscale(0);
    opacity: 1;
}

.about-partners__fallback {

    color: var(--q-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   MY TEAM
   ========================================================= */

.about-team {

    position: relative;

    width: 100%;

    margin-top: 120px;

    padding: 96px 0;


    color: var(--q-text);

    border-top: 1px solid var(--about-border);
    border-bottom: 1px solid var(--about-border);

    box-sizing: border-box;
}


/* =========================================================
   TEAM INNER WIDTH
   ========================================================= */

.about-team__inner {

    width: 100%;
}


/*
 * Agar HTML'da alohida inner mavjud bo'lmasa,
 * section ichidagi container bilan ishlaydi.
 */

.about-team > .container {
    width: 100%;
}


/* =========================================================
   TEAM HEADING
   ========================================================= */

.about-team__heading {

    max-width: 720px;

    margin-bottom: 56px;
}

.about-team__description {

    max-width: 620px;

    margin: 20px 0 0;

    color: var(--q-text-muted);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   TEAM GRID
   ========================================================= */

.about-team__list {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    width: 100%;

    border-top: 1px solid var(--about-border);
    border-left: 1px solid var(--about-border);

    box-sizing: border-box;
}


/* =========================================================
   TEAM MEMBER
   ========================================================= */

.about-team__member {

    min-width: 0;

    padding: 28px 24px 32px;

    border-right: 1px solid var(--about-border);
    border-bottom: 1px solid var(--about-border);

    box-sizing: border-box;

    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.about-team__member:hover {

    background: color-mix(
        in srgb,
        var(--q-surface) 65%,
        transparent
    );
}


/* =========================================================
   TEAM IMAGE
   ========================================================= */

.about-team__image {

    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    margin-bottom: 24px;

    overflow: hidden;

    background: var(--q-surface);

    box-sizing: border-box;
}

.about-team__image img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;



    transition:
        transform 350ms ease,
        filter 350ms ease;
}

.about-team__member:hover
.about-team__image img {

    transform: scale(1.04);

    filter: grayscale(100%);
}


/* =========================================================
   TEAM NAME
   ========================================================= */

.about-team__name {

    margin: 0 0 8px;

    color: var(--q-text);

    font-size: 18px;
    font-weight: 600;

    line-height: 1.25;
}


/* =========================================================
   TEAM JOB
   ========================================================= */

.about-team__job {

    margin: 0 0 4px;

    color: var(--q-accent);

    font-size: 13px;
    font-weight: 600;

    line-height: 1.4;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* =========================================================
   TEAM SPECIALITY
   ========================================================= */

.about-team__speciality {

    margin: 0;

    color: var(--q-text-muted);

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   TEAM SOCIAL
   ========================================================= */

.about-team__social {

    display: flex;

    flex-wrap: wrap;

    gap: 16px;

    margin-top: 24px;
}

.about-team__social a {

    color: var(--q-text);

    font-size: 12px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.04em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        color 180ms ease,
        opacity 180ms ease;
}

.about-team__social a:hover {

    color: var(--q-accent);
}


/* =========================================================
   CTA
   ========================================================= */

.about-cta {

    margin-top: 100px;

    padding: 80px 40px;

    text-align: center;

    border-top: 1px solid var(--about-border);
    border-bottom: 1px solid var(--about-border);

    box-sizing: border-box;
}

.about-cta h2 {

    margin: 0;

    color: var(--q-text);

    font-size: clamp(40px, 6vw, 64px);
    font-weight: 600;

    line-height: 1;
    letter-spacing: -0.045em;
}

.about-cta > p:not(.about-cta__eyebrow) {

    max-width: 550px;

    margin: 24px auto 32px;

    color: var(--q-text-muted);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .about-page {
        padding: 72px 0 90px;
    }

    .about-hero {
        padding: 30px 0 90px;
    }

    .about-intro,
    .about-principle {

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .about-focus,
    .about-principle,
    .about-approach {

        padding: 80px 0;
    }

    .about-approach__list,
    .about-partners__grid {
        grid-template-columns: 1fr;
    }


    /* TEAM */

    .about-team {

        margin-top: 90px;

        padding: 72px 0;
    }

    .about-team__list {

        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-team__member {

        padding: 24px 20px 28px;
    }


    /* APPROACH */

    .about-approach__item {

        grid-template-columns: 60px minmax(0, 1fr);

        gap: 20px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .about-page {

        padding: 52px 0 70px;
    }

    .about-page > .container {

        width: min(var(--q-container), calc(100% - 32px));
    }

    .about-hero {

        padding: 20px 0 64px;
    }

    .about-hero__title {

        font-size: 46px;
    }

    .about-hero__description {

        margin-top: 24px;

        font-size: 17px;
        line-height: 1.65;
    }


    /* INTRO */

    .about-intro {

        padding: 64px 0;
    }


    /* FOCUS */

    .about-focus {

        padding: 64px 0;
    }

    .about-focus__grid {

        grid-template-columns: 1fr;
    }

    .about-focus__item {

        min-height: auto;

        padding: 24px;

        border-right: 0;
        border-bottom: 1px solid var(--about-border-subtle);
    }

    .about-focus__item:nth-child(2n) {

        border-right: 0;
    }

    .about-focus__item:last-child {

        border-bottom: 0;
    }

    .about-focus__number {

        margin-bottom: 40px;
    }


    /* PRINCIPLE */

    .about-principle {

        padding: 72px 0;
    }

    .about-principle blockquote p {

        font-size: 32px;
    }


    /* APPROACH */

    .about-approach {

        padding: 64px 0;
    }

    .about-partners {

        padding: 64px 0 72px;
    }

    .about-approach__item {

        grid-template-columns: 45px minmax(0, 1fr);

        gap: 16px;

        padding: 24px 0;
    }

    .about-approach__item {

        min-height: 0;
        padding: 24px 20px;
    }

    .about-partners__item {

        min-height: 104px;
    }


    /* TEAM */

    .about-team {

        margin-top: 72px;

        padding: 56px 0;
    }

    .about-team__heading {

        margin-bottom: 40px;
    }

    .about-team__list {

        grid-template-columns: 1fr;
    }

    .about-team__member {

        padding: 24px 20px 28px;
    }

    .about-team__image {

        margin-bottom: 20px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .about-focus__item,
    .about-team__member,
    .about-team__image img,
    .about-team__social a {

        transition: none;
    }

}


/* =========================================================
   DARK MODE SAFETY
   ========================================================= */

/*
 * Dark mode'da theme variables avtomatik o'zgaradi.
 * Team section ham shu variables'dan foydalanadi.
 *
 * Agar theme dark mode uchun:
 * body.dark-mode
 * yoki
 * body.dark
 * ishlatsa, qo'shimcha override talab qilinmaydi.
 */

body.dark-mode .about-team,
body.dark .about-team {

    background: var(--q-surface-alt);

    color: var(--q-text);
}

body.dark-mode .about-team__member,
body.dark .about-team__member {

    border-color: var(--about-border);
}

body.dark-mode .about-team__list,
body.dark .about-team__list {

    border-color: var(--about-border);
}

body.dark-mode .about-team__member:hover,
body.dark .about-team__member:hover {

    background: var(--q-surface);
}