.delivery-page {
    --dp-accent: #b5471d;
    --dp-orange: #e8672c;
    --dp-ink: #2c211b;
    --dp-muted: #756b65;
    --dp-line: #e9e2dc;
    color: var(--dp-ink);
    margin: 0px 0 48px;
    font-size: 16px;
    line-height: 1.5
}

.delivery-page * {
    box-sizing: border-box
}

.delivery-page h2,.delivery-page h3,.delivery-page p {
    margin: 0
}

.delivery-page a {
    color: inherit
}

.delivery-page [hidden] {
    display: none!important
}

.delivery-page :focus-visible {
    outline: 3px solid var(--dp-accent);
    outline-offset: 4px
}

.delivery-intro {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    padding: 44px 48px;
    background: #fbf4ed;
    border: 1px solid #f0e3d8;
    border-radius: 20px;
    position: relative;
    overflow: hidden
}

.delivery-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 1.6px;
    font-weight: 700;
    color: var(--dp-accent);
    line-height: 1.6
}

.delivery-intro h2 {
    font-size: clamp(32px,3.5vw,48px);
    line-height: 1.08;
    letter-spacing: -1.6px;
    font-weight: 700;
    margin: 16px 0 18px
}

.delivery-intro__copy>p {
    max-width: 510px;
    color: var(--dp-muted);
    font-size: 16px;
    line-height: 1.7
}

.delivery-page .delivery-intro__link {
    display: inline-flex;
    gap: 32px;
    align-items: center;
    color: var(--dp-accent);
    font-weight: 600;
    margin-top: 24px;
    border-bottom: 1px solid #d9a184;
    padding-bottom: 5px
}

.delivery-intro__link span {
    font-size: 23px
}

.delivery-page .delivery-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    align-self: center;
    display: grid;
    gap: 26px
}

.delivery-steps li {
    display: flex;
    align-items: center;
    gap: 20px
}

.delivery-steps li>span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border: 1px solid #e4cbb9;
    border-radius: 50%;
    color: var(--dp-accent);
    font-size: 13px
}

.delivery-steps strong {
    font-size: 17px;
    font-weight: 600
}

.delivery-steps p {
    font-size: 14px;
    color: var(--dp-muted);
    margin-top: 3px
}

.delivery-fleet,.delivery-calculator {
    margin-top: 44px;
    scroll-margin-top: 160px
}

.delivery-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px
}

.delivery-section-heading h2 {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.6px;
    margin-top: 7px
}

.delivery-section-heading>p {
    font-size: 14px;
    color: var(--dp-muted);
    text-align: right
}

.delivery-vehicles {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 16px
}

.delivery-vehicle {
    display: block;
    position: relative;
    cursor: pointer;
    min-width: 0;
    margin: 0
}

.delivery-vehicle>input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    left: 20px;
    top: 20px
}

.delivery-vehicle__body {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--dp-line);
    border-radius: 14px;
    background: #fff;
    padding: 20px;
    transition: border-color .15s,box-shadow .15s
}

.delivery-vehicle:hover .delivery-vehicle__body {
    border-color: #d6a085
}

.delivery-vehicle>input:checked+.delivery-vehicle__body {
    border-color: var(--dp-orange);
    box-shadow: 0 0 0 1px var(--dp-orange);
    background: #fffcf9
}

.delivery-vehicle>input:focus-visible+.delivery-vehicle__body {
    outline: 3px solid var(--dp-accent);
    outline-offset: 4px
}

.delivery-vehicle__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--dp-muted)
}

.delivery-vehicle>input:checked+.delivery-vehicle__body .delivery-vehicle__choice {
    font-size: 0;
    color: var(--dp-accent)
}

.delivery-vehicle>input:checked+.delivery-vehicle__body .delivery-vehicle__choice:after {
    content: 'Машина выбрана';
    font-size: 12px;
}

.delivery-vehicle__check {
    width: 20px;
    height: 20px;
    border: 1.5px solid #c9bdb4;
    border-radius: 50%;
    flex-shrink: 0
}

.delivery-vehicle>input:checked+.delivery-vehicle__body .delivery-vehicle__check {
    border: 6px solid var(--dp-orange)
}

.delivery-vehicle__image {
    display: flex;
    height: 114px;
    align-items: center;
    justify-content: center;
    margin: 10px 0 14px;
    color: #b69c88;
    background: radial-gradient(ellipse at 50% 76%,#f3e9df 0,transparent 65%)
}

.delivery-vehicle__image img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 110px;
    object-fit: contain
}

.delivery-vehicle__image svg {
    width: 180px;
    max-width: 90%;
    height: 90px
}

.delivery-vehicle__name {
    display: block;
    font-size: 17px;
    line-height: 1.25;
    margin-bottom: 7px;
    overflow-wrap: anywhere
}

.delivery-vehicle__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto
}

.delivery-vehicle__specs>span {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.delivery-vehicle__specs span span {
    font-size: 12px;
    color: var(--dp-muted)
}

.delivery-vehicle__specs strong {
    font-size: 14px;
}

.delivery-vehicle__unloading {
    display: block;
    font-size: 12px;
    color: var(--dp-muted);
    margin-top: 8px;
    min-height: 28px;
}

.delivery-vehicle__price {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--dp-line);
    padding-top: 14px;
    gap: 4px;
}

.delivery-vehicle__price strong {
    font-size: 13px;
    line-height: 1.2
}

.delivery-vehicle__price>span {
    font-size: 12px;
    color: var(--dp-muted)
}

.delivery-calculator__layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 320px;
    gap: 24px;
    align-items: start
}

.delivery-location {
    min-width: 0;
    border: 1px solid var(--dp-line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden
}

.delivery-search {
    padding: 24px
}

.delivery-search>label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 9px
}

.delivery-search__row {
    display: flex;
    gap: 10px
}

.delivery-search__input {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0
}

.delivery-page .delivery-search input {
    width: 100%;
    min-width: 0;
    border: 1px solid #d9cec5;
    border-radius: 8px;
    height: 50px;
    background: #fff;
    padding: 0 44px 0 14px;
    font: inherit;
    color: var(--dp-ink);
    box-shadow: none
}

.delivery-search input::placeholder {
    color: #81776e
}

.delivery-page .delivery-button {
    border: 0;
    border-radius: 8px;
    padding: 0 20px;
    min-height: 50px;
    background: var(--dp-accent);
    color: white;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-shrink: 0
}

.delivery-page .delivery-button:hover {
    background: #913613
}

.delivery-page .delivery-button:disabled {
    background: #e5ddd6;
    color: #766c62;
    cursor: wait
}

.delivery-page .delivery-address-clear {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1ebe6;
    color: #615850;
    font-size: 23px;
    line-height: 1;
    cursor: pointer
}

.delivery-address-clear[hidden] {
    display: none!important
}

.delivery-search>p {
    font-size: 12px;
    color: var(--dp-muted);
    margin-top: 9px
}

.delivery-map-wrap {
    position: relative;
    background: #f3f0ea
}

.delivery-map {
    height: 390px;
    width: 100%
}

.delivery-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 28px;
    text-align: center;
    color: var(--dp-muted);
    background: linear-gradient(32deg,transparent 48%,#e9e4da 49%,#e9e4da 51%,transparent 52%),linear-gradient(135deg,#f3f1ea 46%,#e5e9e0 47%,#e5e9e0 66%,#f3f1ea 67%);
    background-size: 160px 180px,100% 100%
}

.delivery-map-placeholder>strong,.delivery-map-placeholder>span {
    background: #f8f6f0;
    padding: 4px 10px;
    border-radius: 6px;
    max-width: 100%
}

.delivery-map-placeholder__icon {
    font-size: 26px;
    color: var(--dp-accent)
}

.delivery-map-placeholder>span:last-child {
    font-size: 13px
}

.delivery-map-caption {
    padding: 12px 20px;
    font-size: 12px;
    color: var(--dp-muted)
}

.delivery-map-caption>span {
    color: var(--dp-accent);
    margin-right: 6px
}

.delivery-summary {
    border-radius: 16px;
    background: #f8f4ef;
    padding: 28px;
    border: 1px solid #ece3db;
    min-width: 0
}

.delivery-summary h3 {
    font-size: 19px;
    line-height: 1.25;
    margin: 12px 0 24px;
    overflow-wrap: anywhere
}

.delivery-summary__details {
    display: grid;
    gap: 12px;
    margin: 0
}

.delivery-summary__details>div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    font-size: 13px
}

.delivery-summary__details dt {
    color: var(--dp-muted)
}

.delivery-summary__details dd {
    margin: 0;
    white-space: nowrap;
    font-weight: 600
}

.delivery-summary__total {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e0d5cb;
    margin-top: 22px;
    padding-top: 22px;
    gap: 4px
}

.delivery-summary__total>span {
    font-size: 13px;
    color: var(--dp-muted)
}

.delivery-summary__total>strong {
    font-size: 36px;
    line-height: 1.3;
    letter-spacing: -1px;
    overflow-wrap: anywhere
}

.delivery-status {
    font-size: 13px;
    margin-top: 12px!important;
    color: var(--dp-muted)
}

.delivery-status[data-state="error"] {
    color: #a13121
}

.delivery-summary__note {
    font-size: 12px;
    line-height: 1.6;
    color: var(--dp-muted);
    margin-top: 18px!important
}

.delivery-summary__help {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0d5cb
}

.delivery-summary__help>span {
    font-size: 12px;
    color: var(--dp-muted)
}

.delivery-summary__help strong {
    font-size: 16px;
    color: var(--dp-accent)
}

.delivery-summary__help strong span {
    float: right
}

.delivery-change-address {
    width: 100%;
    margin-top: 14px;
    border: 1px solid #cfae9c;
    border-radius: 8px;
    background: #fff;
    color: var(--dp-accent);
    min-height: 42px;
    font: inherit;
    font-weight: 600;
    cursor: pointer
}

.delivery-change-address[hidden] {
    display: none
}

.delivery-mobile-next,.delivery-mobile-back {
    display: none
}

.delivery-notes {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 32px;
    border-top: 1px solid var(--dp-line);
    margin-top: 44px;
    padding-top: 30px
}

.delivery-notes__number {
    font-size: 12px;
    color: var(--dp-accent)
}

.delivery-notes h3 {
    font-size: 17px;
    margin: 8px 0
}

.delivery-notes p {
    font-size: 14px;
    color: var(--dp-muted);
    line-height: 1.6
}

.delivery-empty {
    background: #fbf4ed;
    padding: 24px;
    border-radius: 12px
}

.delivery-empty a {
    text-decoration: underline
}

@media(min-width: 1100px) {
    .delivery-vehicles:has(>.delivery-vehicle:nth-child(4)) {
        grid-template-columns:repeat(4,minmax(0,1fr))
    }
}

@media(max-width: 1000px) {
    .delivery-intro {
        padding:32px;
        gap: 32px
    }

    .delivery-calculator__layout {
        grid-template-columns: minmax(0,1fr) 280px;
        gap: 16px
    }

    .delivery-summary {
        padding: 22px
    }

    .delivery-search {
        padding: 18px
    }

    .delivery-search__row {
        flex-wrap: wrap
    }

    .delivery-search__row .delivery-button {
        width: 100%
    }

    .delivery-vehicles {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width: 700px) {
    .delivery-page {
        margin-bottom:30px
    }

    .delivery-intro {
        grid-template-columns: 1fr;
        padding: 26px 22px;
        gap: 28px;
        border-radius: 14px
    }

    .delivery-intro h2 {
        font-size: 36px;
        letter-spacing: -1px
    }

    .delivery-intro__copy>p {
        font-size: 14px
    }

    .delivery-page .delivery-steps {
        gap: 18px;
        padding-top: 24px;
        border-top: 1px solid #e6d6c9
    }

    .delivery-steps li {
        gap: 14px
    }

    .delivery-steps li>span {
        width: 36px;
        height: 36px
    }

    .delivery-steps strong {
        font-size: 15px
    }

    .delivery-steps p {
        font-size: 12px
    }

    .delivery-section-heading>p {
        display: none
    }

    .delivery-section-heading h2 {
        font-size: 24px
    }

    .delivery-fleet {
        margin-top: 32px
    }

    .delivery-calculator {
        display: none;
        margin-top: 32px
    }

    .delivery-page.is-mobile-calculator .delivery-intro,.delivery-page.is-mobile-calculator .delivery-fleet {
        display: none
    }

    .delivery-page.is-mobile-calculator .delivery-calculator {
        display: block;
        margin-top: 12px
    }

    .delivery-mobile-next {
        display: flex;
        width: 100%;
        min-height: 50px;
        margin-top: 16px;
        border: 0;
        border-radius: 9px;
        background: var(--dp-accent);
        color: #fff;
        align-items: center;
        justify-content: center;
        gap: 24px;
        font: inherit;
        font-weight: 600
    }

    .delivery-mobile-back {
        display: inline-flex;
        border: 0;
        background: transparent;
        color: var(--dp-accent);
        font: inherit;
        font-size: 13px;
        gap: 7px;
        margin: 0 0 16px;
        padding: 0
    }

    .delivery-calculator__layout {
        grid-template-columns: 1fr
    }

    .delivery-summary {
        padding: 24px
    }

    .delivery-summary__total>strong {
        font-size: 34px
    }

    .delivery-map {
        height: 310px
    }

    .delivery-notes {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 30px;
        padding-top: 24px
    }

    .delivery-notes>div {
        position: relative;
        padding-left: 34px
    }

    .delivery-notes__number {
        position: absolute;
        left: 0;
        top: 3px
    }

    .delivery-notes h3 {
        margin-top: 0
    }

    .delivery-search input {
        font-size: 16px
    }

    .delivery-calculator {
        scroll-margin-top: 110px
    }
}

@media(max-width: 480px) {
    .delivery-vehicles {
        grid-template-columns:1fr;
        gap: 12px
    }

    .delivery-vehicle__body {
        padding: 18px;
        display: grid;
        grid-template-columns: minmax(0,1fr) 105px;
        column-gap: 12px
    }

    .delivery-vehicle__top,.delivery-vehicle__unloading,.delivery-vehicle__price {
        grid-column: 1/-1
    }

    .delivery-vehicle__image {
        grid-column: 2;
        grid-row: 2/4;
        height: 96px;
        margin: 8px 0
    }

    .delivery-vehicle__image img {
        max-height: 90px
    }

    .delivery-vehicle__name {
        grid-column: 1;
        grid-row: 2;
        font-size: 20px;
        margin: 14px 0 12px
    }

    .delivery-vehicle__specs {
        grid-column: 1;
        grid-row: 3;
        grid-template-columns: 1fr;
        gap: 8px
    }

    .delivery-vehicle__specs>span {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap
    }

    .delivery-vehicle__specs span span {
        font-size: 11px
    }

    .delivery-vehicle__specs strong {
        font-size: 16px
    }

    .delivery-vehicle__unloading {
        min-height: 0;
        margin-top: 14px
    }

    .delivery-vehicle__price {
        margin-top: 12px
    }

    .delivery-vehicle__price strong {
        font-size: 21px
    }

    .delivery-search {
        padding: 18px 16px
    }

    .delivery-map-caption {
        padding: 12px 16px
    }

    .delivery-eyebrow {
        font-size: 10px;
        letter-spacing: 1.3px
    }
}

@media(prefers-reduced-motion:reduce) {
    .delivery-vehicle__body {
        transition: none
    }
}
