/* ============================================================
   price.css — блок прайс-листа для «Первый Бытовой Сервис»
   ============================================================ */

.price__wrap{
    --price-bg:            #ffffff;
    --price-bg-soft:       #f9f9f5;
    --price-ink:           #2a3440;
    --price-text:          #343d43;
    --price-muted:         #5a6a72;
    --price-muted-soft:    #a2a9ae;

    --price-rule:          #efeee7;
    --price-rule-strong:   #d9d6c8;

    --price-brand:         #1b3a5c;
    --price-brand-soft:    rgba(27,58,92,.08);

    --price-radius:        14px;
    --price-row-py:        14px;
    --price-row-px:        6px;
    --price-collapsed-h:   600px;

    font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--price-text);
    background: var(--price-bg);
    margin: 24px 0;
    border: 1px solid var(--price-rule);
    border-radius: var(--price-radius);
    padding: 20px 16px 22px;

    position: relative;
    max-height: var(--price-collapsed-h);
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.price__wrap.is-expanded{
    overflow: visible;
}

@media (min-width: 768px){
    .price__wrap{
        --price-row-py:      16px;
        --price-row-px:      10px;
        --price-collapsed-h: 800px;
        padding: 24px 24px 28px;
    }
}

.price__table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    line-height: 1.4;
}

.price__th{
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--price-bg);
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--price-muted-soft);
    padding: 2px var(--price-row-px) 10px;
    border-bottom: 1px solid var(--price-rule-strong);
}
.price__th--cost{
    text-align: right;
    width: 1%;
    white-space: nowrap;
}

.price__group > td{
    padding: 30px var(--price-row-px) 12px;
    color: var(--price-ink);
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    border-bottom: none;
}
.price__group:first-of-type > td{ padding-top: 18px; }

.price__group > td::after{
    content: "";
    display: block;
    margin-top: 10px;
    height: 1px;
    background:
        linear-gradient(to right,
            var(--price-brand) 0,  var(--price-brand) 28px,
            var(--price-rule)  28px, var(--price-rule) 100%);
}

.price__row > td{
    padding: var(--price-row-py) var(--price-row-px);
    border-bottom: 1px solid var(--price-rule);
    vertical-align: baseline;
}
.price__row > td:first-child{
    color: var(--price-text);
    padding-right: 16px;
    word-break: break-word;
    text-wrap: pretty;
}
.price__row > td:last-child{
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 16px;
    color: var(--price-brand);
    width: 1%;
    padding-left: 16px;
}
.price__row:last-child > td{ border-bottom: none; }

@media (hover: hover){
    .price__row > td{ transition: background-color .15s ease; }
    .price__row:hover > td{ background: var(--price-bg-soft); }
}

.price__fade{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    pointer-events: none;
    border-radius: 0 0 var(--price-radius) var(--price-radius);
    background:
        linear-gradient(to bottom,
            rgba(255,255,255, 0)    0%,
            rgba(255,255,255, 0.55) 40%,
            var(--price-bg)         92%);
}
.price__fade::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: var(--price-rule-strong);
    transform: translateX(-50%);
}
.price__wrap.is-expanded .price__fade{ display: none; }

.price__expand{
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid var(--price-rule-strong);
    color: var(--price-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 14px 26px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    margin: 22px auto 0;
    transition:
        background-color .15s ease,
        border-color    .15s ease,
        color           .15s ease,
        box-shadow      .15s ease;
}
.price__expand::after{
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
}
.price__expand::after{
    transition: transform 0.3s ease;
}
.price__expand.is-expanded::after{
    transform: rotate(-135deg) translate(-1px, -1px);
}
@media (hover: hover){
    .price__expand:hover{
        background: var(--price-bg-soft);
        border-color: var(--price-brand);
        color: var(--price-brand);
        box-shadow: 0 6px 20px var(--price-brand-soft);
    }
}
.price__expand:focus-visible{
    outline: 2px solid var(--price-brand);
    outline-offset: 3px;
}

.price__cta{
    margin: 24px 0 32px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--price-muted);
    text-align: center;
}
.price__cta a{
    color: var(--price-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(27,58,92, .35);
    transition: color .15s ease, text-decoration-color .15s ease;
}
@media (hover: hover){
    .price__cta a:hover{
        color: var(--price-ink);
        text-decoration-color: var(--price-brand);
    }
}
.price__cta a::after{ display: none !important; }

@media (max-width: 600px){
    .price__wrap{
        padding: 16px 12px 18px;
        border-radius: 12px;
        margin: 20px 0;
    }
    .price__table{ font-size: 14.5px; }
    .price__th{ font-size: 11px; }
    .price__group > td{
        font-size: 16px;
        padding-top: 26px;
    }
    .price__row > td{ padding-top: 13px; padding-bottom: 13px; }
    .price__row > td:last-child{ font-size: 15.5px; }
    .price__expand{ width: 100%; justify-content: center; }
}