/**
 * shared.css — единые стили хедера и футера для всех внутренних страниц
 * Используется на: /widgets/, /widgets/storeshop-disk/, /widgets/yandex-disk/
 */

/* ── Контейнер ───────────────────────────────────── */
.sh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── ХЕДЕР ───────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.875rem 0;
}

.sh-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Логотип */
.sh-logo {
    font-family: 'Outfit', 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
    text-decoration: none;
    line-height: 1;
    display: block;
    white-space: nowrap;
}
.sh-logo span {
    color: #6366f1;
}

/* Хлебные крошки */
.sh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 3px;
    line-height: 1;
}
.sh-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.sh-breadcrumb a:hover {
    color: #6366f1;
}
.sh-bc-sep {
    opacity: 0.4;
    font-size: 0.7rem;
}
.sh-bc-cur {
    color: #0f172a;
    font-weight: 600;
}

/* Навигация */
.sh-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex-shrink: 0;
}
.sh-nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.sh-nav-link:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.07);
}
.sh-nav-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: #6366f1;
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    margin-left: 0.625rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: 'Outfit', 'Manrope', sans-serif;
    white-space: nowrap;
}
.sh-nav-cta:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* ── ФУТЕР ───────────────────────────────────────── */
.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 2rem 0 2.25rem;
    margin-top: 0;
}

.sf-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sf-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
}
.sf-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.sf-links a:hover {
    color: #6366f1;
}
.sf-sep {
    color: #cbd5e1;
    line-height: 1;
}

/* ── АДАПТИВ ─────────────────────────────────────── */
@media (max-width: 860px) {
    .sh-nav-link { display: none; }
    .sh-nav-cta  { margin-left: 0; }
}
@media (max-width: 640px) {
    .sh-container  { padding: 0 1rem; }
    .site-header   { padding: 0.75rem 0; }
    .sh-logo       { font-size: 1.1rem; }
    .sh-breadcrumb { font-size: 0.7rem; }
    .site-footer   { padding: 1.5rem 0; }
    .sf-inner      { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
    .sf-links      { gap: 0.875rem; }
}
