/* FILE: assets/css/offer.css */
/* ========================================
   OFFER PAGE — Договір публічної оферти
   ArtFocus Theme · Premium Dark
   ======================================== */

/* ════════════════════════════════════════
   CUSTOM PROPS (локальні, якщо глобалів нема)
   ════════════════════════════════════════ */
.offer-page {
    --offer-accent:      #c4a8a5;
    --offer-accent-dark: #8b665e;
    --offer-accent-dim:  rgba(196, 168, 165, 0.12);
    --offer-glow:        rgba(196, 168, 165, 0.18);
    --offer-radius:      20px;
    --offer-num-size:    clamp(48px, 6vw, 72px);
}

/* ════════════════════════════════════════
   PAGE WRAPPER
   ════════════════════════════════════════ */
.offer-page {
    position: relative;
    overflow: hidden;
    padding: 0 0 80px;
    background: var(--color-bg, #0d0d0d);
    min-height: 100vh;
}

/* ════════════════════════════════════════
   ДЕКОРАТИВНІ ОРБИ
   ════════════════════════════════════════ */
.offer-page__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    z-index: 0;
}

.offer-page__orb--1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(196, 168, 165, 0.10) 0%, transparent 70%);
}

.offer-page__orb--2 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    left: -150px;
    background: radial-gradient(circle, rgba(139, 102, 94, 0.08) 0%, transparent 70%);
}

/* ════════════════════════════════════════
   GRID TEXTURE
   ════════════════════════════════════════ */
.offer-page__grid-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 20%, rgba(0,0,0,0.4) 80%, transparent 100%);
}

/* ════════════════════════════════════════
   CONTAINER
   ════════════════════════════════════════ */
.offer-container {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.offer-hero {
    padding: 80px 0 64px;
    text-align: center;
}

.offer-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1px solid rgba(196, 168, 165, 0.25);
    border-radius: 100px;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--offer-accent);
    margin-bottom: 28px;
    background: rgba(196, 168, 165, 0.06);
}

.offer-hero__label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--offer-accent);
    animation: offer-pulse 2s ease-in-out infinite;
}

@keyframes offer-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.offer-hero__title {
    font-family: 'Unbounded', var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    color: var(--color-text, #f5f5f0);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.offer-hero__title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--offer-accent) 0%, var(--offer-accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offer-hero__meta {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    color: var(--color-text-muted, #a0a09a);
    letter-spacing: 0.03em;
}

.offer-hero__meta strong {
    color: var(--color-text, #f5f5f0);
}

/* ════════════════════════════════════════
   LAYOUT: STICKY NAV + CONTENT
   ════════════════════════════════════════ */
.offer-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* ════════════════════════════════════════
   STICKY SIDEBAR NAV
   ════════════════════════════════════════ */
.offer-nav {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
}

.offer-nav::-webkit-scrollbar {
    display: none;
}

.offer-nav__inner {
    background: var(--color-bg-card, #1a1a1a);
    border: 1px solid var(--color-border, rgba(255,255,255,0.08));
    border-radius: var(--offer-radius);
    padding: 28px 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.offer-nav__heading {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted, #a0a09a);
    margin-bottom: 16px;
    padding-left: 4px;
}

.offer-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.offer-nav__link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.offer-nav__link:hover,
.offer-nav__link.is-active {
    background: var(--offer-accent-dim);
}

.offer-nav__num {
    font-family: 'Unbounded', monospace;
    font-size: 12px;
    font-weight: 900;
    color: var(--offer-accent);
    flex-shrink: 0;
    margin-top: 2px;
    transition: color 0.25s ease;
}

.offer-nav__text {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted, #a0a09a);
    line-height: 1.4;
    transition: color 0.25s ease;
}

.offer-nav__link.is-active .offer-nav__text,
.offer-nav__link:hover .offer-nav__text {
    color: var(--color-text, #f5f5f0);
}

/* ════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════ */
.offer-section {
    margin-bottom: 8px;
    border-radius: var(--offer-radius);
    border: 1px solid var(--color-border, rgba(255,255,255,0.08));
    background: var(--color-bg-card, #1a1a1a);
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.offer-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.offer-section:hover {
    border-color: rgba(196, 168, 165, 0.2);
    box-shadow: 0 0 40px rgba(196, 168, 165, 0.06);
}

/* Section head */
.offer-section__head {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 40px 24px;
    border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.08));
}

.offer-section__num {
    font-family: 'Unbounded', monospace;
    font-size: var(--offer-num-size);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, rgba(196,168,165,0.15) 0%, rgba(139,102,94,0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    letter-spacing: -0.03em;
    user-select: none;
}

.offer-section__title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    color: var(--color-text, #f5f5f0);
    line-height: 1.3;
    margin: 0;
}

/* Section body */
.offer-section__body {
    padding: 28px 40px 36px;
}

.offer-section__body p {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-muted, #a0a09a);
    line-height: 1.85;
    margin-bottom: 14px;
}

.offer-section__body p:last-child {
    margin-bottom: 0;
}

.offer-section__body p strong {
    color: var(--color-text, #f5f5f0);
    font-weight: 600;
}

.offer-section__body p em {
    font-style: italic;
    color: var(--offer-accent);
}

.offer-section__sub {
    font-family: var(--font-body, 'Montserrat', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--offer-accent) !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

.offer-section__body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offer-section__body ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    color: var(--color-text-muted, #a0a09a);
    line-height: 1.7;
    padding: 10px 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.offer-section__body ul li:hover {
    background: var(--offer-accent-dim);
    border-color: rgba(196, 168, 165, 0.15);
}

.offer-section__body ul li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--offer-accent);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ════════════════════════════════════════
   COMPANY DETAILS
   ════════════════════════════════════════ */
.offer-company {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(196, 168, 165, 0.15);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(196,168,165,0.05) 0%, rgba(0,0,0,0) 100%);
}

.offer-company__row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    align-items: start;
    transition: background 0.2s ease;
}

.offer-company__row:last-child {
    border-bottom: none;
}

.offer-company__row:hover {
    background: var(--offer-accent-dim);
}

.offer-company__label {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted, #a0a09a);
    padding-top: 2px;
}

.offer-company__value {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #f5f5f0);
    line-height: 1.5;
}

.offer-company__value a {
    color: var(--offer-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.offer-company__value a:hover {
    color: var(--color-text, #f5f5f0);
    text-decoration: underline;
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.offer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0 0;
    margin-top: 16px;
    border-top: 1px solid var(--color-border, rgba(255,255,255,0.08));
    gap: 20px;
    flex-wrap: wrap;
}

.offer-footer__copy {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 13px;
    color: var(--color-text-muted, #a0a09a);
    opacity: 0.6;
}

.offer-footer__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid rgba(196, 168, 165, 0.25);
    border-radius: 100px;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--offer-accent);
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.offer-footer__back:hover {
    background: linear-gradient(135deg, var(--offer-accent), var(--offer-accent-dark));
    border-color: transparent;
    color: #0d0d0d;
    transform: translateY(-2px);
}

.offer-footer__back svg {
    transition: transform 0.3s ease;
}

.offer-footer__back:hover svg {
    transform: translateX(-4px);
}

/* ════════════════════════════════════════
   RESPONSIVE — 1200px
   ════════════════════════════════════════ */
@media (max-width: 1200px) {
    .offer-layout {
        grid-template-columns: 240px 1fr;
        gap: 32px;
    }
}

/* ════════════════════════════════════════
   RESPONSIVE — 1024px
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
    .offer-layout {
        grid-template-columns: 1fr;
    }

    .offer-nav {
        position: static;
        max-height: none;
    }

    .offer-nav__inner {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0 16px;
    }

    .offer-nav__heading {
        grid-column: 1 / -1;
    }

    .offer-nav__list {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .offer-nav__link {
        flex-direction: column;
        gap: 4px;
        padding: 8px 14px;
    }

    .offer-nav__text {
        display: none;
    }

    .offer-nav__num {
        font-size: 12px;
    }
}

/* ════════════════════════════════════════
   RESPONSIVE — 768px
   ════════════════════════════════════════ */
@media (max-width: 768px) {
    .offer-container {
        padding: 0 20px;
    }

    .offer-hero {
        padding: 60px 0 48px;
    }

    .offer-section__head {
        padding: 24px 24px 20px;
        gap: 16px;
    }

    .offer-section__num {
        --offer-num-size: 40px;
    }

    .offer-section__body {
        padding: 20px 24px 28px;
    }

    .offer-company__row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 14px 20px;
    }

    .offer-company__label {
        font-size: 12px;
    }
}

/* ════════════════════════════════════════
   RESPONSIVE — 480px
   ════════════════════════════════════════ */
@media (max-width: 480px) {
    .offer-container {
        padding: 0 16px;
    }

    .offer-hero {
        padding: 48px 0 36px;
    }

    .offer-hero__title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .offer-section__head {
        padding: 20px 20px 16px;
    }

    .offer-section__body {
        padding: 16px 20px 24px;
    }

    .offer-section__body p {
        font-size: 14px;
    }

    .offer-section__body ul li {
        font-size: 13px;
    }

    .offer-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .offer-nav__list {
        gap: 4px;
    }

    .offer-nav__link {
        padding: 6px 10px;
    }
}