/* ===== СТРАНИЦА ДОСТАВКИ ===== */
:root {
    /* Используем твои основные цвета */
    --primary-color: #0066CC;
    --primary-dark: #0052A3;
    --primary-light: #4D94FF;
    --accent-color: #FF9900;
    --accent-dark: #E68A00;
    --success-color: #00A86B;
    --warning-color: #FF9900;
    --danger-color: #DC3545;
    --dark-color: #1A1E24;
    --darker-color: #0F1114;
    --light-color: #F5F7FA;
    --medium-gray: #6C757D;
    --border-color: #E1E5E9;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    
    --gradient-primary: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
    --gradient-light: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    --gradient-subtle: linear-gradient(135deg, #F0F7FF 0%, #E6F0FA 100%);
}

/* Hero Section */
.delivery-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--primary-dark);
    color: white;
    padding: 0;
}

.delivery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.delivery-slide.active {
    opacity: 1;
}

/* Локальные фото из папки images/ */
.delivery-slide-1 {
    background: linear-gradient(rgba(26, 30, 36, 0.85), rgba(26, 30, 36, 0.85)), 
                url('../images/delivery-banner-1.jpg');
}

.delivery-slide-2 {
    background: linear-gradient(rgba(26, 30, 36, 0.85), rgba(26, 30, 36, 0.85)), 
                url('../images/delivery-banner-2.jpg');
}

/* Fallback если фото не загрузились */
.delivery-slide-1, .delivery-slide-2 {
    background-color: var(--primary-dark);
}

.delivery-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    color: white;
    padding: 0 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.delivery-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.delivery-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    font-weight: 400;
}

.delivery-slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--accent-color);
    border-color: white;
    transform: scale(1.2);
}

/* Delivery Sections */
.delivery-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.delivery-section.bg-light {
    background: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Delivery Cards */
.delivery-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.delivery-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.delivery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.delivery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.1);
    border-color: var(--primary-color);
}

.delivery-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.delivery-card h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.price-container {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.price-tag {
    display: inline-block;
    background: var(--primary-color); /* ВСЕГДА СИНИЙ */
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.2);
}

.price-tag.free {
    background: var(--primary-color); /* СИНИЙ вместо зеленого */
}

.price-tag.paid {
    background: var(--primary-color); /* СИНИЙ */
}

.price-note {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.delivery-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    flex-grow: 1;
    padding: 0;
}

.delivery-features li {
    padding: 0.5rem 0;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delivery-features li::before {
    content: '✓';
    color: var(--primary-color); /* СИНИЙ вместо зеленого */
    font-weight: bold;
    width: 20px;
}

.card-actions {
    margin-top: auto;
}

/* Buttons - переопределяем чтобы были в стиле бренда */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 2rem; /* Скругленные как в твоем дизайне */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    margin: 0 2rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 2rem;
}

/* FAQ */
.faq-section {
    padding: 5rem 0;
    background: var(--gradient-subtle);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--medium-gray);
}

.faq-answer.active {
    padding: 0 2rem 2rem;
    max-height: 500px;
}

/* Map Section */
.map-section {
    padding: 3rem 0;
}

.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.1);
    height: 400px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.1);
}

.contact-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-card h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.contact-card p {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.payment-method {
    padding: 0.5rem 0;
    color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
}

.payment-method:last-child {
    border-bottom: none;
}

.payment-method::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .delivery-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .delivery-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .delivery-hero-content p {
        font-size: 1.1rem;
    }
    
    .delivery-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        text-align: left !important;
    }

    .timeline-content {
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .delivery-hero {
        height: 45vh;
        min-height: 350px;
    }
    
    .delivery-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .delivery-hero-content p {
        font-size: 1rem;
    }
    
    .delivery-card {
        padding: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}