/* ===== OFERTA.CSS — Стили для страницы публичной оферты ===== */

/* ---- Основной контент ---- */
.oferta-content {
    max-width: 900px;
    margin: 30px auto 50px;
    padding: 0 10px;
    flex: 1;
}

/* ---- Заголовок страницы ---- */
.oferta-header {
    margin-bottom: 40px;
    text-align: center;
}

.oferta-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #dce9f2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.oferta-header h1 i {
    color: #f5a623;
    font-size: 32px;
}

.oferta-subtitle {
    color: #5f8095;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.oferta-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4f8aaa, #f5a623);
    border-radius: 2px;
    margin: 0 auto;
}

/* ---- Секции ---- */
.oferta-section {
    background: #0f171e;
    border: 1px solid #1a2a32;
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    transition: 0.2s ease;
}

.oferta-section:hover {
    border-color: #2f4a5a;
}

.oferta-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #dce9f2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a2a32;
}

.oferta-section h2 i {
    color: #4f8aaa;
    font-size: 18px;
    width: 28px;
}

/* ---- Текст ---- */
.oferta-text {
    color: #b0ccdd;
    font-size: 15px;
    line-height: 1.7;
}

.oferta-text p {
    margin-bottom: 14px;
}

.oferta-text p:last-child {
    margin-bottom: 0;
}

.oferta-text strong {
    color: #dce9f2;
    font-weight: 600;
}

.oferta-text a {
    color: #4f8aaa;
    transition: 0.2s ease;
    border-bottom: 1px dotted #4f8aaa;
}

.oferta-text a:hover {
    color: #7ab8d4;
    border-bottom-color: #7ab8d4;
}

/* ---- Списки ---- */
.oferta-text ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px 0;
}

.oferta-text ul li {
    padding: 6px 0 6px 28px;
    position: relative;
    color: #b0ccdd;
    line-height: 1.6;
}

.oferta-text ul li::before {
    content: "▸";
    position: absolute;
    left: 4px;
    color: #4f8aaa;
    font-weight: 700;
}

/* ---- Нотис о самозанятом ---- */
.oferta-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #0a0f13;
    border: 1px solid #1a2a32;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 16px 0 6px 0;
}

.oferta-note i {
    color: #4f8aaa;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.oferta-note p {
    margin: 0;
    font-size: 14px;
    color: #8aa6b8;
}

.oferta-note p strong {
    color: #dce9f2;
}

.oferta-note-warning {
    border-color: #b87a1a;
    background: rgba(245, 166, 35, 0.05);
}

.oferta-note-warning i {
    color: #f5a623;
}

/* ---- Карточка реквизитов ---- */
.oferta-requisites {
    background: #0a0f13;
    border: 1px solid #1a2a32;
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.oferta-requisite {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b0ccdd;
    font-size: 14px;
    padding: 6px 0;
}

.oferta-requisite i {
    color: #4f8aaa;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.oferta-requisite a {
    color: #b0ccdd;
    transition: 0.2s ease;
    border-bottom: none;
}

.oferta-requisite a:hover {
    color: #4f8aaa;
}

/* ---- Кнопки внизу ---- */
.oferta-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #1a2a32;
}

.oferta-updated {
    color: #5f8095;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oferta-updated i {
    color: #4f8aaa;
}

.oferta-print {
    display: flex;
    gap: 12px;
}

.btn-print,
.btn-back {
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #2f404a;
    background: transparent;
    color: #b0ccdd;
}

.btn-print:hover,
.btn-back:hover {
    background: #162026;
    border-color: #4f8aaa;
    color: #dce9f2;
}

.btn-print i,
.btn-back i {
    font-size: 14px;
}

/* ---- Адаптивность ---- */
@media (max-width: 768px) {
    .oferta-content {
        margin: 20px auto 30px;
        padding: 0 6px;
    }

    .oferta-section {
        padding: 20px 18px;
    }

    .oferta-section h2 {
        font-size: 18px;
    }

    .oferta-text {
        font-size: 14px;
    }

    .oferta-header h1 {
        font-size: 26px;
    }

    .oferta-header h1 i {
        font-size: 24px;
    }

    .oferta-requisites {
        grid-template-columns: 1fr;
        padding: 16px 18px;
    }

    .oferta-footer-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .oferta-print {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .oferta-section {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .oferta-section h2 {
        font-size: 16px;
        gap: 8px;
    }

    .oferta-section h2 i {
        font-size: 15px;
        width: 22px;
    }

    .oferta-text ul li {
        padding: 4px 0 4px 22px;
        font-size: 13px;
    }

    .oferta-requisite {
        font-size: 13px;
    }

    .btn-print,
    .btn-back {
        padding: 6px 16px;
        font-size: 13px;
    }

    .oferta-header h1 {
        font-size: 22px;
        flex-wrap: wrap;
    }
}

/* ---- Для печати ---- */
@media print {
    .navbar,
    .nav-right,
    .footer,
    .btn-auth,
    .btn-pro,
    .btn-avatar,
    .oferta-print {
        display: none !important;
    }

    .oferta-content {
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }

    .oferta-section {
        background: #fff !important;
        border: 1px solid #ddd !important;
        color: #000 !important;
        page-break-inside: avoid;
    }

    .oferta-section h2 {
        color: #000 !important;
        border-bottom-color: #ddd !important;
    }

    .oferta-text {
        color: #333 !important;
    }

    .oferta-text strong {
        color: #000 !important;
    }

    .oferta-text ul li {
        color: #333 !important;
    }

    .oferta-text ul li::before {
        color: #666 !important;
    }

    .oferta-note {
        background: #f5f5f5 !important;
        border-color: #ddd !important;
    }

    .oferta-note p {
        color: #333 !important;
    }

    .oferta-note p strong {
        color: #000 !important;
    }

    .oferta-requisites {
        background: #f5f5f5 !important;
        border-color: #ddd !important;
    }

    .oferta-requisite {
        color: #333 !important;
    }

    .oferta-header h1 {
        color: #000 !important;
    }

    .oferta-subtitle {
        color: #666 !important;
    }

    .oferta-divider {
        background: #999 !important;
    }

    .oferta-updated {
        color: #666 !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

    .app {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .oferta-footer-actions {
        border-top-color: #ddd !important;
    }
}
