/* ============================================================
   СИНДИКАТ · Единая оболочка сайта (шапка, подвал, анимации)
   Стиль по образцу страницы «О компании»: белая шапка,
   uppercase-ссылки с золотым подчёркиванием, бургер-меню.
   ============================================================ */

:root {
    --chrome-gold: #1E3A5F;
    --chrome-gold-dark: #152A45;
    --chrome-ink: #23231f;
    --chrome-line: #e6e1d8;
    --chrome-paper: #f8f7f3;
    --chrome-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Шапка ---------- */
header#siteHeader {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--chrome-line) !important;
    box-shadow: 0 2px 12px rgba(24, 20, 13, 0.04) !important;
    padding: 10px 0 !important;
    transition: box-shadow 0.35s ease, padding 0.35s ease !important;
}
header#siteHeader.scrolled {
    padding: 6px 0 !important;
    box-shadow: 0 8px 30px rgba(24, 20, 13, 0.12) !important;
}
header#siteHeader .header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    height: 70px;
    overflow: visible;
}
header#siteHeader .logo {
    height: 70px;
    display: flex;
    align-items: center;
    overflow: visible;
}
header#siteHeader .logo {
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 5px 0;
    transition: var(--chrome-transition);
}
header#siteHeader .logo-img {
    height: 180px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--chrome-transition);
    /* Тёмно-синий фирменный логотип — единый на всех страницах */
    filter: brightness(0) saturate(100%) invert(20%) sepia(70%) saturate(1800%) hue-rotate(195deg) brightness(78%) contrast(95%);
}
html[data-theme="dark"] header#siteHeader .logo-img {
    filter: brightness(0) saturate(100%) invert(72%) sepia(45%) saturate(950%) hue-rotate(355deg) brightness(97%) contrast(96%);
}
header#siteHeader .logo:hover .logo-img { transform: translateY(-2px) scale(1.04); }
header#siteHeader .logo-fallback {
    font-family: Georgia, serif;
    letter-spacing: 0.06em;
    color: var(--chrome-ink);
    display: none;
}

header#siteHeader nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}
header#siteHeader nav ul li { margin-left: 1.6rem; position: relative; }
header#siteHeader nav ul li:first-child { margin-left: 0; }
header#siteHeader nav ul li:empty { display: none; }
header#siteHeader nav ul li a {
    color: var(--chrome-ink);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    position: relative;
    padding: 9px 0;
    display: block;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
}
header#siteHeader nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--chrome-gold);
    transition: width 0.3s ease, left 0.3s ease;
}
header#siteHeader nav ul li a:hover::after,
header#siteHeader nav ul li a.active::after { width: 100%; left: 0; }
header#siteHeader nav ul li a:hover { color: var(--chrome-gold); transform: translateY(-1px); }
header#siteHeader nav ul li a.active { color: var(--chrome-gold); }
header#siteHeader nav ul li a.admin-link {
    background: linear-gradient(135deg, var(--chrome-gold), var(--chrome-gold-dark));
    color: #fff !important;
    padding: 9px 16px !important;
    border-radius: 3px;
    letter-spacing: 0.06em;
    box-shadow: 0 3px 10px rgba(30, 58, 95, 0.35);
}
header#siteHeader nav ul li a.admin-link::after { display: none; }

/* Корзина в шапке */
header#siteHeader .cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--chrome-line);
    background: #fff;
    color: var(--chrome-ink);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
}
header#siteHeader .cart-link svg { width: 18px; height: 18px; }
header#siteHeader .cart-link:hover {
    border-color: var(--chrome-gold);
    color: var(--chrome-gold);
    box-shadow: 0 4px 14px rgba(30, 58, 95, 0.22);
    transform: translateY(-1px);
}
.cart-badge {
    position: absolute;
    top: -9px;
    right: -9px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--chrome-gold);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.cart-badge.show { opacity: 1; transform: scale(1); }

/* Бургер */
header#siteHeader .menu-toggle {
    display: none;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    padding: 12px !important;
    z-index: 1002;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    position: relative;
}
header#siteHeader .menu-toggle:hover { background: #f1eee8 !important; transform: scale(1.05); }
header#siteHeader .menu-icon {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--chrome-ink);
    position: relative;
    transition: all 0.35s ease;
    margin: 0 auto;
}
header#siteHeader .menu-icon::before,
header#siteHeader .menu-icon::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 2px;
    background: var(--chrome-ink);
    transition: all 0.35s ease;
    left: 0;
}
header#siteHeader .menu-icon::before { top: -7px; }
header#siteHeader .menu-icon::after { top: 7px; }
header#siteHeader .menu-toggle.active .menu-icon { background: transparent; transform: rotate(180deg); }
header#siteHeader .menu-toggle.active .menu-icon::before { top: 0; transform: rotate(45deg); background: var(--chrome-gold); }
header#siteHeader .menu-toggle.active .menu-icon::after { top: 0; transform: rotate(-45deg); background: var(--chrome-gold); }

@media (max-width: 1020px) {
    header#siteHeader .menu-toggle { display: block; order: 3; }
    header#siteHeader .cart-link { order: 2; }
    header#siteHeader .logo-img { height: 120px; }
    header#siteHeader .header-container { padding: 0 14px; }
    header#siteHeader .logo { margin-left: -10px; }
    header#siteHeader nav {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: #fff;
        transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    header#siteHeader nav.open { max-height: 560px; }
    header#siteHeader nav ul { flex-direction: column; align-items: stretch; padding: 10px 0 16px; gap: 2px; background: #fff; }
    header#siteHeader nav ul li { margin-left: 0; }
    header#siteHeader nav ul li a { padding: 11px 6px; border-bottom: 1px solid #f2efe9; }
    header#siteHeader nav ul li a.admin-link { margin-top: 8px; text-align: center; }
}
html[data-theme="dark"] header#siteHeader nav { background: #1b1710; }
html[data-theme="dark"] header#siteHeader nav ul { background: #1b1710; }
html[data-theme="dark"] header#siteHeader nav ul li a { border-bottom-color: #3b3322; }

/* ---------- Подвал ---------- */
footer.site-footer {
    background: #20201d;
    color: #d8d4cb;
    margin-top: 90px;
    padding: 64px 0 0;
    position: relative;
}
footer.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--chrome-gold), transparent);
}
footer.site-footer .footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 48px;
}
footer.site-footer h4 {
    font-family: Georgia, serif;
    color: #fff;
    font-size: 17px;
    margin: 0 0 14px;
    letter-spacing: 0.02em;
}
footer.site-footer p { margin: 0 0 9px; font-size: 13.5px; line-height: 1.65; color: #b5b1a6; }
footer.site-footer a { color: #b5b1a6; text-decoration: none; transition: color 0.25s ease; }
footer.site-footer a:hover { color: var(--chrome-gold); }
footer.site-footer .footer-logo-img { height: 160px; width: auto; object-fit: contain; display: block; margin-bottom: 14px; }
footer.site-footer .footer-links p { margin-bottom: 7px; }
.author-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 11px 20px;
    border: 1px solid rgba(30, 58, 95, 0.55);
    color: var(--chrome-gold-light) !important;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    background: transparent;
}
.author-btn svg { width: 17px; height: 17px; fill: currentColor; }
.author-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(30, 58, 95, 0.25), transparent 70%);
    transform: translateX(-110%);
    transition: transform 0.6s ease;
}
.author-btn:hover { border-color: var(--chrome-gold); color: #fff !important; box-shadow: 0 6px 22px rgba(30, 58, 95, 0.28); transform: translateY(-2px); }
.author-btn:hover::before { transform: translateX(110%); }
footer.site-footer .footer-bottom {
    max-width: 1240px;
    margin: 44px auto 0;
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #8f8b81;
}
@media (max-width: 900px) {
    footer.site-footer .footer-container { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Анимации «дорого» ---------- */
@keyframes chromeFadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: opacity, transform; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Золотой блик на кнопках */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35), transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}
.btn-shine:hover::after { transform: translateX(120%); }

/* Лайтбокс фото проектов */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(18, 17, 15, 0.93);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
    animation: chromeFadeUp 0.3s ease;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    border: 4px solid #fff;
}
.lightbox-overlay.dragging img { cursor: grabbing; }
.lightbox-close {
    position: fixed;
    top: 22px;
    right: 30px;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.25s ease, color 0.25s ease;
    z-index: 3001;
}
.lightbox-close:hover { transform: rotate(90deg); color: var(--chrome-gold); }
.lightbox-nav{
    position: fixed; top: 50%; transform: translateY(-50%);
    z-index: 3001; width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .25s ease;
}
.lightbox-nav:hover{ background: var(--chrome-gold); color: #16140f; }
.lightbox-nav.prev{ left: 24px; }
.lightbox-nav.next{ right: 24px; }
.lightbox-nav[disabled]{ opacity: .3; pointer-events: none; }
.lightbox-count{
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
    z-index: 3001; color: #fff; font-size: 13.5px; letter-spacing: .06em;
    background: rgba(0,0,0,.4); padding: 6px 16px; border-radius: 18px;
}
@media (max-width: 760px){
    .lightbox-nav.prev{ left: 12px; }
    .lightbox-nav.next{ right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- Мобильный ряд «Корзина + тема» в бургер-меню ---------- */
.mobile-theme-row { display: none !important; }
@media (max-width: 1020px) {
    header#siteHeader nav ul li.mobile-theme-row {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        padding: 14px 6px 10px;
        border-bottom: 1px solid #f2efe9;
        margin-bottom: 4px;
    }
    header#siteHeader .mobile-theme-row .cart-link { pointer-events: auto; }
}
html[data-theme="dark"] header#siteHeader nav ul li.mobile-theme-row { border-bottom-color: #3b3322 !important; }
@media (min-width: 1021px) { header#siteHeader .mobile-theme-row { display: none !important; } }

/* ---------- Подвал: документы и реквизиты ---------- */
footer.site-footer .footer-container { grid-template-columns: 1.2fr 1fr 1fr 1.1fr; }
footer.site-footer .footer-legal p { margin-bottom: 7px; font-size: 13px; }
footer.site-footer .footer-requisites {
    max-width: 1240px;
    margin: 40px auto 0;
    padding: 28px 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
footer.site-footer .footer-requisites h4 {
    margin: 0 0 14px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8f8b81;
}
footer.site-footer .req-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
footer.site-footer .req-list > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 11px 22px 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
footer.site-footer .req-list dt {
    margin: 0;
    color: #8f8b81;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
footer.site-footer .req-list dd {
    margin: 0;
    color: #d8d4cb;
    font-size: 12.5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
footer.site-footer .req-list dd a { color: #d8d4cb; }
footer.site-footer .req-list dd a:hover { color: var(--chrome-gold); }
footer.site-footer .footer-disclaimer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 28px 34px;
    font-size: 11.5px;
    line-height: 1.6;
    color: #79756c;
}
@media (max-width: 900px) {
    footer.site-footer .footer-container { grid-template-columns: 1fr 1fr; }
    footer.site-footer .req-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    footer.site-footer .footer-container { grid-template-columns: 1fr; }
    footer.site-footer .req-list { grid-template-columns: 1fr; }
    footer.site-footer .req-list > div { padding-right: 0; }
}

/* ---------- Баннер cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4000;
    background: #20201d;
    border-top: 3px solid var(--chrome-gold, #c8933e);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(110%);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cookie-banner.open { transform: translateY(0); }
.cookie-banner-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 460px; font-size: 13px; line-height: 1.65; color: #c8c4bb; }
.cookie-banner-text b { color: #fff; }
.cookie-banner-text a { color: var(--chrome-gold, #c8933e); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-btn {
    padding: 12px 26px;
    border: 1px solid transparent;
    cursor: pointer;
    font: 12px/1 Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.cookie-btn-primary { background: var(--chrome-gold, #c8933e); color: #1d1608; }
.cookie-btn-primary:hover { background: #d9b36c; }
.cookie-btn-secondary { background: transparent; color: #c8c4bb; border-color: rgba(255, 255, 255, 0.25); }
.cookie-btn-secondary:hover { color: #fff; border-color: #fff; }
@media (max-width: 600px) {
    .cookie-banner-inner { padding: 16px 18px; gap: 14px; }
    .cookie-banner-actions { width: 100%; }
    .cookie-btn { flex: 1 1 auto; }
}

/* ---------- Чекбокс согласия на обработку ПДн ---------- */
.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.55;
    color: #6b6b68;
    cursor: pointer;
}
.consent-check input[type="checkbox"] {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: #c8933e;
    cursor: pointer;
}
.consent-check span { flex: 1 1 auto; }
.consent-check a { color: #a87728; text-decoration: underline; }
.consent-check a:hover { color: #c8933e; }
html[data-theme="dark"] .consent-check { color: #b5b1a6; }
html[data-theme="dark"] .consent-check a { color: #d9b36c; }
