:root {
    --ws-primary: #1d92bd;
    --ws-primary-dark: #116f94;
    --ws-primary-soft: #eaf7fc;
    --ws-dark: #102f43;
    --ws-heading: #17384d;
    --ws-text: #597080;
    --ws-border: #dce9ef;
    --ws-white: #ffffff;
    --ws-background: #f7fbfd;
    --ws-radius-lg: 28px;
    --ws-radius-md: 18px;
    --ws-shadow:
        0 18px 50px rgba(19, 67, 92, 0.1);
}

html {
    scroll-behavior: smooth;
}

.ws-solutions {
    overflow: hidden;
    color: var(--ws-text);
    background: var(--ws-white);
}

.ws-solutions-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.ws-section-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: var(--ws-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ws-section-heading {
    max-width: 720px;
    margin: 0 auto 54px;
    text-align: center;
}

.ws-section-heading h2 {
    margin: 0 0 18px;
    color: var(--ws-heading);
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.12;
}

.ws-section-heading p {
    margin: 0;
    font-size: 18px;
    line-height: 1.75;
}


/* Hero */

.ws-solutions-hero {
    position: relative;
    padding: 150px 0 100px;
    background:
        radial-gradient(circle at 85% 20%,
            rgba(117, 201, 236, 0.22),
            transparent 34%),
        linear-gradient(135deg,
            #f7fcfe 0%,
            #edf8fc 100%);
}

.ws-solutions-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 80px;
    align-items: center;
}

.ws-solutions-hero__content h1 {
    max-width: 680px;
    margin: 0 0 26px;
    color: var(--ws-heading);
    font-size: clamp(46px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.ws-solutions-hero__content p {
    max-width: 650px;
    margin: 0;
    font-size: 19px;
    line-height: 1.75;
}

.ws-solutions-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.ws-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.ws-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.ws-button--primary {
    color: var(--ws-white);
    background: var(--ws-primary);
    box-shadow:
        0 12px 28px rgba(29, 146, 189, 0.25);
}

.ws-button--primary:hover {
    color: var(--ws-white);
    background: var(--ws-primary-dark);
}

.ws-button--secondary {
    color: var(--ws-heading);
    border-color: var(--ws-border);
    background: rgba(255, 255, 255, 0.8);
}

.ws-button--secondary:hover {
    color: var(--ws-primary-dark);
    background: var(--ws-white);
}

.ws-solutions-hero__panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--ws-radius-lg);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--ws-shadow);
    backdrop-filter: blur(18px);
}

.ws-solutions-hero__hub {
    grid-column: 1 / -1;
    display: flex;
    min-height: 118px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background:
        linear-gradient(135deg,
            var(--ws-primary),
            #5fc0e5);
}

.ws-solutions-hero__hub img {
    max-width: 180px;
    max-height: 58px;
    object-fit: contain;
}

.ws-solutions-hero__item {
    display: flex;
    min-height: 105px;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--ws-border);
    border-radius: 18px;
    color: var(--ws-heading);
    background: var(--ws-white);
    font-size: 15px;
    font-weight: 700;
}

.ws-solutions-hero__item i {
    color: var(--ws-primary);
    font-size: 24px;
}


/* Solution cards */

.ws-solution-types {
    padding: 110px 0;
}

.ws-solution-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.ws-solution-type-card {
    position: relative;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-md);
    color: var(--ws-text);
    background: var(--ws-white);
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.ws-solution-type-card:hover {
    transform: translateY(-7px);
    border-color: rgba(29, 146, 189, 0.45);
    color: var(--ws-text);
    box-shadow: var(--ws-shadow);
    text-decoration: none;
}

.ws-solution-type-card__icon {
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border-radius: 16px;
    color: var(--ws-primary);
    background: var(--ws-primary-soft);
    font-size: 23px;
}

.ws-solution-type-card h3 {
    margin: 0 0 14px;
    color: var(--ws-heading);
    font-size: 22px;
}

.ws-solution-type-card p {
    margin: 0 0 28px;
    line-height: 1.7;
}

.ws-solution-type-card>span {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    color: var(--ws-primary);
    font-weight: 700;
}


/* Solution details */

.ws-solution-detail {
    padding: 110px 0;
    scroll-margin-top: 100px;
}

.ws-solution-detail--soft {
    background: var(--ws-background);
}

.ws-solution-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
    gap: 90px;
    align-items: center;
}

.ws-solution-detail__grid--reverse .ws-solution-detail__content {
    order: 2;
}

.ws-solution-detail__grid--reverse .ws-solution-detail__visual {
    order: 1;
}

.ws-solution-detail__content h2 {
    margin: 0 0 24px;
    color: var(--ws-heading);
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.12;
}

.ws-solution-detail__content>p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.75;
}

.ws-solution-benefits {
    display: grid;
    gap: 14px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.ws-solution-benefits li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--ws-heading);
    font-weight: 600;
}

.ws-solution-benefits i {
    display: inline-flex;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border-radius: 50%;
    color: var(--ws-primary);
    background: var(--ws-primary-soft);
    font-size: 11px;
}

.ws-solution-detail__visual {
    position: relative;
    display: flex;
    min-height: 430px;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;

    border: 1px solid var(--ws-border);
    border-radius: var(--ws-radius-lg);

    background:
        radial-gradient(circle at 88% 14%,
            rgba(29, 146, 189, 0.14),
            transparent 30%),
        radial-gradient(circle at 12% 88%,
            rgba(117, 201, 236, 0.14),
            transparent 28%),
        linear-gradient(145deg,
            #ffffff,
            #edf8fc);

    box-shadow: var(--ws-shadow);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.ws-solution-detail__visual img {
    position: relative;
    z-index: 2;

    display: block;
    width: 100%;
    max-height: 390px;
    object-fit: contain;

    border-radius: 18px;

    transition:
        transform 0.4s cubic-bezier(.22, .61, .36, 1),
        filter 0.4s ease;
}


/* Testimonials */

.ws-solutions-testimonials {
    padding: 110px 0;
    background: #fff;
    border-top: 1px solid #E5EEF3;
}

.ws-solutions-testimonials .ws-section-label {
    color: var(--ws-primary);
}

.ws-solutions-testimonials .ws-section-heading h2 {
    color: var(--ws-heading);
}

.ws-solutions-testimonials .ws-section-heading p {
    color: var(--ws-text);
}

.ws-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ws-testimonial-card {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    padding: 32px;
    border-radius: var(--ws-radius-md);
    background: #fff;
    border: 1px solid var(--ws-border);
    box-shadow: 0 12px 30px rgba(16, 47, 67, .08);
    transition:
            transform .3s ease,
            box-shadow .3s ease,
            border-color .3s ease;
}

.ws-testimonial-card__quote {
    margin-bottom: 22px;
    color: #75c9ec;
    font-size: 28px;
    transition:
            transform .3s ease,
            opacity .3s ease;
}

.ws-testimonial-card blockquote {
    margin: 0 0 30px;
    color: var(--ws-text);
    font-size: 16px;
    line-height: 1.75;
}

.ws-testimonial-card__footer {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: auto;
}

.ws-testimonial-card__avatar {
    display: flex;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.ws-testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-testimonial-card__footer strong,
.ws-testimonial-card__footer span,
.ws-testimonial-card__footer small {
    display: block;
}

.ws-testimonial-card__footer strong {
    color: var(--ws-heading);
}

.ws-testimonial-card__footer span {
    color: var(--ws-text);
}

.ws-testimonial-card__footer small {
    color: var(--ws-primary);
}


/* Responsive */
@media (hover: hover) and (pointer: fine) {

    .ws-solution-detail__visual:hover {
        transform: translateY(-8px);
        border-color: rgba(29, 146, 189, 0.35);

        box-shadow:
            0 28px 65px rgba(19, 67, 92, 0.16);
    }

    .ws-solution-detail__visual:hover img {
        transform: scale(1.025) translateY(-2px);

        filter:
            saturate(1.03) contrast(1.01);
    }

    .ws-testimonial-card:hover {
        transform: translateY(-6px);

        border-color: rgba(29, 146, 189, .18);

        box-shadow:
            0 18px 42px rgba(16, 47, 67, .12);
    }

    .ws-testimonial-card:hover .ws-testimonial-card__quote {
        transform: rotate(-8deg);
        opacity: .6;
    }
}

@media (max-width: 1050px) {

    .ws-solutions-hero__grid,
    .ws-solution-detail__grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .ws-solution-detail__grid--reverse .ws-solution-detail__content,
    .ws-solution-detail__grid--reverse .ws-solution-detail__visual {
        order: initial;
    }

    .ws-solution-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ws-testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ws-solutions-container {
        width: min(100% - 28px, 1180px);
    }

    .ws-solutions-hero {
        padding: 120px 0 70px;
    }

    .ws-solutions-hero__content h1 {
        font-size: 43px;
    }

    .ws-solutions-hero__panel {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .ws-solutions-hero__hub {
        grid-column: auto;
    }

    .ws-solution-types,
    .ws-solution-detail,
    .ws-solutions-testimonials {
        padding: 78px 0;
    }

    .ws-solution-type-grid,
    .ws-testimonial-grid {
        grid-template-columns: 1fr;
    }

    .ws-solution-type-card {
        min-height: 270px;
    }

    .ws-solution-detail__visual {
        min-height: 300px;
        padding: 24px;
    }

    .ws-solutions-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ws-solution-detail__visual {
        min-height: auto;
        padding: 14px;
        border-radius: 20px;
    }

    .ws-solution-detail__visual img {
        max-height: none;
        border-radius: 14px;
    }
}