.rt-hero {
    --rth-bg: color-mix(in srgb, var(--color_brand) 5%, #fff);
    --rth-line: color-mix(in srgb, var(--color_brand) 16%, #fff);
    --rth-tint-8: color-mix(in srgb, var(--color_brand) 8%, #fff);
    --rth-chip-line: color-mix(in srgb, var(--color_brand) 30%, #dfe5ec);
    --rth-deep: color-mix(in srgb, var(--color_brand) 78%, #000);
    --rth-ring: color-mix(in srgb, var(--color_brand) 30%, transparent);
    --rth-ink: #1b222b;
    --rth-muted: #5c6670;
    --rth-soft: #e5e8ec;
    --rth-card: #fff;
    position: relative;
    /*background: var(--rth-bg);
        border: 1px solid var(--rth-line);
        border-radius: 20px;*/
    padding: clamp(18px, 3.2vw, 34px);
    color: var(--rth-ink);
    font-size: 15px;
    line-height: 1.55;
}

.rt-hero [hidden] {
    display: none !important;
}

.rt-hero__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --- хлебные крошки --- */
.rt-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--rth-muted);
}

.rt-hero__crumbs a {
    color: inherit;
    text-decoration: none;
}

.rt-hero__crumbs a:hover {
    color: var(--rth-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rt-hero__crumbs [aria-current] {
    color: var(--rth-ink);
}

/* --- сетка --- */
.rt-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(20px, 3vw, 44px);
    align-items: start;
}

/* --- шапка --- */
.rt-hero__title {
    margin: 0 0 8px;
    font-size: clamp(25px, 3.4vw, 35px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -.015em;
}

.rt-hero__subtitle {
    margin: 0;
    max-width: 56ch;
    font-size: 15.5px;
    color: var(--rth-muted);
}

.rt-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--rth-muted);
}

.rt-hero__trust b {
    color: var(--rth-ink);
    font-weight: 800;
}

.rt-hero__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rt-hero__trust-item svg {
    width: 15px;
    height: 15px;
    color: var(--color_brand);
}

/* --- чипы симптомов --- */
.rt-hero__ask {
    margin: 22px 0 10px;
    font-size: 15px;
    font-weight: 700;
}

.rt-hero__chips-wrap {
    position: relative;
}

.rt-hero__chips-wrap::before,
.rt-hero__chips-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 1;
}

.rt-hero__chips-wrap::before {
    top: 0;
    background: linear-gradient(var(--rth-bg), transparent);
}

.rt-hero__chips-wrap::after {
    bottom: 0;
    background: linear-gradient(transparent, var(--rth-bg));
}

.rt-hero__chips-wrap.has-top::before {
    opacity: 1;
}

.rt-hero__chips-wrap.has-bottom::after {
    opacity: 1;
}

.rt-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rt-hero__chip {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--rth-ink);
    background: var(--rth-card);
    border: 1px solid var(--rth-chip-line);
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}

.rt-hero__chip:hover {
    border-color: color-mix(in srgb, var(--color_brand) 55%, #dfe5ec);
    background: var(--rth-tint-8);
}

.rt-hero__chip.is-active {
    background: var(--color_brand);
    border-color: var(--color_brand);
    color: #fff;
}

.rt-hero__chip--hidden {
    display: none;
}

.rt-hero__chip--more {
    background: transparent;
    border-style: dashed;
    border-color: color-mix(in srgb, var(--color_brand) 40%, #cfd6dd);
    color: var(--rth-deep);
}

.rt-hero__chip--more:hover {
    background: var(--rth-tint-8);
}

/* --- оценщик (readout) --- */
.rt-hero__readout {
    margin-top: 16px;
    background: var(--rth-card);
    border: 1px solid var(--rth-line);
    border-radius: 14px;
    padding: 16px 18px;
}

.rt-hero__readout-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
}

.rt-hero__label {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rth-muted);
}

.rt-hero__price {
    position: relative;
    display: inline-block;
    padding-bottom: 9px;
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums lining-nums;
}

.rt-hero__price::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 2px;
    background: var(--color_brand);
}

.rt-hero__price-note {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    color: var(--rth-muted);
}

.rt-hero__time {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--rth-tint-8);
    color: var(--rth-deep);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.rt-hero__time svg {
    width: 16px;
    height: 16px;
}

.rt-hero__verdict {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--rth-soft);
    font-size: 14px;
    color: #37424e;
}

.rt-hero__price,
.rt-hero__price-note,
.rt-hero__verdict,
.rt-hero__time span {
    transition: opacity .16s, transform .16s;
}

.rt-hero__readout.is-swap .rt-hero__price,
.rt-hero__readout.is-swap .rt-hero__price-note,
.rt-hero__readout.is-swap .rt-hero__verdict,
.rt-hero__readout.is-swap .rt-hero__time span {
    opacity: 0;
    transform: translateY(3px);
}

/* --- форма --- */
.rt-hero__form {
    margin-top: 16px;
}

.rt-hero__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rt-hero__input {
    flex: 1 1 220px;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    font: inherit;
    font-size: 15px;
    color: var(--rth-ink);
    background: var(--rth-card);
    border: 1px solid #cfd6dd;
    border-radius: 12px;
}

.rt-hero__input::placeholder {
    color: #9aa4ae;
}

.rt-hero__input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--color_brand) 60%, #cfd6dd);
    box-shadow: 0 0 0 3px var(--rth-ring);
}

.rt-hero__submit {
    height: 50px;
    padding: 0 26px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--color_brand);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color .15s;
}

.rt-hero__submit:hover {
    background: var(--rth-deep);
}

.rt-hero__submit:active {
    transform: translateY(1px);
}

.rt-hero__promo {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--rth-deep);
}

.rt-hero__promo svg {
    width: 15px;
    height: 15px;
    flex: none;
}

.rt-hero__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--rth-muted);
    cursor: pointer;
}

.rt-hero__consent input {
    margin: 2px 0 0;
    accent-color: var(--color_brand);
}

.rt-hero__consent a {
    color: var(--rth-deep);
}

/* --- подтверждение заявки --- */
.rt-hero__done {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: var(--rth-card);
    border: 1px solid color-mix(in srgb, var(--color_brand) 35%, #dfe5ec);
    border-radius: 14px;
    font-size: 14px;
    color: #37424e;
}

.rt-hero__done svg {
    width: 26px;
    height: 26px;
    flex: none;
    color: var(--color_brand);
}

.rt-hero__done b {
    display: block;
    margin-bottom: 2px;
    color: var(--rth-ink);
}

/* --- нижняя строка --- */
.rt-hero__foot {
    margin: 16px 0 0;
    font-size: 13.5px;
    color: var(--rth-muted);
}

.rt-hero__foot a {
    color: var(--rth-ink);
    font-weight: 700;
    text-decoration: none;
}

.rt-hero__foot a:hover {
    color: var(--rth-deep);
}

.rt-hero__foot .rt-hero__foot-link {
    color: var(--rth-deep);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rt-hero__dot {
    margin: 0 4px;
}

/* --- сайдбар: статистика --- */
.rt-hero__aside {
    display: grid;
    gap: 14px;
}

.rt-hero__proof {
    background: var(--rth-card);
    border: 1px solid var(--rth-line);
    border-radius: 14px;
    padding: 18px;
}

.rt-hero__proof .rt-hero__label {
    margin-bottom: 4px;
}

.rt-hero__proof-item {
    padding: 11px 0;
    border-top: 1px dashed var(--rth-soft);
}

.rt-hero__proof-item:first-of-type {
    border-top: 0;
}

.rt-hero__proof-item:last-child {
    padding-bottom: 0;
}

.rt-hero__proof-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    color: var(--rth-deep);
}

.rt-hero__proof-text {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--rth-muted);
}

.rt-hero__promise {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 0 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #37424e;
}

.rt-hero__promise svg {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 1px;
    color: var(--color_brand);
}

/* --- фокус с клавиатуры --- */
.rt-hero__chip:focus-visible,
.rt-hero__submit:focus-visible,
.rt-hero__consent input:focus-visible,
.rt-hero__crumbs a:focus-visible,
.rt-hero__foot a:focus-visible {
    outline: 3px solid var(--rth-ring);
    outline-offset: 2px;
}

/* ============================== адаптив ============================== */
@media (max-width:900px) {
    .rt-hero__inner {
        grid-template-columns: 1fr;
    }

    /* мобайл: симптомы — вертикальный список с внутренним скроллом,
     видно ровно --rth-mob-visible элементов (высота считается сама) */
    .rt-hero__chips {
        --rth-mob-visible: 5;
        /* сколько элементов видно без скролла */
        --rth-mob-chip: 44px;
        /* высота одного элемента */
        --rth-mob-gap: 8px;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: var(--rth-mob-gap);
        max-height: calc(var(--rth-mob-visible)*var(--rth-mob-chip) + (var(--rth-mob-visible) - 1)*var(--rth-mob-gap));
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .rt-hero__chip {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: var(--rth-mob-chip);
        padding: 10px 14px;
        border-radius: 12px;
        text-align: left;
    }

    .rt-hero__chip--hidden {
        display: flex;
    }

    .rt-hero__chip--more {
        display: none;
    }
}

@media (max-width:560px) {
    .rt-hero {
        padding: 16px;
        border-radius: 16px;
    }

    .rt-hero__input {
        flex-basis: 100%;
    }

    .rt-hero__submit {
        width: 100%;
    }

    .rt-hero__readout {
        padding: 14px;
    }
}

@media (prefers-reduced-motion:reduce) {

    .rt-hero *,
    .rt-hero *::before,
    .rt-hero *::after {
        transition: none !important;
    }
}