/* TATE Brand — Main Stylesheet */

/* Onest font — local */
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('assets/fonts/onest-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('assets/fonts/onest-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('assets/fonts/onest-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD, 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: 'Onest';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('assets/fonts/onest-latin.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;
}

/* Inter, Jost (400) — local (заменяют Google Fonts) */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/inter-400-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/inter-400-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/inter-400-latin-ext.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:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/inter-400-latin.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;}
@font-face{font-family:'Jost';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/jost-400-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Jost';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/jost-400-latin-ext.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:'Jost';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/jost-400-latin.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: 'Onest', sans-serif;
    --black: #19191a;
    --white: #ffffff;
    --gray-50: #f8f8f8;
    --gray-100: #f0f0f0;
    --gray-200: #e4e4e4;
    --gray-400: #9e9e9e;
    --gray-500: #6c6c6c;
    --gray-700: #3d3d3d;
    --red: #f8604a;
    --green: #2ea84a;
    --purple: #7c3aed;
    --max-w: 1920px;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: .2s ease;
    
    /* TATE Brand tokens */
    --ys-background-primary: hsl(0deg 0% 100% / 100%);
    --ys-color-token-text-primary: hsl(240deg 1.96% 10% / 100%);
    --ys-color-token-text-secondary: hsl(0deg 0% 42.35% / 100%);
    --ys-color-token-border-primary: hsl(240deg 1.82% 89.22% / 100%);
    --ys-spacing-50: 4px;
    --ys-spacing-100: 8px;
    --ys-spacing-150: 12px;
    --ys-spacing-200: 16px;
    --ys-spacing-300: 24px;
    --ys-section-max-width: 1920px;
    --ys-main-menu-height: 80px;
}

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

html {
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font);
    color: var(--black);
    background: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
input, textarea, select { font-size: 16px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 80px; }
@media (max-width: 768px) {
    .container { padding: 0 12px; }
}

/* ========== Битрикс: панель администратора ========== */
#bx-panel {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
}
body:has(#bx-panel) {
    padding-bottom: 0 !important;
}
@media (min-width: 769px) {
    body:has(#bx-panel) {
        padding-top: calc(90px + 39px) !important;
    }
    body:has(#bx-panel) .header {
        top: 39px;
    }
    body:has(#bx-panel) .burger-menu {
        top: calc(81px + 39px);
        max-height: calc(100vh - 81px - 39px);
    }
    body:has(#bx-panel) .burger-overlay {
        top: calc(80px + 39px);
    }
    body:has(#bx-panel) .city-popup { top: calc(92px + 39px); }
}
@media (max-width: 768px) {
    body:has(#bx-panel) {
        padding-top: 39px !important;
    }
    body:has(#bx-panel) .header {
        top: 39px;
    }
    body:has(#bx-panel) .burger-menu {
        top: calc(80px + 39px);
        max-height: calc(100vh - 80px - 39px);
    }
}

/* ===== Мобильное нижнее меню (tab bar) — по макету Figma ===== */
.mobile-tabbar { display: none; }
@media (max-width: 768px) {
    .mobile-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 998;
        height: 80px;
        background: #ffffff;
        border-top: 1px solid var(--ys-color-token-border-primary, #e4e4e6);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-tabbar__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-decoration: none;
        color: var(--gray-500);
    }
    .mobile-tabbar__item svg { width: 26px; height: 26px; display: block; }
    .mobile-tabbar__item span {
        font-family: 'Inter', sans-serif;
        font-size: 10px;
        line-height: 1;
        letter-spacing: .01em;
    }
    .mobile-tabbar__item.active { color: var(--black); }
    .mobile-tabbar__item.active span { font-weight: 500; }
    /* Отступ под фиксированный бар, чтобы он не перекрывал контент и футер */
    body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

