/* Site chrome (header + footer) styles
 * Generated from assets/header.html and assets/footer.html
 * Inlined header/footer markup is in each page; styles are loaded once here. */

/* ============ ФИРМЕННЫЙ ШРИФТ (грузится на всех страницах) ============
 * Cinzel используется в заголовках по всему сайту, но <link> на шрифт стоял
 * лишь на части страниц. Подключаем здесь один раз для всего сайта. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@300;400;700&display=swap');

/* ============ HEADER ============ */
:root {
        --container: 1120px;
    }
    
    .container {
        width: min(var(--container, 1120px), calc(100% - 48px));
        margin-inline: auto;
    }
   
    
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        backdrop-filter: blur(12px);
        background: rgba(10, 10, 10, 0.55);
        border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
        overflow: visible;
        font-size: 16px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        line-height: 1.5;
    }
    
    .header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0;
        gap: 14px;
        position: relative;
        overflow: visible;
    }
    
    .logo {
        font-weight: 650;
        letter-spacing: 0.2px;
        text-decoration: none;
        color: var(--text, #f7f4ef);
    }
    
    /* Desktop nav */
    .nav {
        display: flex;
        gap: 18px;
        align-items: center;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav a {
        color: var(--muted, rgba(247, 244, 239, 0.6));
        padding: 10px 10px;
        border-radius: 10px;
        text-decoration: none;
        transition: background 160ms ease, color 160ms ease;
    }
    
    .nav a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--text, #f7f4ef);
    }
    
    .nav a[aria-current="page"] {
        color: var(--text, #f7f4ef);
        background: rgba(255, 255, 255, 0.12);
    }
    
    .nav a:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,255,255,0.16);
    }
    
    /* Mobile toggle button (hidden on desktop) */
    .nav-toggle {
        display: none;
        height: 40px;
        width: 44px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.12);
        background: rgba(255,255,255,0.06);
        color: rgba(255,255,255,0.9);
        cursor: pointer;
        transition: background 160ms ease, transform 120ms ease;
    }
    
    .nav-toggle:hover {
        background: rgba(255,255,255,0.10);
        transform: translateY(-1px);
    }
    
    .nav-toggle:active {
        transform: translateY(0);
    }
    
    .nav-toggle:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,255,255,0.16);
    }
    
    /* Burger icon */
    .nav-toggle__icon {
        display: inline-block;
        width: 18px;
        height: 2px;
        background: rgba(255,255,255,0.86);
        border-radius: 999px;
        position: relative;
    }
    
    .nav-toggle__icon::before,
    .nav-toggle__icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 18px;
        height: 2px;
        background: rgba(255,255,255,0.86);
        border-radius: 999px;
    }
    
    .nav-toggle__icon::before { top: -6px; }
    .nav-toggle__icon::after  { top:  6px; }
    
    /* Mobile layout: horizontal menu (wrap) */
    @media (max-width: 700px) {
     
        .header-row {
            padding: 12px 0;
        }
        
        .nav-toggle {
            display: inline-grid;
            place-items: center;
            flex: 0 0 auto;
        }
        
        /* dropdown на всю ширину, внутри горизонтальный flex */
        .nav {
            position: absolute;
            top: calc(100% + 10px);
            left: 50%;
            width: calc(100vw - 24px);
            max-width: 720px;
            transform: translate(-50%, -8px);
            display: flex;          /* горизонтально */
            flex-wrap: wrap;        /* перенос на следующую строку */
            gap: 8px;
            justify-content: center;
            padding: 10px;
            border-radius: 16px;
            background: rgba(10, 10, 10, 0.92);
            border: 1px solid rgba(255,255,255,0.12);
            backdrop-filter: blur(12px);
            box-shadow: 0 18px 50px rgba(0,0,0,0.55);
            opacity: 0;
            pointer-events: none;
            transition: opacity 160ms ease, transform 160ms ease;
            z-index: 1100;
        }
        
        .nav a {
            padding: 10px 12px;
            border-radius: 999px; /* как chips */
            white-space: nowrap;
            color: rgba(255,255,255,0.82);
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.10);
        }
        
        .nav a:hover {
            background: rgba(255,255,255,0.10);
            color: rgba(255,255,255,0.95);
        }
        
        .nav a[aria-current="page"] {
            color: rgba(255,255,255,0.95);
            background: rgba(255,255,255,0.14);
            border-color: rgba(255,255,255,0.22);
        }
        
        .site-header.is-menu-open .nav {
            transform: translate(-50%, 0);
            opacity: 1;
            pointer-events: auto;
        }
    }
    
    /* ── Region Menu (dropdown) ── */
    .nav { margin-left: auto; }

    .region-menu {
        position: relative;
        flex-shrink: 0;
    }

    /* Переключатель языка UA/RU — рядом с кнопкой выбора версии (только страницы Варшавы) */
    .lang-switch {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        flex-shrink: 0;
        padding: 3px;
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: 999px;
        background: rgba(255,255,255,0.04);
    }

    .lang-switch__opt {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 32px;
        height: 28px;
        padding: 0 8px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 650;
        letter-spacing: 0.4px;
        line-height: 1;
        text-decoration: none;
        color: rgba(247,244,239,0.6);
        transition: background 160ms ease, color 160ms ease;
    }

    a.lang-switch__opt:hover {
        color: var(--text, #f7f4ef);
        background: rgba(247,244,239,0.08);
    }

    .lang-switch__opt.is-active {
        color: #1a1510;
        background: #D4A574;
        cursor: default;
    }

    .lang-switch__opt:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(212,165,116,0.35);
    }

    /* Десктоп: переключатель — правее кнопки выбора версии. На мобиле (≤700px)
       порядок из разметки сохраняется (переключатель слева от кнопки версии). */
    @media (min-width: 701px) {
        .lang-switch { order: 1; }

        /* Поджимаем меню, чтобы 8 пунктов + логотип + кнопка версии + переключатель
           языка помещались в одну строку даже на узких ноутбучных экранах
           (MacBook ~1280px, где контейнер упирается в 1120px). flex-wrap оставляем —
           на совсем узких окнах меню перенесётся аккуратно, а не обрежется. */
        .header-row { gap: 10px; }
        .nav { gap: 8px; }
        .nav a { padding: 8px 8px; }
    }

    .region-menu-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: 50%;
        background: rgba(255,255,255,0.04);
        color: rgba(255,255,255,0.75);
        cursor: pointer;
        transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
    }

    .region-menu-trigger:hover {
        background: rgba(255,255,255,0.10);
        border-color: rgba(255,255,255,0.28);
        color: #fff;
    }

    .region-menu-trigger:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,255,255,0.16);
    }

    .region-menu-trigger[aria-expanded="true"] {
        background: rgba(255,255,255,0.12);
        border-color: rgba(255,255,255,0.32);
        color: #fff;
    }

    .region-menu-trigger svg {
        display: block;
    }

    /* Маленькая точка-индикатор текущего региона */
    .region-menu-trigger::after {
        content: '';
        position: absolute;
        bottom: 2px;
        right: 2px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #D4A574;
        border: 2px solid rgba(10, 10, 10, 0.95);
    }

    /* Панель */
    .region-menu-panel {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        min-width: 280px;
        background: rgba(15, 15, 15, 0.96);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 14px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 18px 50px rgba(0,0,0,0.55);
        padding: 14px;
        z-index: 1100;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .region-menu.is-open .region-menu-panel {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .region-menu-head {
        padding: 4px 8px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        margin-bottom: 8px;
    }

    .region-menu-eyebrow {
        display: block;
        font-size: 0.66rem;
        color: rgba(212, 165, 116, 0.85);
        letter-spacing: 0.2em;
        text-transform: uppercase;
        margin-bottom: 6px;
        font-weight: 500;
    }

    .region-menu-hint {
        margin: 0;
        color: rgba(255,255,255,0.6);
        font-size: 0.76rem;
        line-height: 1.5;
        font-weight: 300;
    }

    .region-menu-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .region-menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 10px;
        border-radius: 10px;
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        transition: background 160ms ease;
    }

    .region-menu-item:hover {
        background: rgba(255,255,255,0.06);
    }

    .region-menu-item[aria-current="true"] {
        background: rgba(212, 165, 116, 0.08);
        pointer-events: none;
        cursor: default;
    }

    .region-menu-item[aria-current="true"]::after {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #D4A574;
        margin-left: auto;
        flex-shrink: 0;
        box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.18);
    }

    .region-menu-flag {
        font-size: 1.5rem;
        line-height: 1;
        flex-shrink: 0;
    }

    .region-menu-info {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .region-menu-title {
        font-size: 0.88rem;
        font-weight: 500;
        color: #fff;
        line-height: 1.2;
    }

    .region-menu-sub {
        font-size: 0.7rem;
        color: rgba(255,255,255,0.45);
        letter-spacing: 0.06em;
        line-height: 1.2;
    }

    @media (max-width: 700px) {
        .region-menu { margin-left: auto; }
        .nav-toggle { order: 1; }
        .region-menu-trigger {
            width: 36px;
            height: 36px;
        }
        .region-menu-panel {
            min-width: 260px;
            right: 0;
            left: auto;
            /* Не даём вылезти за левый край экрана */
            max-width: calc(100vw - 24px);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .nav,
        .nav a,
        .nav-toggle {
            transition: none !important;
        }
    }

/* ============ FOOTER ============ */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1412 50%, #0a0a0a 100%);
    padding: 0 20px 20px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(202, 165, 127, 0.3), transparent);
}
.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(202, 165, 127, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.footer-logo {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    flex: 1;
}
.logo-memei {
    color: rgba(224, 224, 224, 0.9);
    font-weight: 500;
}
.logo-photo {
    color: #caa57f;
    opacity: 0.8;
    margin-left: 2px;
    transition: opacity 0.3s ease;
}
.footer-logo:hover .logo-photo { opacity: 1; }
.footer-logo:hover { transform: translateY(-2px); }
.footer-social {
    display: flex;
    justify-content: center;
    flex: 1;
}
.social-icons {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(202, 165, 127, 0.15);
    border: 1px solid rgba(202, 165, 127, 0.3);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.social-icons a:hover {
    transform: scale(1.12);
    background: rgba(202, 165, 127, 0.2);
    border-color: #caa57f;
}
.social-icons img { width: 20px; height: 20px; }

.site-footer {
    background: #050505;
    padding: 16px 20px;
    border-top: 1px solid rgba(202, 165, 127, 0.3);
}
.site-footer__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.site-footer__credits {
    text-align: center;
    width: 100%;
}
.site-footer__credits p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(224, 224, 224, 0.5);
}
.site-footer__credits span {
    color: #caa57f;
    font-weight: 500;
}

@media (max-width: 768px) {
    .footer { padding: 0 20px 40px; }
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        margin-top: 0;
    }
    .footer-logo,
    .footer-social,
    .footer-nav { flex: none; }
    .footer-logo { font-size: 1.05rem; order: 1; }
    .footer-social { order: 2; }
    .footer-nav { order: 3; }
    .social-icons { gap: 16px; }
}
@media (max-width: 480px) {
    .footer { padding: 0 15px 30px; }
    .footer-logo { font-size: 0.95rem; letter-spacing: 0.03em; }
}

/* Override остатки старых правил ниже — задают вертикальное выравнивание */
.footer-bottom {
    align-items: flex-start;
    }
    .footer-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
    }
    .footer-nav-main {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
    }
    .footer-nav-main a {
    font-size: 0.85rem;
    color: rgba(224, 224, 224, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    }
    .footer-nav-main a:hover {
    color: #D4A574;
    }
    /* Контакты + Политика конфиденциальности */
    .footer-nav-legal {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    }
    .footer-nav-legal a {
    font-size: 0.78rem;
    color: rgba(224, 224, 224, 0.7);
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
    }
    .footer-nav-legal a:hover {
    opacity: 1;
    color: #D4A574;
    }
    .footer-nav-divider {
    color: rgba(224, 224, 224, 0.3);
    font-size: 0.78rem;
    user-select: none;
    }
    @media (max-width: 768px) {
    .footer-bottom {
    align-items: center;
    }
    .footer-nav {
    align-items: center;
    }
    .footer-nav-main {
    justify-content: center;
    gap: 20px;
    }
    }
    @media (max-width: 480px) {
    .footer-nav-main {
    gap: 16px;
    }
    .footer-nav-main a {
    font-size: 0.8rem;
    }
    .footer-nav-legal a {
    font-size: 0.73rem;
    }
    .footer-nav-divider {
    font-size: 0.73rem;
    }
    }

/* ========================================================
   «Другие форматы» — кросс-перелинковка между услугами
   ======================================================== */
.related-services {
    background: #faf8f4;
    padding: 64px 24px;
    border-top: 1px solid rgba(202, 165, 127, 0.18);
}
.related-services__inner {
    max-width: 1180px;
    margin: 0 auto;
}
.related-services__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #caa57f;
    margin: 0 0 10px;
    font-weight: 500;
}
.related-services__title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin: 0 0 8px;
    color: #2a2622;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.related-services__intro {
    color: #6d6358;
    margin: 0 0 32px;
    max-width: 640px;
    line-height: 1.55;
}
.related-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.related-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}
.related-card__image {
    aspect-ratio: 4/3;
    width: 100%;
    object-fit: cover;
    display: block;
    background: #efe9e2;
}
.related-card__body {
    padding: 20px 22px 24px;
}
.related-card__kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #caa57f;
    margin: 0 0 6px;
}
.related-card__title {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 8px;
    color: #2a2622;
}
.related-card__desc {
    font-size: 0.93rem;
    color: #6d6358;
    line-height: 1.5;
    margin: 0;
}
.related-card__arrow {
    display: inline-block;
    margin-top: 14px;
    color: #caa57f;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.related-card__arrow::after {
    content: " →";
    transition: transform 0.2s ease;
    display: inline-block;
}
.related-card:hover .related-card__arrow::after {
    transform: translateX(4px);
}
@media (max-width: 640px) {
    .related-services { padding: 48px 18px; }
    .related-services__grid { gap: 16px; }
    .related-card__body { padding: 16px 18px 20px; }
}
