
.offer-wrapper {
    --offer-accent: #c3ca14;
    --offer-accent-soft: rgba(75, 140, 202, 0.08);
    --offer-text: #2b2b2b;
    --offer-muted: #6b6b6b;
    --offer-border: #e4e7e4;
    --offer-bg: #ffffff;
    scroll-behavior: smooth;
}

.offer-page {
    flex: 2;
    min-width: 0;
}

.offer-doc {
    background: var(--offer-bg);
    border: 1px solid var(--offer-border);
    border-radius: 12px;
    padding: 40px 48px;
    color: var(--offer-text);
    line-height: 1.7;
    font-size: 16px;
}

/* ---- Шапка документа ---- */
.offer-header {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--offer-accent);
}

.offer-title {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: var(--offer-text);
}

.offer-subtitle {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--offer-accent);
}

.offer-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    font-size: 14px;
    font-style: italic;
    color: var(--offer-muted);
}

.offer-meta i {
    color: var(--offer-accent);
    margin-right: 6px;
    font-style: normal;
}

.offer-intro {
    margin: 0 0 32px;
    padding: 20px 24px;
    background: var(--offer-accent-soft);
    border-radius: 8px;
}

/* ---- Розділи ---- */
.offer-section {
    margin-bottom: 36px;
    scroll-margin-top: 100px;
}

.offer-section:last-child {
    margin-bottom: 0;
}

.offer-section h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    font-size: 19px;
    line-height: 1.35;
    color: var(--offer-text);
    border-bottom: 1px solid var(--offer-border);
}

.sec-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border-radius: 50%;
    background: var(--offer-accent);
    color: #fff;
    font-size: 15px;
}

.offer-section p {
    margin: 0 0 14px;
    text-align: justify;
    hyphens: auto;
}

.clause-num {
    font-weight: 700;
    color: var(--offer-accent);
    margin-right: 4px;
}

/* Важливі пункти (БАД, повернення) */
.offer-note {
    padding: 14px 18px;
    border-left: 4px solid var(--offer-accent);
    background: var(--offer-accent-soft);
    border-radius: 0 8px 8px 0;
}

/* ---- Списки ---- */
.offer-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0 0 0 8px;
}

.offer-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}

.offer-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--offer-accent);
}

/* ---- Права та обов'язки ---- */
.offer-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.offer-rights-card {
    border: 1px solid var(--offer-border);
    border-radius: 10px;
    padding: 18px 20px 6px;
}

.offer-rights-card .offer-rights-title {
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}

/* ---- Реквізити ---- */
.offer-requisites {
    margin: 0;
    border: 1px solid var(--offer-border);
    border-radius: 10px;
    overflow: hidden;
}

.req-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    border-bottom: 1px solid var(--offer-border);
}

.req-row:last-child {
    border-bottom: none;
}

.req-row:nth-child(odd) {
    background: var(--offer-accent-soft);
}

.req-row dt,
.req-row dd {
    margin: 0;
    padding: 12px 18px;
}

.req-row dt {
    font-weight: 600;
    color: var(--offer-muted);
}

.req-row dd {
    word-break: break-word;
}

.req-row a {
    color: var(--offer-accent);
    text-decoration: none;
}

.req-row a:hover {
    text-decoration: underline;
}

.req-mono {
    font-family: ui-monospace, "Courier New", monospace;
    letter-spacing: 0.03em;
}

/* ---- Сайдбар: зміст ---- */
.offer-sidebar {
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.offer-toc h4 {
    margin-top: 0;
}

.offer-toc ol {
    margin: 0;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.45;
}

.offer-toc li {
    margin-bottom: 8px;
}

.offer-toc li::marker {
    color: var(--offer-accent);
    font-weight: 700;
}

.offer-toc a {
    color: var(--offer-text);
    text-decoration: none;
    transition: color 0.2s;
}

.offer-toc a:hover {
    color: var(--offer-accent);
}

/* ---- Посилання у футері ---- */
.footer-legal {
    margin-top: 6px;
}

.footer-legal a {
    color: inherit;
    opacity: 0.85;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal a:hover {
    opacity: 1;
}

/* ---- Адаптив ---- */
@media (max-width: 992px) {
    .offer-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .offer-doc {
        padding: 24px 18px;
        border-radius: 8px;
        font-size: 15px;
    }

    .offer-title {
        font-size: 22px;
    }

    .offer-subtitle {
        font-size: 16px;
    }

    .offer-meta {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .offer-section h2 {
        font-size: 17px;
    }

    .offer-section p {
        text-align: left;
    }

    .offer-rights-grid {
        grid-template-columns: 1fr;
    }

    .req-row {
        grid-template-columns: 1fr;
    }

    .req-row dt {
        padding-bottom: 0;
    }

    .req-row dd {
        padding-top: 4px;
    }
}

/* ---- Друк ---- */
@media print {
    .offer-sidebar,
    .site-footer,
    .breadcrumbs {
        display: none !important;
    }

    .offer-doc {
        border: none;
        padding: 0;
    }

    .offer-note,
    .offer-intro,
    .req-row:nth-child(odd) {
        background: none;
    }
}