/* ==========================
   BASE
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4f1eb;
    color: #202020;
    font-family: Manrope, sans-serif;
}

.contacts-hero {
    padding: 30px 0 80px;
}

.contacts-hero__row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}


.contacts-hero__container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
}

.contacts-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(0, 0, 0, .05);

    text-decoration: none;
    color: #666;

    font-size: 14px;
    font-family: "Manrope-Regular", sans-serif;

    cursor: pointer;

    transition: all .3s ease;
}

.contacts-hero__back:hover {
    background: rgba(0, 0, 0, .1);
    transform: translateY(-1px);
}

.contacts-hero__back:active {
    transform: translateY(0);
}


.contacts-hero__title {
    font-family: "AV Fontimer-SemiBold", sans-serif;
    position: static;
    z-index: 100;

    /*top: -60px;   !* меньше отрицательное значение = ниже *!*/
    /*left: 180px;  !* больше значение = правее *!*/

    font-size: 80px;
    font-weight: 700;
    line-height: .95;
    margin: 0 0 50px;
}

/* ==========================
   FOUNDER
========================== */

.founder-page {
    position: relative;
}

/* WATERMARK */

.founder-page__bg-title {
    font-family: "AV Fontimer-Black", sans-serif;
    position: absolute;
    top: -112px;

    left: 50%;
    transform: translateX(-50%);

    font-size: 140px;
    font-weight: 700;

    color: transparent;
    -webkit-text-stroke: 2px #d8d1c8;

    white-space: nowrap;

    z-index: 1;

    pointer-events: none;
    user-select: none;

    letter-spacing: 2px;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================
   DESKTOP
========================== */

.founder-page {
    display: grid;
    grid-template-columns: 520px 1fr;
    column-gap: 70px;
}

.founder-page__top {
    display: contents;
}

.founder-page__image-wrapper {
    grid-column: 1;
    grid-row: 1 / span 2;

    position: sticky;
    top: calc(50vh - 346px);

    align-self: start;
    height: fit-content;
}

/* ==========================
   BUTTON "О СЕБЕ"
========================== */

@keyframes learn-more-pulse {

    0%, 100% {
        opacity: 0;

    }

    50% {
        opacity: .45;
    }
}

.learn-more {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 10;

    width: 220px;
    height: 56px;

    border: none;
    background: transparent;
    padding: 0;

    cursor: pointer;
}

/* ---------- Капсула ---------- */

.learn-more__icon {

    position: absolute;
    inset: 0 auto auto 0;

    left: 0;
    top: 0;

    width: 50px;
    height: 50px;

    flex-shrink: 0;

    background: #11872f;
    border-radius: 999px;

    /*overflow: hidden;*/
    overflow: visible;

    transition:
            width .65s cubic-bezier(.22,.61,.36,1),
            border-radius .65s cubic-bezier(.22,.61,.36,1);
}

.learn-more__icon::after {
    content: "";

    position: absolute;

    inset: -7px;

    border-radius: 999px;

    border: 2px solid rgba(255,255,255,.45);

    animation: learn-more-pulse 3s ease-in-out infinite;

    pointer-events: none;
}

.learn-more:hover .learn-more__icon {

    width: 190px;
}

.learn-more:hover .learn-more__icon::before {
    animation: none;
    opacity: 0;
}

/* ---------- Галочка ---------- */

.learn-more__chevron {

    position: absolute;

    left: 22px;
    top: 50%;

    width: 10px;
    height: 10px;

    border-top: 2px solid #fff;
    border-right: 2px solid #fff;

    transform: translateY(-50%) rotate(45deg);

    transition: opacity .35s ease;
}

/* ---------- Стрелка ---------- */

.learn-more__arrow {

    position: absolute;

    left: 18px;
    top: 50%;

    width: 18px;
    height: 2px;

    background: #fff;

    transform: translateY(-50%) translateX(-4px);

    opacity: 0;

    transition:
            opacity .35s ease,
            transform .45s cubic-bezier(.22,.61,.36,1);
}

.learn-more__arrow::after {

    content: "";

    position: absolute;

    right: 0;
    top: 50%;

    width: 8px;
    height: 8px;

    border-top: 2px solid #fff;
    border-right: 2px solid #fff;

    transform: translateY(-50%) rotate(45deg);
}

/* ---------- Внешний текст ---------- */

.learn-more__text--outside {

    position: absolute;

    left: 72px;
    top: 45%;

    transform:translateY(-50%);

    font-family: "Manrope-SemiBold", sans-serif;
    font-size: 20px;
    /*font-weight: 700;*/

    color: #fff;

    text-transform: uppercase;
    white-space: nowrap;

    transition:
            opacity .2s ease;
}

/* ---------- Текст внутри ---------- */

.learn-more__text--inside {

    position: absolute;

    left: 72px;
    top: 50%;

    transform: translateY(-50%);

    font-family: "Manrope-SemiBold", sans-serif;
    font-size: 20px;
    /*font-weight: 700;*/

    color: #fff;

    text-transform: uppercase;
    white-space: nowrap;

    opacity: 0;

    transition:
            opacity .2s ease;
}

/* ---------- Hover ---------- */

.learn-more:hover .learn-more__text--outside {

    opacity: 0;
}

.learn-more:hover .learn-more__text--inside {
    transition-delay: .15s;
    opacity: 1;
}

.learn-more:hover .learn-more__chevron {

    opacity: 0;
}

.learn-more:hover .learn-more__arrow {

    opacity: 1;

    transform: translateY(-50%) translateX(10px);
}

.founder-page__header,
.founder-page__bottom {
    grid-column: 2;
}

.founder-page__header {
    position: relative;
    z-index: 2;
}

.founder-page__bottom {
    position: relative;
    z-index: 2;
}

.founder-page__image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
    overflow: hidden;
}

.founder-page__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-page__name {
    font-family: "AV Fontimer-SemiBold", sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: .95;
    margin-bottom: 20px;
    color: #222;
}

.founder-page__position {
    font-family: "Manrope-Medium", sans-serif;
    font-size: 28px;
    color: #2f9d46;
    margin-bottom: 15px;
    line-height: 1.3;
}

.founder-page__text p {
    font-family: "Manrope-Regular", sans-serif;
    font-size: 18px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 20px;
}

.founder-page__quote {
    font-family: "Manrope-Medium", sans-serif;
    margin-top: 40px;
    padding-top: 0;

    font-size: 34px;
    font-weight: 500;
    line-height: 1.4;

    color: #222;
}

@media (min-width: 1024px) {

    .founder-page {
        display: grid;
        grid-template-columns: 520px 1fr;
        gap: 2px 70px;
        align-items: start;
        position: relative;
    }

    .founder-page__top {
        display: contents;
    }

    .founder-page__image-wrapper {
        grid-column: 1;
        grid-row: 1 / span 2;

        align-self: start;
    }

    .founder-page__image {
        position: static;
        top: auto;
    }

    .founder-page__header {
        grid-column: 2;
        grid-row: 1;
        margin-top: 20px;
    }

    .founder-page__bottom {
        grid-column: 2;
        grid-row: 2;
        /*margin-top: 20px;*/
    }
}

/* ==========================
   TABLET
========================== */

@media (max-width: 1240px) {

    .founder-page__image-wrapper {
        position: static;
        top: auto;
    }

    .contacts-hero__container {
        padding: 0 24px;
    }

    .contacts-hero__row {
        margin-bottom: 50px;
        gap: 24px;
    }

    .contacts-hero__title {

        margin: 0 0 30px;

        font-size: 56px;

    }

    .founder-page {
        display: block;
    }

    .founder-page__bg-title {
        position: absolute;
        top: -80px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 90px;
        opacity: .5;
        z-index: 3;
    }

    .founder-page__top {
        display: flex;
        gap: 30px;
        align-items: flex-start;
        margin-top: -50px; /* убрать верхний отступ */
        padding-top: 0;
        margin-bottom: 35px;
        position: relative;
        z-index: 2;
    }

    .founder-page__image-wrapper {
        flex: 0 0 320px;
    }

    .founder-page__image {
        position: static;
        width: 100%;
    }

    .founder-page__header {
        flex: 1;
        margin-top: 20px;
    }

    .founder-page__name {
        font-size: 48px;
        line-height: 1;
        margin-bottom: 12px;
    }

    .founder-page__position {
        font-size: 24px;
        margin-bottom: 0;
    }

    .founder-page__text p {
        font-size: 16px;
        line-height: 1.7;
    }

    .founder-page__quote {
        font-size: 28px;
    }
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 480px) {

    .founder-page__image-wrapper {
        position: static;
        top: auto;
    }

    .contacts-hero {
        padding: 15px 0 40px;
    }

    .contacts-hero__container {
        padding: 0 16px;
    }

    .contacts-hero__row {
        flex-direction: row;
        align-items: center;
        margin-bottom: 70px;
        gap: 12px;
    }

    .contacts-hero__title {
        font-size: clamp(38px, 11.5vw, 56px);
        line-height: 1;
        margin: 0;
    }


    .founder-page__bg-title {
        display: none;
    }

    .founder-page__top {
        flex-direction: column;
        margin-top: -40px;
        gap: 20px;
        margin-bottom: 25px;
    }

    .founder-page__image-wrapper {
        width: 100%;
        flex: none;
    }

    .founder-page__image {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
        border-radius: 14px;
    }

    .founder-page__name {
        font-size: 24px;
        line-height: 1.05;
        margin-bottom: 8px;
    }

    .founder-page__position {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .founder-page__text p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 16px;
    }

    .founder-page__quote {
        font-size: 20px;
        margin-top: 25px;
        padding-top: 20px;
    }

    .back-text {
        display: none;
    }

    .back-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .founder-page__image-wrapper {
        position: relative;
    }

    .learn-more {
        left: 12px;
        bottom: 12px;

        width: 180px;
        height: 44px;
    }

    .learn-more__icon {
        width: 44px;
        height: 44px;
    }

    .learn-more:hover .learn-more__icon {
        width: 160px;
    }

    .learn-more__chevron {
        left: 17px;

        width: 8px;
        height: 8px;
    }

    .learn-more__arrow {
        left: 14px;
        width: 15px;
    }

    .learn-more__text--outside,
    .learn-more__text--inside {
        left: 58px;
        font-size: 16px;
    }
}