/* Стили для страницы доставки (delivery) */

.delivery-page {
    margin: 2rem 0;
}

.delivery-content {
    margin: 2rem 0 0 0;
    line-height: 1.6;
    color: #2c3e50;
    font-size: 1rem;
}

.delivery-intro {
    margin-bottom: 2rem;
}

.delivery-methods,
.payment-methods,
.delivery-terms,
.delivery-regions {
    margin: 3rem 0;
}

.delivery-contact {
    margin: 3rem 0;
    margin-bottom: 0 !important;
}

.delivery-content h2,
.payment-methods h2,
.delivery-terms h2 {
    color: var(--primary-blue, #0A2647) !important;
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
    margin-top: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.delivery-content h3 {
    color: var(--primary-blue, #0A2647);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.delivery-content h4 {
    color: var(--primary-blue, #0A2647);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.delivery-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
    font-size: 1.05rem;
}

.delivery-content ul {
    margin-bottom: 1.5rem;
}

.delivery-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 1rem;
}

.delivery-method,
.payment-item,
.term-item {
    background: white;
    border-left: 4px solid var(--primary-peach, #FFCF9D);
    padding: 1.75rem;
    margin: 1.25rem 0;
    border-radius: 0 10px 10px 0;
    border: 1px solid #f0f0f0;
    border-left: 4px solid var(--primary-peach, #FFCF9D);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.delivery-method:hover,
.payment-item:hover,
.term-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

/* Убрано - используем Bootstrap Grid */

.payment-item .card-title,
.term-item .card-title,
.payment-methods h4,
.delivery-terms h4 {
    color: var(--primary-blue, #0A2647) !important;
    font-weight: 600 !important;
    text-align: center !important;
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
}

.payment-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    margin: 0;
    height: 100%; /* Для равной высоты в Bootstrap Grid */
}

.payment-item:hover {
    box-shadow: 0 4px 12px rgba(10, 38, 71, 0.1);
    transform: translateY(-2px);
}

/* Убрано - используем Bootstrap Grid */

.term-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    border-left: 1px solid #e9ecef;
    transition: all 0.3s ease;
    margin: 0;
    height: 100%; /* Для равной высоты в Bootstrap Grid */
}

.term-item:hover {
    box-shadow: 0 4px 12px rgba(10, 38, 71, 0.1);
    transform: translateY(-2px);
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0 0 0;
    border: 1px solid #e9ecef;
}

.contact-info p {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #333;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: var(--primary-blue, #0A2647);
    font-weight: 600;
}

/* Максимально специфичные стили для em элементов */
.main-content .delivery-content em {
    font-style: italic !important;
    /* Исправление курсива для iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    -webkit-text-size-adjust: 100%;
}

/* Фикс курсива для iOS Safari - используем более надежный детект */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    @supports (-webkit-touch-callout: none) {
        .main-content .delivery-content em {
            font-style: normal !important;
            transform: skewX(-12deg) !important;
            font-weight: 400 !important;
            display: inline-block !important;
            -webkit-transform: skewX(-12deg) !important;
        }
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .delivery-method,
    .payment-item,
    .term-item {
        padding: 1.5rem;
    }
    
    .delivery-content h2 {
        font-size: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
}