/* -------------------------------------------------------------------------
 * Section: landing
 * ------------------------------------------------------------------------- */

.ket-why_ketmarket-page .ket-why-ketmarket-hero .ket-landing__title {
    max-width: none;
    width: 100%;
    white-space: nowrap;
    font-size: clamp(1.32rem, 2.35vw, 2.85rem);
    letter-spacing: -0.03em;
}

.ket-why_ketmarket-page .ket-why-ketmarket-hero .ket-landing__container {
    width: calc(100% - 12px);
    max-width: none;
}

@media (max-width: 1024px) {
    .ket-why_ketmarket-page .ket-why-ketmarket-hero .ket-landing__title {
        white-space: normal;
        max-width: 900px;
        font-size: clamp(1.2rem, 4.4vw, 1.9rem);
    }

    .ket-why_ketmarket-page .ket-why-ketmarket-hero .ket-landing__container {
        width: min(100%, calc(100% - 32px));
    }
}
 
/* -------------------------------------------------------------------------
 * Section: advantages
 * ------------------------------------------------------------------------- */

.ket-why-ketmarket-advantages {
    padding: clamp(34px, 5vw, 70px) 16px clamp(20px, 3vw, 40px);
    background: #f5f7fb;
}

.ket-why-ketmarket-advantages__container {
    width: min(1380px, calc(100% - 32px));
    margin-inline: auto;
}

.ket-why-ketmarket-advantages__header {
    margin-bottom: clamp(26px, 4vw, 40px);
    text-align: center;
}

.ket-why-ketmarket-advantages__title {
    margin: 0;
    color: #2d2d2d;
    font-size: clamp(1.18rem, 2.2vw, 1.82rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.ket-why-ketmarket-advantages__list {
    display: flex;
    flex-direction: column;
    gap: clamp(26px, 3.8vw, 44px);
}

.ket-why-ketmarket-advantages__card {
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(340px, 1fr);
    align-items: stretch;
    min-height: 320px;
    overflow: visible;
    column-gap: 0;
    border-radius: 28px;
    background: transparent;
    box-shadow: none;
}

.ket-why-ketmarket-advantages__media {
    position: relative;
    z-index: 2;
    min-width: 0;
    min-height: 320px;
    height: 100%;
    border-radius: 28px 0 0 28px;
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.ket-why-ketmarket-advantages__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ket-why-ketmarket-advantages__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    width: auto;
    min-height: 320px;
    height: 100%;
    padding: clamp(28px, 3.5vw, 42px);
    border-radius: 0 28px 28px 0;
    background: linear-gradient(180deg, #1aa0d2 0%, #23b9d5 100%);
    color: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
    transform: translateX(-100%);
    opacity: 0.9;
    transition:
        transform 1.95s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 1.45s ease;
    will-change: transform, opacity;
}

.ket-why-ketmarket-advantages__card.is-visible .ket-why-ketmarket-advantages__content {
    transform: translateX(0);
    opacity: 1;
}

.ket-why-ketmarket-advantages__card-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.2rem, 1.9vw, 1.7rem);
    font-weight: 700;
    line-height: 1.22;
}

.ket-why-ketmarket-advantages__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.98);
    font-size: clamp(0.96rem, 1.15vw, 1.08rem);
    line-height: 1.72;
}

.ket-why-ketmarket-advantages__text strong {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .ket-why-ketmarket-advantages__list {
        gap: clamp(36px, 5vw, 52px);
    }

    .ket-why-ketmarket-advantages__card {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 0;
        column-gap: 0;
        overflow: hidden;
        border-radius: 28px;
        background: transparent;
        box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
    }

    .ket-why-ketmarket-advantages__media {
        aspect-ratio: 16 / 9;
        min-height: 0;
        height: auto;
        border-radius: 28px 28px 0 0;
        box-shadow: none;
    }

    .ket-why-ketmarket-advantages__content,
    .ket-why-ketmarket-advantages__card:nth-child(even) .ket-why-ketmarket-advantages__content {
        width: auto;
        min-height: 0;
        height: auto;
        margin: 0;
        border-radius: 0 0 28px 28px;
        box-shadow: none;
        transform: none;
        opacity: 1;
        transition: none;
    }
}

@media (max-width: 768px) {
    .ket-why-ketmarket-advantages {
        padding: 28px 16px 48px;
    }

    .ket-why-ketmarket-advantages__container {
        width: min(100%, calc(100% - 16px));
    }

    .ket-why-ketmarket-advantages__title {
        font-size: clamp(1.04rem, 5.3vw, 1.34rem);
    }

    .ket-why-ketmarket-advantages__card {
        border-radius: 20px;
    }

    .ket-why-ketmarket-advantages__content {
        gap: 14px;
        padding: 22px 20px 24px;
        border-radius: 0 0 22px 22px;
    }

    .ket-why-ketmarket-advantages__card-title {
        font-size: 1.08rem;
    }

    .ket-why-ketmarket-advantages__text {
        font-size: 0.94rem;
        line-height: 1.62;
    }
}

@media (max-width: 480px) {
    .ket-why-ketmarket-advantages__container {
        width: min(100%, calc(100% - 8px));
    }

    .ket-why-ketmarket-advantages__card {
        border-radius: 16px;
    }

    .ket-why-ketmarket-advantages__content {
        padding: 18px 16px 20px;
        border-radius: 0 0 18px 18px;
    }

    .ket-why-ketmarket-advantages__card-title {
        font-size: 1rem;
    }

    .ket-why-ketmarket-advantages__text {
        font-size: 0.9rem;
        line-height: 1.56;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ket-why-ketmarket-advantages__content {
        transform: none;
        transition: none;
    }
}

/* -------------------------------------------------------------------------
 * Section: quote
 * ------------------------------------------------------------------------- */

.ket-why-ketmarket-quote {
    padding: clamp(18px, 3vw, 36px) 16px clamp(20px, 3vw, 42px);
    background: #ffffff;
}

.ket-why-ketmarket-quote__container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.ket-why-ketmarket-quote__blockquote {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.ket-why-ketmarket-quote__text {
    margin: 0;
    color: #505050;
    font-size: clamp(1rem, 1.55vw, 1.4rem);
    line-height: 1.64;
    font-weight: 400;
}

.ket-why-ketmarket-quote__text + .ket-why-ketmarket-quote__text {
    margin-top: 28px;
}

.ket-why-ketmarket-quote__text strong {
    color: #3f3f3f;
    font-weight: 700;
}

.ket-why-ketmarket-quote__author {
    margin-top: 34px;
    color: #4f4f4f;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .ket-why-ketmarket-quote {
        padding: 16px 16px 28px;
    }

    .ket-why-ketmarket-quote__container {
        width: min(100%, calc(100% - 16px));
    }

    .ket-why-ketmarket-quote__text {
        font-size: 0.96rem;
        line-height: 1.62;
    }

    .ket-why-ketmarket-quote__text + .ket-why-ketmarket-quote__text {
        margin-top: 22px;
    }

    .ket-why-ketmarket-quote__author {
        margin-top: 28px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .ket-why-ketmarket-quote__container {
        width: min(100%, calc(100% - 8px));
    }

    .ket-why-ketmarket-quote__text {
        font-size: 0.88rem;
        line-height: 1.56;
    }

    .ket-why-ketmarket-quote__text + .ket-why-ketmarket-quote__text {
        margin-top: 18px;
    }

    .ket-why-ketmarket-quote__author {
        margin-top: 24px;
        font-size: 0.82rem;
    }
}

.ket-why_ketmarket-page .ket-contact-section {
    padding-top: 2.25rem;
    background: #f5f7fb;
}

@media (max-width: 768px) {
    .ket-why-ketmarket-advantages {
        padding: 28px 16px 24px;
    }

    .ket-why_ketmarket-page .ket-contact-section {
        padding-top: 1.75rem;
    }
}
