:root {
    --bg: #1A1A1A;          
    --paper: #F4F1EA;       
    --ink: #111111;         
    --red: #D32F2F;         
    --border: #333333;
    
    --font-typewriter: 'Special Elite', monospace;
    --font-body: 'Inter', sans-serif;
    --font-hand: 'Caveat', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; cursor: none; }
body {
    background-color: var(--bg);
    color: var(--paper);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; cursor: none; }
button { border: none; background: none; cursor: none; font-family: inherit; }
.container { width: min(1300px, 92%); margin: 0 auto; }

/* Шум на фоне */
.noise-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 999;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E');
}

/* КУРСОР-ЛУПА */
.cursor {
    width: 30px; height: 30px; border: 2px solid var(--red); border-radius: 50%;
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
}
.cursor::after {
    content: ''; position: absolute; bottom: -10px; right: -10px;
    width: 15px; height: 4px; background: var(--red); transform: rotate(45deg);
}
.cursor-dot {
    width: 4px; height: 4px; background: var(--red); border-radius: 50%;
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
}
.cursor.hover { width: 50px; height: 50px; background: rgba(211, 47, 47, 0.1); }
@media (max-width: 1024px) { html, a, button { cursor: auto; } .cursor, .cursor-dot { display: none; } }

/* ШАПКА */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.5rem 0; border-bottom: 2px dashed var(--border);
    background: rgba(26, 26, 26, 0.9); backdrop-filter: blur(10px);
}
.header__inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-typewriter); font-size: 1.5rem; letter-spacing: 2px; }
.logo-icon { color: var(--red); }
.header__actions { display: flex; align-items: center; gap: 2rem; }
.header__phone { font-family: var(--font-typewriter); font-size: 1.2rem; }
.header__phone:hover { color: var(--red); }

/* Кнопки */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 1rem 2rem; font-family: var(--font-typewriter); font-size: 1.1rem;
    text-transform: uppercase; transition: all 0.2s;
}
.btn--stamp {
    background: var(--red); color: var(--paper); border: 2px solid var(--red);
    transform: rotate(-2deg);
}
.btn--stamp:hover { background: transparent; color: var(--red); }

.btn--stamp-outline { border: 2px solid var(--paper); color: var(--paper); }
.btn--stamp-outline:hover { background: var(--paper); color: var(--ink); }

/* НОВАЯ КНОПКА ДЛЯ СВЕТЛОГО ФОНА */
.btn--stamp-dark {
    background: transparent;
    border: 2px solid var(--ink);
    color: var(--ink);
    transform: rotate(1deg);
}
.btn--stamp-dark:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn--full { width: 100%; }
.btn--sm { padding: 0.6rem 1.5rem; font-size: 0.9rem; }

/* ГЕРОЙ */
.hero { padding: 10rem 0 6rem; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.hero__stamp {
    display: inline-block; padding: 0.5rem 1rem; border: 3px solid var(--red); color: var(--red);
    font-family: var(--font-typewriter); font-size: 1.2rem; transform: rotate(-5deg);
    margin-bottom: 2rem; letter-spacing: 3px;
}
.hero__title { 
    font-family: var(--font-typewriter); 
    font-size: clamp(3.5rem, 8vw, 7rem); 
    line-height: 1.1; 
    margin-bottom: 2rem; 
}
.text-red { color: var(--red); }

/* Эффект засекреченного текста */
.redacted {
    background: var(--red);
    color: var(--paper);
    padding: 0 15px;
    border-radius: 4px;
    position: relative;
    cursor: crosshair;
    transition: all 0.3s ease;
    display: inline-block;
}
.redacted:hover {
    background: transparent;
    color: var(--red);
    text-shadow: 0 0 15px rgba(211, 47, 47, 0.6);
    transform: scale(1.02);
}

.hero__desc { font-size: 1.2rem; color: #A0A0A0; max-width: 500px; margin-bottom: 3rem; }

/* Визуал (Фото на скотче) */
.hero__visual { position: relative; display: flex; justify-content: center; perspective: 1000px; }
.photo-paper {
    background: var(--paper); padding: 1rem 1rem 4rem 1rem;
    transform: rotate(3deg); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative; max-width: 400px; transition: transform 0.3s;
}
.photo-paper:hover { transform: rotate(1deg) scale(1.02); }
.photo-img { width: 100%; height: auto; display: block; filter: grayscale(100%) contrast(1.2); }
.photo-caption { font-family: var(--font-typewriter); color: var(--ink); margin-top: 1rem; font-size: 0.9rem; text-align: center; }
.tape {
    position: absolute; width: 100px; height: 30px;
    background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.tape--top { top: -15px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.tape--bottom { bottom: 10px; right: -20px; transform: rotate(45deg); }

/* СТИКЕР С ПОМЕТКАМИ */
.sticky-note {
    position: absolute;
    bottom: -20px;
    left: -30px; 
    background: #FFFACD; 
    width: 220px;
    padding: 2rem 1.5rem;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    transform: rotate(-5deg); 
    z-index: 10;
    transition: transform 0.3s ease;
}
.sticky-note:hover { transform: rotate(0deg) scale(1.05); }
.sticky-note__pin {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    width: 12px; height: 12px; background: var(--red); border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}
.sticky-note p {
    font-family: var(--font-hand);
    font-size: 1.4rem; line-height: 1.2; color: var(--ink); margin-bottom: 1rem;
}
.sticky-note__sign {
    display: block; font-family: var(--font-hand); font-size: 1.2rem; color: #555; text-align: right;
}

/* СЕКЦИИ */
.section { padding: 8rem 0; }
.section--dark { background: #141414; border-top: 2px dashed var(--border); border-bottom: 2px dashed var(--border); }
.section__title { font-family: var(--font-typewriter); font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 4rem; }

/* УЛИКИ */
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.evidence-card {
    background: var(--paper); color: var(--ink); padding: 3rem 2rem;
    position: relative; box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    transform: rotate(-1deg); transition: transform 0.3s;
}
.evidence-card:nth-child(2) { transform: rotate(2deg); margin-top: 2rem; }
.evidence-card:nth-child(3) { transform: rotate(-3deg); }
.evidence-card:hover { transform: rotate(0deg) scale(1.02); z-index: 10; }
.pin {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 15px; height: 15px; background: var(--red); border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.evidence-card__num { font-family: var(--font-typewriter); color: var(--red); font-weight: bold; margin-bottom: 1rem; }
.evidence-card h3 { font-family: var(--font-typewriter); font-size: 1.5rem; margin-bottom: 1rem; }
.evidence-card p { font-size: 1rem; color: #444; }

/* ПРОЦЕСС (Доска с красной нитью) */
.investigation-board {
    position: relative; 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    background: #1E1E1E;
    border: 1px solid var(--border);
    padding: 4rem;
    min-height: 600px;
    align-items: center;
    justify-items: center;
}

.red-string { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    z-index: 1; 
    overflow: visible; /* ЧТОБЫ НИТЬ НЕ ОБРЕЗАЛАСЬ */
}

.board-item {
    position: relative; 
    z-index: 2;
    background: var(--paper); 
    color: var(--ink); 
    padding: 2rem;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.board-item:nth-child(2) { transform: rotate(2deg); }
.board-item:nth-child(3) { transform: rotate(-1deg); }
.board-item:nth-child(4) { transform: rotate(3deg); }

.board-item:hover { 
    transform: rotate(0deg) scale(1.05); 
    z-index: 10; 
}

.board-num { font-family: var(--font-typewriter); font-size: 2rem; color: var(--red); font-weight: bold; margin-bottom: 0.5rem; }
.board-item h3 { font-family: var(--font-typewriter); font-size: 1.2rem; margin-bottom: 0.5rem; }
.board-item p { font-size: 0.9rem; color: #444; }

/* КОНТАКТЫ */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact__title { font-family: var(--font-typewriter); font-size: clamp(3rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.contact__desc { color: #A0A0A0; font-size: 1.1rem; margin-bottom: 3rem; max-width: 400px; }
.contact__phone { font-family: var(--font-typewriter); font-size: 3rem; color: var(--red); }

.contact-dossier {
    background: var(--paper); color: var(--ink); padding: 3rem;
    box-shadow: 10px 10px 0 var(--red); transform: rotate(1deg);
    display: flex; flex-direction: column; gap: 1rem;
}
.contact-dossier__title { font-family: var(--font-typewriter); font-size: 1.2rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; }

/* ПОДВАЛ И КУКИ */
.footer { border-top: 2px dashed var(--border); padding: 2rem 0; }
.footer__inner { display: flex; justify-content: space-between; font-family: var(--font-typewriter); font-size: 1rem; color: #888; }
.footer__link:hover { color: var(--red); }

.cookie-banner {
    position: fixed; bottom: -150px; left: 50%; transform: translateX(-50%);
    width: min(800px, 95%); background: var(--paper); color: var(--ink);
    padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem;
    z-index: 9999; transition: bottom 0.5s; box-shadow: 0 0 20px rgba(0,0,0,0.8);
}
.cookie-banner.show { bottom: 20px; }
.cookie-banner p { font-size: 1rem; }
.cookie-banner a { color: var(--red); text-decoration: underline; font-weight: bold; }

/* АДАПТИВ */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero__desc { margin-inline: auto; }
    
    .hero__visual { margin-top: 3rem; }
    .sticky-note { left: auto; right: -10px; top: 10px; bottom: auto; transform: rotate(5deg); }
    
    .evidence-grid { grid-template-columns: 1fr; gap: 1rem; }
    .evidence-card:nth-child(n) { transform: none; margin-top: 0; }
    
    .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .header__phone { display: none; }
    .hero__title { font-size: 3rem; }
    .contact__phone { font-size: 2rem; }
    .footer__inner { flex-direction: column; gap: 1rem; text-align: center; }
    
    /* ФИКС БАННЕРА НА МОБИЛКАХ (увеличиваем скрытие до -250px) */
    .cookie-banner { 
        flex-direction: column; 
        text-align: center; 
        bottom: -250px; /* ИСПРАВЛЕНО */
    }
    .cookie-banner.show { 
        bottom: 20px; 
    }
    
    .sticky-note { width: 160px; padding: 1.2rem; font-size: 1.1rem; }
    
    .investigation-board {
        grid-template-columns: 1fr; 
        padding: 2rem;
        gap: 2rem;
    }
    .red-string { display: none; }
    .board-item { transform: none; }
}