/* Страница Оплата и доставка */
.delivery-page {
    padding: 40px 0 60px;
    overflow: hidden; /* чтобы предотвратить выпадение блоков */
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    color: #2E2E2E;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C6A43F, transparent);
}

/* Расширяем основной контент */
.delivery-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* сбрасываем возможные флоаты */
}

/* Делаем сетку из двух колонок более широкой */
.delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Секции занимают всю ширину и имеют хорошие отступы */
.delivery-section {
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    border: 1px solid #f0e8dd;
    margin-bottom: 30px;
    clear: both; /* предотвращаем наложение */
    box-sizing: border-box;
}

.delivery-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    color: #2E2E2E;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #C6A43F, transparent);
}

.delivery-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.delivery-section p:last-child {
    margin-bottom: 0;
}

.delivery-section ul,
.delivery-section ol {
    margin: 0 0 25px 0;
    padding-left: 0;
}

.delivery-section li {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.delivery-section li i {
    color: #C6A43F;
    width: 24px;
    font-size: 18px;
    text-align: center;
}

.delivery-section ol li {
    list-style-type: decimal;
    display: list-item;
    margin-left: 25px;
    padding-left: 5px;
}

.delivery-section ol li::marker {
    color: #C6A43F;
    font-weight: 500;
}

/* Кнопка магазина */
.wb-shop-button {
    display: inline-block;
    background: linear-gradient(135deg, #7B3FE4 0%, #9f6eff 100%);
    color: #fff;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 10px 25px rgba(123, 63, 228, 0.3);
    margin-top: 10px;
}

.wb-shop-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(123, 63, 228, 0.4);
}

/* Контакты */
.contacts-list {
    margin-top: 20px;
}

.contacts-list li {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contacts-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.contacts-list a:hover {
    color: #C6A43F;
}

/* Адаптивность */
@media screen and (max-width: 1024px) {
    .delivery-section {
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    .delivery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .section-title {
        font-size: 24px;
    }
    .delivery-section {
        padding: 25px;
        margin-bottom: 20px;
    }
    .delivery-section:last-child {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    .delivery-section {
        padding: 20px;
    }
    .delivery-section li {
        font-size: 15px;
        flex-wrap: wrap;
    }
    .wb-shop-button {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 16px;
    }
}