/* Таблица цен — заголовки рангов барберов никогда не переносятся (выше 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: 700px) {
    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;
    }
}
@media (max-width: 700px) {
    footer {
        text-align: center;
    }
    .footer.container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px;
    }
    .footer-info,
    .footer-social {
        margin: 0 !important;
    }
    .footer-social ul {
        justify-content: center !important;
    }
    .footer-email,
    .footer-time,
    .footer-inn,
    .footer-oferta,
    .footer-nav {
        text-align: center !important;
        max-width: 100% !important;
    }
    .footer-inn span {
        text-align: center !important;
    }
    .footer-nav ul {
        justify-content: center !important;
    }
}

@media (max-width: 700px) {
    footer {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto auto auto auto !important;
    }
    .footer.container { grid-row: 1 !important; }
    .footer-nav       { grid-column: 1 !important; grid-row: 2 !important; }
    .footer-email     { grid-column: 1 !important; grid-row: 3 !important; }
    .footer-time      { grid-column: 1 !important; grid-row: 4 !important; }
    .footer-inn       { grid-column: 1 !important; grid-row: 5 !important; }
    .footer-oferta    { grid-column: 1 !important; grid-row: 6 !important; }

    .footer-nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 20px !important;
        padding: 0 !important;
    }
    .footer-nav li { width: auto !important; }
    .footer-nav li:last-child {
        order: 5 !important;
        flex-basis: 100% !important;
        text-align: center !important;
        margin-top: 14px !important;
    }
}
/* FIX SOCIAL ICONS SIZE */
.social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #424452 !important;
    color: #fff !important;
}

.social-icon i {
    font-size: 22px !important;
    line-height: 1 !important;
}

.social-icon .fa-instagram,
.social-icon .fa-telegram {
    color: #fff !important;
}

.social-icon:hover {
    background: #565866 !important;
}

.social-icon:active,
.social-icon:focus {
    background: #424452 !important;
    outline: none !important;
    box-shadow: none !important;
}

.social-icon {
    -webkit-tap-highlight-color: transparent !important;
}


/* MOBILE TAP BLACK FLASH FIX */
html {
    -webkit-tap-highlight-color: transparent !important;
}

a.social-icon,
a.social-icon:link,
a.social-icon:visited,
a.social-icon:hover,
a.social-icon:focus,
a.social-icon:active {
    background-color: #424452 !important;
    color: #ffffff !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    outline: none !important;
    box-shadow: none !important;
}

a.social-icon:active {
    background-color: #424452 !important;
    opacity: 0.85;
    transform: scale(0.96);
}

.social-icon i,
.social-icon svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}


/* REMOVE ALL MOBILE CLICK FLASH */
* {
    -webkit-tap-highlight-color: transparent !important;
}

a,
a:link,
a:visited,
a:hover,
a:focus,
a:active {
    -webkit-tap-highlight-color: transparent !important;
}

.social-icon,
.social-icon *,
.social-icon:before,
.social-icon:after {
    background-color: transparent;
}

.social-icon {
    background-color: #424452 !important;
    overflow: hidden !important;
}

.social-icon:active {
    background-color: #424452 !important;
}


/* FINAL MOBILE SOCIAL BUTTON FIX */
html,
body,
a,
a:active,
a:focus {
    -webkit-tap-highlight-color: transparent !important;
}

a.social-icon,
a.social-icon:link,
a.social-icon:visited,
a.social-icon:hover,
a.social-icon:focus,
a.social-icon:active {
    background-color: #424452 !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

a.social-icon:active {
    background-color: #424452 !important;
}

a.social-icon i {
    color: #ffffff !important;
}


/* DESKTOP SOCIAL BRAND COLORS ON HOVER ONLY */
@media (hover: hover) and (pointer: fine) {

    /* Telegram */
    a.social-icon:has(.fa-telegram):hover {
        background-color: #229ED9 !important;
        color: #ffffff !important;
    }

    a.social-icon:has(.fa-telegram):hover i {
        color: #ffffff !important;
    }

    /* Instagram */
    a.social-icon:has(.fa-instagram):hover {
        background: linear-gradient(
            135deg,
            #833AB4,
            #C13584,
            #E1306C,
            #FD1D1D,
            #FCAF45
        ) !important;
        color: #ffffff !important;
    }

    a.social-icon:has(.fa-instagram):hover i {
        color: #ffffff !important;
    }

}


/* SMOOTH DESKTOP SOCIAL HOVER ANIMATION */
@media (hover: hover) and (pointer: fine) {

    a.social-icon {
        transition:
            transform 250ms ease,
            background-color 300ms ease,
            color 300ms ease,
            box-shadow 300ms ease !important;
    }

    a.social-icon:hover {
        transform: scale(1.12);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    }

    /* Telegram */
    a.social-icon:has(.fa-telegram):hover {
        background-color: #229ED9 !important;
        color: #ffffff !important;
    }

    /* Instagram */
    a.social-icon:has(.fa-instagram):hover {
        background: linear-gradient(
            135deg,
            #833AB4,
            #C13584,
            #E1306C,
            #FD1D1D,
            #FCAF45
        ) !important;
        color: #ffffff !important;
    }

    a.social-icon:hover i {
        color: #ffffff !important;
    }

}


/* SMOOTH SOCIAL BRAND COLOR FADE */
@media (hover: hover) and (pointer: fine) {

    a.social-icon {
        position: relative;
        overflow: hidden;
        z-index: 1;
        transition: transform 300ms ease, box-shadow 300ms ease;
    }

    a.social-icon::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 350ms ease;
        z-index: -1;
    }

    a.social-icon:hover {
        transform: scale(1.12);
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    }

    /* Telegram плавный синий */
    a.social-icon:has(.fa-telegram)::before {
        background: #229ED9;
    }

    /* Instagram плавный градиент */
    a.social-icon:has(.fa-instagram)::before {
        background: linear-gradient(
            135deg,
            #833AB4,
            #C13584,
            #E1306C,
            #FD1D1D,
            #FCAF45
        );
    }

    a.social-icon:hover::before {
        opacity: 1;
    }

    a.social-icon i {
        position: relative;
        z-index: 2;
        color: #fff !important;
    }

}



