/* Таблица цен — заголовки рангов барберов никогда не переносятся (выше 340px) */
.price-list table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}
.price-list th {
    white-space: nowrap;
    font-size: clamp(8px, 1.8vw, 16px);
    padding: 0 4px 16px;
}
.price-list th:nth-child(1),
.price-list td:nth-child(1) { width: 25%; }
.price-list th:nth-child(2),
.price-list td:nth-child(2),
.price-list th:nth-child(3),
.price-list td:nth-child(3) { width: 16%; }
.price-list th:nth-child(4),
.price-list td:nth-child(4) { width: 19%; }
.price-list th:last-child,
.price-list td:last-child { width: 24%; }

@media (max-width: 1100px) {
    .price-list td {
        font-size: 22px;
    }
}

@media (max-width: 600px) {

    /* Футер на мобильном — один столбец, каждый блок на своей строке */
    footer {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto;
    }
    .footer.container { grid-row: 1; }
    .footer-email     { grid-column: 1; grid-row: 2; }
    .footer-time      { grid-column: 1; grid-row: 3; }
    .footer-inn       { grid-column: 1; grid-row: 4; }
    .footer-oferta {
        grid-column: 1;
        grid-row: 5;
        max-width: 100%;
    }
    .footer-nav {
        grid-column: 1;
        grid-row: 6;
        align-self: start;
    }
    .footer-nav ul {
        flex-wrap: wrap;
        gap: 16px;
    }

    .service-tabs {
        justify-content: center;
    }
    .tab {
        padding: 10px 14px;
        font-size: 14px;
    }

    .price-list th,
    .price-list td {
        padding-left: 4px;
        padding-right: 4px;
    }
    .price-list td {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .price-list td:first-child {
        font-size: 13px;
        white-space: normal;
        word-break: break-word;
        text-align: left;
    }
    .price-list td:not(:first-child) {
        font-size: 16px;
        font-weight: 700;
        white-space: normal;
        word-break: break-word;
        text-align: center;
    }

    .filial-detail,
    .filial-detail__info,
    .filial-detail__images,
    .filiali-list {
        flex-direction: column;
        gap: 12px;
    }
    .filial-detail__images img { max-height: 320px; }
    .filial-detail__info {
        padding: 16px;
        border-radius: 12px;
    }
    .filial-detail__info h1 {
        font-size: 28px;
        margin: 0 0 12px 0;
    }
    .filial-name { font-size: 20px; }
    .filiali { font-size: 36px; }
}

@media (max-width: 400px) {
    .price-list td:not(:first-child) {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    footer {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto auto;
    }
    .footer.container { grid-row: 1; }
    .footer-email     { grid-column: 1; grid-row: 2; }
    .footer-time      { grid-column: 1; grid-row: 3; }
    .footer-inn       { grid-column: 1; grid-row: 4; }
    .footer-oferta {
        grid-column: 1;
        grid-row: 5;
        max-width: 100%;
    }
    .footer-nav {
        grid-column: 1;
        grid-row: 6;
        align-self: start;
    }
    .footer-nav ul {
        flex-wrap: wrap;
        gap: 16px;
    }
}