:root {
    --font-family: "Haffer";
    --font-size: 16px;
    --font-weight: 300;
    --font-style: normal;
    --line-height: 1.5;
    --heading-font-family: "Noctis";
    --heading-font-weight: 700;
    --heading-line-height: 1.3;
    --accent-color: #186ADC;
    --background-color: #ffffff;
    --text-primary: #000000;
    --link-color: #004D5C;
    --border-color: #000000;
    --placeholder-color: #000000;
    --error-color: #ff3d0d;
    --el-border-radius: 10px;
}

.res-brand-name {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.res-item {
    margin: 0 auto 4rem;
    max-width: 440px;
}

.res-item:last-child {
    margin-bottom: 0;
}

.res-images {
    display: none;
}

.resl {
    font-size: 1.625rem;
    font-family: var(--heading-font-family), sans-serif;
    font-weight: var(--heading-font-weight);
    line-height: var(--heading-line-height);
}

.resl-hr {
    display: none;
}

.resl-col {
    position: relative;
    max-width: 440px;
    margin: 0 auto 1.5rem;
    color: var(--background-color);
}

.resl-col picture {
    display: block;
    margin-bottom: 1rem;
}

.resl-col picture::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.resl-col span {
    position: absolute;
    left: 0;
    top: 50%;
    display: block;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    padding: 1.5rem;
    z-index: 2;
}

.res-item-image {
    display: block;
    margin-bottom: 1.25rem;
}

@media (min-width: 767px) {
    .res {
        position: relative;
    }

    .res::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 70%;
        height: 100%;
        background-color: #D3CABE;
    }

    .res .container {
        position: relative;
        z-index: 1;
    }

    .res-brand-name {
        font-size: 15px;
        margin-bottom: 1rem;
    }

    .res-row {
        position: relative;
        display: flex;
        justify-content: space-between;
        margin: 0 -1rem;
    }

    .res-col {
        flex-basis: 0;
        flex-grow: 1;
        padding: 0 1rem;
        margin: 0;
    }

    .res-content {
        max-width: 52rem;
    }

    .res-content .section-desc {
        max-width: 37.5rem;
    }

    .res-item {
        margin-bottom: 10.4166vw;
        max-width: inherit;
    }

    .res-item .section-btn {
        display: none;
    }

    .res-images {
        position: relative;
        display: block;
        max-width: 40.75rem;
    }

    .resi-items {
        position: relative;
        height: 90vh;
        max-height: 35rem;
        overflow: hidden;
    }

    .resi-item {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        display: block;
        opacity: 0;
    }

    .resi-item.active {
        opacity: 1;
    }

    .resi-item.slide {
        opacity: 1;
        z-index: 1;
    }

    .resi-btn {
        position: absolute;
        bottom: 4.6875vw;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }

    .resl {
        position: relative;
        font-size: 2.0833vw;
        z-index: 1;
    }

    .resl.section {
        padding-top: 0;
    }

    .resl-row {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        line-height: 1.2;
        z-index: 1;
    }

    .resl-row:hover {
        z-index: 0;
    }

    .resl-hr {
        display: block;
        position: relative;
        font-size: 6.125vw;
        color: rgba(0, 0, 0, 0.12);
        z-index: 1;
    }

    .resl-col {
        z-index: 1;
        color: rgba(0, 0, 0, 0.5);
        margin: 0;
        text-align: center;
        max-width: inherit;
        transition: color 0.3s;
    }

    .resl-col picture {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 26vw;
        height: 26vw;
        transform: translate(-50%, -50%) scale(0);
        border-radius: 50%;
        margin: 0;
        opacity: 0.85;
        overflow: hidden;
        pointer-events: none;
        transition: transform 0.3s;
    }

    .resl-col picture::after {
        border-radius: 50%;
    }

    .resl-col span {
        position: relative;
        top: 0;
        transform: none;
        padding: 0;
        z-index: 1;
    }

    .resl-col:hover {
        color: var(--background-color);
        z-index: 0;
    }

    .resl-col:hover picture {
        transform: translate(-50%, -50%) scale(1);
    }

    .res-item-image {
        display: none;
    }

    .riw-container {
        position: relative;
    }

    .riw-container .section-btn {
        position: absolute;
        right: 2rem;
        bottom: 2rem;
        z-index: 1;
    }

    .riw-container .section-btn .btn {
        color: var(--text-primary);
        fill: var(--text-primary);
        border-color: transparent;
    }

    .riw-container .section-btn .btn::before {
        transform: translate(-50%, -50%) scale(1);
        background-color: var(--background-color);
    }

    .riw-container .section-btn .btn:hover {
        color: var(--background-color);
        fill: var(--background-color);
    }

    .riw-container .section-btn .btn:hover::before {
        background-color: var(--text-primary);
    }
}

@media (min-width: 1024px) {
    .resi-items {
        max-height: 40rem;
    }
}

@media (min-width: 1200px) {
    .resi-items {
        max-height: 53.125rem;
    }
}

@media (min-width: 1920px) {
    .res-item {
        margin-bottom: 12.5rem;
    }

    .resi-btn {
        bottom: 5.625rem;
    }

    .resl {
        font-size: 2.5rem;
    }

    .resl-hr {
        font-size: 6.875rem;
    }

    .resl-col picture {
        width: 31.25rem;
        height: 31.25rem;
    }
}

@media (max-width: 767px) {
    .res-image-wide.section {
        padding: 0;
    }

    .res-image-wide .container {
        padding: 0;
    }

    .res.section {
        padding-top: 0;
    }
}
