/* delivery.css */

.delivery-page {
    background-color: #f8f9fa;
}

.delivery-main-content {
    padding: 30px 0 50px;
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* Если сайдбар открыт на мобильных */
.sidebar-open .delivery-main-content {
    margin-left: 250px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок страницы — белый фон, акцент жёлтый */
.delivery-page .page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 32px 20px;
    background: #fff;
    border-radius: 12px;
    color: #333;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.delivery-page .page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow-dark);
    background: #F57C00;
}

.delivery-page .page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.delivery-page .page-header h1 i {
    color: var(--yellow-dark);
}

.delivery-page .page-header .page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    color: #333;
}

/* Основные заголовки секций */
.delivery-section h2,
.payment-section h2,
.terms-section h2,
.delivery-faq h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #FFC107;
}

.delivery-section h2 i,
.payment-section h2 i,
.terms-section h2 i,
.delivery-faq h2 i {
    color: #FFC107;
}

/* Карточки доставки */
.delivery-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.delivery-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e6ed;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.delivery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    border-color: #FFC107;
}

.delivery-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #FFC107;
    border-radius: 8px 8px 0 0;
}

.delivery-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFC107, #FF9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.delivery-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 600;
}

.delivery-details {
    margin-bottom: 25px;
    flex-grow: 1;
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f2f5;
}

.delivery-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.delivery-item i {
    color: #FFC107;
    font-size: 18px;
    min-width: 24px;
    margin-top: 3px;
}

.delivery-item h4 {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delivery-item p {
    font-size: 1.05rem;
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
}

.delivery-item .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #27ae60;
}

.delivery-item .price-note {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-top: 5px;
    font-weight: normal;
}

.delivery-benefits {
    background: #fff8e1;
    padding: 20px;
    border-radius: 6px;
    margin-top: auto;
    border: 1px solid #ffecb3;
}

.delivery-benefits p {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.delivery-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-benefits li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #34495e;
    font-size: 1rem;
}

.delivery-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FFC107;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Способы оплаты */
.payment-section {
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.payment-method {
    background: #f8fafc;
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    height: 100%;
}

.payment-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #FFC107;
    background: white;
}

.payment-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFC107, #FF9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.payment-method h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.payment-method p {
    color: #5d6d7e;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.payment-security {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    color: #333;
    margin-top: 30px;
    border: 1px solid #e0e6ed;
    border-left: 5px solid #FFC107;
}

.payment-security h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
}

.payment-security h3 i {
    color: #FFC107;
}

.payment-security p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5d6d7e;
    margin: 0;
}

/* Сроки и условия */
.terms-section {
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.term-item {
    background: #f8fafc;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.term-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #FFC107;
    background: white;
}

.term-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FFC107, #FF9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.term-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.term-item p {
    color: #5d6d7e;
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

/* FAQ */
.delivery-faq {
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.faq-grid {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #fff8e1;
}

.faq-question h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.faq-question i {
    color: #FFC107;
    font-size: 18px;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 20px 25px 30px;
    max-height: 500px;
    background: #fff8e1;
}

.faq-answer p {
    color: #5d6d7e;
    line-height: 1.7;
    margin: 0 0 15px 0;
    font-size: 1.05rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: #FF9800;
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: none;
    color: #F57C00;
}

/* Важная информация */
.important-info {
    margin-top: 40px;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #FFC107;
}

.info-icon {
    font-size: 40px;
    color: #FFC107;
    margin-bottom: 20px;
    text-align: center;
}

.info-content h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    color: #2c3e50;
    font-weight: 600;
}

.info-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.info-content li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #34495e;
    border-bottom: 1px dashed #e0e6ed;
}

.info-content li:last-child {
    border-bottom: none;
}

.info-content li:before {
    content: "•";
    position: absolute;
    left: 15px;
    color: #FFC107;
    font-size: 24px;
    line-height: 1;
}

.info-contact {
    background: #fff8e1;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid #ffecb3;
}

.info-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #2c3e50;
    font-size: 1.05rem;
}

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

.info-contact i {
    font-size: 18px;
    color: #FFC107;
    min-width: 24px;
}

.info-contact a {
    color: #FF9800;
    text-decoration: none;
    font-weight: 500;
}

.info-contact a:hover {
    text-decoration: none;
    color: #F57C00;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .delivery-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .sidebar-open .delivery-main-content {
        margin-left: 0;
    }

    .delivery-main-content {
        padding: 20px 0 40px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .page-header .page-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .delivery-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .delivery-card,
    .payment-section,
    .terms-section,
    .delivery-faq {
        padding: 25px;
    }

    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .terms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .delivery-section h2,
    .payment-section h2,
    .terms-section h2,
    .delivery-faq h2 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .info-card {
        padding: 25px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 30px 15px;
    }

    .delivery-card,
    .payment-section,
    .terms-section,
    .delivery-faq {
        padding: 20px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

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

    .delivery-item {
        flex-direction: column;
        gap: 10px;
    }

    .delivery-icon,
    .payment-icon,
    .term-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .delivery-card h3 {
        font-size: 1.3rem;
    }

    .payment-method h3,
    .term-item h3 {
        font-size: 1.2rem;
    }

    .info-content li {
        padding-left: 25px;
    }

    .info-content li:before {
        left: 10px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-question h4 {
        font-size: 1.1rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 15px 20px 25px;
    }
}

/* Цвета в соответствии с общим дизайном */
:root {
    --primary-color: #FFC107;
    --primary-dark: #FF9800;
    --primary-light: #FFECB3;
    --secondary-color: #2c3e50;
    --accent-color: #FFC107;
    --success-color: #27ae60;
    --light-color: #f5f7fa;
    --border-color: #e0e6ed;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
}

/* Улучшенные тени и границы для соответствия общему стилю */
.delivery-card,
.payment-section,
.terms-section,
.delivery-faq,
.info-card {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.delivery-card:hover,
.payment-method:hover,
.term-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

/* Стили для ссылок внутри текста */
a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #F57C00;
    text-decoration: none;
}

/* Стили для кнопок (если будут добавлены) */
.btn-primary {
    background: var(--primary-color);
    color: #2c3e50;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
}

/* Специальные стили для желтых элементов */
.yellow-bg {
    background: var(--primary-light);
}

.yellow-border {
    border-color: var(--primary-color);
}

.yellow-text {
    color: var(--primary-color);
}

/* Градиенты с желтым цветом */
.gradient-yellow {
    background: linear-gradient(135deg, #FFC107, #FF9800);
}

.gradient-yellow-light {
    background: linear-gradient(135deg, #FFECB3, #FFE082);
}