.matchmaker {
    --matchmaker-gray-1: #0f0d15;
    --matchmaker-gray-2: #1d1929;
    --matchmaker-gray-3: #34303e;
    --matchmaker-gray-4: #4a4754;
    --matchmaker-gray-6: #77757f;
    --matchmaker-gray-8: #a5a3a9;
    --matchmaker-gray-10: #d2d1d4;
    --matchmaker-gray-11: #e5e9ee;
    --matchmaker-border: #e8e8ea;
    --matchmaker-line: #dddddf;
    --matchmaker-bg-soft: #f5f7f7;
    --matchmaker-row-off: #f8fafc;
    --matchmaker-navy: #020617;
    --matchmaker-green-1: #13a87f;
    --matchmaker-green-2: #1bd2a4;
    --matchmaker-green-3: #1ee9b6;
    --matchmaker-green-12: #e9fdf8;
    --matchmaker-green-hover: #18ba92;
    --matchmaker-green-border: #a9efdc;
    --matchmaker-green-soft: #c6f6e9;
    --matchmaker-danger: #c62828;
    --matchmaker-white: #fff;
    --matchmaker-focus-soft: rgba(30, 233, 182, 0.18);
    --matchmaker-focus: rgba(30, 233, 182, 0.25);
    --matchmaker-btn-shadow: rgba(27, 210, 164, 0.28);
    --matchmaker-serif: 'Playfair Display', Georgia, serif;
    --matchmaker-sans: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    font-family: var(--matchmaker-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: normal;
    color: var(--matchmaker-gray-2);
    background: var(--matchmaker-bg-soft);
    -webkit-font-smoothing: antialiased;
}
.matchmaker *,
.matchmaker *::before,
.matchmaker *::after {
    box-sizing: border-box;
}
.matchmaker :where(h1, h2, h3, p) {
    margin: 0;
}
.matchmaker :where(a) {
    color: inherit;
    text-decoration: none;
}
.matchmaker button,
.matchmaker input,
.matchmaker textarea {
    font-family: inherit;
}
.matchmaker [hidden] {
    display: none !important;
}

.matchmaker__stepper {
    background: var(--matchmaker-navy);
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    list-style: none;
    margin: 0;
    gap: 31px;
}
.matchmaker__step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--matchmaker-gray-8);
    position: relative;
}
.matchmaker__step + .matchmaker__step::before {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 1.5px solid var(--matchmaker-gray-6);
    border-right: 1.5px solid var(--matchmaker-gray-6);
    transform: rotate(45deg);
    margin-right: 24px;
}
.matchmaker__step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--matchmaker-gray-2);
    color: var(--matchmaker-gray-8);
    font-family: var(--matchmaker-serif) !important;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: lining-nums;
}
.matchmaker__step.is-active {
    color: var(--matchmaker-green-2);
}
.matchmaker__step.is-active .matchmaker__step-num {
    background: var(--matchmaker-green-2);
    color: var(--matchmaker-gray-2);
}

.matchmaker__main {
    flex: 1;
    padding: 50px 16px 70px;
}
.matchmaker__screen {
    animation: matchmaker-fade 0.3s ease-out;
}
@keyframes matchmaker-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.matchmaker__intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}
.matchmaker__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 23px;
    padding: 0 10px;
    margin-bottom: 12px;
    border-radius: 100px;
    border: 1px solid var(--matchmaker-green-border);
    background: var(--matchmaker-green-12);
    color: var(--matchmaker-green-1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.matchmaker__pill svg {
    width: 13px;
    height: 13px;
}
.matchmaker__title {
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--matchmaker-gray-1);
}
.matchmaker__title em {
    font-family: var(--matchmaker-serif) !important;
    font-size: 28px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--matchmaker-green-1);
}
.matchmaker__sub {
    max-width: 700px;
    margin: 9px auto 0;
    font-size: 14px;
    line-height: 19px;
    color: var(--matchmaker-gray-4);
}

.matchmaker__prompt {
    display: block;
    width: 100%;
    max-width: 760px;
    height: 98px;
    margin: 0 auto;
    padding: 12px 16px;
    border: 1px solid var(--matchmaker-green-3);
    border-radius: 12px;
    background: var(--matchmaker-white);
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.015em;
    color: var(--matchmaker-gray-2);
    resize: none;
    outline: none;
}
.matchmaker__prompt::placeholder {
    color: var(--matchmaker-gray-8);
}
.matchmaker__prompt:focus {
    box-shadow: 0 0 0 3px var(--matchmaker-focus-soft);
}
.matchmaker__error {
    max-width: 760px;
    margin: 12px auto 0;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    color: var(--matchmaker-danger);
}

.matchmaker__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition:
        background 0.15s,
        box-shadow 0.15s;
}
.matchmaker__btn svg {
    flex: none;
}
.matchmaker__btn:hover {
    opacity: 1;
}
.matchmaker__btn--primary {
    background: var(--matchmaker-green-2);
    color: var(--matchmaker-white);
    box-shadow: 0 6px 16px var(--matchmaker-btn-shadow);
}
.matchmaker__btn--primary:hover {
    background: var(--matchmaker-green-hover);
    color: var(--matchmaker-white);
}
.matchmaker__btn--primary:disabled {
    background: var(--matchmaker-gray-10);
    box-shadow: none;
    cursor: not-allowed;
}
.matchmaker__btn--ghost {
    background: var(--matchmaker-white);
    border-color: var(--matchmaker-gray-10);
    color: var(--matchmaker-gray-3);
}
.matchmaker__btn--ghost:hover {
    background: var(--matchmaker-bg-soft);
}
.matchmaker__btn--ghost svg {
    color: var(--matchmaker-gray-6);
}
.matchmaker__btn--ghost:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.matchmaker__btn-icon--arrow-left,
.matchmaker__btn-icon--arrow-right {
    width: 19px;
    height: 12px;
}
.matchmaker__btn-icon--wand {
    width: 22px;
    height: 22px;
}
.matchmaker__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.matchmaker__card {
    max-width: 760px;
    margin: 0 auto;
    padding: 29px;
    background: var(--matchmaker-white);
    border: 1px solid var(--matchmaker-gray-11);
    border-radius: 16px;
}
.matchmaker__card--narrow {
    max-width: 480px;
}

.matchmaker__panel {
    padding: 20px;
    border-radius: 16px;
    background: var(--matchmaker-navy);
}
.matchmaker__panel-label {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--matchmaker-gray-4);
    font-size: 13px;
    line-height: 18px;
    color: var(--matchmaker-gray-10);
}
.matchmaker__panel-title {
    letter-spacing: normal;
    margin-top: 12px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    color: var(--matchmaker-white);
}
.matchmaker__panel-body {
    margin-top: 11px;
    padding: 12px 26px 12px 16px;
    border-radius: 10px;
    background: var(--matchmaker-white);
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.02em;
    color: var(--matchmaker-gray-2);
}

.matchmaker__label {
    letter-spacing: normal;
    margin-top: 32px;
    font-size: 13px;
    line-height: 16px;
    font-weight: 600;
    color: var(--matchmaker-gray-2);
}
.matchmaker__hint {
    margin: 11px 0 10px;
    font-size: 12px;
    line-height: 16px;
    color: var(--matchmaker-gray-6);
}
.matchmaker__rows {
    display: grid;
    gap: 8px;
}
.matchmaker__row {
    position: relative;
    display: block;
    min-height: 58px;
    padding: 9px 13px 10px 38px;
    border: 1px solid var(--matchmaker-line);
    border-radius: 10px;
    background: var(--matchmaker-row-off);
    cursor: pointer;
}
.matchmaker__row input {
    position: absolute;
    opacity: 0;
    width: 18px;
    height: 18px;
    left: 12px;
    top: 9px;
    margin: 0;
    cursor: pointer;
}
.matchmaker__check {
    position: absolute;
    left: 12px;
    top: 9px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--matchmaker-gray-10);
    border-radius: 4px;
    background: var(--matchmaker-white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.matchmaker__check svg {
    width: 12px;
    height: 12px;
    color: var(--matchmaker-green-1);
    opacity: 0;
}
.matchmaker__row-title {
    display: block;
    font-size: 13px;
    line-height: 18px;
    color: var(--matchmaker-gray-2);
}
.matchmaker__row-desc {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 16px;
    color: var(--matchmaker-gray-4);
}
.matchmaker__row-desc b {
    font-weight: 600;
}
.matchmaker__row:has(input:checked) {
    border-color: var(--matchmaker-green-3);
    background: var(--matchmaker-white);
}
.matchmaker__row:has(input:checked) .matchmaker__row-title {
    font-weight: 600;
}
.matchmaker__row:has(input:checked) .matchmaker__check {
    border-color: var(--matchmaker-green-1);
    background: var(--matchmaker-green-12);
}
.matchmaker__row:has(input:checked) .matchmaker__check svg {
    opacity: 1;
}
.matchmaker__row:has(input:focus-visible) {
    box-shadow: 0 0 0 3px var(--matchmaker-focus);
}
.matchmaker__row:has(input:disabled),
.matchmaker__row input:disabled {
    cursor: not-allowed;
}

.matchmaker__section + .matchmaker__section {
    margin-top: 30px;
}
.matchmaker__section-title {
    letter-spacing: normal;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    color: var(--matchmaker-gray-1);
}
.matchmaker__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
}
.matchmaker__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 25px;
    padding: 0 8px;
    border: 1px solid var(--matchmaker-gray-11);
    border-radius: 4px;
    background: var(--matchmaker-white);
    font-size: 13px;
    color: var(--matchmaker-gray-3);
    cursor: pointer;
}
.matchmaker__tag svg {
    width: 11px;
    height: 11px;
    color: var(--matchmaker-gray-6);
}
.matchmaker__tag .matchmaker__tag-on {
    display: none;
}
.matchmaker__tag[aria-pressed='true'] {
    border-color: var(--matchmaker-green-3);
    background: var(--matchmaker-green-12);
    color: var(--matchmaker-green-1);
    font-weight: 600;
}
.matchmaker__tag[aria-pressed='true'] svg {
    color: var(--matchmaker-green-1);
}
.matchmaker__tag[aria-pressed='true'] .matchmaker__tag-on {
    display: block;
}
.matchmaker__tag[aria-pressed='true'] .matchmaker__tag-off {
    display: none;
}
.matchmaker__tag:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.matchmaker__field + .matchmaker__field {
    margin-top: 30px;
}
.matchmaker__field label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--matchmaker-gray-2);
}
.matchmaker__field input {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 15px;
    border: 1px solid var(--matchmaker-border);
    border-radius: 10px;
    background: var(--matchmaker-white);
    font-size: 13px;
    color: var(--matchmaker-gray-2);
    outline: none;
}
.matchmaker__field input::placeholder {
    color: var(--matchmaker-gray-8);
}
.matchmaker__field input:focus {
    border-color: var(--matchmaker-green-3);
}

.matchmaker__done {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.matchmaker__done-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--matchmaker-green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.matchmaker__done-icon span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--matchmaker-green-2);
    color: var(--matchmaker-white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.matchmaker__done-icon svg {
    width: 15px;
    height: 15px;
}
.matchmaker__done .matchmaker__actions {
    margin-top: 50px;
}

@media (max-width: 767px) {
    .matchmaker__main {
        padding: 32px 16px 48px;
    }
    .matchmaker__intro {
        margin-bottom: 28px;
    }
    .matchmaker__title {
        font-size: 24px;
        line-height: 30px;
    }
    .matchmaker__title em {
        font-size: 24px;
    }
    .matchmaker__card {
        padding: 16px;
    }
    .matchmaker__panel {
        padding: 16px;
    }
    .matchmaker__stepper {
        gap: 12px;
    }
    .matchmaker__step + .matchmaker__step::before {
        display: none;
    }
    .matchmaker__step-label {
        display: none;
    }
    .matchmaker__step.is-active .matchmaker__step-label {
        display: inline;
    }
    .matchmaker__actions .matchmaker__btn {
        flex: 1 1 100%;
    }
    .matchmaker__pill {
        height: auto;
        min-height: 23px;
        padding: 3px 10px;
        letter-spacing: 0.05em;
    }
}

.matchmaker__captcha:not(.hidden) {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
