.main-price {
    --brand: var(--color_brand);
    --brand-deep: color-mix(in srgb, var(--brand) 80%, #000);
    --brand-tint: color-mix(in srgb, var(--brand) 9%, #fff);
    --brand-tint-2: color-mix(in srgb, var(--brand) 20%, #fff);
    --brand-glow: color-mix(in srgb, var(--brand) 38%, transparent);
    --brand-ring: color-mix(in srgb, var(--brand) 22%, transparent);
    --brand-row: color-mix(in srgb, var(--brand) 5%, #fff);

    /* нейтральные токены (не зависят от бренда) */
    --ink: #21271E;
    --muted: #6E776B;
    --line: #E8EAE4;
    --card: #FFFFFF;
    --amber-bg: #FFF3DD;
    --amber-tx: #C0780A;
    --amber-ic: #F2A60C;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(33, 39, 30, .05), 0 24px 48px -28px rgba(33, 39, 30, .28);

    color: var(--ink);
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

.main-price * {
    box-sizing: border-box;
}

/* ---------- Заголовок ---------- */
.main-price__head-block {
    text-align: center;
    margin-bottom: 30px;
}

.main-price__title span {
    color: var(--brand);
}

.main-price__sub {
    margin: 12px auto 0;
    max-width: 560px;
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.5;
}

/* ---------- Полоса табов + стрелки прокрутки ---------- */
.main-price__tabs-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.main-price__tabs {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: none;
}

.main-price__tabs::-webkit-scrollbar {
    display: none;
}

/* лёгкое затухание у краёв — подсказка о прокрутке (особенно на мобильном) */
.main-price__tabs-wrap.is-scrollable .main-price__tabs {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.main-price__tab {
    flex: 0 0 auto;
    cursor: pointer;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: #5A6356;
    background: #fff;
    border: 1.5px solid var(--line);
    padding: 9px 17px;
    border-radius: 999px;
    white-space: nowrap;
    transition: .18s ease;
}

.main-price__tab:hover {
    border-color: var(--brand-tint-2);
    color: var(--ink);
}

.main-price__tab[aria-selected="true"] {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px -10px var(--brand-glow);
}

.main-price__tab:focus-visible {
    outline: 3px solid var(--brand-ring);
    outline-offset: 2px;
}

.main-price__arrow {
    display: none;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--line);
    color: var(--muted);
    transition: .15s ease;
    align-self: flex-start;
    margin-top: 3px;
}

.main-price__tabs-wrap.is-scrollable .main-price__arrow {
    display: flex;
}

.main-price__arrow svg {
    width: 18px;
    height: 18px;
}

.main-price__arrow:hover:not(:disabled) {
    border-color: var(--brand-tint-2);
    color: var(--brand-deep);
}

.main-price__arrow:disabled {
    opacity: .32;
    cursor: default;
}

.main-price__arrow:focus-visible {
    outline: 3px solid var(--brand-ring);
    outline-offset: 2px;
}

/* ---------- Карточка таблицы ---------- */
.main-price__panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* поиск */
.main-price__search {
    padding: 16px 16px;
    /* width: 300px; */
    display: flex;
    justify-content: flex-end;
    margin-right: auto;
    align-items: center;
}

.main-price__search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 8px 0 14px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    transition: .15s ease;
    width: 380px;
}

.main-price__search-field:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-ring);
}

.main-price__search-ic {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex: 0 0 auto;
}

.main-price__search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}

.main-price__search input::placeholder {
    color: var(--muted);
    font-weight: 500;
}

.main-price__clear {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--muted);
    transition: .15s ease;
}

.main-price__clear svg {
    width: 16px;
    height: 16px;
}

.main-price__clear:hover {
    background: var(--brand-tint);
    color: var(--brand-deep);
}

/* строки */
.main-price__row,
.main-price__thead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px 132px 146px;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
}

.main-price__thead {
    height: 48px;
    background: var(--brand-tint);
    border-bottom: 2px solid var(--brand);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: #6B7563;
}

.main-price__thead .th-act {
    text-align: right;
}

.main-price__row {
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: background .15s ease;
}

.main-price__row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand);
    opacity: 0;
    transition: opacity .15s ease;
}

.main-price__row:hover {
    background: var(--brand-row);
}

.main-price__row:hover::before {
    opacity: 1;
}

.main-price__row:last-child {
    border-bottom: 0;
}

.c-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.c-name .name {
    font-size: 15.5px;
    font-weight: 600;
}

.c-name mark {
    background: var(--brand-tint-2);
    color: var(--brand-deep);
    padding: 0 2px;
    border-radius: 3px;
}

.pop {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--amber-tx);
    background: var(--amber-bg);
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

.pop svg {
    width: 11px;
    height: 11px;
    fill: var(--amber-ic);
}

.c-time {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.c-time svg {
    width: 15px;
    height: 15px;
    stroke: #AAB29F;
    flex: 0 0 auto;
}

.c-price {
    white-space: nowrap;
}

.c-price .from {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    margin-right: 5px;
}

.c-price .num {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
}

.c-price .cur {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    margin-left: 3px;
}

.c-act {
    justify-self: end;
}

.order {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
    border: 0;
    padding: 10px 18px;
    border-radius: 999px;
    transition: .18s ease;
    box-shadow: 0 8px 16px -10px var(--brand-glow);
}

.order svg {
    width: 14px;
    height: 14px;
    transition: transform .18s ease;
}

.order:hover {
    background: var(--brand-deep);
}

.order:hover svg {
    transform: translateX(3px);
}

.order:active {
    transform: translateY(1px);
}

.order:focus-visible {
    outline: 3px solid var(--brand-ring);
    outline-offset: 2px;
}

/* пустой результат поиска */
.main-price__empty {
    text-align: center;
    padding: 48px 24px;
}

.main-price__empty svg {
    width: 40px;
    height: 40px;
    stroke: #C6CDBE;
    margin-bottom: 14px;
}

.main-price__empty p {
    margin: 0;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
}

.main-price__empty p b {
    color: var(--brand-deep);
}

.main-price__empty span {
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    color: var(--muted);
}

/* кнопка «показать все» */
.main-price__toggle-wrap {
    padding: 6px;
    background: #fff;
}

.main-price__toggle {
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-deep);
    background: transparent;
    border: 0;
    padding: 14px;
    border-radius: 12px;
    transition: .15s ease;
}

.main-price__toggle:hover {
    background: var(--brand-tint);
}

.main-price__toggle svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.main-price__toggle.is-open svg {
    transform: rotate(180deg);
}

/* ---------- Преимущества ---------- */
.main-price__perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}

.perk {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 22px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 16px 30px -20px var(--brand-glow);
}

.perk__ic {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
}

.perk__ic svg {
    width: 23px;
    height: 23px;
    stroke: #fff;
}

.perk__t {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.perk__d {
    font-size: 13px;
    font-weight: 500;
    opacity: .9;
    margin-top: 3px;
}

/* ---------- Адаптив ---------- */
@media (max-width:720px) {
    .main-price {
        padding: 40px 14px 48px;
    }

    .main-price__tabs-wrap.is-scrollable .main-price__arrow {
        display: none;
    }

    /* на тач-экране — свайп */
    .main-price__thead {
        display: none;
    }

    .main-price__panel {
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .main-price__search {
        padding: 0 0 12px;
    }

    .main-price__row {
        grid-template-columns: 1fr auto;
        grid-template-areas: "name name" "time price" "act act";
        gap: 12px 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 12px;
        min-height: 0;
        box-shadow: 0 1px 2px rgba(33, 39, 30, .04);
    }

    .main-price__row::before {
        display: none;
    }

    .main-price__row:hover {
        background: #fff;
    }

    .main-price__row:last-child {
        border-bottom: 1px solid var(--line);
    }

    .c-name {
        grid-area: name;
    }

    .c-name .name {
        font-size: 16px;
        font-weight: 700;
    }

    .c-time {
        grid-area: time;
    }

    .c-price {
        grid-area: price;
        justify-self: end;
    }

    .c-act {
        grid-area: act;
        justify-self: stretch;
    }

    .order {
        width: 100%;
        justify-content: center;
        padding: 13px;
    }

    .main-price__toggle-wrap {
        padding: 0;
        background: transparent;
        margin-top: 2px;
    }

    .main-price__toggle {
        background: #fff;
        border: 1px solid var(--line);
    }

    .main-price__perks {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .main-price * {
        transition: none !important;
    }
}