/* tsDeliveryRussiaSpb */
.delivery-grid > .ts-delivery-russia-spb ~ .delivery-card--help {
    grid-column: 1 / -1;
}
.delivery-card.ts-delivery-russia-spb .delivery-card__header::before {
    content: "📦";
}

/* deliveryPageStyles */
/* ===== Страница доставки ===== */

.document:has(.delivery-page-modern) {
    padding: 30px !important;
    border: 1px solid #d6e1ec;
    border-radius: 16px;
    background: #f7faff;
    box-shadow: 0 8px 24px rgba(23, 52, 83, .06);
}

.document:has(.delivery-page-modern) .document__header {
    margin: 0 0 8px !important;
    text-align: left;
}

.document:has(.delivery-page-modern) .document__title {
    margin: 0;
    color: #173453;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.document:has(.delivery-page-modern) .document__content {
    font-size: 14px;
    line-height: 1.5;
}

.delivery-page-modern,
.delivery-page-modern * {
    box-sizing: border-box;
}

.delivery-page-modern {
    color: #173453;
}

.delivery-page-modern h2,
.delivery-page-modern p,
.delivery-page-modern ul {
    margin-top: 0;
}

.delivery-page-modern__intro {
    max-width: 760px;
    margin: 0 0 22px !important;
    color: #60738a;
    font-size: 16px;
    line-height: 1.55;
}

/* Краткая информация */

.delivery-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.delivery-fact {
    position: relative;
    min-width: 0;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid #d4e0eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(23, 52, 83, .04);
}

.delivery-fact::after {
    position: absolute;
    bottom: -1px;
    left: 18px;
    width: 48px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #ffd633;
    content: "";
}

.delivery-fact span,
.delivery-fact small {
    display: block;
    color: #65778d;
}

.delivery-fact span {
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 600;
}

.delivery-fact strong {
    display: block;
    margin-bottom: 2px;
    color: #173453;
    font-size: 20px;
    line-height: 1.25;
}

.delivery-fact small {
    font-size: 12px;
}

/* Основные карточки */

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

.delivery-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #d4e0eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(23, 52, 83, .045);
}

.delivery-card__header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 14px;
    margin-bottom: 15px;
    border-bottom: 1px solid #d8e3ed;
}

.delivery-card__header > div {
    min-width: 0;
}

.delivery-card__header h2 {
    margin: 0 0 3px !important;
    color: #173453;
    font-size: 18px;
    line-height: 1.3;
}

.delivery-card__header p {
    margin: 0 !important;
    color: #687b91;
    font-size: 13px;
}

.delivery-card__icon {
    display: flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0ce3f;
    border-radius: 11px;
    color: #173453;
    background: #fff9dc;
}

.delivery-card__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Списки */

.delivery-list {
    display: grid;
    gap: 9px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.delivery-list li {
    position: relative;
    padding-left: 25px;
    color: #344b65;
    line-height: 1.45;
}

.delivery-list li::before {
    position: absolute;
    top: 1px;
    left: 0;
    display: flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #173453;
    background: #ffe36b;
    content: "✓";
    font-size: 10px;
    font-weight: 800;
}

/* Предупреждение */

.delivery-alert {
    margin-top: 15px;
    padding: 11px 13px;
    border: 1px solid #ecd66b;
    border-radius: 10px;
    color: #66551b;
    background: #fff9dc;
    font-size: 12px;
    line-height: 1.45;
}

/* Транспортные компании */

.delivery-carriers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

/* Логотипы транспортных компаний */

.delivery-carriers--logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.delivery-carriers--logos .delivery-carrier {
    display: flex;
    min-width: 0;
    min-height: 76px;
    padding: 10px 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    border: 1px solid #d7e1eb;
    border-radius: 10px;
    background: #fff;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.delivery-carriers--logos .delivery-carrier:hover {
    border-color: #e5c52b;
    box-shadow: 0 5px 13px rgba(23, 52, 83, .08);
    transform: translateY(-1px);
}

.delivery-carriers--logos .delivery-carrier img {
    display: block;
    width: auto !important;
    height: 28px !important;
    max-width: 125px;
    object-fit: contain;
}

.delivery-carriers--logos .delivery-carrier small {
    display: block;
    color: #687b91;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
}

@media (max-width: 575.98px) {
    .delivery-carriers--logos {
        grid-template-columns: 1fr;
    }

    .delivery-carriers--logos .delivery-carrier {
        min-height: 68px;
    }
}

/* Адрес */

.delivery-address {
    padding: 13px 14px;
    margin-bottom: 15px;
    border-left: 3px solid #ffd633;
    border-radius: 0 9px 9px 0;
    background: #f5f8fb;
}

.delivery-address strong {
    display: block;
    margin-bottom: 4px;
}

.delivery-address p {
    margin: 0 !important;
    color: #4e647c;
}

/* Блок связи */

.delivery-card--help {
    border-color: #ecd45d;
    background: linear-gradient(135deg, #fffdf1 0%, #fff9d9 100%);
}

.delivery-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.delivery-phones a {
    padding: 7px 10px;
    border: 1px solid #d9c35c;
    border-radius: 8px;
    color: #173453 !important;
    background: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.delivery-phones a:hover {
    border-color: #173453;
}

.delivery-button {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 17px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2bc16;
    border-radius: 8px;
    color: #173453 !important;
    background: #ffdf4d;
    font-weight: 700;
    text-decoration: none !important;
    transition: .15s ease;
}

.delivery-button:hover {
    background: #ffd52b;
}

/* Планшет */

@media (max-width: 991.98px) {
    .document:has(.delivery-page-modern) {
        padding: 22px !important;
    }

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

/* Телефон */

@media (max-width: 575.98px) {
    .document:has(.delivery-page-modern) {
        padding: 15px !important;
        border-radius: 13px;
    }

    .document:has(.delivery-page-modern) .document__title {
        font-size: 27px;
    }

    .delivery-page-modern__intro {
        margin-bottom: 16px !important;
        font-size: 14px;
    }

    .delivery-facts {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .delivery-fact {
        padding: 13px 15px;
    }

    .delivery-card {
        padding: 15px;
        border-radius: 12px;
    }

    .delivery-card__header {
        align-items: flex-start;
    }

    .delivery-card__header h2 {
        font-size: 17px;
    }

    .delivery-phones {
        flex-direction: column;
    }

    .delivery-phones a,
    .delivery-button {
        width: 100%;
    }
}
.delivery-card__header::before {
    display: flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0ce3f;
    border-radius: 11px;
    background: #fff9dc;
    font-size: 21px;
    line-height: 1;
}

.delivery-card:nth-child(1) .delivery-card__header::before {
    content: "🚚";
}

.delivery-card:nth-child(2) .delivery-card__header::before {
    content: "📦";
}

.delivery-card:nth-child(3) .delivery-card__header::before {
    content: "📍";
}

.delivery-card:nth-child(4) .delivery-card__header::before {
    content: "☎";
}
/* Увеличиваем логотип Деловых Линий */

.delivery-carriers--logos .delivery-carrier:nth-child(3) {
    overflow: hidden;
}

.delivery-carriers--logos .delivery-carrier:nth-child(3) img {
    width: 135px !important;
    height: 30px !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    transform: scale(1.45);
}
.delivery-card--help .delivery-card__header::before {
    content: "☎" !important;
}
/* Отдельный блок доставки Ozon */

.delivery-ozon {
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 21px;
    align-items: center;
    margin: 0 0 16px;
    padding: 20px;
    border: 1px solid #b9ceff;
    border-left: 4px solid #005bff;
    border-radius: 14px;
    background:
        linear-gradient(135deg, #f3f7ff 0%, #ffffff 68%);
    box-shadow: 0 7px 20px rgba(0, 91, 255, .07);
}

.delivery-ozon__logo {
    display: flex;
    min-height: 124px;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid #d5e1ff;
    border-radius: 12px;
    background: #fff;
}

.delivery-ozon__logo img {
    display: block;
    width: 125px !important;
    height: auto !important;
    max-width: 100%;
    max-height: none !important;
    object-fit: contain;
}

.delivery-ozon__content {
    min-width: 0;
}

.delivery-ozon__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid #d5e1f4;
}

.delivery-ozon__header h2 {
    margin: 0 0 4px !important;
    color: #173453;
    font-size: 20px;
    line-height: 1.25;
}

.delivery-ozon__header p {
    max-width: 680px;
    margin: 0 !important;
    color: #61778e;
    font-size: 13px;
    line-height: 1.5;
}

.delivery-ozon__badge {
    flex-shrink: 0;
    padding: 6px 11px;
    border-radius: 20px;
    background: #005bff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.delivery-ozon__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.delivery-ozon__step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: flex-start;
    min-width: 0;
    padding: 11px 9px;
    border: 1px solid #d7e2ee;
    border-radius: 10px;
    background: #fff;
}

.delivery-ozon__number {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #005bff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.delivery-ozon__step strong {
    display: block;
    margin-bottom: 3px;
    color: #173453;
    font-size: 13px;
    line-height: 1.3;
}

.delivery-ozon__step small {
    display: block;
    color: #6f8398;
    font-size: 11px;
    line-height: 1.4;
}

/* Возвращаем три логотипа транспортных компаний */

.delivery-carriers--logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Планшет */

@media (max-width: 991.98px) {
    .delivery-ozon {
        grid-template-columns: 140px minmax(0, 1fr);
    }

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

/* Телефон */

@media (max-width: 575.98px) {
    .delivery-ozon {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 15px;
    }

    .delivery-ozon__logo {
        min-height: 95px;
    }

    .delivery-ozon__logo img {
        width: 105px !important;
    }

    .delivery-ozon__header {
        flex-direction: column;
        gap: 9px;
    }

    .delivery-ozon__header h2 {
        font-size: 18px;
    }

    .delivery-ozon__steps {
        grid-template-columns: 1fr;
    }
}
