/* Современные стили для страницы доставки и оплаты */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Баннер с заголовком */
.banner-container {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.banner-title-wrapper {
    position: absolute;
    top: 65px;
    left: 65px;    
    padding: 15px 30px;
    border-radius: 8px;
    backdrop-filter: blur(3px);
}

.banner-title {
    color: #000;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Сетка с блоками преимуществ - 3 в ряд */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto 40px;
}

/* Карточка блока */
.feature-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    height: 100%;
}

/* Иконка */
.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #ddd;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Контент */
.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #8b5a2b;
}

.feature-text {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* Стили для текстового контента */
.content-text {
    margin: 0 auto 40px;
    padding: 0 20px;
    max-width: 1400px;
}

.content-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.highlight-text {
    font-size: 18px;
    color: #8b5a2b;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

/* Стили для изображения в контенте */
.content-image {
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: center;
    max-width: 1400px;
}

.content-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Стили для блока с условиями оплаты */
.tools-section {
    margin: 0 auto 60px;
    padding: 0 20px;
    max-width: 1400px;
}

.tools-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.tools-section > p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.payment-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #8b5a2b;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #8b5a2b;
}

/* Сетка для списков - 2 колонки */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 50px;
    border-radius: 16px;
    padding: 30px 40px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    background: #fff;
}

/* Стили для списков */
.tools-list {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tools-list li {
    padding: 8px 0 8px 25px !important;
    position: relative !important;
    font-size: 15px !important;
    color: #444 !important;
    border-bottom: 1px solid #eee !important;
    list-style-type: none !important;
}

.tools-list li:last-child {
    border-bottom: none !important;
}

.tools-list li::before {
    content: "•" !important;
    position: absolute !important;
    left: 5px !important;
    top: 5px !important;
    color: #da9d43 !important;
    font-size: 20px !important;
    font-weight: bold !important;
}

/* Контакты */
.contacts-block {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.contacts-block p {
    margin: 0;
}

.contacts-block a {
    color: #8b5a2b;
    text-decoration: none;
    font-weight: 600;
}

.contacts-block a:hover {
    text-decoration: underline;
}

/* Мобильная версия */
@media (max-width: 1024px) {
    .features-grid {
        gap: 20px;
        padding: 15px;
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .banner-title-wrapper {
        top: 20px;
        left: 20px;
        padding: 10px 20px;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    .tools-section h2 {
        font-size: 24px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .payment-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .banner-title-wrapper {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .feature-title {
        text-align: center;
        border-bottom: 2px solid #8b5a2b;
    }
    
    .content-text p {
        font-size: 14px;
    }
    
    .tools-grid {
        padding: 15px;
    }
    
    .tools-list li {
        font-size: 14px !important;
    }
}

/* Скрываем стандартный заголовок Битрикса если он есть */
h1:not(.banner-title) {
    display: none;
}

/* Выделенный блок с важным условием */
.important-condition {
    background: linear-gradient(135deg, #f8f4f0 0%, #fff 100%);
    border-left: 6px solid #8b5a2b;
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px auto 40px;
    box-shadow: 0 5px 20px rgba(139, 90, 43, 0.15);
    text-align: center;
}

.important-condition p {
    font-size: 18px;
    margin: 10px 0;
}

.important-condition p:first-child {
    font-size: 22px;
    color: #8b5a2b;
}

.important-condition strong {
    color: #8b5a2b;
    font-size: 20px;
}

/* Три колонки для способов оплаты */
.payment-three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.payment-column {
    background: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.payment-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 90, 43, 0.1);
    border-color: #8b5a2b;
}

.payment-column-icon {
    font-size: 48px;
    margin-bottom: 15px;
    background: #f8f8f8;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eaeaea;
}

.payment-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #8b5a2b;
}

.payment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.payment-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 15px;
    color: #555;
    border-bottom: 1px dashed #f0f0f0;
}

.payment-list li:last-child {
    border-bottom: none;
}

.payment-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 7px;
    color: #8b5a2b;
    font-weight: bold;
    font-size: 18px;
    background-color: unset !important;
}

/* Контакты */
.contacts-block {
    background: #f8f8f8;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.contacts-block p {
    margin: 5px 0;
    font-size: 18px;
}

.phone-number {
    font-size: 28px !important;
    font-weight: 700;
    color: #8b5a2b;
}

.phone-number a {
    color: #8b5a2b;
    text-decoration: none;
}

.phone-number a:hover {
    text-decoration: underline;
}

/* Адаптивность для трех колонок */
@media (max-width: 900px) {
    .payment-three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .payment-three-columns {
        grid-template-columns: 1fr;
    }
    
    .important-condition p:first-child {
        font-size: 18px;
    }
}