/* =========================================
   PINKERTON NY - FULL STYLESHEET (v1.0)
   Style: 2010s Noir Business
   ========================================= */

/* 1. Общие настройки страницы */
body {
    background-color: #1a1a1a;
    /* Текстура мелкой сетки, популярная в 2010-х */
    background-image: radial-gradient(#333 5%, transparent 5%);
    background-size: 4px 4px;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 30px 0;
    color: #333;
    line-height: 1.5;
}

/* Основной контейнер (Фиксированный 960px) */
#wrapper {
    width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #000;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    overflow: hidden; /* Чтобы градиенты не вылезали за края */
}

/* 2. Шапка (Header) */
header {
    padding: 30px;
    background: linear-gradient(to bottom, #ffffff 0%, #e5e5e5 100%);
    border-bottom: 3px solid #8b0000;
    overflow: hidden;
}

.logo {
    float: left;
}

.logo h1 {
    font-family: "Georgia", "Times New Roman", serif;
    color: #111;
    margin: 0;
    font-size: 42px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo span {
    font-size: 13px;
    color: #8b0000;
    font-weight: bold;
    letter-spacing: 3px;
    display: block;
    margin-top: -5px;
}

.contact-info {
    float: right;
    text-align: right;
    font-weight: bold;
    color: #444;
    font-size: 18px;
    padding-top: 10px;
}

.contact-info span {
    display: block;
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

/* 3. Навигация (Navigation) - "Глянцевый пластик" */
nav {
    background: #222;
    background: linear-gradient(to bottom, #444 0%, #000 100%);
    border-bottom: 1px solid #000;
    height: 45px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    border-right: 1px solid #333;
}

nav a {
    display: block;
    line-height: 45px;
    padding: 0 25px;
    color: #bbb;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s;
}

nav a:hover {
    color: #fff;
    background: #333;
}

nav a.active {
    background: #8b0000;
    background: linear-gradient(to bottom, #8b0000 0%, #5a0000 100%);
    color: #fff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* 4. Секция Hero (Баннер) */
.hero-banner {
    height: 350px;
    background: #000 url('https://i.ibb.co/JjTbGyNM/11111111111.png') center center;
    background-size: cover;
    position: relative;
    border-bottom: 5px solid #8b0000;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 25px;
    color: #fff;
}

.hero-overlay h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 32px;
    font-style: italic;
}

/* Кнопка (CTA) */
.cta-link {
    display: inline-block;
    margin-top: 15px;
    background: linear-gradient(to bottom, #d20000 0%, #8b0000 100%);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #000;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 1px 1px 1px #000;
}

.cta-link:hover {
    background: linear-gradient(to bottom, #ff0000 0%, #d20000 100%);
}

/* 5. Контентная часть */
#content {
    padding: 35px;
    min-height: 400px;
}

.main-cols {
    display: flex;
    gap: 40px;
}

.col-left {
    width: 240px;
}

.col-right {
    width: 610px;
}

h3 {
    border-bottom: 2px solid #8b0000;
    padding-bottom: 8px;
    color: #111;
    font-family: Georgia, serif;
    font-size: 22px;
}

/* Боковое меню */
.nav-sidebar {
    list-style: none;
    padding: 0;
}

.nav-sidebar li {
    margin-bottom: 8px;
}

.nav-sidebar a {
    display: block;
    padding: 10px;
    background: #f4f4f4;
    color: #444;
    text-decoration: none;
    border-left: 4px solid #ccc;
    font-size: 13px;
    font-weight: bold;
}

.nav-sidebar a:hover {
    background: #eee;
    border-left-color: #8b0000;
    color: #000;
}

/* Цитата / Важный блок */
.quote {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-left: 5px solid #8b0000;
    font-style: italic;
    color: #555;
    font-family: Georgia, serif;
    font-size: 18px;
}

/* 6. Стили для Архива Дел */
.case-entry {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    overflow: hidden;
}

.case-img-wrapper {
    float: left;
    width: 120px;
    height: 120px;
    margin-right: 20px;
    border: 2px solid #333;
    background: #000;
    overflow: hidden;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
}

.case-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
    transition: filter 0.4s;
}

.case-img-wrapper:hover img {
    filter: grayscale(0) contrast(1);
}

/* 7. Подвал (Footer) */
footer {
    background: #f4f4f4;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.footer-line {
    width: 100px;
    height: 2px;
    background: #8b0000;
    margin: 0 auto 15px;
}

footer p {
    font-size: 11px;
    color: #777;
    margin: 5px 0;
}

footer a {
    color: #8b0000;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Сброс обтекания */
.clear { clear: both; }

.timeline {
    border-left: 2px solid #8b0000;
    margin-left: 20px;
    padding-left: 20px;
    margin-top: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #8b0000;
    border-radius: 50%;
}

.timeline-date {
    font-weight: bold;
    color: #8b0000;
    font-family: Georgia, serif;
}

.cipher-container {
    background: #fdfaf0;
    padding: 30px;
    border: 1px solid #dcd7c9;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.05);
    position: relative;
}

/* Красный штамп "SECRET" */
.cipher-container::after {
    content: "SECRET";
    position: absolute;
    top: 15px;
    right: 20px;
    border: 2px solid #8b0000;
    color: #8b0000;
    padding: 2px 8px;
    font-weight: bold;
    transform: rotate(10deg);
    opacity: 0.3;
    font-size: 18px;
    pointer-events: none;
}

.cipher-form input, .cipher-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px dashed #999;
    padding: 8px 0;
    margin-bottom: 15px;
    font-family: 'Courier New', Courier, monospace;
}

.cipher-btn {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.cipher-btn:hover { background: #8b0000; }

/* Отступы для блоков услуг */
.service-item {
    margin-top: 20px;
    padding-left: 15px;
    border-left: 2px solid #eee;
}

.service-item h4 {
    margin: 0 0 5px 0;
    color: #8b0000;
    font-size: 16px;
    text-transform: uppercase;
}

.service-item p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* Стилизация таблицы */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
    border: 1px solid #ddd;
}

.price-table th {
    background: #222;
    background: linear-gradient(to bottom, #444 0%, #000 100%);
    color: #fff;
    text-align: left;
    padding: 10px;
    text-transform: uppercase;
}

.price-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.price-table tr:hover {
    background: #fdfaf0;
}

.price-tag {
    font-weight: bold;
    color: #8b0000;
    text-align: right;
    font-family: "Courier New", Courier, monospace;
}

/* =========================================
   7. MOBILE RESPONSIVENESS (v1.1 Update)
   ========================================= */

@media (max-width: 980px) {
    /* Адаптация основного контейнера */
    body {
        padding: 0; /* Убираем лишние отступы фона на мобилках */
    }

    #wrapper {
        width: 100%;
        max-width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    /* Шапка: перенос логотипа и контактов */
    header {
        padding: 20px;
        text-align: center;
    }

    .logo, .contact-info {
        float: none;
        width: 100%;
        text-align: center;
    }

    .contact-info {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #ccc;
    }

    /* Навигация: делаем меню гибким */
    nav {
        height: auto;
    }

    nav ul {
        flex-wrap: wrap; /* Кнопки переносятся на новую строку */
    }

    nav li {
        flex: 1 1 50%; /* Две кнопки в ряд */
        border-bottom: 1px solid #333;
    }

    nav a {
        text-align: center;
        padding: 10px 5px;
        line-height: normal;
        font-size: 11px;
    }

    /* Hero секция */
    .hero-banner {
        height: 250px;
    }

    .hero-overlay h2 {
        font-size: 24px;
    }

    /* Контент: убираем колонки */
    #content {
        padding: 20px;
    }

    .main-cols {
        flex-direction: column; /* Колонки встают друг под друга */
        gap: 20px;
    }

    .col-left, .col-right {
        width: 100%;
    }

    /* Архив дел: фото сверху, текст снизу */
    .case-entry {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .case-img-wrapper {
        float: none;
        margin: 0 0 15px 0;
        width: 180px; /* На мобилке фото можно сделать чуть крупнее */
        height: 120px;
    }

    .case-entry div[style*="float: left"] {
        width: 100% !important; /* Перебиваем инлайновые стили */
        float: none !important;
    }

    /* Таблицы: разрешаем горизонтальный скролл, чтобы не ломать верстку */
    .price-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Таймлайн: немного сдвигаем, чтобы не прилипал к краю */
    .timeline {
        margin-left: 10px;
    }
}

@media (max-width: 980px) {
    /* Принудительно выстраиваем все крупные блоки в колонку */
    #wrapper, header, nav, .hero-banner, #content, footer {
        display: block !important;
        width: 100% !important;
        float: none !important;
        position: relative !important; /* Убирает наложение */
        height: auto !important;
        margin: 0 !important;
        top: auto !important;
    }

    /* Логотип и контакты */
    .logo, .contact-info {
        display: block !important;
        float: none !important;
        width: 100% !important;
        text-align: center !important;
        padding: 15px 0 !important;
    }

    /* Меню: делаем его списком, а не строкой */
    nav {
        background: #222 !important;
    }

    nav ul {
        display: block !important; /* Пункты меню встанут друг под друга */
        padding: 0 !important;
    }

    nav li {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #333 !important;
    }

    nav a {
        padding: 15px !important;
        font-size: 14px !important;
    }

    /* Баннер: теперь он точно будет ПОД меню */
    .hero-banner {
        height: 200px !important;
        background-position: center !important;
        z-index: 1 !important;
    }

    .hero-overlay {
        position: absolute !important;
        bottom: 0 !important;
        padding: 15px !important;
    }

    .hero-overlay h2 {
        font-size: 20px !important;
    }

    .cta-link {
        display: none; /* Прячем кнопку на баннере для мобилок, чтобы не было каши */
    }

    /* Контент */
    .main-cols {
        display: block !important;
    }

    .col-left, .col-right {
        width: 100% !important;
        padding: 10px 0 !important;
    }
}

