/**
 * About Page Styles
 * Сторінка "Про нас"
 *
 * Version: 1.0.0
 */

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

.about-hero {
    position: relative;
    width: 100%;
    background-color: transparent;
    padding: 120px 0 40px;
}

.about-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero__title {
    margin: 0;
    color: #3a3d4e;
    font-family: 'Gilroy', Arial, sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: 1px;
    text-align: center;
}

@media screen and (max-width: 959px) {
    .about-hero {
        padding: 110px 0 30px;
    }

    .about-hero__title {
        font-size: 42px;
    }
}

@media screen and (max-width: 639px) {
    .about-hero {
        padding: 100px 0 25px;
    }

    .about-hero__title {
        font-size: 34px;
        letter-spacing: 0.5px;
    }
}

@media screen and (max-width: 479px) {
    .about-hero {
        padding: 90px 0 20px;
    }

    .about-hero__title {
        font-size: 26px;
    }
}

/* Body background лише для шаблону "Про нас" */
body.about-page-body {
    background-color: #f5f5f5;
}

/* ==========================================================================
   ABOUT SECTIONS
   ========================================================================== */

.about-sections {
    width: 100%;
    padding: 20px 0 20px;
    background-color: transparent;
}

.about-section {
    position: relative;
    padding: 0;
    margin-bottom: 220px;
    overflow: visible;
}

.about-section:last-of-type {
    margin-bottom: 0;
}

.about-sections article {
    background: transparent;
    box-shadow: none;
}


.about-section__wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 70px;
    min-height: 620px;
}

.about-section__card {
    background-color: #ffffff;
    border-radius: 25px;
    box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.1);
    padding: 50px 60px;
    max-width: 680px;
    width: 100%;
    position: absolute;
    top: 29%;
    transform: none;
    z-index: 5;
}

.about-section--text-left .about-section__card {
    left: 10px;
}

.about-section--text-right .about-section__card {
    right: 10px;
}

.about-section__card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    box-shadow: 0 30px 70px 0 rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.about-section__card:hover::after {
    opacity: 1;
}

.about-section__card > *:first-child {
    margin-top: 0;
}

.about-section__card > *:last-child {
    margin-bottom: 0;
}


.about-section__card p {
    color: #000000;
    font-family: 'Gilroy', Arial, sans-serif;
    font-size: 16px;
    line-height: 2;
    font-weight: 400;
    margin: 0 0 0px;
}

.about-section__card strong {
    font-weight: 600;
}

.about-section__card h2,
.about-section__card h3 {
    font-family: 'Gilroy', Arial, sans-serif;
    font-weight: 600;
    color: #3a3d4e;
    margin: 20px 0 15px;
    line-height: 1.3;
}

.about-section__card ul,
.about-section__card ol {
    margin: 0 0 20px 20px;
    color: #000000;
    font-family: 'Gilroy', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.about-section__media {
    position: absolute;
    top: 0;
    width: clamp(420px, 48vw, 720px);
    aspect-ratio: 687 / 444;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

.about-section--text-left .about-section__media {
    right: 20px;
}

.about-section--text-right .about-section__media {
    left: 20px;
}

.about-section__media::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 25px;
    background-color: #fff705;
    top: -90px;
    z-index: -1;
}

.about-section--text-left .about-section__media::before {
    right: -90px;
}

.about-section--text-right .about-section__media::before {
    left: -90px;
}

.about-section__media-frame {
    width: 100%;
    height: 100%;
    margin: 0;
}

.about-section__media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 1199px) {
    .about-section {
        margin-bottom: 180px;
    }

    .about-section__card {
        padding: 44px 48px;
    }

    .about-section__media::before {
        width: 115%;
        top: -60px;
    }
}

@media screen and (max-width: 959px) {
    .about-section {
        margin-bottom: 100px;
    }

    .about-section__wrapper {
        padding: 0;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .about-section__media {
        position: relative;
        width: min(90vw, 520px);
        aspect-ratio: 687 / 444;
        margin: 0 auto;
        order: 1;
        top: 0;
        left: auto!important;
        right: auto!important;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
        order: 1;
    }

    .about-section__content {
        order: 2;
    }

    .about-section__media::before {
        display: none;
    }

    .about-section__card {
        position: static;
        margin: 30px auto 0;
        padding: 32px 28px;
        text-align: center;
        background-color: transparent;
        box-shadow: none;
        max-width: min(90vw, 520px);
        order: 2;
        transform: none;
    }

    .about-section__card::after {
        display: none;
    }

    .about-section__card h2,
    .about-section__card h3 {
        text-align: center;
    }
}

@media screen and (max-width: 639px) {
    .about-section {
        margin-bottom: 80px;
    }

    .about-section__card {
        margin: 24px auto 0;
        padding: 24px 20px;
        max-width: min(92vw, 460px);
    }

    .about-section__card p,
    .about-section__card ul,
    .about-section__card ol {
        font-size: 15px;
        line-height: 1.8;
    }

    .about-section__media {
        min-height: auto;
        width: min(92vw, 460px);
    }
}

@media screen and (max-width: 479px) {
    .about-section {
        margin-bottom: 60px;
    }

    .about-section__card {
        padding: 22px 18px;
        margin: 20px auto 0;
        max-width: min(94vw, 420px);
    }

    .about-section__media {
        min-height: auto;
        width: min(94vw, 420px);
    }
}

/* ==========================================================================
   PAGE CONTENT (опціонально з редактора)
   ========================================================================== */

.about-page__content {
    background-color: #ffffff;
    padding: 40px 0 80px;
}

.about-page__content-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    color: #3a3d4e;
    font-family: 'Gilroy', Arial, sans-serif;
}

.about-page__content-inner p {
    line-height: 1.8;
}


