

@font-face {
    font-family: "TT Ricordi Allegria";
    src: url(/fonts/TT-Ricordi-Allegria-Trial.woff2) format("woff2"),
         url(/fonts/TT-Ricordi-Allegria-Trial.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Century Gothic Paneuropean";
    src: url(/fonts/Century-Gothic-Paneuropean.woff2) format("woff2"),
         url(/fonts/Century-Gothic-Paneuropean.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ===== ОБЩИЕ СТИЛИ ===== */

* {
    margin: 0;
    padding: 0;
   box-sizing: border-box;
}


body {
    background-color: #353432;
    color: #f3eee6;
    font-family: "Century Gothic Paneuropean", Arial, sans-serif;
     width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 80px, 1720px);
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 1440px) {
    .container {
        width: min(100% - 64px, 1720px);
    }
}

@media (max-width: 1024px) {
    .container {
        width: min(100% - 48px, 1720px);
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 32px, 1720px);
    }
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}


/* HERO */

.hero {
    padding-top: 8px;
}

.hero__box {
    position: relative;
    border: 1px solid rgba(243, 238, 230, 0.25);
    border-radius: 14px;
    padding: 22px 22px 0 22px;
    
}

.hero__box::after {
    content: "";
    position: absolute;
    right: 34px;         /* подгоняем под положение цитаты */
    bottom: 10px;
    width: 430px;        /* ширина зоны, где нужно скрыть нижнюю линию */
    height: 3px;
    background: #353432; /* цвет фона страницы/контейнера */
    z-index: 2;
}

.hero__main {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
    column-gap: clamp(28px, 4.8vw, 84px);
    align-items: start;
        min-height: 598px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.hero__title {
    margin-top: clamp(24px, 3vw, 55px);
    max-width: 700px;
    font-size: clamp(40px, 3.2vw, 55px);
    font-family: "TT Ricordi Allegria", serif;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    color: #f3eee6;
}

.hero__subtitle {
     margin-top: clamp(24px, 3.5vw, 60px);
    max-width: 733px;
    font-size: clamp(20px, 1.65vw, 28px);
    font-family: "Century Gothic Paneuropean", Arial, sans-serif;
    line-height: 1.2;
    color: rgba(243, 238, 230, 0.9);
}

.swipe-btn {
    width: min(100%, 500px);
    margin-top: clamp(32px, 5vw, 110px);
    margin-bottom: clamp(32px, 5vw, 110px);
    height: 52px;
    border-radius: 8px;
    border: 1px solid rgba(243, 238, 230, 0.8);
    position: relative;
    overflow: visible ;
    user-select: none;
    cursor: pointer;
    background: transparent;
}

.swipe-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 64px;
    font-size: 18px;
    line-height: 1;
    color: #f3eee6;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.swipe-bg {
    width: 52px;
    height: 52px;
    background: #f3eee6;
    border-radius: 6px;
    position: absolute;
    overflow: visible;
    left: 0px;
    top: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
    z-index: 1;
}

/* волны */
.ripple {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);

    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;


    pointer-events: none;
}

/* первая волна */
.ripple:nth-child(2) {
    animation: rippleAnim 1.2s infinite;
}

/* вторая волна (с задержкой) */
.ripple:nth-child(3) {
    animation: rippleAnim 1.2s infinite;
    animation-delay: 0.4s;
}
@keyframes rippleAnim {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.5;
    }

    70% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.swipe-arrow {
   display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Century Gothic Paneuropean", Arial, sans-serif;
    font-size: 24px;
    line-height: 1;
    color: #353432;
    padding-bottom: 5px;
}

.swipe-btn.active .swipe-bg {
    background-color: #e9e6e6;
}

.hero__media {
    position: relative;
    display: flex;
     align-self: stretch;
    min-height: 0;
    overflow: hidden;
    justify-content: flex-end;
}

.hero__image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.hero__cat {
    width: min(100%, 760px);
    height: auto;
    max-height: 610px;
    object-fit: contain;
     object-position: center top;
}

.hero__bottom {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    z-index: 3;
}

.hero__advantages {
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: nowrap;
    padding-bottom: 16px;
    max-width: 58%;
}

.hero__advantage {
    font-size: clamp(20px, 0.65vw, 16px);
    line-height: 1.2;
    color: rgba(243, 238, 230, 0.82);
    white-space: nowrap;
}

.hero__quote {
    position: absolute;
    right: clamp(12px, 4vw, 72px);
    min-width: 0;
    width: min(42vw, 600px);
    bottom: -2px;
    padding: 14px 28px 12px;
    border: 1px solid rgba(243, 238, 230, 0.24);
    border-bottom: none;
    border-radius: 32px 32px 0 0;
    background-color: #353432;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}




.hero__note {
    margin: 0;
    text-align: center;
    font-family: "TT Ricordi Allegria", serif;
    font-size: clamp(20px, 1.7vw, 30px);
    line-height: 1.2;
    text-transform: uppercase;
    color: #f3eee6;
}

/* POPUP */

.popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

.popup.is-open {
    display: block;
}

.popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.popup__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    margin: 120px auto 0;
    padding: 32px;
    background: #403f3d;
    border: 1px solid rgba(243, 238, 230, 0.3);
    border-radius: 12px;
    color: #f3eee6;
}

.popup__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #f3eee6;
    font-size: 32px;
    cursor: pointer;
}

.popup__title {
    margin-bottom: 14px;
    font-family: "TT Ricordi Allegria", serif;
    font-size: 42px;
    line-height: 1;
    text-transform: uppercase;
}

.popup__text {
    font-size: 16px;
    line-height: 1.45;
    color: rgba(243, 238, 230, 0.88);
}




/* Адаптив шапки и первого экрана, ноутбуки */
@media (max-width: 1440px) {

    .hero__box {
        min-height: 620px;
        padding: 20px 20px 0 20px;
    }

    .hero__main {
        grid-template-columns: minmax(420px, 580px) 1fr;
        column-gap: 48px;
    }

    .hero__title {
        margin-top: 32px;
        font-size: 45px;
        max-width: 580px;
    }

    .hero__subtitle {
        margin-top: 70px;
        max-width: 620px;
        font-size: 22px;
    }

    .swipe-btn {
        width: 420px;
        height: 52px;
        margin-top: 72px;
    }

    .swipe-text {
        font-size: 16px;
    }

    .swipe-bg {
        width: 52px;
        height: 52px;
    }

    .swipe-arrow {
        font-size: 20px;
    }

    .hero__cat {
        width: min(100%, 760px);
        height: 100%;
    }

    .hero__advantages {
        gap: 20px;
        max-width: 54%;
    }

    .hero__advantage {
        font-size: 16px;
    }

    .hero__quote {
        right: 10px;
        min-width: 470px;
        padding: 12px 22px 10px;
    }

    .hero__note {
        font-size: 24px;
    }

    .hero__box::after {
        right: 24px;
        width: 360px;
    }
}

/* Адаптив шапки и первого экрана, ноутбуки */
@media (max-width: 1360px) {
    .hero__box {
        min-height: 560px;
        padding: 20px 20px 0 20px;
    }

    .hero__main {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
        column-gap: 36px;
    }

    .hero__advantages {
        display: none;
    }

    .hero__cat {
        width: min(100%, 640px);
        margin: 0;
    }

    .hero__quote {
        right: 20px;
        width: min(46vw, 470px);
    }

    .swipe-btn {
        width: min(100%, 420px);
        margin-top: 36px;
    }
}

/* Адаптив шапки и первого экрана, планшеты */
@media (max-width: 1024px) {
    .hero__box {
    min-height: 760px;
    padding: 20px 20px 0 20px;
    overflow: hidden;
}

.hero__main {
    grid-template-columns: 1fr;
    row-gap: 0;
}

.hero__content {
    max-width: 100%;
    position: relative;
    z-index: 3;
}

.hero__title {
    margin-top: 16px;
    max-width: 560px;
    font-size: 44px;
    line-height: 1.06;
}

.hero__subtitle {
    margin-top: 62px;
    max-width: 520px;
    font-size: 22px;
}

.swipe-btn {
    width: 100%;
    max-width: 308px;
    margin-top: 275px;
}

.swipe-text {
    font-size: 14px;
    }

.hero__media {
    position: absolute;
    right: -19px;
    bottom: 70px;
    width: 62%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 2;
}

.hero__image-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero__cat {
    width: min(100%, 620px);
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

/* нижний блок теперь снова абсолютный */
.hero__bottom {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    display: block;
    z-index: 4;
}

/* преимущества слева от кота, в столбик */
.hero__advantages {
    position: absolute;
    left: 0;
    bottom: 118px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 109px;
}

.hero__advantage {
    font-size: 16px;
    line-height: 1.25;
    white-space: normal;
}

/* цитата ровно на нижней линии */
.hero__quote {
    position: absolute;
    right: 13px;
    bottom: -3px;
    width: 52%;
    min-width: auto;
    max-width: 520px;
    padding: 20px 18px 12px;
    border-radius: 28px 28px 0 0;
}

.hero__note {
    font-size: 19px;
    line-height: 1.08;
}

.hero__box::after {
    right: 0;
    width: 52%;
    max-width: 520px;
    display: block;
    
}
}
/* Адаптив шапки и первого экрана, мобильные */
@media (max-width: 767px) {
    .hero {
        padding-top: 6px;
    }

    .hero__box {
        min-height: auto;
        padding: 16px 16px 16px;
        border-radius: 12px;
    }

    .hero__main {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .hero__title {
        margin-top: 8px;
        font-size: 28px;
        line-height: 1.08;
        max-width: 100%;
    }

    .hero__subtitle {
        margin-top: 22px;
        font-size: 16px;
        max-width: 100%;
        line-height: 1.4;
    }

    .swipe-btn {
        width: 100%;
        max-width: 100%;
        height: 45px;
        margin-top: 154px;
        margin-bottom: 150px;
    }

    .swipe-text {
        padding: 0 52px;
        font-size: 14px;
    }

    .swipe-bg {
        width: 44px;
        height: 44px;
        top: 0px;
        left: 0px;
    }

    .swipe-arrow {
        font-size: 18px;
    }

    .hero__media {
        min-height: auto;
        justify-content: center;
        bottom: 50px;
        right: 38px;
        width: 80%;
    }

    .hero__image-wrap {
        justify-content: center;
    }

    .hero__cat {
        width: min(100%, 400px);
        height: 100%;
    }

    .hero__bottom {
        position: static;
        margin-top: 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .hero__advantages {
        max-width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        bottom: 315px;
        Padding-left: 16px;
    }

    .hero__advantage {
        font-size: 14px;
        line-height: 1.3;
    }

    .hero__quote {
        position: relative;
        right: auto;
        bottom: -18px;
        min-width: 100%;
        width: 100%;
        padding: 12px 16px 10px;
        border-radius: 24px 24px 0 0;
    }

    .hero__quote::before,
    .hero__quote::after {
        display: none;
    }

    .hero__note {
        font-size: 20px;
        line-height: 1.1;
    }

    .popup__content {
        max-width: calc(100% - 32px);
        margin-top: 80px;
        padding: 24px 20px;
    }

    .popup__title {
        font-size: 30px;
    }

    .popup__text {
        font-size: 14px;
    }
}
/* Адаптив шапки и первого экрана, мобильные мин. */
@media (max-width: 375px) {
    .hero {
        padding-top: 6px;
    }

    .hero__box {
        min-height: auto;
        padding: 16px 16px 16px;
        border-radius: 12px;
    }

    .hero__main {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .hero__title {
        margin-top: 8px;
        font-size: 24px;
        line-height: 1.08;
        max-width: 100%;
    }

    .hero__subtitle {
        margin-top: 22px;
        font-size: 14px;
        max-width: 100%;
        line-height: 1.4;
    }

    .swipe-btn {
        width: 100%;
        max-width: 100%;
        height: 44px;
        margin-top: 154px;
        margin-bottom: 150px;
    }

    .swipe-text {
        padding: 0px 0px 0px 33px;
        font-size: 14px;
    }

    .swipe-bg {
        width: 44px;
        height: 44px;
        top: 0px;
        left: 0px;
    }

    .swipe-arrow {
        font-size: 18px;
    }

    .hero__media {
        min-height: auto;
        justify-content: center;
        bottom: 52px;
        right: 35px;
    }

    .hero__image-wrap {
        justify-content: center;
    }

    .hero__cat {
        width: min(100%, 460px);
        height: 100%;
        margin: 0 auto;
    }

    .hero__bottom {
        position: static;
        margin-top: 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .hero__advantages {
        max-width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        bottom: 319px;
        Padding-left: 16px;
    }

    .hero__advantage {
        font-size: 12px;
        line-height: 1.3;
    }

    .hero__quote {
        position: relative;
        right: auto;
        bottom: -18px;
        min-width: 100%;
        width: 100%;
        padding: 12px 16px 10px;
        border-radius: 24px 24px 0 0;
    }

    .hero__quote::before,
    .hero__quote::after {
        display: none;
    }

    .hero__note {
        font-size: 13px;
        line-height: 1.2;
    }

    .popup__content {
        max-width: calc(100% - 32px);
        margin-top: 80px;
        padding: 24px 20px;
    }

    .popup__title {
        font-size: 30px;
    }

    .popup__text {
        font-size: 14px;
    }
}

/* Адаптив шапки и первого экрана, мобильные 320 */
@media (max-width: 320px) {
    .hero__advantages {
        gap: 10px;
        bottom: 265px;
      
    }
}



/* ===== Когда мы нужны ===== */

.process {
    margin-top: 30px;
}

.process__box {
    position: relative;
    padding-top:50px
}

.process__head {
    margin-bottom: 18px;
}

.process__label {
    font-size: 20px;
    line-height: 1.2;
    color: rgba(243, 238, 230, 0.9);
}

.process__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "intro card1 card2"
        "card3 card4 aside";
    gap: 49px;
    align-items: start;
}


.process__intro {
    grid-area: intro;
    padding-top: 4px;
}

.process__title {
    font-family: "TT Ricordi Allegria", serif;
    font-size: 64px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    color: #f3eee6;
}

.process-card--top:nth-of-type(1) {
    grid-area: card1;
}

.process-card--top:nth-of-type(2) {
    grid-area: card2;
}

.process-card--bottom:nth-of-type(3) {
    grid-area: card3;
}

.process-card--bottom:nth-of-type(4) {
    grid-area: card4;
}


.process-card {
    position: relative;
    overflow: visible;
    min-height: 373px;
    padding: 26px 24px 25px;
    border-radius: 12px 1px 8px 8px;
    background: rgb(109, 106, 104, 0.5);
    color: #f3eee6;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

.process-card:hover {
    transform: translateY(-4px);
    background: #7a7775;
}

.process-card__decor {
    position: absolute;
    top: -41px;
    right: 0px;
    width: 120px;
    height: 42px;
    background: #8a8785;
    border-radius: 29px 12px 0px 7px;
    z-index: 3;
}

.process-card__decor::before {
    content: "";
    position: absolute;
    left: -32px;
    bottom: 1px;
    width: 32px;
    height: 19px;
    border-bottom-right-radius: 40px;
    box-shadow: 17px 2px 0px -1px #8a8785;
}

.process-card__title {
    margin-bottom: 49px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;
}

.process-card__text {
    min-height: 116px;
    font-size: 32px;
    line-height: 1.12;
    color: #f3eee6;
}

.process-card__tags {
    margin-top: 69px;
    font-size: 20px;
    line-height: 1.2;
    color: rgba(243, 238, 230, 0.88);
}

.process__aside {
    grid-area: aside;
    align-self: end;
    padding: 8px 0 0;
}

.process__aside-text {
    max-width: 500px;
    margin-bottom: 1px;
    font-family: "TT Ricordi Allegria", serif;
    font-size: 36px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #f3eee6;
}

.process__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 340px;
    height: 54px;
    padding-left: 18px;
    border: 1px solid rgba(243, 238, 230, 0.7);
    border-radius: 6px;
    color: #f3eee6;
    overflow: hidden;
    margin-top: 50px;
}

.process__btn span:first-child {
    font-size: 18px;
    line-height: 1;
}

.process__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-left: 1px solid rgba(243, 238, 230, 0.7);
    font-size: 20px;
    line-height: 1;
}
.process__aside .swipe-btn {
    margin-top: 50px;
}

/*Адаптив шапки и первого экрана, ноутбуки */

@media (max-width: 1440px) {
    .process__label {
        font-size: 18px;
    }

    .process__grid {
        gap: 66px;
    }

    .process__title {
        font-size: 54px;
    }

    .process-card {
        min-height: 318px;
        padding: 22px 20px 18px;
    }

    .process-card__title {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .process-card__text {
        min-height: 94px;
        font-size: 28px;
    }

    .process-card__tags {
        font-size: 16px;
    }

    .process__aside-text {
        font-size: 30px;
        max-width: 450px;
    }

    .process__btn {
        min-width: 300px;
        height: 50px;
    }

    .process__btn-icon {
        width: 50px;
        height: 50px;
    }
}

/* Адаптив шапки и первого экрана, планшеты */

@media (max-width: 1024px) {
    .process {
        margin-top: 24px;
    }

    .process__head {
        margin-bottom: 16px;
    }

    .process__label {
        font-size: 16px;
    }

    .process__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "intro intro"
            "card1 card2"
            "card3 card4"
            "aside aside";
        gap: 100px 80px;
    }

    .process__title {
        font-size: 46px;
        max-width: 800px;
    }

    .process-card {
        min-height: 220px;
        padding: 20px 18px 18px;
    }

    .process-card__decor {
        width: 78px;
        height: 42px;
    }

    .process-card__title {
        font-size: 18px;
        margin-bottom: 22px;
    }

    .process-card__text {
        min-height: auto;
        font-size: 21px;
    }

    .process-card__tags {
        margin-top: 53px;
        font-size: 13px;
    }

    .process__aside {
        padding-top: 4px;
    }

    .process__aside-text {
        max-width: 100%;
        margin-bottom: 24px;
        font-size: 28px;
    }

    .process__btn {
        min-width: 300px;

    }

    .process__aside .swipe-btn {
    width: 100%;
    max-width: 442px;
    float: right;
    margin-top: 20px;
    margin-bottom: -20px;

}
}

/* Адаптив шапки и первого экрана, мобильные */

@media (max-width: 767px) {
    .process {
        margin-top: 20px;
    }

    .process__head {
        margin-bottom: 14px;
    }

    .process__label {
        font-size: 14px;
    }

    .process__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "card1"
            "card2"
            "card3"
            "card4"
            "aside";
        gap: 60px;
    }

    .process__title {
        font-size: 31px;
        line-height: 1.06;
        max-width: 100%;
    }

    .process-card {
        min-height: auto;
        padding: 18px 16px 16px;
        border-radius: 8px;
    }

    .process-card__decor {
        width: 64px;
        height: 30px;
        top: -26px;
    }

    .process-card__decor::before {
       left: -29px;
    } 

    .process-card__title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .process-card__text {
        font-size: 20px;
        line-height: 1.15;
    }

    .process-card__tags {
        margin-top: 48px;
        font-size: 16px;
        line-height: 1.3;
    }

    .process__aside-text {
        font-size: 24px;
        line-height: 1.06;
        margin-bottom: 18px;
    }

    .process__btn {
        width: 100%;
        min-width: 100%;
        height: 48px;
        padding-left: 14px;
    }

    .process__btn span:first-child {
        font-size: 14px;
    }

    .process__btn-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Адаптив шапки и первого экрана, мобильные мин. */

@media (max-width: 375px) {
    .process__title {
        font-size: 23px;
    }

    .process-card__text {
        font-size: 22px;
    }

    .process__aside-text {
        font-size: 18px;
    }

        .process-card__tags {
        font-size: 12px;
    }

        .process__aside-text {
            line-height: 1.2;
        }

}

/* Мы нужны когда */

.problems {
    margin-top: 30px;
}

.problems__box {
    display: grid;
    grid-template-columns: 1fr 632px;
    gap: 48px;
    align-items: start;
    padding: 70px 0px 70px 0px;

}

.problems__content {
    max-width: 100%;
}

.problems__label {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.2;
    color: rgba(243, 238, 230, 0.9);
}

.problems__title {
    margin-bottom: 26px;
    font-family: "TT Ricordi Allegria", serif;
    font-size: 64px;
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
    color: #f3eee6;
}

.problems__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.problems__item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 14px;
    align-items: start;
}

.problems__text {
    font-size: 25px;
    line-height: 1.2;
    color: #f3eee6;
}

.problems__visual {
    position: relative;
    width: 100%;
    max-width: 631px;
}

.problems__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.problems__quote {
    position: absolute;
    right: 0;
    top: 119px;
    width: 392px;
    padding: 18px 14px 16px;
    background: rgba(53, 52, 50, 0.96);
}

.problems__quote-text {
    font-family: "TT Ricordi Allegria", serif;
    font-size: 55px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #f3eee6;
     /* 🔥 анимация */
    animation: floatText 4s ease-in-out infinite;
}

/* Иконка загрузки блока когда мы нужны */

.loader {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
    background: conic-gradient(
        rgba(255,255,255,0.9) 0deg,
        rgba(255,255,255,0.9) 20deg,
        rgba(255,255,255,0.6) 40deg,
        rgba(255,255,255,0.3) 60deg,
        rgba(255,255,255,0.05) 90deg,
        transparent 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent 60%, black 83%);
            mask: radial-gradient(farthest-side, transparent 82%, black 83%);
    animation: spin 3.2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatText {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Адаптив шапки и первого экрана, ноутбуки */

@media (max-width: 1440px) {
    .problems__box {
        grid-template-columns: 1fr 471px;
        gap: 48px; 
        padding: 50px 0px 50px 0px;
    }

    .problems__label {
        font-size: 18px;
    }

    .problems__title {
        font-size: 54px;
        margin-bottom: 22px;
    }

    .problems__list {
        gap: 16px;
    }

    .problems__item {
        grid-template-columns: 20px 1fr;
        gap: 12px;
    }

    .problems__text {
        font-size: 20px;
    }

    .problems__visual {
        max-width: 472px;
    }

    .problems__quote {
        top: 86px;
        width: 306px;
        padding: 16px 12px 14px;
    }

    .problems__quote-text {
        font-size: 42px;
    }

    .problems__content{
    padding: 0px 50px 0px 0px;
    }

    .loader {
        width: 16px;
        height: 16px;
    }
}

/* Адаптив шапки и первого экрана, планшеты */

@media (max-width: 1024px) {
    .problems {
        margin-top: 24px;
    }

    .problems__box {
        grid-template-columns: 1fr ;
        gap: 28px;
    }

    .problems__content {
        order: 1;
    }

    .problems__visual {
        order: 2;
        max-width: 720px;
        margin-left: 0;
        margin-right: auto;
    }

    .problems__label {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .problems__title {
        font-size: 46px;
        margin-bottom: 22px;
    }

    .problems__text {
        font-size: 21px;
    }

    .problems__quote {
        top: 166px;
        right: 0;
        width: 429px;
    }

    .problems__content {
        padding: 0px 0px 0px 0px;
    }

    .problems__quote-text {
        font-size: 52px;
    }
}

/* Адаптив шапки и первого экрана, мобильные */

@media (max-width: 767px) {
    .problems {
        margin-top: 20px;
    }

    .problems__box {
        gap: 20px;
        padding: 70px 0px 0px 0px;
    }

    .problems__label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .problems__title {
        font-size: 34px;
        line-height: 1.04;
        margin-bottom: 18px;
    }

    .problems__list {
        gap: 14px;
    }

    .problems__item {
        grid-template-columns: 18px 1fr;
        gap: 10px;
    }

    .problems__text {
        font-size: 20px;
        line-height: 1.25;
    }

    .problems__visual {
        max-width: 100%;
        max-height: 356px;
    }

    .problems__quote {
        top: 80px;
        right: 12px;
        width: 236px;
        padding: 12px 10px;
    }

    .problems__quote-text {
        font-size: 32px;
        line-height: 1.2;
    }

    .problems__content {
        padding: 0px 0px 0px 0px;
    }

    .loader {
        width: 14px;
        height: 14px;
        margin-top: 3px;
    }
}

/* Адаптив шапки и первого экрана, мобильные мин. */

@media (max-width: 375px) {
    .problems__title {
        font-size: 28px;
    }

    .problems__text {
        font-size: 18px;
    }

    .problems__quote {
        position: relative;
        top: -226px;
        right: -123px;
        width: 65%;
        margin-top: 12px;
    }

    .problems__quote-text {
        font-size: 20px;
    }

    .problems__visual {
        max-width: 100%;
        max-height: 275px;
    }

        .problems__content {
        padding: 0px 0px 0px 0px;
    }
}



/* Мы не продаем услуги */

.growth {
    margin-top: 30px;
}

.growth__box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;

    padding: 50px 0; /* 🔥 как ты просила */
}

/* ЛЕВАЯ ЧАСТЬ */

.growth__label {
    margin-bottom: 14px;
    font-size: 20px;
    color: rgba(243, 238, 230, 0.8);
}

.growth__title {
    margin-bottom: 65px;
    font-family: "TT Ricordi Allegria", serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.growth__text {
    margin-bottom: 80px;
    max-width: 640px;
    font-size: 25px;
    line-height: 1.4;
    color: rgba(243, 238, 230, 0.9);
}

/* ПРАВАЯ ЧАСТЬ */

.growth__visual {
    display: flex;
    justify-content: right;
    align-items: center;
}

.growth__image {
    width: 100%;
    max-width: 804px;
    height: auto;
}

/* Адаптив шапки и первого экрана, ноутбуки */
@media (max-width: 1440px) {
    .growth__box {
        gap: 60px;
    }

    .growth__title {
        font-size: 54px;
    }

    .growth__text {
        font-size: 20px;
    }

    .growth__image {
        max-width: 658px;
    }
}
/* Адаптив шапки и первого экрана, планшеты */
@media (max-width: 1024px) {
    .growth__box {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }

    .growth__visual {
        order: 2;
    }

    .growth__content {
        order: 1;
    }

    .growth__title {
        font-size: 46px;
        padding-right: 90px;
    }

    .growth__visual {
    justify-content: center;
}

    .growth__image {
        max-width: 730px;
    }
}
/* Адаптив шапки и первого экрана, мобильные */
@media (max-width: 767px) {
    .growth {
        margin-top: 20px;
    }

    .growth__box {
        gap: 20px;
        padding-bottom: 50px;
        padding-top: 70px;
    }

    .growth__label {
        font-size: 14px;
    }

    .growth__title {
        font-size: 34px;
        line-height: 1.2;
        padding-right: 3px;
        margin-bottom: 36px;
    }

    .growth__text {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 22px
    }

    .growth__image {
        max-width: 100%;
    }
}
/* Адаптив шапки и первого экрана, мобильные мин. */
@media (max-width: 375px) {

    .growth__box {
        gap: 20px;
        padding-bottom: 50px;
        padding-top: 50px;
    }

    .growth__title {
        font-size: 24px;
    }

    .growth__text {
        font-size: 16px;
    }
}




/* Кейс */

.cases {
    margin-top: 30px;
}

.cases__box {
     position: relative;
    padding: 28px 18px 28px;
    border: 1px solid rgba(243, 238, 230, 0.25);
    border-top: none;
    border-left: none;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
    margin-bottom: 50px;
}
.cases__quote {
      position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 110px;
    background: #353432;
    z-index: 4;
    pointer-events: none;
}


.cases__head {
    margin-bottom: 16px;
}

.cases__label {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.2;
    color: rgba(243, 238, 230, 0.85);
}

.cases__title {
    font-family: "TT Ricordi Allegria", serif;
    font-size: 58px;
    line-height: 0.98;
    font-weight: 400;
    text-transform: uppercase;
    color: #f3eee6;
}

/* ломаная верхняя рамка */
.cases__frame {
    position: absolute;
    top: -88px;
    left: 0;
    right: 0;
    height: 0px;
    pointer-events: none;
    z-index: 3;
}

.cases__frame-line {
    position: absolute;
    display: block;
    background: rgba(243, 238, 230, 0.25);
}

.cases__frame-line--left {
     left: 1px;
    top: 267px;
    width: 500px;
    height: 1px;
}

.cases__frame-line--diag {
     left: 501px;
    top: 268px;
    width: 234px;
    height: 1px;
    transform: rotate(-50deg);
    transform-origin: left center;
}

.cases__frame-line--top {
    left: 651px;
    right: 4px;
    top: 89px;
    height: 1px;
}

.cases__frame-line--right{
    left: 2px;
    width: 1px;
    right: 4px;
    top: 269px;
    height: 542px;
}

.cases__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 584px;
    gap: 36px;
    align-items: start;
}

.cases__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 6px;
}

.cases__subtitle {
    max-width: 760px;
    margin-bottom: 36px;
    font-size: 35px;
    line-height: 1.2;
    text-transform: uppercase;
    color: rgba(243, 238, 230, 0.88);
}

.cases__text {
    max-width: 760px;
    margin-bottom: 34px;
    font-size: 20px;
    line-height: 1.5;
    color: rgba(243, 238, 230, 0.66);
}

.cases__tags {
    margin-bottom: 30px;
    margin-top: 30px;
    font-size: 20px;
    line-height: 1.2;
    color: rgba(243, 238, 230, 0.72);
}

.cases__btn-wrap {
    margin-top: auto;
}

/* мини swipe-кнопка кейса */
.swipe-btn--case {
    width: 300px;
    left: -41px;
    margin-top: -14px;
    border-radius: 8px;
    border: 1px solid rgba(243, 238, 230, 0.55);
    overflow: visible;
}

.swipe-btn--case .swipe-text {
    justify-content: center;
    padding: 0 18px 0 48px;
}

.swipe-btn--case .swipe-bg {
    left: 0px;
    top: 0px;
    border-radius: 6px;
}


/* правая часть */
.cases__media {
    position: relative;
    min-width: 0;
    padding-top: 30px;
}

.cases__btn--top {
    position: absolute;

    top: 40px;   /* регулируешь */
    left: 40px;  /* регулируешь */

    z-index: 5;
}



.cases__image-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.cases__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===== LAPTOP ===== */

@media (max-width: 1440px) {
    .cases__title {
        font-size: 50px;
    }

    .cases__frame-line--left {
        left: 2px;
        width: 435px;
        top: 246px;
    }

    .cases__frame-line--diag {
        left: 437px;
        top: 246px;
        width: 203px;
    }

    .cases__frame-line--top {
        left: 566px;
        top: 90px;
    }

.cases__frame-line--right{
    top: 247px;
}

    .cases__card {
        grid-template-columns: minmax(0, 1fr) 460px;
        gap: 28px;
    }
    
    .swipe-btn--case {
    width: 290px;
    height: 42px;
}

.swipe-btn--case .swipe-bg {
    width: 40px;
    height: 40px;
}

    .cases__subtitle {
        font-size: 20px;
        margin-bottom: 28px;
    }

    .cases__text,
    .cases__tags {
        font-size: 20px;
    }

   
}

/* ===== TABLET ===== */

@media (max-width: 1024px) {
    .cases {
        margin-top: 24px;
    }

    .cases__box {
        padding: 22px 18px 18px;
    }

    .cases__head {
        margin-bottom: 18px;
    }

    .cases__label {
        font-size: 16px;
    }

    .cases__title {
        font-size: 44px;
    }

    .cases__frame {
        height: 96px;
    }

    .cases__frame-line--left {
        left: 1px;
        top: 230px;
        width: 389px;
    }

    .cases__frame-line--diag {
        left: 389px;
        top: 230px;
        width: 187px;
    }

    .cases__frame-line--top {
        left: 507px;
        top: 89px;
        right: 6px;
    }

    .cases__frame-line--right {
        top: 230px;
        height: 1200px;
        }

    .cases__card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cases__content {
        padding-top: 0;
    }

    .swipe-btn--case {
        width: 310px;
        height: 42px;
    }

    .cases__subtitle,
    .cases__text {
        max-width: 100%;
    }

    .cases__media {
        padding-top: 24px;
    }

    .cases__image-wrap {
        max-width: 100%;
    }

}

/* ===== MOBILE ===== */

@media (max-width: 767px) {
    .cases {
        margin-top: 20px;
    }

    .cases__box {
        padding: 16px;
        border-radius: 10px;
    }

    .cases__label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .cases__title {
        font-size: 24px;
        line-height: 1.04;
    }

    .cases__frame {
        display:block ;
    }

    .cases__card {
        gap: 18px;
    }

    .cases__image {
    padding-top: 32px;
    }

    .cases__frame-line--left {
        left: 1px;
        top: 184px;
        width: 216px;
    }

    .cases__frame-line--diag {
        left: 217px;
        top: 184px;
        width: 123px;
    }

    .cases__frame-line--top {
        left: 296px;
        top: 89px;
        right: 3px;
    }

    .cases__frame-line--right {
        top: 186px;
        height: 1200px;
        }

    .cases__subtitle {
        margin-bottom: 18px;
        font-size: 16px;
        line-height: 1.3;
    }
.cases__quote {
    left: -9px;
}

.cases__btn--top {
    position: absolute;
    top: -1px;
    left: 40px;
    z-index: 5;
}


    .cases__text {
        margin-bottom: 18px;
        font-size: 14px;
        line-height: 1.45;
    }

    .cases__tags {
        margin-bottom: 18px;
        font-size: 14px;
    }


    .swipe-btn--case .swipe-text {
        padding: 0 14px 0 42px;
        font-size: 12px;
    }

    .swipe-btn--case .swipe-bg {
        width: 40px;
        height: 40px;
    }

    .cases__media {
        padding-top: 18px;
    }

}

/* ===== SMALL MOBILE ===== */

@media (max-width: 375px) {
    .cases__title {
        font-size: 24px;
    }

    .cases__subtitle {
        font-size: 14px;
    }

    .cases__text,
    .cases__tags {
        font-size: 13px;
    }
.cases__frame-line--diag {
    transform: rotate(-77deg);
}

    .cases__frame-line--top {
        left: 238px;
    }

    .swipe-btn--case {
        width: 255px;
        height: 42px;
    }

}














