
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --text: #ffffff; --accent: rgba(255, 140, 0, 0.4); }
html { min-height: 100%; -ms-overflow-style: none; scrollbar-width: none; overflow-x: hidden; }
html::-webkit-scrollbar { display: none; }
body::-webkit-scrollbar { display: none; }

body {
    display: flex; flex-direction: column; min-height: 100vh; font-family: "Poppins", sans-serif;
    font-weight: 400; font-size: 18px; color: #fff; background: url("../images/fon.dbc524fa72e1.webp") center/cover no-repeat fixed, #000; overflow-x: hidden;
    -ms-overflow-style: none; scrollbar-width: none;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

.wrapper {
    flex: 1 0 auto;
    background: radial-gradient(circle at top center, rgba(255, 140, 0, 0.25) 0%, rgba(255, 140, 0, 0) 45%), url("../images/fon.dbc524fa72e1.webp") center/cover no-repeat fixed, #000;
    max-width: 100%;
}
.container { max-width: 1900px; width: 94%; margin: 0 auto; box-sizing: border-box; }

header { padding: 50px 0; }
header nav { float: right; width: 50%; }
header nav ul {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
    gap: 20px; z-index: 2; position: relative;
}
header nav ul li { display: inline-block; }
header nav ul li a { color: #fff; font-size: 18px; }

.logo { font-size: 56px; font-weight: 700; letter-spacing: 1px; color: #ffffff; }
.subtitle { margin-top: 5px; font-size: 14px; font-weight: 300; color: #cfcfcf; text-transform: lowercase; }

a, a:visited { color: #ffffff; }
a:hover, a:focus { color: #e6e6e6; outline: none; box-shadow: none; }

/* ===== УСЛУГИ - СТРАНИЦА ПРАЙСА ===== */
.uslugi {
    font-family: "Akt", sans-serif;
    font-weight: 900;
    font-size: 80px;
    margin: 25px 0 0 0;
    padding: 25px 0;
    color: var(--text);
}

.service-tabs,
.price-list {
    margin-left: auto;
    margin-right: auto;
}

.service-tabs {
    margin-top: 80px;
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    background: #000;
    border: 1px solid #222;
    color: white;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.tab.active {
    border-color: var(--accent);
}

.tab:hover {
    border-color: var(--accent);
}

.reveal {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

/* ===== ТАБЛИЦА ЦЕН ===== */
/* Фиксированная раскладка колонок, заголовки рангов барберов не переносятся */
.price-list {
    border-top: 1px solid var(--accent);
    padding-top: 40px;
}

.price-list table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.price-list th {
    color: #ff8c00;
    font-weight: 600;
    text-align: center;
    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%;
}

.price-list td {
    padding: 18px 0;
    font-size: 30px;
    color: white;
}

.price-list td:first-child {
    text-align: left;
    font-size: 22px;
}

.price-list td:not(:first-child) {
    text-align: center;
    font-weight: 600;
}

.price-list tr {
    border: none;
}


/* ===== FOOTER (ПОДВАЛ) ===== */
footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 40px;
    row-gap: 8px;
    max-width: 1900px;
    width: 94%;
    margin: 100px auto 0;
}

.footer.container {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
}

.footer-logo {
    font-family: "Akt", sans-serif;
    font-weight: 900;
    font-size: 30px;
    color: var(--text);
}

.footer-subtitle {
    font-family: "Akt", sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: var(--text);
}

.footer-info {
    display: inline-block;
    vertical-align: middle;
}

.footer-social {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 0 50px;
    padding: 0;
}

.footer-social li {
    list-style: none;
    margin-right: 10px;
    font-weight: 800;
    font-size: 15px;
}

.footer-social li a {
    transition: all 500ms ease;
}

.footer-social li a:hover {
    color: #ff9b2d;
}

.footer-social ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.footer-email,
.footer-time,
.footer-inn,
.footer-oferta,
.footer-nav {
    min-width: 0;
}

.footer-email {
    grid-column: 1;
    grid-row: 2;
    text-decoration: underline;
    text-decoration-color: var(--text);
    text-decoration-thickness: 1px;
    font-family: "Akt", sans-serif;
    font-weight: 500;
}

.footer-time {
    grid-column: 1;
    grid-row: 3;
    font-family: "Akt", sans-serif;
    font-weight: 300;
    font-size: 14px;
}

.footer-inn {
    grid-column: 1;
    grid-row: 4;
    margin-top: 20px;
}

.footer-inn span {
    display: block;
    opacity: 0.5;
    font-family: "Akt", sans-serif;
    font-weight: 300;
    margin-top: 5px;
    font-size: 12px;
}

.footer-oferta {
    grid-column: 2;
    grid-row: 4;
    margin-top: 20px;
    font-family: "Akt", sans-serif;
    font-weight: 300;
    font-size: 14px;
    opacity: 0.5;
    max-width: 360px;
}

.footer-nav {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: start;
    opacity: 0.5;
}

.footer-nav a {
    font-family: "Akt", sans-serif;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 100px);
}

.footer-nav li {
    list-style: none;
}
/* ===== МЕДИА ЗАПРОСЫ ===== */

/* Большие экраны - 1100px и ниже */
@media (max-width: 1100px) {
    .price-list td {
        font-size: 22px;
    }
}

/* Средние экраны - 992px и ниже */
@media (max-width: 992px) {
    header {
        padding: 30px 0;
    }

    .logo {
        font-size: 40px;
    }

    header nav {
        float: none;
        width: 100%;
        margin-top: 10px;
    }

    header nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }

    .uslugi {
        font-size: 56px;
        padding: 18px 0;
        margin-left: 80px;
    }

    .service-tabs,
    .price-list {
        margin-left: 80px;
    }

}

@media (max-width: 700px) {
    footer {
        grid-template-columns: minmax(0, 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;
    }
}

/* Средние-малые экраны - 768px и ниже */
@media (max-width: 768px) {
    body {
        min-height: auto;
    }

    .wrapper {
        flex: 0 1 auto;
    }

    header nav ul {
        flex-wrap: nowrap;
        gap: clamp(6px, 2vw, 20px);
    }

    header nav ul li a {
        font-size: clamp(11px, 3.2vw, 16px);
        white-space: nowrap;
    }

    .uslugi {
        font-size: 44px;
        margin-left: 40px;
    }

    .service-tabs,
    .price-list {
        margin-left: 40px;
    }

}

/* Мобильные устройства - 600px и ниже */
@media (max-width: 600px) {
    html,
    body {
        font-size: 16px;
    }

    .container {
        width: 95%;
    }

    header {
        padding: 18px 0;
    }

    .logo {
        font-size: 36px;
    }

    .subtitle {
        display: none;
    }

    .uslugi {
        font-size: 40px;
        padding: 16px 0;
        margin-left: 0;
        text-align: center;
    }

    .service-tabs,
    .price-list {
        margin-left: 0;
    }

    .service-tabs {
        justify-content: center;
    }

    .tab {
    -webkit-tap-highlight-color: transparent;
    outline: none;
        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;
    }
}

/* Очень маленькие экраны - 480px и ниже */
@media (max-width: 480px) {
    header {
        padding: 20px 0;
    }

    .logo {
        font-size: 28px;
    }

    .container {
        width: 96%;
    }

    .uslugi {
        font-size: 44px;
    }

    .service-tabs {
        gap: 12px;
    }
}

/* Микро экраны - 400px и ниже */
@media (max-width: 400px) {
    .price-list td:not(:first-child) {
        font-size: 14px;
    }
}

/* Устройства без hover */
@media (hover: none) {
    a:hover,
    a:focus,
    .tab:hover,
    .footer-social li a:hover {
        color: inherit !important;
        background: none !important;
        border-color: transparent !important;
        transform: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
    }
}
.tab {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.tab.active {
    background: #000;
}

.tab.active {
    border: 2px solid #ff8c00;
    background: #000;
    color: #ff8c00;
    font-weight: 600;
}

@media (hover: none) {
    .tab:hover {
        border-color: #222 !important;
    }
}
.tab.active {
    border: 2px solid #ff8c00 !important;
    background: #000 !important;
}

@media (hover: none) {
    .tab:hover {
        border-color: #222 !important;
    }
}
.tab.active {
    border: 2px solid #ff8c00 !important;
    background: #000 !important;
}

.uslugi {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

header.container {
    margin: 50px auto !important;
}

header nav ul {
    gap: 80px !important;
}

@media (max-width: 992px) {
    header nav ul {
        gap: 20px !important;
    }
    header.container {
        margin: 20px auto !important;
    }
}

@media (max-width: 768px) {
    .uslugi {
        font-weight: 600 !important;
        margin-bottom: 5px !important;
    }
    .service-tabs {
        margin-top: 15px !important;
    }
}

/* ===== SOCIAL ICONS (круглые кнопки) ===== */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #424452;
    color: #fff;
    transition: background 300ms ease, color 300ms ease;
    flex-shrink: 0;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: #565866;
    color: #ff9b2d;
}

@media (hover: none) {
    .social-icon:hover {
        background: #424452 !important;
        color: #fff !important;
    }
}

a[aria-label="Telegram"] svg {
    transform: rotate(-45deg);
}
/* 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;
    }

}



