/* =========================================================
   site.css — общий каркас дизайн-системы Docreport
   Используется на: index/request, request_result, contacts,
   policies (personal-data), public_offer (oferta)
   ========================================================= */

:root {
    --primary: #1A3A5C;
    --primary-dark: #0F2844;
    --accent: #C9A227;
    --accent-light: #E8D48B;
    --bg: #F5F5F0;
    --card: #FFFFFF;
    --text: #2D3748;
    --text-muted: #606F7B;
    --border: #D1D5DB;
    --success: #047857;
    --dp-font-family:
        -apple-system, blinkmacsystemfont, "Segoe UI",
        roboto, oxygen, ubuntu, cantarell, "Open Sans",
        "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*, *::before, *::after { font-family: var(--dp-font-family); }

body {
    font-family: 'PT Sans', Georgia, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--primary); }

/* ---------- top bar ---------- */
.top-bar { background: var(--primary-dark); color: white; padding: 0.5rem 2rem; font-size: 0.8rem; }
.top-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.8); text-decoration: none; }
.top-bar a:hover { color: white; }

/* ---------- header / logo / nav ---------- */
.header { background: var(--primary); padding: 1.25rem 2rem; border-bottom: 4px solid var(--accent); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 1rem; }
.logo, .logo:hover { text-decoration: none; }
.logo-emblem { width: 56px; height: 56px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.logo-emblem::before { content: ''; position: absolute; inset: 3px; border: 2px solid var(--primary); border-radius: 50%; }
.logo-emblem span { font-family: 'PT Serif', serif; font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-family: 'PT Serif', serif; font-size: 1.5rem; font-weight: 700; color: white; letter-spacing: 0.02em; }
.logo-subtitle { font-size: 0.75rem; color: var(--accent-light); text-transform: uppercase; letter-spacing: 0.15em; }

.nav { display: flex; gap: 0.25rem; }
.nav a { color: rgba(255,255,255,0.85); text-decoration: none; padding: 0.75rem 1.25rem; font-size: 0.9rem; border-radius: 4px; transition: all 0.2s; }
.nav a:hover { background: rgba(255,255,255,0.1); color: white; }
.nav a.active { background: rgba(255,255,255,0.15); color: white; }

/* ---------- main / breadcrumbs / page titles ---------- */
.main { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; }

.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); text-decoration: none; font-size: 0.9rem; margin-bottom: 2rem; }
.back-link:hover { text-decoration: underline; }
.back-link svg { width: 16px; height: 16px; }

.page-title { font-family: 'PT Serif', serif; font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; border-left: 4px solid var(--accent); padding-left: 1rem; }
.page-subtitle { color: var(--text-muted); margin-bottom: 2rem; padding-left: 1.25rem; }

/* ---------- footer ---------- */
.footer { background: var(--primary-dark); color: white; margin-top: 4rem; padding: 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ---------- shared responsive rules ---------- */
@media (max-width: 768px) {
    .nav { display: none; }
    .top-bar { display: none; }
    .header-inner { justify-content: center; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}