* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4f1eb;
    color: #222;
}

/* HERO */
.contacts-hero {
    padding: 80px 0 40px;
}

.contacts-hero__container,
.history__container,
.values__container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
}
.contacts-hero__back {
    font-family: "Manrope-Regular", sans-serif;
    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;

    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: relative;
    top: -65px;      /* вверх */
    left: 140px;     /* вправо */
    font-size: 96px;
    max-width: 70%;
}

/* HISTORY */
.history {
    padding-bottom: 0px;
}

.history__title {
    font-family: "Manrope-Medium", sans-serif;
    text-align: center;
    color: #2f9d48;
    font-size: 30px;
    margin-top: -70px;
    margin-bottom: 70px;
}

.history__timeline {
    position: relative;
}

.history__timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #69c57a;
    transform: translateX(-50%);
}

.history-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 90px;

    opacity: 0;
    transform: translateY(50px);
    transition: 0.8s ease;
}

.history-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #159438;
    transform: translateX(-50%);
}

.history-item__image img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.history-item__content {
    font-family: "Manrope-Regular", sans-serif;
    padding-left: 40px;
}

.history-item__year {
    font-family: "AV Fontimer-SemiBold", sans-serif;
    font-size: 65px;
    font-weight: 700;
    margin-bottom: 20px;
}

.history-item__text,
.history-item__list {
    font-size: 20px;
    line-height: 1.6;
    color: #5f5f5f;
}

.history-item__list {
    padding-left: 25px;
}

.history-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== VALUES ===== */

.values {
    padding: 0 0 90px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    isolation: isolate;
}

.values__grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 80px;
    align-items: start;
}

/* ЛЕВАЯ КОЛОНКА */
.values__left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* главный заголовок */
.values__title {
    padding: 0 0 0 192px;
    font-family: "AV Fontimer-SemiBold", sans-serif;
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 50px;
    white-space: nowrap;
    position: relative;
    z-index: 5;
    transform: translateY(-10px); /* аккуратный подъём */
}

/* ПРАВАЯ КОЛОНКА */
.values__right {
    width: 100%;
    padding-left: 60px;
    position: relative;
    z-index: 2;
}

/* watermark */
.values__background {
    font-family:"AV Fontimer-Black", sans-serif ;
    position: absolute;
    top: -120px;
    left: -80px;

    font-size: 140px;
    font-weight: 700;

    color: transparent;
    -webkit-text-stroke: 2px #d8d1c8;

    white-space: nowrap;

    z-index: 0;
    user-select: none;
    pointer-events: none;

    /* главное исправление */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    letter-spacing: 2px;
}

/* текст блоки */
.values__text-big,
.values__text-small {
    font-family: "Manrope-Regular", sans-serif;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* большой текст */
.values__text-big {
    font-family: "Manrope-Medium", sans-serif;
    font-size: 28px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 35px;
}

/* акцент */
.values__text-big .accent {
    color: #ff7a1a;
    font-weight: 600;
}

/* маленький текст */
.values__text-small {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}
.history__timeline {
    position: relative;
}


/* ТОЧКИ НА ЛИНИИ */
.history-item {
    position: relative;
}

/* центральная точка */
.history-item::before {
    content: "";
    position: absolute;

    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #159438;
}
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== TABLET (до 1024px) ==================== */

@media (max-width: 1240px) {

    .contacts-hero {
        padding: 30px 0 40px;
    }

    .contacts-hero__container,
    .history__container,
    .values__container {
        max-width: 100%;
        padding: 0 16px;
    }

    .contacts-hero__row_1 {
        display: flex;
        align-items: center;
        gap: 40px;
    }

    .contacts-hero__title {
        position: static;
        font-size: 56px;
        max-width: 100%;
    }

    .history__title {
        font-size: 22px;
        margin-bottom: 25px;
        margin-top: 0;

    }

    .history-item {
        gap: 40px;
        margin-bottom: 70px;
    }

    .history-item__year {
        font-size: 48px;
    }

    .history-item__text,
    .history-item__list {
        font-size: 18px;
    }

    /* ===== ЦЕННОСТИ ===== */
    .values {
        padding: 60px 0;
    }

    .values__title {
        padding: 0 0 0 0;
        font-size: 56px;
        margin-bottom: 20px;
        transform: none;
        white-space: normal;
        position: relative;
        z-index: 5;

    }

    .values__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .values__left {
        display: none;
    }

    .values__right {
        padding-left: 0;
        position: relative;
    }

    .values__background {
        display: block;

        position: absolute;
        top: -60px;

        left: 50%;
        transform: translateX(-50%);

        font-size: 90px;
        font-weight: 700;

        color: transparent;
        -webkit-text-stroke: 2px #b8aa98;

        white-space: nowrap;

        z-index: 0;
        user-select: none;
        pointer-events: none;

        opacity: 0.35;

        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .values__text-big {
        font-size: 22px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .values__text-small {
        font-size: 16px;
        line-height: 1.8;
    }

    .values__text-small p {
        margin-bottom: 15px;
    }

    .values__text-small p:last-child {
        margin-bottom: 0;
    }


}


/* ==================== MOBILE (до 480px) ==================== */

@media (max-width: 480px) {

    .contacts-hero {
        padding: 15px 0 20px;
    }

    .contacts-hero__container,
    .history__container,
    .values__container {
        /*display: contents;*/
        padding: 0 15px;
    }

    .contacts-hero__back {
        font-size: 14px;
        padding: 10px 18px;
    }

    .back-text {
        display: none;
    }

    .contacts-hero__row_1 {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .contacts-hero__title {
        font-size: 32px;
        margin: 0;
    }

    /*.contacts-hero__title {*/
    /*    font-size: 32px;*/
    /*    margin-top: 35px;*/
    /*}*/

    .history {
        padding-bottom: 0px;
    }

    .history__title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .history__timeline::before {
        left: 18px;
        transform: none;
        width: 3px;
    }

    .history-item::before {
        left: 17px;
        transform: none;
        width: 14px;
        height: 14px;
        margin-left: -5px;
    }

    .history-item {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 35px;
        padding-left: 38px;

        grid-template-columns: none !important;
    }

    .history-item__image {
        max-width: 100%;
        order: 1;
    }

    .history-item__image img {
        border-radius: 8px;
    }

    .history-item__content {
        padding-left: 0;
        order: 0;
    }

    .history-item__year {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .history-item__text,
    .history-item__list {
        font-size: 14px;
        line-height: 1.5;
    }

    .history-item__list {
        padding-left: 18px;
    }

    .history-item__list li {
        margin-bottom: 4px;
    }

     /* ===== ЦЕННОСТИ (МОБИЛЬНАЯ ВЕРСИЯ) ===== */
    .values {
        padding: 30px 0;
    }

    .values__title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .values__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .values__background {
            display: none;
    }

    .values__left {
        display: none;
    }

    .values__right {
        padding-left: 0;
    }

    .values__text-big {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .values__text-big .accent {
        color: #ff7a1a;
        font-weight: 600;
    }

    .values__text-small {
        font-size: 15px;
        line-height: 1.6;
    }

    .values__text-small p {
        margin-bottom: 16px;
    }

    .values__text-small p:last-child {
        margin-bottom: 0;
    }

    .back-text {
       display: none;
    }

    .back-icon {
        font-size: 18px;
    }
}