:root {
    --header-h: 72px;
    --container-max: 1200px;

    /* Colors */
    --color-bg: #ffffffff; /* общий фон */
    --color-panel-bg: #ffffffff; /* фон полноэкранного меню */
    --color-text: #000000ff; /* текст по умолчанию */
    --color-text-hover: #ffb800; /* ховер/акцент */
    --color-border: rgba(255, 255, 255, 0.08);

    /* Z-index */
    --z-header: 10000; /* лого и бургер поверх */
    --z-panel: 9990; /* панель меню ниже хедера, выше контента */
}

/* ====== Base ====== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial,
        sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}
a {
    color: inherit;
}

/* ====== Layout helpers ====== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0px;
}

/* ====== Header ====== */
.site-header {
    position: relative;
    top: 0;
    z-index: var(--z-header);
    height: var(--header-h);
    background: var(--color-bg);
   
}

.site-header a:hover {
  color: #ff757c;
}

.site-header .chip-btn:hover{
    color:#fff;
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    position: relative;
    z-index: var(--z-header);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.4px;
    font-size: 1.125rem;
    
}

.nav-menu {
    display: flex !important;
    flex-direction: row;
    list-style: none;
    gap: 30px;
    align-items: center;
    padding: 0;
    margin:0;
}

.nav-menu li a {
    text-decoration: none;
    font-size: 18px;
}

/* ====== Burger button ====== */
.nav-toggle {
    position: relative;
    z-index: var(--z-header);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.nav-toggle:focus-visible {
    outline: 2px solid var(--color-text-hover);
    outline-offset: 2px;
    background: transparent;
}
nav-toggle:hover{
     background: transparent;
}

.nav-toggle .bar {
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle .bar:nth-child(1) {
    top: 15px;
}
.nav-toggle .bar:nth-child(2) {
    top: 21px;
}
.nav-toggle .bar:nth-child(3) {
    top: 27px;
}

/* — бургер → аккуратный крест */
.nav-toggle.open .bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* ====== Fullscreen menu panel (mobile) ====== */
.nav-panel {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh; /* fallback */
    height: 100svh; /* safe for iOS */
    height: 100dvh; /* modern */
    z-index: var(--z-panel);
    background: var(--color-panel-bg);
    color: var(--color-text);
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    overscroll-behavior: contain;
}

.nav-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease;
}

/* ====== Menu list ====== */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;

    /* flex: мобилка — колонка, центр */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: clamp(20px, 3.8vw, 36px); /* крупнее в оверлее */
    line-height: 1.2;
    border-radius: 10px;
    transition: color 0.25s ease;
}
.nav-link:hover,
.nav-link:focus {
    color: var(--color-text-hover);
}
.nav-link:focus-visible {
    outline: 2px solid var(--color-text-hover);
    outline-offset: 4px;
}

/* ====== Desktop: inline nav ====== */
@media (min-width: 1024px) {
    .nav-panel {
        position: static;
        inset: auto;
        width: auto;
        height: auto;
        background: transparent;
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0;
        transition: none;
    }

    .nav-list {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
    }

    .nav-toggle {
        display: none;
    }
}

/* ====== Body scroll lock for open menu ====== */
body.no-scroll {
    position: fixed;
    overflow: hidden;
    width: 100%;
}

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
    .nav-toggle .bar,
    .nav-panel {
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}


@media (max-width: 860px) {
.nav-menu {
    display: flex;
  flex-direction: column;}

}