.rcm-home-hero,
.rcm-home-hero * {
    box-sizing: border-box;
}

.rcm-home-hero {
    --rcm-home-hero-purple: #7153b0;
    --rcm-home-hero-purple-dark: #3e286d;
    --rcm-home-hero-navy: #183354;
    --rcm-home-hero-border: #dfdfdf;
    --rcm-home-hero-white: #ffffff;
    --rcm-home-hero-text: rgba(255, 255, 255, 0.94);
    width: min(1262.95px, calc(100% - 32px));
    margin: 0 auto;
    font-family: "Inter", sans-serif;
}

.rcm-home-hero__layout {
    display: grid;
    gap: 35px;
    grid-template-columns: minmax(0, 898px) 330px;
    align-items: start;
}

.rcm-home-hero__feature {
    position: relative;
    min-height: 498px;
    border-radius: 6px;
    overflow: hidden;
    background-image: var(--rcm-home-hero-bg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.rcm-home-hero__overlay {
    position: relative;
    z-index: 1;
    min-height: 498px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 44px 27px 44px;
}

.rcm-home-hero__copy {
    max-width: 687px;
    margin-bottom: 0;
}

.rcm-home-hero__headline {
    margin: 0 0 17px;
    color: var(--rcm-home-hero-white);
    text-transform: capitalize;
}

.rcm-home-hero__headline-lead {
    display: block;
    max-width: 560px;
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.425;
    letter-spacing: 0;
}

.rcm-home-hero__headline-script {
    display: block;
    margin-top: -2px;
    font-family: "Roasted Bailey", "Mr De Haviland", "Brush Script MT", cursive;
    font-size: 60px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0;
}

.rcm-home-hero__description {
    max-width: 687px;
    margin: 0;
    color: var(--rcm-home-hero-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5625;
}

.rcm-home-hero__newsletter {
    max-width: 686px;
}

.rcm-home-hero__newsletter-title {
    margin: 0 0 13px;
    color: var(--rcm-home-hero-white);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    text-transform: capitalize;
}

.rcm-home-hero__form {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 37px;
}

.rcm-home-hero__input {
    flex: 0 0 250px;
    width: 250px;
    min-width: 0;
    height: 50px;
    border: 0;
    border-radius: 6px;
    padding: 0 20px;
    background: var(--rcm-home-hero-white);
    color: #252525;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    outline: none;
    box-shadow: none;
}

.rcm-home-hero__input::placeholder {
    color: #6f6f6f;
    opacity: 1;
    font-weight: 500;
}

.rcm-home-hero__submit {
    flex: 0 0 171.63px;
    width: 171.63px;
    height: 50px;
    border: 0;
    border-radius: 4px;
    background: var(--rcm-home-hero-purple);
    color: var(--rcm-home-hero-white);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: capitalize;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.rcm-home-hero__submit:hover,
.rcm-home-hero__submit:focus-visible {
    background: #6344a8;
    transform: translateY(-1px);
}

.rcm-home-hero__social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rcm-home-hero__social-link {
    color: var(--rcm-home-hero-white);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.rcm-home-hero .rcm-home-hero__social-link:hover {
    opacity: 1;
    color: var(--rcm-home-hero-white);
}

.rcm-home-hero__social-link:focus-visible {
    opacity: 0.7;
}

.rcm-home-hero__topics {
    width: 100%;
}

.rcm-home-hero__topics-header {
    margin-bottom: 30px;
}

.rcm-home-hero__topics-title {
    margin: 0 0 15px;
    color: var(--rcm-home-hero-navy);
    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.rcm-home-hero__topics-rule {
    position: relative;
    width: 100%;
    height: 5px;
    border-top: 1px solid var(--rcm-home-hero-border);
    border-bottom: 1px solid var(--rcm-home-hero-border);
}

.rcm-home-hero__topics-rule-accent {
    position: absolute;
    top: -1px;
    left: 0;
    width: 40px;
    height: 5px;
    background: var(--rcm-home-hero-purple);
}

.rcm-home-hero__topics-rule-notch {
    position: absolute;
    top: -1.5px;
    left: 36px;
    width: 10px;
    height: 6px;
    background: var(--rcm-home-hero-white);
    -webkit-mask-image: url('../../assets/images/notch-mask.svg');
    mask-image: url('../../assets/images/notch-mask.svg');
    -webkit-mask-size: 10px 6px;
    mask-size: 10px 6px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
}

.rcm-home-hero__topics-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rcm-home-hero__topic-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    padding: 0 25px 0 35px;
    border-radius: 6px;
    overflow: hidden;
    color: var(--rcm-home-hero-white);
    text-decoration: none;
}

.rcm-home-hero__topic-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.06) 100%);
    pointer-events: none;
}

.rcm-home-hero__topic-card--lavender {
    background: #a88be8;
}

.rcm-home-hero__topic-card--yellow {
    background: #ffcc16;
}

.rcm-home-hero__topic-card--pink {
    background: #e88bdf;
}

.rcm-home-hero__topic-card--red {
    background: #f3494c;
}

.rcm-home-hero__topic-card--orange {
    background: #f37121;
}

.rcm-home-hero__topic-label,
.rcm-home-hero__topic-arrow {
    position: relative;
    z-index: 1;
}

.rcm-home-hero__topic-label {
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.78px;
    text-transform: uppercase;
}

.rcm-home-hero .rcm-home-hero__topic-card:hover .rcm-home-hero__topic-label,
.rcm-home-hero .rcm-home-hero__topic-label:hover,
.rcm-home-hero .rcm-home-hero__topic-card:focus-visible .rcm-home-hero__topic-label {
    color: var(--rcm-home-hero-white);
    opacity: 1;
    text-decoration: none;
    filter: none;
    transform: none;
}

.rcm-home-hero__topic-arrow {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    transition: transform 0.2s ease;
}

.rcm-home-hero__topic-arrow:hover {
    transform: translate(3px, -3px);
}

.rcm-home-hero__topic-card:focus-visible .rcm-home-hero__topic-arrow {
    transform: translate(3px, -3px);
}

.rcm-home-hero__topic-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 1180px) {
    .rcm-home-hero__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .rcm-home-hero__topics {
        max-width: 902px;
        display: none;
    }
}

@media (max-width: 767px) {
    .rcm-home-hero {
        width: min(100%, calc(100% - 20px));
    }

    .rcm-home-hero__feature,
    .rcm-home-hero__overlay {
        min-height: 541px;
    }

    .rcm-home-hero__overlay {
        padding: 34px 20px 24px;
    }

    .rcm-home-hero__headline {
        margin-bottom: 14px;
    }

    .rcm-home-hero__headline-lead {
        max-width: 320px;
        font-size: 28px;
        line-height: 1.28;
    }

    .rcm-home-hero__headline-script {
        font-size: 44px;
        line-height: 0.96;
    }

    .rcm-home-hero__description {
        max-width: 320px;
        font-size: 15px;
        line-height: 1.6;
    }

    .rcm-home-hero__newsletter {
        max-width: 100%;
        width: 100%;
    }

    .rcm-home-hero__newsletter-title {
        margin-bottom: 12px;
    }

    .rcm-home-hero__form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 20px;
        width: 100%;
    }

    .rcm-home-hero__input {
        width: 100%;
        flex: 1 1 auto;
    }

    .rcm-home-hero__submit {
        width: 100%;
        flex: 1 1 auto;
    }

    .rcm-home-hero__social {
        gap: 14px;
    }

    .rcm-home-hero__topics {
        display: none;
    }

    .rcm-home-hero__topics-header {
        margin-bottom: 18px;
    }

    .rcm-home-hero__topics-title {
        font-size: 20px;
    }

    .rcm-home-hero__topic-card {
        min-height: 72px;
        padding: 0 18px 0 20px;
    }

    .rcm-home-hero__topic-label {
        max-width: calc(100% - 28px);
        font-size: 12px;
        letter-spacing: 0.6px;
    }
}
