/* ═══════════════════════════════════════════════════ */
/* СТРАНИЦА "ДОСТАВКА И ОПЛАТА" */
/* Компактный чистый дизайн */
/* ═══════════════════════════════════════════════════ */

.delivery-main {
    padding: 40px 0 80px;
    background: #ffffff;
    min-height: 100vh;
}

.page-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #100C35;
    margin: 50px 0 30px 0;
}

.delivery-intro {
    font-size: 16px;
    color: #7B68EE;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
}

/* ───────── ХЛЕБНЫЕ КРОШКИ ───────── */

.breadcrumbs {
    display: flex;                     /* Flexbox для элементов в ряд */
    align-items: center;               /* Выравнивание по центру */
    gap: 8px;                          /* Расстояние между элементами */
    font-size: 16px;                   /* ✅ Размер шрифта 16px */
    color: #7B68EE;                    /* Темно-синий цвет */
    margin-bottom: 50px;               /* Отступ снизу */
    font-family: 'Inter', sans-serif;  /* Шрифт Inter */
}

.breadcrumbs a {
    color: #7B68EE;                    /* Темно-синий цвет ссылок */
    text-decoration: underline;        /* ✅ Подчеркивание */
    text-decoration-color: #7B68EE;    /* Цвет подчеркивания серый */
    text-underline-offset: 3px;        /* Отступ подчеркивания */
    font-weight: 500;                  /* ✅ Жирный шрифт */
    transition: all 0.3s;              /* Плавное изменение */
}

.breadcrumbs a:hover {
    color: #A80000;                    /* ✅ Красный цвет при наведении */
    text-decoration-color: #A80000;    /* Подчеркивание тоже красное */
}

.breadcrumbs span {
    color: #999999;                    /* Серый цвет разделителя */
}

.breadcrumbs .current {
    color: #999999;                    /* Серый цвет текущей страницы */
    cursor: default;                   /* Курсор обычный (не ссылка) */
    font-weight: 500;                  /* ✅ Тоже жирный */
}

/* ═══════════════════════════════════════════════════ */
/* СЕКЦИИ */
/* ═══════════════════════════════════════════════════ */

.delivery-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #E5E5E5;
}

.delivery-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #100C35;
    margin: 0 0 25px 0;
}

.section-text {
    font-size: 15px;
    color: #7B68EE;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════ */
/* ТАБЛИЦА */
/* ═══════════════════════════════════════════════════ */

.delivery-table {
    background: #f9f9fb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid #E5E5E5;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.header {
    background: linear-gradient(135deg, #100C35 0%, #7B68EE 100%);
    color: #ffffff;
    font-weight: 600;
}

.table-cell {
    padding: 15px 20px;
    font-size: 14px;
}

.table-cell.highlight {
    color: #7B68EE;
    font-weight: 700;
}

.delivery-note {
    font-size: 13px;
    color: #999999;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════ */
/* ТРАНСПОРТНЫЕ КОМПАНИИ (ТОЧНЫЙ ЭФФЕКТ КАК В О НАС) */
/* ═══════════════════════════════════════════════════ */

.delivery-companies {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
}

.company-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f9f9fb;
    border-radius: 12px;
    border: 1px solid #E5E5E5;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    color: #100C35;
    transition: all 0.3s;
    cursor: default;
}

/* ✅ Градиентная полоска сверху */
.company-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7B68EE 0%, #100C35 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.company-item:hover::before {
    transform: scaleX(1); /* ✅ Расходится от центра к краям */
}

.company-item:hover {
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.15);
    transform: translateY(-1px);
    background: #ffffff;
}

/** ═══════════════════════════════════════════════════ *!*/
/* РЕГИОНЫ (СТИЛЬ КАК В О НАС) */
/* ═══════════════════════════════════════════════════ */

.delivery-regions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.delivery-regions h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #100C35;
    margin: 0;
}

.delivery-regions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-regions li {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: #f9f9fb;
    border-radius: 12px;
    border-left: 4px solid #7B68EE;
    font-size: 14px;
    color: #666666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.delivery-regions li:last-child {
    margin-bottom: 0;
}

.delivery-regions li strong {
    color: #100C35;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════ */
/* СПОСОБЫ ОПЛАТЫ (ТОЧНЫЙ ЭФФЕКТ КАК В О НАС) */
/* ═══════════════════════════════════════════════════ */

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.method-card {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: #f9f9fb;
    border-radius: 12px;
    border: 1px solid #E5E5E5;
    position: relative;
    overflow: hidden;
    align-items: flex-start;
    transition: all 0.3s;
}

/* ✅ Градиентная полоска сверху */
.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7B68EE 0%, #100C35 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.method-card:hover::before {
    transform: scaleX(1);
}

.method-card:hover {
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.15);
    transform: translateY(-2px);
    background: #ffffff;
}

.method-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.method-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #100C35;
    margin: 0 0 5px 0;
}

.method-content p {
    font-size: 13px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════ */
/* УСЛОВИЯ ОПЛАТЫ (ТОЧНЫЙ ЭФФЕКТ КАК В О НАС) */
/* ═══════════════════════════════════════════════════ */

.payment-terms {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
    padding: 25px;
}

.payment-terms-item {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: #f9f9fb;
    border-radius: 12px;
    border: 1px solid #E5E5E5;
    position: relative;
    overflow: hidden;
    align-items: flex-start;
    transition: all 0.3s;
}

/* ✅ Градиентная полоска сверху */
.payment-terms-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7B68EE 0%, #100C35 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.payment-terms-item:hover::before {
    transform: scaleX(1);
}

.payment-terms-item:hover {
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.15);
    transform: translateY(-2px);
    background: #ffffff;
}

.payment-terms h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #100C35;
    margin: 0 0 20px 0;
}

.payment-terms ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.payment-terms li {
    font-size: 15px;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════ */
/* ДОКУМЕНТЫ */
/* ═══════════════════════════════════════════════════ */

.documents-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.documents-list li {
    font-size: 15px;
    color: #333333;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.documents-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7B68EE;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════ */
/* FAQ АККОРДЕОН (КОМПАКТНЫЙ) */
/* ═══════════════════════════════════════════════════ */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 25px;
}

.faq-item {
    border-bottom: 1px solid #DEDADD;
    background: #ffffff;
}

.faq-item:first-child {
    border-top: 1px solid #DEDADD;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}

.faq-question-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #100C35;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    background: #7B68EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.faq-plus {
    position: relative;
    width: 12px;
    height: 12px;
}

.faq-plus::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    transform: translateY(-50%);
    transition: all 0.3s;
}

.faq-plus::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: #ffffff;
    transform: translateX(-50%);
    transition: all 0.3s;
}

.faq-item.active .faq-icon {
    background: #F3F1F0;
}

.faq-item.active .faq-plus::before {
    background: #7B68EE;
}

.faq-item.active .faq-plus::after {
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 0 20px 0;
    margin: 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════ */
/* CTA */
/* ═══════════════════════════════════════════════════ */

.delivery-cta {
    background: linear-gradient(135deg, #100C35 0%, #7B68EE 100%);
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    color: #ffffff;
    margin-top: 40px;
}

.delivery-cta h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 12px 0;
}

.delivery-cta p {
    font-size: 15px;
    margin: 0 0 25px 0;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #ffffff;
    color: #7B68EE;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    border: 2px solid #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #7B68EE;
}

/* ═══════════════════════════════════════════════════ */
/* АДАПТИВНОСТЬ ДЛЯ ДОСТАВКИ И ОПЛАТЫ */
/* ═══════════════════════════════════════════════════ */

/* Планшеты (меньше 968px) */
@media (max-width: 968px) {
    .delivery-main {
        padding: 30px 0 60px;
    }

    .page-title {
        font-size: 28px;
        margin: 40px 0 25px 0;
    }

    .delivery-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .delivery-section {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    /* Таблица — делаем прокрутку */
    .delivery-table {
        overflow-x: auto;
    }

    .table-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        min-width: 600px;  /* Минимальная ширина для таблицы */
    }

    /* Способы оплаты — 2 колонки */
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .method-card {
        padding: 20px;
    }

    .method-icon {
        font-size: 28px;
    }

    .method-content h3 {
        font-size: 14px;
    }

    .method-content p {
        font-size: 12px;
    }
}

/* Телефоны (меньше 640px) */
@media (max-width: 640px) {
    .delivery-main {
        padding: 20px 0 40px;
    }

    .page-title {
        font-size: 24px;
        margin: 30px 0 20px 0;
    }

    .delivery-intro {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .delivery-section {
        margin-bottom: 30px;
        padding-bottom: 25px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .section-text {
        font-size: 14px;
    }

    /* Таблица — прокрутка */
    .delivery-table {
        overflow-x: auto;
        margin-bottom: 15px;
    }

    .table-row {
        grid-template-columns: 2fr 1fr 1fr;
        min-width: 500px;  /* Прокрутка на маленьком экране */
    }

    .table-cell {
        padding: 12px 15px;
        font-size: 13px;
    }

    /* Транспортные компании — в колонку */
    .delivery-companies {
        flex-direction: column;
        gap: 10px;
    }

    .company-item {
        width: 100%;
        padding: 12px 15px;
    }

    /* Регионы доставки */
    .delivery-regions {
        gap: 10px;
    }

    .delivery-regions h3 {
        font-size: 15px;
    }

    .delivery-regions li {
        padding: 12px 15px;
        font-size: 13px;
        margin-bottom: 8px;
    }

    /* ✅ СПОСОБЫ ОПЛАТЫ — 1 КОЛОНКА */
    .payment-methods {
        grid-template-columns: 1fr;  /* ✅ В одну колонку */
        gap: 12px;
    }

    .method-card {
        padding: 18px;
        gap: 12px;
    }

    .method-icon {
        font-size: 24px;
    }

    .method-content h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .method-content p {
        font-size: 12px;
        line-height: 1.4;
    }

    /* Условия оплаты */
    .payment-terms {
        padding: 20px;
        gap: 15px;
    }

    .payment-terms h3 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .payment-terms-item {
        padding: 18px;
        gap: 12px;
    }

    .payment-terms li {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* Документы */
    .documents-list li {
        font-size: 14px;
        padding-left: 25px;
        margin-bottom: 10px;
    }

    /* FAQ Аккордеон */
    .faq-accordion {
        gap: 0;
        margin-top: 20px;
    }

    .faq-question {
        padding: 15px 0;
    }

    .faq-question-text {
        font-size: 14px;
        padding-right: 15px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

    .faq-answer p {
        padding: 0 0 15px 0;
        font-size: 13px;
    }

    /* CTA блок */
    .delivery-cta {
        padding: 30px 20px;
        margin-top: 30px;
    }

    .delivery-cta h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .delivery-cta p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* Очень маленькие экраны (меньше 480px) */
@media (max-width: 480px) {
    .delivery-main {
        padding: 15px 0 30px;
    }

    .page-title {
        font-size: 22px;
        margin: 25px 0 15px 0;
    }

    .delivery-intro {
        font-size: 13px;
    }

    .section-title {
        font-size: 17px;
    }

    .table-row {
        min-width: 450px;
    }

    .table-cell {
        padding: 10px 12px;
        font-size: 12px;
    }

    .company-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    .delivery-regions li {
        padding: 10px 12px;
        font-size: 12px;
    }

    .method-card {
        padding: 15px;
    }

    .method-icon {
        font-size: 22px;
    }

    .method-content h3 {
        font-size: 13px;
    }

    .method-content p {
        font-size: 11px;
    }

    .payment-terms {
        padding: 15px;
    }

    .payment-terms-item {
        padding: 15px;
    }

    .documents-list li {
        font-size: 13px;
    }

    .faq-question-text {
        font-size: 13px;
    }

    .faq-answer p {
        font-size: 12px;
    }

    .delivery-cta {
        padding: 25px 15px;
    }

    .delivery-cta h2 {
        font-size: 20px;
    }

    .delivery-cta p {
        font-size: 13px;
    }
}


/* ═══════════════════════════════════════════════════ */
/* 🔥 v6: ЛИПКИЙ ХЕДЕР-КАРТОЧКА ПО ШИРИНЕ КОНТЕНТА      */
/* Сама шапка прозрачная, белая карточка = .container   */
/* ═══════════════════════════════════════════════════ */
html, body { overflow-x: clip !important; } /* лечит «нелипучесть» sticky */

header.header {
    position: sticky !important;   /* липнет к верху */
    top: 10px !important;          /* зазор сверху, как в дизайне */
    z-index: 9999 !important;      /* поверх всего */
    background: transparent !important; /* ✅ полоса прозрачная */
    box-shadow: none !important;   /* ✅ тени убраны */
}

/* Белая карточка — внутренний контейнер:               */
/* его ширина ВСЕГДА равна ширине контента на странице  */
header.header .container {
    background: #ffffff;
    border-radius: 12px;           /* скругление как у карточки (можно 12–20) */
    box-shadow: none;
}

/* ✅ Логотип-ссылка: рука, без подчёркивания */
a.logo {
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
a.logo:hover { opacity: 0.85; }

 /*🔥 v7: убираем «дырку» над прилипшей карточкой —*/
 /*  обнуляем старые отступы шапки и карточки */
header.header {
    margin-top: 10px !important;
    padding-top: 10px !important;
}
header.header .container {
    margin-top: 10px !important;
}