/* Trade-in 2026 — Figma 5047-313 */

.trd {
    color: var(--black_title, #0C1533);
    font-family: var(--font, Inter, Arial, sans-serif);
}

.trd :where(h1, h2, h3, p) {
    margin: 0;
    padding: 0;
    font-weight: inherit;
}

.trd img {
    display: block;
    max-width: none;
}

.trd-br-mob {
    display: none;
}

.trd__container {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.trd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    min-width: 236px;
    padding: 15px 40px;
    box-sizing: border-box;
    background: var(--orange, #FF7800);
    border-radius: 8px;
    color: #fff !important;
    font-family: var(--font, Inter, Arial, sans-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .2s ease;
}

.trd-btn:hover,
.trd-btn:focus {
    background: var(--orange_buttonHover, #FF9142);
    color: #fff;
}

/* ---------- Hero ---------- */

.trd-hero {
    padding-top: 24px;
}

.trd-hero__card {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 520px;
    padding: 40px;
    background: var(--black_title, #0C1533);
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.trd-hero__content {
    position: relative;
    z-index: 3;
    width: 655px;
    max-width: 56%;
}

.trd-hero__eyebrow {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .75);
}

.trd-hero__title {
    font-family: var(--font_title, Golos, Arial, sans-serif);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.trd-hero__title span {
    color: var(--orange, #FF7800);
}

.trd p.trd-hero__subtitle {
    margin-top: 16px;
    max-width: 676px;
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .75);
}

.trd-hero__note {
    margin-top: 40px;
    max-width: 615px;
    padding: 20px 116px 20px 24px;
    box-sizing: border-box;
    background: rgba(0, 75, 255, .1);
    border-radius: 16px;
    font-size: 20px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .75);
}

.trd-hero__note s {
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
}

.trd-br-tab {
    display: none;
}

.trd-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 40px;
}

.trd-hero__deadline {
    font-size: 14px;
    line-height: 1.4;
    color: #E3F0FF;
}

.trd-hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 715px;
    pointer-events: none;
}

.trd-hero__media::before {
    content: '';
    position: absolute;
    inset: 0;
    display: none;
    background: radial-gradient(circle 820px at 100% 100%, rgba(8, 60, 235, .66) 0%, rgba(8, 60, 235, .42) 30%, rgba(8, 60, 235, .14) 60%, rgba(8, 60, 235, .04) 80%, rgba(8, 60, 235, 0) 100%);
}

.trd-hero__glow {
    position: absolute;
    left: 177px;
    top: 10px;
    width: 567px;
    height: 556px;
}

.trd-hero__img {
    position: absolute;
    left: 0;
    bottom: 0;
    width: auto;
    height: 100%;
    object-fit: cover;
}

.trd-hero__arrows {
    position: absolute;
    left: 364px;
    top: 175px;
    width: 116px;
    height: 113px;
    transform: rotate(-8deg);
}

/* ---------- Offer strip ---------- */

.trd-offer {
    padding-top: 64px;
}

.trd-offer__card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 157px;
    padding: 40px;
    background: var(--black_title, #0C1533);
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.trd-offer__text {
    position: relative;
    z-index: 3;
    max-width: 695px;
    font-family: var(--font_title, Golos, Arial, sans-serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
}

.trd-offer__blue2 {
    position: absolute;
    left: -342px;
    top: -89px;
    z-index: 1;
    width: 567px;
    height: 556px;
}

.trd-offer__blue3 {
    position: absolute;
    left: 939px;
    top: -214px;
    z-index: 1;
    width: 420px;
    height: 412px;
}

.trd-offer__decor {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
    width: 373px;
    height: 157px;
}

/* ---------- Set ---------- */

.trd-set {
    margin-top: 96px;
    padding: 64px 0;
    background: #E3F0FF;
}

.trd-set__title {
    margin-bottom: 40px;
    font-family: var(--font_title, Golos, Arial, sans-serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 44px;
    color: var(--black_title, #0C1533);
}

.trd-set__grid {
    display: flex;
    align-items: stretch;
    gap: 32px;
}

.trd-set__main {
    position: relative;
    flex: 0 0 400px;
    min-height: 362px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
}

.trd-set__main-decor {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    height: auto;
}

.trd-set__main-title {
    position: relative;
    z-index: 3;
    max-width: 255px;
    font-family: var(--font_title, Golos, Arial, sans-serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black_title, #0C1533);
}

.trd-set__items {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.trd-set__row {
    display: flex;
    flex: 0 0 auto;
    gap: 24px;
}

.trd-set__row:nth-child(1) {
    height: 184px;
}

.trd-set__row:nth-child(2) {
    height: 154px;
}

.trd-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-sizing: border-box;
}

.trd-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--orange_lighter, #FFF5E9);
    border-radius: 8px;
}

.trd-card__icon img {
    width: 24px;
    height: 24px;
}

.trd-card__text {
    margin-top: auto;
    font-size: 20px;
    line-height: 1.5;
    color: var(--black_title, #0C1533);
}

/* ---------- Steps ---------- */

.trd-steps {
    margin-top: 96px;
}

.trd-steps__title {
    margin-bottom: 64px;
    font-family: var(--font_title, Golos, Arial, sans-serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: var(--black_title, #0C1533);
}

.trd-steps__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.trd-step {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--gray_light, #DDE1EC);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    box-sizing: border-box;
}

.trd-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    background: url(i/2026/step-circle.svg) center / contain no-repeat;
    font-family: var(--font_title, Golos, Arial, sans-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: var(--orange, #FF7800);
}

.trd-step__title {
    margin-bottom: 8px;
    font-family: var(--font_title, Golos, Arial, sans-serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black_title, #0C1533);
}

.trd-step__text {
    font-size: 20px;
    line-height: 1.5;
    color: var(--black_title, #0C1533);
}

.trd-step--wide {
    position: relative;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 205px;
    overflow: hidden;
}

.trd-step--wide .trd-step__glow {
    position: absolute;
    right: -253px;
    top: -17px;
    z-index: 0;
    width: 633px;
    height: 633px;
}

.trd-step--wide .trd-step__img {
    position: absolute;
    right: 45px;
    top: 22px;
    z-index: 1;
    width: 475px;
    height: 161px;
}

.trd-step__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 590px;
}

/* ---------- CTA ---------- */

.trd-cta {
    margin-top: 96px;
    padding-bottom: 96px;
}

.trd-cta__card {
    position: relative;
    padding: 48px 56px 44px;
    background: #B2D3FF url(i/2026/cta-decor.webp) 0 0 / 100% 100% no-repeat;
    border-radius: 32px;
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

.trd-cta .trd-btn {
    min-width: 236px;
}

.trd-cta__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.trd-cta__title {
    font-family: var(--font_title, Golos, Arial, sans-serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 44px;
    color: var(--black_title, #0C1533);
}

.trd-cta__text {
    max-width: 577px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--black_title, #0C1533);
}

/* ---------- Responsive: tablet 768-1279 (Figma 5061-708) ---------- */

.trd-offer__decor-tab,
.trd img.trd-set__main-decor-tab,
.trd img.trd-set__main-decor-mob,
.trd img.trd-step__img-tab,
.trd img.trd-step__img-mob,
.trd img.trd-hero__img-tab {
    display: none;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .trd__container {
        max-width: 768px;
        padding: 0 54px;
    }

    /* hero */
    .trd-hero__card {
        min-height: 714px;
        padding: 32px;
    }

    .trd-hero__content {
        width: 100%;
        max-width: none;
    }

    .trd-hero__title {
        font-size: 48px;
    }

    .trd p.trd-hero__subtitle {
        max-width: 379px;
    }

    .trd-hero__note {
        margin-top: 32px;
        max-width: none;
        padding: 20px 24px;
        line-height: 1.5;
    }

    .trd-br-tab {
        display: inline;
    }

    .trd-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-top: 32px;
    }

    .trd-hero__media {
        top: auto;
        right: 0;
        bottom: 0;
        width: 539px;
        height: 392px;
        z-index: 3;
    }

    .trd-hero__img {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .trd img.trd-hero__img {
        display: none;
    }

    .trd img.trd-hero__img-tab {
        position: absolute;
        left: 0;
        bottom: 0;
        display: block;
        width: 539px;
        height: auto;
    }

    /* offer strip */
    .trd-offer__card {
        padding: 32px;
    }

    .trd-offer__text {
        max-width: 360px;
        line-height: 1.2;
    }

    .trd img.trd-offer__blue2,
    .trd img.trd-offer__blue3 {
        display: none;
    }

    .trd-offer__card::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: url(i/2026/offer-glow-tab.webp) 0 0 / 100% 100% no-repeat;
        pointer-events: none;
    }

    .trd img.trd-offer__decor {
        display: none;
    }

    .trd-offer__decor-tab {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: block;
        pointer-events: none;
    }

    .trd-offer__spruce {
        position: absolute;
        left: 433px;
        top: -31px;
        width: 330px;
        height: 220px;
        transform: rotate(-151.1deg);
    }

    .trd-offer__ornament {
        position: absolute;
        left: 431px;
        top: 72px;
        width: 113px;
        height: 118px;
    }

    /* set */
    .trd-set {
        padding: 48px 0;
    }

    .trd-set__title {
        margin-bottom: 40px;
        line-height: 1.2;
    }

    .trd-set__grid {
        flex-direction: column;
        gap: 24px;
    }

    .trd-set__items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 168px 138px;
        gap: 24px;
        width: 100%;
    }

    .trd-set__row {
        display: contents;
    }

    .trd-set__row:nth-child(1) .trd-card:nth-child(1) {
        grid-area: 1 / 1;
    }

    .trd-set__row:nth-child(1) .trd-card:nth-child(2) {
        grid-area: 2 / 2;
    }

    .trd-set__row:nth-child(2) .trd-card:nth-child(1) {
        grid-area: 1 / 2;
    }

    .trd-set__row:nth-child(2) .trd-card:nth-child(2) {
        grid-area: 2 / 1;
    }

    .trd-card {
        padding: 24px;
    }

    .trd-set__main {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        height: 184px;
        min-height: 0;
        padding: 24px;
    }

    .trd img.trd-set__main-decor {
        display: none;
    }

    .trd img.trd-set__main-decor-tab {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
        display: block;
        width: 100%;
        height: 100%;
    }

    .trd-set__main-title {
        max-width: 330px;
    }

    /* steps */
    .trd-steps__title {
        margin-bottom: 40px;
    }

    .trd-steps__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .trd-step {
        padding: 24px;
        min-height: 166px;
    }

    .trd-step:nth-child(2) {
        min-height: 196px;
    }

    .trd-step:nth-child(3),
    .trd-step:nth-child(4) {
        min-height: 226px;
    }

    .trd-step__num {
        margin-bottom: 16px;
    }

    .trd-step__title,
    .trd-step__text {
        max-width: 596px;
    }

    .trd-step--wide {
        min-height: 384px;
        padding: 24px;
        justify-content: flex-start;
    }

    .trd-step--wide .trd-step__glow {
        left: 260px;
        right: auto;
        top: 100px;
    }

    .trd-step--wide .trd-step__img {
        left: 198px;
        right: auto;
        top: auto;
        bottom: 24px;
        width: 506px;
        height: 172px;
    }

    .trd img.trd-step__img {
        display: none;
    }

    .trd img.trd-step__img-tab {
        position: absolute;
        left: 24px;
        top: 188px;
        display: block;
        width: 612px;
        height: 172px;
        object-fit: contain;
        mix-blend-mode: multiply;
    }

    /* cta */
    .trd-cta__card {
        min-height: 341px;
        padding: 48px 56px 44px;
        background-image: url(i/2026/cta-decor-tab.webp);
    }

    .trd-cta__title {
        font-size: 32px;
        line-height: 1.2;
    }

    .trd-cta__text {
        max-width: 548px;
    }
}

/* ---------- Responsive: mobile < 768 ---------- */

@media (max-width: 767px) {
    .trd__container {
        max-width: 320px;
        padding: 0 20px;
    }

    /* hero */
    .trd-hero__card {
        display: block;
        min-height: 0;
        padding: 24px;
    }

    .trd-hero__content {
        width: 100%;
        max-width: none;
    }

    .trd-hero__eyebrow {
        margin-bottom: 16px;
        font-size: 16px;
    }

    .trd-hero__title {
        font-size: 32px;
    }

    .trd p.trd-hero__subtitle {
        margin-top: 16px;
        max-width: none;
        font-size: 16px;
    }

    .trd-hero__note {
        margin-top: 24px;
        max-width: none;
        padding: 16px 32px 16px 16px;
        font-size: 16px;
        line-height: 1.5;
    }

    .trd-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 24px;
    }

    .trd-hero__media {
        display: none;
    }

    .trd-hero .trd-btn,
    .trd-cta .trd-btn {
        width: 100%;
        min-width: 0;
        min-height: 51px;
        padding: 15px 16px;
        font-size: 16px;
    }

    .trd-hero__deadline {
        text-align: center;
    }

    .trd-br-mob {
        display: inline;
    }

    /* offer */
    .trd-offer__card {
        min-height: 320px;
        padding: 24px;
    }

    .trd-offer__text {
        max-width: 232px;
        font-size: 24px;
        line-height: 1.2;
    }

    .trd img.trd-offer__blue2,
    .trd img.trd-offer__blue3 {
        display: none;
    }

    .trd-offer__card::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        background: url(i/2026/offer-glow-mob.webp) 0 0 / 100% 100% no-repeat;
        pointer-events: none;
    }

    .trd img.trd-offer__decor {
        display: none;
    }

    .trd-offer__card {
        align-items: flex-start;
    }

    .trd-offer__decor-tab {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: block;
        pointer-events: none;
    }

    .trd-offer__spruce {
        position: absolute;
        left: 98px;
        top: 93px;
        width: 324px;
        height: 216px;
        transform: rotate(-151.1deg);
    }

    .trd-offer__ornament {
        position: absolute;
        left: 96px;
        top: 194px;
        width: 111px;
        height: 116px;
    }

    /* set */
    .trd-set {
        padding: 32px 0;
    }

    .trd-set__title {
        margin-bottom: 32px;
        font-size: 24px;
        line-height: 1.2;
    }

    .trd-set__grid {
        flex-direction: column;
        gap: 16px;
    }

    .trd-set__main {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        height: 277px;
        min-height: 0;
        padding: 24px;
    }

    .trd-set__main-title {
        max-width: 210px;
        font-size: 18px;
        line-height: 1.3;
    }

    .trd img.trd-set__main-decor,
    .trd img.trd-set__main-decor-tab {
        display: none;
    }

    .trd img.trd-set__main-decor-mob {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 1;
        display: block;
        width: 100%;
        height: 100%;
    }

    .trd-set__items {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .trd-set__row {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 16px;
    }

    .trd-set__row:nth-child(1),
    .trd-set__row:nth-child(2) {
        height: auto;
    }

    .trd-set__row .trd-card {
        width: 100%;
    }

    .trd-card {
        gap: 16px;
        padding: 24px;
    }

    .trd-card__text {
        font-size: 16px;
    }

    .trd-set__items .trd-card {
        flex: 0 0 auto;
        min-height: 132px;
    }

    .trd-set__items > .trd-set__row:first-child > .trd-card:first-child {
        min-height: 156px;
    }

    /* steps */
    .trd-steps__title {
        margin-bottom: 32px;
        font-size: 24px;
        line-height: 1.2;
        text-align: left;
    }

    .trd-steps__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trd-step {
        min-height: 176px;
        padding: 24px;
    }

    .trd-step:nth-child(2) {
        min-height: 248px;
    }

    .trd-step:nth-child(3),
    .trd-step:nth-child(4) {
        min-height: 296px;
    }

    .trd-step__title {
        margin-bottom: 8px;
        font-size: 18px;
        line-height: 1.3;
    }

    .trd-step__text {
        max-width: 232px;
        font-size: 16px;
    }

    .trd-step--wide {
        min-height: 367px;
        padding: 24px;
        justify-content: flex-start;
    }

    .trd-step--wide .trd-step__glow {
        left: -120px;
        right: auto;
        top: 100px;
    }

    .trd img.trd-step__img,
    .trd img.trd-step__img-tab {
        display: none;
    }

    .trd img.trd-step__img-mob {
        position: absolute;
        left: 24px;
        top: 264px;
        display: block;
        width: 232px;
        height: 79px;
        object-fit: contain;
        mix-blend-mode: multiply;
    }

    /* cta */
    .trd-cta__card {
        min-height: 334px;
        padding: 32px 16px 33px;
        background-image: url(i/2026/cta-decor-mob.webp);
        border-radius: 32px;
    }

    .trd-cta__body {
        gap: 32px;
    }

    .trd-cta__title {
        font-size: 24px;
        line-height: 1.2;
    }

    .trd-cta__text {
        max-width: 248px;
        font-size: 16px;
    }

    .trd-cta__br {
        display: inline;
    }

    .trd-offer {
        padding-top: 0;
    }

    .trd-offer,
    .trd-set,
    .trd-steps,
    .trd-cta {
        margin-top: 48px;
    }

    .trd-cta {
        margin-bottom: 48px;
        padding-bottom: 0;
    }
}

@media (min-width: 1280px) {
    .trd-step {
        min-height: 212px;
    }

    .trd-step:nth-child(3),
    .trd-step:nth-child(4) {
        min-height: 272px;
    }

    .trd-step--wide {
        min-height: 205px;
        padding-bottom: 25px;
    }
}
