/* ========================================
   СТОРІНКА ДОСТАВКА ТА ОПЛАТА
   ======================================== */

/* Основні блоки */
.delivery-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.main-info-card {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
    border-radius: 12px;
    padding: 40px;
    border-left: 4px solid #e28234;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.info-card-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-header h2 {
    font-size: 2rem;
    color: #0c4e3e;
    margin: 0;
    font-weight: 600;
}

.info-card-description {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* Способи доставки */
.delivery-details-section,
.payment-details-section {
    margin-bottom: 60px;
}

.delivery-methods,
.payment-methods {
    display: grid;
    gap: 30px;
}

.delivery-method-card,
.payment-method-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.delivery-method-card:hover,
.payment-method-card:hover {
    border-color: #e28234;
    box-shadow: 0 8px 30px rgba(226, 130, 52, 0.15);
    transform: translateY(-3px);
}

.delivery-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
}

.delivery-logo {
    width: 140px;
    height: 45px;
}

.delivery-logo svg {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.delivery-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delivery-badge.popular {
    background: linear-gradient(135deg, #e28234, #f09145);
    color: white;
}

.delivery-badge.economical {
    background: linear-gradient(135deg, #0c4e3e, #0a3d31);
    color: white;
}

.delivery-method-content h3 {
    font-size: 1.5rem;
    color: #0c4e3e;
    margin-bottom: 25px;
    font-weight: 600;
}

.delivery-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.delivery-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: #0c4e3e;
    font-weight: 600;
}

.delivery-features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px 0;
    color: #555;
    line-height: 1.6;
}

.feature-icon {
    color: #e28234;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.important-note {
    background: #fff5f0;
    border-left: 3px solid #e28234;
    padding: 15px 20px;
    border-radius: 6px;
    color: #666;
    line-height: 1.6;
}

.important-note strong {
    color: #0c4e3e;
}

/* Процес замовлення */
.order-process-section {
    margin-bottom: 60px;
    background: linear-gradient(135deg, #0c4e3e 0%, #0a3d31 100%);
    padding: 60px 40px;
    border-radius: 12px;
}

.order-process-section .section-title {
    color: #fff;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.process-step {
    position: relative;
    text-align: center;
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 25px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e28234, #f09145);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(226, 130, 52, 0.3);
}

.step-content h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* Способи оплати */
.payment-method-card {
    position: relative;
    text-align: center;
}

.payment-method-card.featured {
    border: 2px solid #e28234;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
}

.payment-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: linear-gradient(135deg, #e28234, #f09145);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-method-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.payment-method-card h3 {
    font-size: 1.4rem;
    color: #0c4e3e;
    margin-bottom: 15px;
    font-weight: 600;
}

.payment-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

.payment-features {
    text-align: left;
    margin-bottom: 20px;
}

.payment-note {
    background: #f9f9f9;
    border-left: 3px solid #e28234;
    padding: 15px 20px;
    border-radius: 6px;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

.payment-note.success {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.payment-note strong {
    color: #0c4e3e;
}

/* Додаткова інформація */
.additional-info-section {
    margin-bottom: 60px;
}

.info-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.info-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.info-box:hover {
    border-color: #e28234;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(226, 130, 52, 0.15);
}

.info-box-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-box h3 {
    font-size: 1.2rem;
    color: #0c4e3e;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-box p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* FAQ */
.faq-section {
    margin-bottom: 60px;
}

.faq-list {
    display: grid;
    gap: 15px;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question h4 {
    font-size: 1.1rem;
    color: #0c4e3e;
    margin: 0;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #e28234;
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Заклик до дії */
.delivery-cta {
    text-align: center;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%);
    border-radius: 12px;
    padding: 60px 40px;
    border: 2px solid #e28234;
}

.delivery-cta h2 {
    font-size: 2.2rem;
    color: #0c4e3e;
    margin-bottom: 15px;
    font-weight: 600;
}

.delivery-cta p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 35px;
}
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #e28234 0%, #f09145 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(226, 130, 52, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(226, 130, 52, 0.4);
    color: white;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: #0c4e3e;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #0c4e3e;
}

.btn-secondary:hover {
    background: #0c4e3e;
    color: white;
    transform: translateY(-3px);
}

/* ========================================
   АДАПТИВНІСТЬ
   ======================================== */

@media (max-width: 1200px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-step:nth-child(3)::after,
    .process-step:nth-child(5)::after {
        display: none;
    }
}

@media (max-width: 992px) {
    .delivery-payment-grid {
        grid-template-columns: 1fr;
    }

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

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-step::after {
        display: none;
    }

    .info-boxes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-info-card {
        padding: 30px 25px;
    }

    .delivery-method-card,
    .payment-method-card {
        padding: 25px 20px;
    }

    .delivery-method-header {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }

    .delivery-logo {
        width: 120px;
        height: 40px;
    }

    .order-process-section {
        padding: 40px 25px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .step-content h3 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.85rem;
    }

    .payment-badge {
        right: 20px;
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .delivery-cta {
        padding: 40px 25px;
    }

    .delivery-cta h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .info-card-header {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }

    .info-card-header h2 {
        font-size: 1.6rem;
    }

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

    .delivery-info-grid {
        padding: 20px 15px;
    }

    .payment-method-card h3 {
        font-size: 1.2rem;
    }

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

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

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

    .delivery-cta h2 {
        font-size: 1.5rem;
    }

    .delivery-cta p {
        font-size: 1rem;
    }
}

/* ========================================
   АНІМАЦІЇ
   ======================================== */

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Плавна поява елементів */
.delivery-method-card,
.payment-method-card,
.process-step,
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
