/* ============================================
   ABOUT PAGE - Desktop (ПК)
   ============================================ */

/* Keep layout close to Figma: big gaps between main blocks */
.page-about .about-stack {
    display: flex;
    flex-direction: column;
    gap: 180px;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------
   HERO
   -------------------------------------------- */
.page-about .hero {
    padding: 40px 0 180px;
    position: relative;
    z-index: 1;
}

.page-about .hero-content {
    position: relative;
}

/* Keep breadcrumb above hero visuals */
.page-about .breadcrumb {
    position: relative;
    z-index: 5;
}

.page-about .hero-title {
    font-family: 'Merriweather', serif;
    font-size: 64px;
    line-height: 1.2;
    color: #4d4d4d;
    margin: 0 0 48px 0;
    font-weight: 400;
}

.page-about .hero-banner-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 535px;
    height: 458px;
    border-radius: 40px;
    overflow: hidden;
    z-index: 3;
}

.page-about .hero-banner {
    background: #4d4d4d;
    border-radius: 40px;
    height: 408px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.page-about .hero-bullets {
    position: absolute;
    left: 41px;
    top: 50%;
    transform: translateY(-50%);
    width: 694px;
    display: flex;
    flex-direction: column;
    gap: 27px;
    font-size: 24px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    z-index: 4;
}

.page-about .hero-bullets p {
    margin: 0;
}

.page-about .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    border-radius: 40px;
    display: block;
}

/* --------------------------------------------
   MISSION
   -------------------------------------------- */
.page-about .mission {
    position: relative;
    z-index: 1;
}

.page-about .mission-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.page-about .mission-subtitle {
    font-size: 24px;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.page-about .mission-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.page-about .mission-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 30px;
    padding: 30px;
    height: 260px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-about .mission-card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-about .mission-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.page-about .mission-card-text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.page-about .mission-icon {
    width: 48px;
    height: 48px;
    background: #f7d59e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(247, 213, 158, 0.6), 0 0 30px rgba(255, 140, 66, 0.3);
}

.page-about .mission-icon::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    background: radial-gradient(circle, rgba(247, 213, 158, 0.8) 0%, rgba(255, 140, 66, 0.4) 50%, transparent 70%);
    filter: blur(15px);
    z-index: -1;
}

.page-about .mission-icon img {
    width: 36px;
    height: 36px;
    display: block;
}

.page-about .mission-icon-double {
    position: relative;
}

.page-about .mission-icon-double .mission-icon-base {
    width: 36px;
    height: 36px;
}

.page-about .mission-icon-double .mission-icon-overlay {
    position: absolute;
    left: 8px;
    bottom: 6px;
    width: 20px;
    height: 20px;
}

/* --------------------------------------------
   PERSON CARD (director/team)
   -------------------------------------------- */
.page-about .person-card {
    display: flex;
    flex-direction: column;
    gap: 19px;
    min-width: 0;
}

.page-about .person-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 30px;
    overflow: hidden;
    background: #d9d9d9;
}

.page-about .person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-about .person-photo-placeholder {
    background: #d9d9d9;
}

.page-about .person-info {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.page-about .person-name {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    line-height: 1.2;
    color: #000000;
    font-weight: 400;
    margin: 0;
}

.page-about .person-role {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.page-about .director-card {
    width: min(451px, 100%);
    margin-left: auto;
}

/* Hidden by default (shown only on mobile, see @media rules) */
.page-about .person-card--director-mobile {
    display: none;
}

/* --------------------------------------------
   TEAM
   -------------------------------------------- */
.page-about .about-team .section-title {
    margin-bottom: 24px;
}

.page-about .team-lead {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 70px; /* space before the grid, like in desktop Figma */
}

.page-about .team-lead-photo {
    width: 688px;
    height: 495px;
    border-radius: 30px;
    overflow: hidden;
    background: #d9d9d9;
    flex: 0 0 688px;
}

.page-about .team-lead-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.page-about .team-lead-info {
    width: 688px;
    flex: 0 0 688px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: #4d4d4d;
}

.page-about .team-lead-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-about .team-lead-name {
    font-family: 'Merriweather', serif;
    font-size: 40px;
    line-height: 1;
    color: #4d4d4d;
    font-weight: 400;
    margin: 0;
}

.page-about .team-lead-role {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
}

.page-about .team-lead-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.page-about .team-lead-list li {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: #4d4d4d;
    margin: 0;
    position: relative;
    padding-left: 18px;
}

.page-about .team-lead-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    top: 0;
}

.page-about .team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px 23px;
}

.page-about .team-grid > .person-card {
    flex: 0 1 calc((100% - 46px) / 3);
    max-width: calc((100% - 46px) / 3);
}

/* --------------------------------------------
   PRINCIPLES
   -------------------------------------------- */
.page-about .principles .section-title {
    margin-bottom: 40px;
    width: 817px; /* like in design, title is not full width */
}

.page-about .principles-photo {
    width: 100%;
    height: 465px;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 14px;
}

.page-about .principles-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-about .principles-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    align-items: stretch;
}

.page-about .principle-card {
    width: 100%;
    height: 428px;
    border-radius: 30px;
    padding: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.page-about .principle-card-light {
    background: #f7d59e;
    color: #4d4d4d;
}

.page-about .principle-card-dark {
    background: #4d4d4d;
    color: #ffffff;
}

.page-about .principle-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    position: relative;
    z-index: 1;
}

.page-about .principle-text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    position: relative;
    z-index: 1;
}

.page-about .principle-card-light .principle-title,
.page-about .principle-card-light .principle-text {
    color: #4d4d4d;
}

.page-about .principle-card-dark .principle-title,
.page-about .principle-card-dark .principle-text {
    color: #ffffff;
}

.page-about .principle-ill {
    position: absolute;
    pointer-events: none;
    user-select: none;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.page-about .principle-card-service .principle-ill {
    width: auto;
    height: 260px;
}

.page-about .principle-card-proactive .principle-ill {
    width: auto;
    height: 240px;
}

.page-about .principle-card-pricing .principle-ill {
    width: auto;
    height: 210px;
}

/* --------------------------------------------
   REUSED COMMON SECTIONS (override spacing to match Figma stack)
   -------------------------------------------- */
.page-about .contact-form-section {
    padding: 0;
}

.page-about .contact-form-wrapper {
    padding: 40px;
    border-radius: 30px;
}

.page-about .contact-form-title {
    margin-bottom: 21px;
}

.page-about .articles {
    padding: 0;
}

.page-about .articles-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.page-about .article-card {
    width: 100%;
    min-width: 0;
    flex: initial;
}

/* Footer in Figma has no extra top padding (spacing controlled by the stack gap) */
.page-about .footer {
    padding-top: 0;
}

/* ============================================
   RESPONSIVE DESIGN - About Page
   ============================================ */

@media (max-width: 1440px) {
    .page-about .hero-title {
        font-size: 56px;
    }
}

@media (max-width: 1200px) {
    .page-about .about-stack {
        gap: 140px;
    }

    .page-about .hero {
        padding-bottom: 140px;
    }

    .page-about .hero-title {
        font-size: 48px;
        margin-bottom: 32px;
    }

    .page-about .hero-banner-bg {
        width: 420px;
        height: 360px;
    }

    .page-about .hero-bullets {
        width: auto;
        max-width: 60%;
        font-size: 20px;
    }

    .page-about .mission-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-about .mission-card {
        height: auto;
        min-height: 220px;
    }

    .page-about .team-grid {
        gap: 40px 20px;
    }

    .page-about .team-grid > .person-card {
        flex: 0 1 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }

    .page-about .team-lead {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 40px;
    }

    .page-about .team-lead-photo,
    .page-about .team-lead-info {
        width: 100%;
        flex: 0 0 auto;
    }

    .page-about .team-lead-photo {
        height: 420px;
    }

    .page-about .team-lead-name {
        font-size: 32px;
    }

    .page-about .team-lead-role,
    .page-about .team-lead-list li {
        font-size: 20px;
    }

    .page-about .person-card {
        width: auto;
    }

    .page-about .person-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .page-about .principles .section-title {
        width: auto;
    }

    .page-about .principles-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .page-about .principle-card {
        width: auto;
    }

    .page-about .articles-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .page-about .article-card {
        width: auto;
        flex: initial;
    }
}

@media (max-width: 768px) {
    .page-about .about-stack {
        gap: 110px;
    }

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

    .page-about .hero-title {
        font-size: 40px;
        margin-bottom: 20px;
    }

    /* Simplify hero layout to avoid overflow on tablets */
    .page-about .hero-banner-bg {
        display: none;
    }

    .page-about .hero-banner {
        height: auto;
        min-height: 0;
    }

    .page-about .hero-bullets {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 24px;
        font-size: 18px;
    }

    .page-about .mission-cards {
        grid-template-columns: 1fr;
    }

    .page-about .team-grid > .person-card {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .page-about .principles-cards {
        grid-template-columns: 1fr;
    }

    .page-about .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Vertical rhythm on mobile follows the Figma frame: ~90px between blocks */
    .page-about .about-stack {
        gap: 90px;
    }

    /* --------------------------------------------
       HERO (mobile)
       -------------------------------------------- */
    .page-about .hero {
        padding: 20px 0 90px;
    }

    .page-about .hero-title {
        font-size: 28px;
        line-height: normal;
        text-align: center;
        margin-bottom: 12px;
    }

    /* Use banner pseudo-element for the mobile image (so it is clipped by radius) */
    .page-about .hero-banner-bg {
        display: none;
    }

    .page-about .hero-banner {
        height: 582px;
        border-radius: 40px;
        position: relative;
        overflow: hidden;
    }

    .page-about .hero-banner::after {
        content: '';
        position: absolute;
        left: 50%;
        /* Without Figma mask we emulate it by shifting the image down,
           so only the lower part is visible (like in the design). */
        bottom: -110px;
        width: 401px;
        height: 401px;
        transform: translateX(-50%);
        background-image: url('images/man_shield_big.webp');
        background-repeat: no-repeat;
        background-position: center bottom;
        background-size: cover;
        pointer-events: none;
        z-index: 0;
    }

    .page-about .hero-bullets {
        position: absolute;
        top: 35px;
        left: 50%;
        transform: translateX(-50%);
        width: 340px;
        padding: 0;
        gap: 14px;
        font-size: 18px;
        line-height: 1.3;
        z-index: 1;
    }

    /* --------------------------------------------
       MISSION (mobile)
       -------------------------------------------- */
    .page-about .mission-header {
        align-items: center;
        text-align: center;
    }

    .page-about .mission .section-title {
        margin: 0;
        font-size: 24px;
        line-height: normal;
        text-align: center;
    }

    .page-about .mission-subtitle {
        font-size: 18px;
        text-align: center;
    }

    .page-about .mission-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .page-about .mission-card {
        padding: 30px 20px;
        height: auto;
    }

    .page-about .mission-card-title {
        font-size: 20px;
    }

    .page-about .mission-card-text {
        font-size: 16px;
    }

    /* --------------------------------------------
       DIRECTOR + TEAM (mobile combined)
       -------------------------------------------- */
    .page-about .director {
        display: none;
    }

    .page-about .about-team {
        position: relative;
    }

    /* Soft ellipse behind the slider (like in Figma) */
    .page-about .about-team::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 65px;
        width: 358px;
        height: 358px;
        transform: translateX(-50%);
        border-radius: 50%;
        background: radial-gradient(circle, rgba(247, 213, 158, 0.22) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    .page-about .about-team .container {
        position: relative;
        z-index: 1;
    }

    .page-about .about-team .section-title {
        margin-bottom: 30px;
        font-size: 24px;
        line-height: normal;
        text-align: center;
    }

    .page-about .team-lead {
        display: none;
    }

    .page-about .team-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        width: 100%;
        margin-right: -16px;
        padding-right: 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        opacity: 1;
        scroll-snap-type: x mandatory;
    }

    .page-about .team-grid::-webkit-scrollbar {
        display: none;
    }

    .page-about .person-card--director-mobile {
        display: flex;
    }

    .page-about .team-grid > .person-card {
        width: 300px;
        flex: 0 0 300px;
        max-width: 300px;
        scroll-snap-align: start;
    }

    .page-about .person-photo {
        width: 300px;
        height: 300px;
        border-radius: 30px;
    }

    .page-about .person-name {
        font-size: 20px;
    }

    .page-about .person-role {
        font-size: 16px;
    }

    /* --------------------------------------------
       PRINCIPLES (mobile)
       -------------------------------------------- */
    .page-about .principles .section-title {
        width: auto;
        margin-bottom: 30px;
        text-align: center;
    }

    .page-about .principles-photo {
        height: 363px;
        margin-bottom: 14px;
    }

    .page-about .principles-cards {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }

    .page-about .principle-card {
        width: 100%;
        height: 428px;
        padding: 30px;
    }

    /* Reposition illustrations to match the mobile composition */
    .page-about .principle-ill {
        right: auto;
        bottom: auto;
        left: 50%;
    }

    .page-about .principle-card-service .principle-ill {
        width: 455px;
        height: 455px;
        bottom: -81px;
        transform: translateX(-50%) translateX(44px);
    }

    .page-about .principle-card-proactive .principle-ill {
        width: 384px;
        height: 383px;
        bottom: -72px;
        transform: translateX(-50%) translateX(30px);
    }

    .page-about .principle-card-pricing .principle-ill {
        width: 372px;
        height: 372px;
        bottom: -52px;
        transform: translateX(-50%) translateX(27px);
    }

    /* --------------------------------------------
       CONTACT FORM (mobile)
       -------------------------------------------- */
    .page-about .contact-form-wrapper {
        padding: 30px 20px;
        gap: 10px;
        border-radius: 30px;
    }

    .page-about .contact-form-image {
        height: 363px;
        border-radius: 20px;
    }

    /* --------------------------------------------
       ARTICLES (mobile)
       -------------------------------------------- */
    .page-about .articles .section-title {
        margin-bottom: 30px;
        text-align: center;
    }

    .page-about .articles-grid {
        margin-top: 0;
        display: flex;
        overflow-x: auto;
        gap: 17px;
        padding-bottom: 10px;
        width: 100%;
        margin-right: -16px;
        padding-right: 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
    }

    .page-about .articles-grid::-webkit-scrollbar {
        display: none;
    }

    .page-about .article-card {
        width: 320px;
        flex: 0 0 320px;
        scroll-snap-align: start;
    }

    .page-about .article-image {
        height: 178px;
        border-radius: 30px;
        overflow: hidden;
    }

    .page-about .article-title {
        font-size: 18px;
    }

    .page-about .article-excerpt,
    .page-about .article-date {
        font-size: 14px;
    }
}


