/* static/css/fa-subset.css — только используемые solid-иконки */

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../webfonts/fa-solid-subset.woff2") format("woff2");
}

.fa,
.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-spin {
    animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-star::before { content: "\f005"; }
.fa-phone::before { content: "\f095"; }
.fa-map-marker-alt::before { content: "\f3c5"; }
.fa-clock::before { content: "\f017"; }
.fa-user::before { content: "\f007"; }
.fa-sign-in-alt::before { content: "\f2f6"; }
.fa-sign-out-alt::before { content: "\f2f5"; }
.fa-heart::before { content: "\f004"; }
.fa-refresh::before { content: "\f021"; }
.fa-spinner::before { content: "\f110"; }
.fa-check::before { content: "\f00c"; }
.fa-times::before { content: "\f00d"; }
.fa-arrow-left::before { content: "\f060"; }
.fa-paper-plane::before { content: "\f1d8"; }
.fa-filter::before { content: "\f0b0"; }
.fa-home::before { content: "\f015"; }
.fa-comment-slash::before { content: "\f4b3"; }
.fa-cloud-upload-alt::before { content: "\f382"; }
.fa-eye::before { content: "\f06e"; }
.fa-info-circle::before { content: "\f05a"; }
.fa-shield-alt::before { content: "\f3ed"; }
.fa-exclamation-triangle::before { content: "\f071"; }
.fa-check-circle::before { content: "\f058"; }
.fa-user-plus::before { content: "\f234"; }
.fa-save::before { content: "\f0c7"; }
/* static/css/fonts.css — self-hosted Manrope (latin/cyrillic) */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/xn7gYHE41ni1AdIRggOxSvfedN62Zw.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/xn7gYHE41ni1AdIRggmxSvfedN62Zw.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/xn7gYHE41ni1AdIRggexSvfedN4.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --font-body: 'Manrope', 'Inter', system-ui, sans-serif;
    --font-display: 'Manrope', 'Inter', system-ui, sans-serif;

    --color-bg-page: #000000;
    --color-bg-card: #0E0F0F;
    --color-bg-secondary: #151616;
    --color-bg-tertiary: #1A1B1B;
    --color-bg-chip: #181919;
    --color-bg-table-row: #141515;
    --color-bg-button: #151616;

    --color-border: #3A3C3C;
    --color-border-light: rgba(255, 255, 255, 0.15);
    --color-border-chip: #484A4A;
    --color-border-button: #454747;
    --color-border-table: #303232;

    --color-text-primary: #EEEEEE;
    --color-text-secondary: #BFC1C1;
    --color-text-muted: #8B8D8D;
    --color-text-name: #F2F2F2;
    --color-text-rating: #E5E5E5;
    --color-text-district: #E8E8E8;
    --color-text-chip: #E1E1E1;
    --color-text-table-header: #C8C8C8;
    --color-text-price: #ECECEC;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
.logo,
.logo a,
.plumber-card-name,
.plumber-info-detail h1,
.similar-plumbers > h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.soft-text {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.strong-text {
    font-family: var(--font-body);
    font-weight: 700;
}

.btn,
button,
.nav-links a {
    font-family: var(--font-body);
}
/* static/css/base.css */

/* Общие стили */

button {
    /* Полный ресет */
    all: unset; /* Сбрасывает ВСЕ стили, включая наследованные */
    cursor: pointer;
    display: inline-block; /* или inline-flex, в зависимости от нужд */
}

a {
    text-decoration: none;
    color: inherit !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-text-decoration-color: inherit !important;
    text-decoration-color: inherit !important;
}

/* Убирает синее выделение при нажатии */
a:visited {
    color: inherit !important;
}

/* Специфично для Safari - убирает системные цвета */
a:any-link {
    color: inherit !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #000;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body, 'Manrope', 'Inter', system-ui, sans-serif);
    line-height: 1.5;
    color: var(--color-text-primary, #EEEEEE);
    background-color: #000;
    background-image: url(/static/images/bg-pattern-rr.jpg);
    background-repeat: repeat;
    background-position: top left;
    background-size: auto;
    height: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

.age_limit {
    border-radius: 50%;
    border: 1px solid var(--color-border-chip, #484A4A);
    color: var(--color-text-secondary, #BFC1C1);
    font-size: 10px;
    font-weight: 500;
    padding: 6px 8px;
}

.age_limit_popup {
    border-radius: 50%;
    border: solid 5px red;
    font-size: 32px;
    padding: 15px;
    width: 100px;
    height: 100px;
}

.popup_header {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.h2_popup {
    color: gold;
    margin-bottom: 20px;
    font-size: 24px;
}

.text_popup {
    color: gold;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 12px;
}

.buttons_popup {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.display_none {
    display: none;
    transition: all 0.3s ease;
}

.money-count {
    display: block !important;
    margin-bottom: 10px;
    max-width: 500px;
}

.closed_button {
    background: inherit;
    border: 0;
    color: #c9aa00;
}

.red_star {
    color: red;
}

h1 {
    font-size: 20px;
    margin: 30px 0;
}

h3 {
    position: relative;
    font-weight: 600;
    font-size: 22px;
}

h5 {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-table-header, #C8C8C8);
}

/* Навигация */
.navbar {
    position: relative;
    background: var(--color-bg-card, #0E0F0F);
    color: var(--color-text-primary, #EEEEEE);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border, #3A3C3C);
    box-shadow: none;
    z-index: 10;
}

.navbar:before {
    content: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 0 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.is-auth {
    display: flex;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    background: none;
    -webkit-text-fill-color: unset;
    color: inherit;
    min-width: 0;
    max-width: 100%;
}

.logo-img {
    display: block;
    height: 28px;
    width: auto;
    max-width: min(200px, 46vw);
    object-fit: contain;
}

.logo a:after {
    content: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-links a {
    color: var(--color-text-primary, #EEEEEE);
    text-decoration: none;
    padding: 0 10px;
    min-height: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border-button, #454747);
    background-color: var(--color-bg-button, #151616);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 400;
    box-sizing: border-box;
    white-space: nowrap;
}

.nav-links a:hover {
    background-color: var(--color-bg-tertiary, #1A1B1B);
    border-color: var(--color-border, #3A3C3C);
}

.nav-links .btn {
    min-height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    border-radius: 8px;
}

/* Основной контент */
main {
    min-height: auto;
    padding: 0 16px 20px 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
    width: 100%;
}

/* Сообщения */
.messages-container {
    max-width: 1400px;
    margin: 0 auto 20px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Футер */
footer {
    background-color: var(--color-bg-card, #0E0F0F);
    color: var(--color-text-secondary, #BFC1C1);
    padding: 28px 0 24px;
    margin-top: 48px;
    border-top: 1px solid var(--color-border, #3A3C3C);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--color-text-primary, #EEEEEE);
}

.footer-section p,
.footer-section a {
    color: var(--color-text-secondary, #BFC1C1);
    margin-bottom: 10px;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--color-text-primary, #EEEEEE);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
    color: var(--color-text-secondary, #BFC1C1);
    text-align: center;
    overflow-wrap: anywhere;
}

.footer-bottom p {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-muted, #8B8D8D);
}

.footer-bottom a {
    color: var(--color-text-secondary, #BFC1C1);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--color-text-primary, #EEEEEE);
}

.footer-bottom .fa-heart {
    color: #8B8D8D;
    font-size: 8px;
}

.footer-bottom .age_limit {
    margin-left: 8px;
    vertical-align: middle;
}

/* Утилитные классы */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    margin-left: 20px;
    position: relative;
    background: var(--color-bg-card, #0E0F0F);
    border: 1px solid var(--color-border, #3A3C3C);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.background-rr {
    position: relative;
    z-index: 1;
    background: var(--color-bg-card, #0E0F0F);
    border: 1px solid var(--color-border, #3A3C3C);
}

.background-rr:before {
    content: none;
}

.btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--color-border-button, #454747);
    background-color: var(--color-bg-button, #151616);
    color: var(--color-text-primary, #EEEEEE);
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s, border-color 0.2s;
    z-index: 1;
}


.btn:hover {
    background-color: var(--color-bg-tertiary, #1A1B1B);
    border-color: var(--color-border, #3A3C3C);
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-primary {
    background-color: var(--color-bg-secondary, #151616);
}

.btn-primary-telegram {
    background-color: var(--color-bg-button, #151616);
    padding: 10px 20px;
    color: var(--color-text-primary, #EEEEEE);
    border: 1px solid var(--color-border-button, #454747);
    display: flex;
}


.btn-primary-telegram img {
    width: 22px;
    margin-left: 10px;
    filter: brightness(0) invert(1);
}

.btn-primary:hover {
    background-color: #5b5b5b;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-outline {
    background-color: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
    text-align: center;
}

.btn-outline:hover {
    background-color: #ffd700;
    color: #000;
    border: 2px solid #ffd700;
}

.website-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Фон страницы — повторяющийся паттерн REAL RELAX */
.bg-pattern-1 {
    background-color: #000;
    background-image: url(/static/images/bg-pattern-rr.jpg);
    background-repeat: repeat;
    background-position: top left;
    background-size: auto;
}

/* Альтернатива с более заметным текстом */
.bg-pattern-2 {
    background-color: #ffffff;
    background-image: repeating-linear-gradient(
            35deg,
            rgba(108, 117, 125, 0.05) 0px,
            rgba(108, 117, 125, 0.05) 100px,
            transparent 100px,
            transparent 200px
    );
}

.media_column {
    display: flex;
    flex-direction: row;
}

@media (max-width: 1080px) {
    .nav-links a {
        font-size: 8px;
    }

}

@media (max-width: 921px) {
    h1 {
        font-size: 16px;
    }

    .nav-container {
        padding: 0 12px 0 12px;
    }

    .age_limit {
        display: none;
    }

    .nav-links a {
        font-size: 8px;
        padding: 8px 13px;
    }

    .media_column {
        display: flex;
    }
}

@media (max-width: 768px) {

    main {
        padding: 0;
    }

    h1 {
        font-size: 16px;
        margin: 16px 0;
    }

    .card {
        margin-left: 0;
        padding: 0;
    }

    .nav-container {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    .logo-img {
        max-width: min(160px, 40vw);
        height: 24px;
    }

    .nav-links a {
        padding: 0 8px;
        font-size: 10px;
    }
}

@media (max-width: 700px) {
    .is-auth {
        display: flex;
        width: auto;
        flex-direction: row;
        align-items: center;
        flex-shrink: 0;
    }

    .nav-links .is-auth a {
        font-size: 10px;
    }

    .nav-links a {
        padding: 0 8px;
        min-height: 30px;
        margin-bottom: 0;
        font-size: 10px;
    }

    .nav-links {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0;
    }
}

@media (max-width: 480px) {

    .btn .btn-primary-telegram {
        padding: 10px 20px;
    }

    .btn {
        padding: 10px 5px;
    }

    h1 {
        font-size: 13px;
        margin: 10px;
    }

    .nav-links {
        flex-direction: row;
        justify-content: space-between;
    }

    .navbar {
        padding: 0.3rem 0;
    }

    .logo-img {
        height: 24px;
    }

    .nav-links a {
        font-size: 10px;
        margin-bottom: 0;
        min-height: 30px;
    }

    .buttons_popup {
        flex-direction: column;
        align-items: center;
    }

    .text_popup {
        margin-bottom: 20px;
        font-size: 6px;
    }

    .h2_popup {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .popup_header {
        margin-bottom: 15px;
    }

    .age_limit_popup {
        border-radius: 50%;
        border: solid 2px red;
        font-size: 14px;
        padding: 8px;
        width: 50px;
        height: 50px;
    }
}

/* Telegram WebView / узкая мобилка */
html.tg-webview,
html.tg-webview body {
    overflow-x: hidden;
    max-width: 100%;
}

html.tg-webview .nav-container {
    gap: 8px;
}

html.tg-webview .logo-img {
    max-width: min(140px, 38vw);
}

html.tg-webview .nav-links a {
    padding: 0 7px;
}

html.tg-webview .footer-bottom {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    overflow-wrap: anywhere;
}

/* iOS Telegram: не доверяем width из WebView — форсим мобильный layout */
html.tg-webview.is-ios main {
    padding: 0 !important;
    overflow-x: hidden;
    max-width: 100%;
}

html.tg-webview.is-ios .nav-container {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    gap: 8px;
}

html.tg-webview.is-ios .logo-img {
    max-width: min(140px, 38vw);
    height: 24px;
}

html.tg-webview.is-ios .nav-links a {
    padding: 0 7px;
    font-size: 10px;
}

