/* documents.php — макет по фото-референсу (doc-photo) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body.doc-photo-body {
    background: #f5f5fa;
}

.doc-photo {
    --doc-bg: #f5f5fa;
    --doc-surface: #ffffff;
    --doc-primary: #6a0dad;
    --doc-primary-dark: #5a0b94;
    --doc-primary-soft: #f3ebff;
    --doc-hero-from: #6a0dad;
    --doc-hero-to: #9b59d0;
    --doc-text: #1e1b2e;
    --doc-muted: #7a7f8f;
    --doc-border: #e8e8f0;
    --doc-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --doc-radius: 20px;
    --doc-success: #22c55e;
    --doc-success-soft: #ecfdf3;
    --doc-warn: #f59e0b;
    --doc-warn-soft: #fffbeb;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--doc-text);
    background: var(--doc-bg);
    padding: 1.25rem 0 3rem;
}

.doc-photo *,
.doc-photo *::before,
.doc-photo *::after {
    box-sizing: border-box;
}

.doc-photo__container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
}

.doc-photo__crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1.15rem;
    background: var(--doc-surface);
    border-radius: var(--doc-radius);
    box-shadow: var(--doc-shadow);
    font-size: 0.9rem;
}

.doc-photo__crumbs a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--doc-primary);
    text-decoration: none;
    font-weight: 600;
}

.doc-photo__crumbs a:hover {
    color: var(--doc-primary-dark);
}

.doc-photo__crumbs span {
    color: var(--doc-muted);
    font-weight: 600;
}

.doc-photo__grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.doc-photo__side,
.doc-photo__main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.doc-photo__card {
    background: var(--doc-surface);
    border-radius: var(--doc-radius);
    box-shadow: var(--doc-shadow);
    overflow: hidden;
}

.doc-photo__side {
    position: sticky;
    top: 1rem;
}

.doc-photo__side-pad {
    padding: 1.35rem 1.15rem 1.15rem;
    text-align: center;
}

.doc-photo__side-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 0.85rem;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--doc-primary), #8e44c9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 22px rgba(106, 13, 173, 0.28);
}

.doc-photo__side-name {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--doc-text);
    line-height: 1.3;
}

.doc-photo__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--doc-success-soft);
    color: #15803d;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.doc-photo__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.doc-photo__nav-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    color: var(--doc-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.doc-photo__nav-link i {
    width: 1.1rem;
    text-align: center;
    color: var(--doc-primary);
    opacity: 0.75;
}

.doc-photo__nav-link:hover,
.doc-photo__nav-link.is-active {
    background: var(--doc-primary-soft);
    color: var(--doc-primary);
}

.doc-photo__nav-link.is-active i {
    opacity: 1;
}

.doc-photo__hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    border: none;
    background-color: var(--doc-hero-from);
    background-image:
        linear-gradient(105deg, rgba(74, 8, 120, 0.94) 0%, rgba(106, 13, 173, 0.82) 38%, rgba(120, 40, 180, 0.55) 68%, rgba(155, 89, 208, 0.28) 100%),
        url('/images/hero-documents-bg.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.doc-photo__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 90% at 8% 50%, rgba(255, 255, 255, 0.08), transparent 58%),
        radial-gradient(ellipse 40% 60% at 92% 30%, rgba(255, 255, 255, 0.12), transparent 55%);
    pointer-events: none;
}

.doc-photo__hero-inner {
    position: relative;
    z-index: 1;
    padding: clamp(1.45rem, 3vw, 2rem) clamp(1.35rem, 3vw, 1.75rem);
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doc-photo__hero-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.doc-photo__hero-sub {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.92;
    font-weight: 500;
}

.doc-photo__section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.doc-photo__section--last {
    padding-bottom: 0.5rem;
}

.doc-photo__section-title {
    margin: 0.15rem 0 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--doc-text);
}

.doc-photo__label {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--doc-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.doc-photo__full-card-pad {
    padding: 1.15rem 1.25rem 1.2rem;
}

.doc-photo__full-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--doc-text);
}

.doc-photo__stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.doc-photo__stat {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 0.9rem;
    background: var(--doc-surface);
    border-radius: 16px;
    box-shadow: var(--doc-shadow);
    min-height: 100%;
}

.doc-photo__stat-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--doc-primary-soft);
    color: var(--doc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.doc-photo__stat-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.doc-photo__stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--doc-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.doc-photo__stat-value {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--doc-text);
    word-break: break-word;
}

.doc-photo__stat-value--text {
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.doc-photo__duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.doc-photo__okved-pad,
.doc-photo__address-pad {
    padding: 1.15rem 1.2rem 1.1rem;
    height: 100%;
}

.doc-photo__okved-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}

.doc-photo__okved-code {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    background: var(--doc-primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
}

.doc-photo__okved-text {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.doc-photo__okved-note {
    margin: 0;
    font-size: 0.8rem;
    color: var(--doc-muted);
}

.doc-photo__okved-note i {
    margin-right: 0.25rem;
    opacity: 0.75;
}

.doc-photo__address-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.doc-photo__address-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--doc-primary-soft);
    color: var(--doc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.doc-photo__address-text {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

.doc-photo__person-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.doc-photo__person-pad {
    padding: 1.15rem 1.2rem 1.1rem;
}

.doc-photo__person--accent {
    border: 1px solid rgba(106, 13, 173, 0.12);
}

.doc-photo__person-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.doc-photo__person-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--doc-primary), #8e44c9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.doc-photo__person-avatar--muted {
    background: linear-gradient(145deg, #64748b, #475569);
}

.doc-photo__person-role {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--doc-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.doc-photo__person-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--doc-text);
}

.doc-photo__person-line {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: var(--doc-muted);
    line-height: 1.4;
}

.doc-photo__person-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--doc-border);
}

.doc-photo__meta-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--doc-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.doc-photo__meta-value {
    font-size: 0.82rem;
    font-weight: 700;
    font-family: ui-monospace, Consolas, monospace;
}

.doc-photo__person-since {
    margin: 0;
    font-size: 0.85rem;
    color: var(--doc-muted);
}

.doc-photo__person-since i {
    color: var(--doc-primary);
    margin-right: 0.35rem;
}

.doc-photo__check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.doc-photo__check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem 0.9rem;
    background: var(--doc-surface);
    border-radius: 16px;
    box-shadow: var(--doc-shadow);
    min-height: 100%;
}

.doc-photo__check-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--doc-success);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    margin-top: 0.1rem;
}

.doc-photo__check-icon--warn {
    background: var(--doc-warn);
}

.doc-photo__check--warn {
    background: var(--doc-warn-soft);
}

.doc-photo__check-title {
    margin: 0 0 0.2rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--doc-text);
}

.doc-photo__check-text {
    margin: 0;
    font-size: 0.78rem;
    color: #15803d;
    line-height: 1.4;
    font-weight: 500;
}

.doc-photo__check--warn .doc-photo__check-text {
    color: #92400e;
}

.doc-photo__footer-note {
    margin: 0.5rem 0 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--doc-muted);
    line-height: 1.5;
}

@media (max-width: 991px) {
    .doc-photo__grid {
        grid-template-columns: 1fr;
    }

    .doc-photo__side {
        position: static;
    }

    .doc-photo__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .doc-photo__stat-grid,
    .doc-photo__check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .doc-photo__stat-grid,
    .doc-photo__duo,
    .doc-photo__person-grid,
    .doc-photo__check-grid {
        grid-template-columns: 1fr;
    }

    .doc-photo__nav {
        flex-direction: column;
    }
}
