/* delivery.css — улучшенная версия */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #dee2e6;
    --text-light: #666;
    --text-dark: #333;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Основные стили */
.delivery-page {
    padding: 40px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 20px;
    padding: 0;
    font-size: 14px;
    color: var(--text-light);
}
.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}
.breadcrumbs a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.breadcrumbs span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Основная сетка */
.delivery-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 40px;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}
.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.delivery-methods, .payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.method-card, .payment-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-top: 4px solid var(--secondary-color);
}
.method-card:hover, .payment-card:hover {
    transform: translateY(-5px);
}

.method-icon, .payment-icon {
    width: 60px;
    height: 60px;
    background: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.method-card h3, .payment-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.method-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.method-details p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.method-features {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}
.method-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}
.method-features li:last-child {
    border-bottom: none;
}
.method-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.delivery-terms {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}
.delivery-terms h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.term-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}
.term-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.payment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--success-color);
}
.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* delivery.css — добавить в конец файла */
.info-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    border-top: 5px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.chat-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: auto;
}

.chat-btn:hover {
    background: #c0392b;
}

/* FAQ */
.faq-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 40px;
    margin-bottom: 25px;
}
.faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 20px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}
.faq-question:hover {
    background: #e9ecef;
}
.faq-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s;
}
.faq-answer {
    padding: 20px;
    background: white;
    display: none;
    border-top: 1px solid var(--border-color);
}
.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Sidebar */
.delivery-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}
.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border-top: 4px solid var(--accent-color);
}
.sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.sidebar-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin: 20px 0;
    transition: background-color 0.3s;
}
.sidebar-phone:hover {
    background: #2980b9;
}
.sidebar-note {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

.work-hours, .delivery-terms-list {
    list-style: none;
    padding: 0;
}
.work-day {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.work-day:last-child {
    border-bottom: none;
}
.delivery-terms-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}
.delivery-terms-list li:last-child {
    border-bottom: none;
}
.delivery-terms-list li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}
.store-address p {
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.store-address p:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Доступность */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
@media (prefers-contrast: high) {
    .method-card,
    .payment-card,
    .sidebar-card,
    .faq-item {
        border: 2px solid currentColor;
    }
    .sidebar-phone {
        border: 2px solid currentColor;
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
    .delivery-content {
        grid-template-columns: 1fr;
    }
    .delivery-sidebar {
        position: static;
        margin-top: 40px;
    }
}
@media (max-width: 992px) {
    .delivery-methods,
    .payment-methods,
    .terms-grid,
    .payment-info {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .delivery-page {
        padding: 20px 0 40px;
    }
    .page-title {
        font-size: 2rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .faq-section {
        padding: 25px;
    }
    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }
}
@media (max-width: 480px) {
    .method-card,
    .payment-card,
    .sidebar-card {
        padding: 20px;
    }
    .breadcrumbs {
        font-size: 12px;
    }
}