/* «В наличии» (order/index.php). Палитра, колонка, меню и надзаголовок — в light.css */

/* Первый экран: заголовок с короткой чертой, текст */
.order-hero {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.order-title {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.order h1 {
    font-size: clamp(44px, 12vw, 54px);
    line-height: .95;
    letter-spacing: -.01em
}

/* Короткая черта акцентом — под h1 и над «Категориями» */
.order h1::after, .order-cats-head h2::before {
    content: '';
    display: block;
    width: 36px;
    height: 2px;
    background: var(--accent)
}

.order h1::after {
    margin-top: 14px
}

/* Два способа: подобрать с сотрудником и онлайн-каталог */
.order-ways {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px
}

.order-way {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 18px 22px;
    background: var(--card);
    border: 1px solid var(--line)
}

/* Метка над заголовком: залитая точка — весь ассортимент, пустая — часть */
.order-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent)
}

.order-tag::before {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--accent)
}

.order-tag.is-part {
    color: var(--muted)
}

.order-tag.is-part::before {
    border-color: var(--muted);
    background: none
}

.order-way h2 {
    font-size: 30px;
    line-height: 1.05
}

.order-sub {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4
}

.order-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-body);
    text-wrap: pretty
}

/* Кнопки с текстом; прижаты книзу, чтобы в двух карточках стояли на одной высоте */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px
}

.pill {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    transition: background-color .2s, border-color .2s
}

/* Telegram и MAX рядом с телефоном; на узком экране переносятся под него вместе */
.pills-msg {
    display: flex;
    gap: 8px
}

.pill-icon {
    flex: none;
    width: 56px;
    padding: 0
}

.pill-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor
}

.pill-fill {
    background: var(--accent);
    color: var(--on-accent)
}

/* Категории каталога партнёра */
.order-cats {
    margin-top: 48px
}

.order-cats-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px
}

.order-cats-head h2 {
    font-size: 40px;
    line-height: 1
}

.order-cats-head h2::before {
    margin-bottom: 16px
}

.order-cats-head p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
    text-wrap: pretty
}

/* Карточки одной сеткой: соседние делят общую рамку */
.cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line-strong)
}

.cats li {
    display: flex;
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong)
}

/* Пятая на мобильном — во всю ширину */
.cats li:last-child:nth-child(odd) {
    grid-column: 1 / -1
}

.cat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 14px 18px;
    transition: background-color .2s
}

/* Подсветка — только при наведении мышью: на телефоне после тапа :hover «залипает» */
@media (hover: hover) {
    .pill:hover {
        background: var(--tag)
    }

    .pill-fill:hover {
        background: var(--accent-hover);
        border-color: var(--accent-hover)
    }

    .cat:hover {
        background: var(--card)
    }
}

.cat-num {
    font-size: 15px;
    color: var(--accent)
}

.cat h3 {
    font-size: 25px;
    line-height: 1;
    margin-top: 4px
}

.cat-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    text-wrap: pretty
}

.cat-link {
    margin-top: auto;
    padding-top: 12px;
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent)
}

/* Планшет: способы — по-прежнему друг под другом, категории в три столбца */
@media (width >= 760px) {
    .cats {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .cats li:last-child:nth-child(odd) {
        grid-column: auto
    }

    .cat h3 {
        font-size: 30px
    }
}

/* Десктоп: заголовок слева, текст справа; способы рядом; категории в пять столбцов */
@media (width >= 1024px) {
    .order-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 56px;
        padding-top: 24px
    }

    .order-title {
        gap: 18px
    }

    .order h1 {
        font-size: 88px
    }

    .order h1::after {
        margin-top: 22px
    }

    .order-ways {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-top: 56px
    }

    .order-way {
        padding: 32px 36px 36px
    }

    .order-way h2 {
        font-size: 36px
    }

    .order-text {
        font-size: 16px;
        line-height: 1.6
    }

    .pills {
        flex-wrap: nowrap;
        gap: 14px;
        padding-top: 18px
    }

    .pill {
        flex: none;
        min-height: 50px;
        padding: 0 26px
    }

    .pills-msg {
        gap: 14px
    }

    .pill-icon {
        width: 72px;
        padding: 0
    }

    .order-cats {
        margin-top: 88px
    }

    .order-cats-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: end;
        gap: 56px;
        margin-bottom: 28px
    }

    .order-cats-head h2 {
        font-size: 56px
    }

    .order-cats-head p {
        justify-self: end;
        max-width: 44ch;
        font-size: 15px
    }

    .cats {
        grid-template-columns: repeat(5, minmax(0, 1fr))
    }

    .cat {
        padding: 24px 22px 26px
    }

    .cat h3 {
        font-size: 36px
    }

    .cat-text {
        font-size: 14px
    }

    .cat-link {
        padding-top: 32px;
        font-size: 12px
    }
}
