/* OZARELA Components CSS - Header & Footer
   [t584 14.10, окно «Стол» aurao-75] Шаг 0 «сайт под design-x»: подвал и полоса шагов — плоско, на токенах, текст не мельче 13 px.
   Разметка подвала (js/components.js, единственный носитель — задача 123) и его слова не менялись. */
@import url("site-footer.css?v=t900-2");   /* [t900 22.10] подвал — свой файл, единственный носитель (было здесь, стр. 240–350) */
/* This file overrides page-specific styles */

/* ── Pipeline strip ── */
.pipeline-strip {
    position: fixed;
    top: 57px; /* below header */
    left: 0; right: 0;
    z-index: 90;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
}
.pipeline-strip__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    height: 36px;
    gap: 0;
}
.pipeline-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 0 0;
    font-size: 13px;   /* [t584] было 11px */
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.15s;
    font-family: 'Manrope', sans-serif;
}
.pipeline-step:not(:last-child)::after {
    content: '→';
    margin-left: 16px;
    color: var(--border-strong);
    font-size: 13px;   /* [t584] было 10px */
}
.pipeline-step:hover { color: var(--text-primary); }
.pipeline-step.active {
    color: var(--text-primary);
    font-weight: 600;
}
.pipeline-step.active::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 16px;
    height: 2px;
    background: var(--accent-terracotta);   /* [t584] выбранное — терракота, как в design-x */
}
.pipeline-step .step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;   /* [t584] было 18 px кружок и 9 px цифра */
    flex-shrink: 0;
}
.pipeline-step.done .step-num {
    background: var(--accent-gold-dark);   /* [t584] белая цифра на --accent-gold не читалась (2,2:1) */
    border-color: var(--accent-gold-dark);
    color: #fff;
}
/* When pipeline strip present, shift main content */
body.has-pipeline { padding-top: 93px !important; }

/* Header */
header {
    padding: 22px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;   /* [t584] плоская белая, как шапка design-x */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: padding 0.3s, box-shadow 0.3s;
}
header.scrolled {
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(26, 22, 20, 0.06);   /* [t584] */
}
header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.14em;   /* [t584] капсом, как логотип шапки design-x (было lowercase — шапка и подвал расходились) */
    line-height: 1;
}

/* Hide old nav */
header nav { display: none; }

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}
.header-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.3s;
    position: relative;
}
.header-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s;
}
.header-link:hover { color: var(--text-primary); }
.header-link:hover::after { width: 100%; }

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 13px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    background: var(--accent-peach-light);
    border: 1px solid var(--accent-peach);
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.3s;
}
.header-cta:hover {
    background: var(--accent-peach);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    /* [t584] оранжевое свечение кнопки снято */
}
.header-cta-arrow { transition: transform 0.3s; }
.header-cta:hover .header-cta-arrow { transform: translateX(4px); }

/* User dropdown */
.user-menu { position: relative; }
.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-warm);
    border: 2px solid var(--border-light);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}
.user-trigger:hover {
    border-color: var(--accent-peach);
    background: var(--bg-peach);
}
.user-trigger svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}
.user-menu.open .user-trigger svg { transform: rotate(180deg); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 2px;
    box-shadow: 0 8px 24px rgba(26, 22, 20, 0.08);   /* [t584] как выпадашка шапки */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}
.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text-body);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s;
}
.user-dropdown a:last-child { border-bottom: none; }
.user-dropdown a:hover {
    background: var(--bg-warm);
    color: var(--text-primary);
}
.user-dropdown a.logout { color: var(--accent-terracotta); }
.user-dropdown a.logout:hover { background: var(--err-bg); }   /* [t584] токен */

/* Auth state visibility */
.guest-only, .auth-only { display: none; }
body.guest .guest-only {
    display: flex;
    align-items: center;
    gap: 24px;
}
body.logged-in .auth-only {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-right { gap: 12px; }
    .header-cta { padding: 10px 16px; font-size: 13px; }
    .header-link { font-size: 14px; }
}
