
* { 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: #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.8) 0%, rgba(255, 140, 0, 0) 20%), #000;
    max-width: 100%;
}
.container { max-width: 1600px; width: 98%; 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 160px;
    padding: 25px 0;
    color: var(--text);
}

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

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

.tab {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    background: transparent;
    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: #bdbdbd;
    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: 1600px;
    width: 98%;
    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;
    }

    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;
    }

    .service-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab {
    -webkit-tap-highlight-color: transparent;
    outline: none;
        width: 100%;
        text-align: center;
    }
}

/* Мобильные устройства - 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: rgba(255, 140, 0, 0.1);
}

.tab.active {
    border: 2px solid #ff8c00;
    background: rgba(255, 140, 0, 0.15);
    color: #ff8c00;
    font-weight: 600;
}

@media (hover: none) {
    .tab:hover {
        border-color: #222 !important;
    }
}
.tab.active {
    border: 2px solid #ff8c00 !important;
    background: rgba(255, 140, 0, 0.15) !important;
}
EOF\
cat >> ~/conor_site/mysite/main/static/main/css/style_uslugi.css << 'EOF'

@media (hover: none) {
    .tab:hover {
        border-color: #222 !important;
    }
}
.tab.active {
    border: 2px solid #ff8c00 !important;
    background: rgba(255, 140, 0, 0.15) !important;
}
