/* ==========================================================================
   Украинская Утилизационная Компания — CSS без правой колонки
   ========================================================================== */

/* Сброс базовых отступов */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    background-color: #f1f5f9;
    color: #334155;
    line-height: 1.6;
    font-size: 15px;
}

/* --- Главный контейнер страницы --- */
#page {
    max-width: 1024px;
    width: 100%;
    margin: 10px auto 0 auto;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* --- Шапка сайта (Header) с фоном top.jpg --- */
#header {
    width: 1024px;
    height: 140px;
    margin: 0;
    background: url(/images/top.jpg) left top no-repeat;
    background-size: cover;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

/* Блок логотипов слева */
#logo1, #logo2 {
    float: none;
    background: rgba(204, 204, 204, 0.85);
    padding: 6px 12px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

#logo1 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
}

#logo2 {
    clear: none;
    font-size: 13px;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-top: 6px;
    display: inline-block;
}

/* Контакты справа (DIV c id="tel") */
#tel {
    float: none;
    clear: none;
    background: rgba(204, 204, 204, 0.85);
    padding: 6px 12px;
    border-radius: 4px;
    text-align: right;
    font-weight: 700;
    color: #0f172a;
    font-size: 18px;
    backdrop-filter: blur(2px);
}

/* Второй номер/email в шапке */
#tel + #tel {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
    margin-top: 4px;
}

/* --- Главный блок контента с фоном back1.jpg --- */
#content_w {
    width: 1024px;
    float: none;
    margin: 0;
    padding: 25px 20px;
    display: flex;
    gap: 25px;
    background: url(/images/back1.jpg) no-repeat top center;
    background-attachment: fixed;
}

/* --- Левое меню (Sidebar) --- */
#menu {
    width: 210px;
    float: none;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    flex-shrink: 0;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

#menu p {
    margin: 6px 0 10px 6px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
}

.point {
    margin: 0 0 4px 0;
    padding: 0;
    float: none;
    clear: both;
    display: block;
}

.point a {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-weight: 700;
    font-size: 14px;
    color: #6666FF;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.point a:hover {
    color: #0000FF;
    background-color: #e0e7ff;
    padding-left: 14px;
}

.point img {
    vertical-align: middle;
    margin-right: 8px;
}

/* --- Скрытие удаленного блока #market --- */
#market {
    display: none !important;
}

/* --- Основная содержательная часть (расширяется на всю ширину) --- */
#content {
    width: auto;
    flex: 1;
    float: none;
    min-width: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

#title1 {
    font-weight: 700;
    font-size: 26px;
    text-align: center;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 20px;
    color: #0f172a;
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 12px;
}

#title2 {
    font-weight: 700;
    font-size: 18px;
    text-align: left;
    margin-left: 0;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #059669;
    border-left: 4px solid #10b981;
    padding-left: 10px;
}

#content p {
    text-align: left;
    color: #334155;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.65;
}

/* --- Подвал (Footer) --- */
#footer {
    margin: 0;
    clear: both;
    padding: 18px;
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid #1e293b;
}

#footer a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

#footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Мобильная адаптивность
   ========================================================================== */
@media (max-width: 1024px) {
    #page, #header, #content_w {
        width: 100%;
    }

    #header {
        height: auto;
        min-height: 140px;
    }

    #content_w {
        flex-direction: column;
        background-attachment: scroll;
        padding: 15px;
    }

    #menu {
        width: 100%;
    }
}