/**
 * Gas Impex Core — Страница отдельной акции (тёмная тема)
 */

/* ── Обёртка страницы ──────────────────────────────────────── */
.gi-single-promo {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    font-family: 'Onest', sans-serif;
    color: #fff;
}

.gi-single-promo *,
.gi-single-promo *::before,
.gi-single-promo *::after {
    box-sizing: border-box;
}

/* ── Навигация (хлебные крошки + Schema.org) ──────────────── */
.gi-sp-breadcrumbs {
    margin-bottom: 32px;
    font-size: 13px;
    color: #555;
}

.gi-sp-breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.gi-sp-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.gi-sp-breadcrumbs a {
    color: var(--gi-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}
.gi-sp-breadcrumbs a:hover { color: #4d9ef5; }

.gi-bc-sep svg {
    width: 12px;
    height: 12px;
    stroke: #444;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── Бейдж «Акция активна» ─────────────────────────────────── */
.gi-sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 8px;
    background: rgba(var(--gi-red-rgb), 0.12);
    border: 1px solid rgba(var(--gi-red-rgb), 0.3);
    color: var(--gi-red);
    margin-bottom: 20px;
}

.gi-sp-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gi-red);
    animation: gi-sp-pulse 2s infinite;
}

@keyframes gi-sp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Заголовок ─────────────────────────────────────────────── */
.gi-sp-title {
    font-family: 'Geologica', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
}

/* ── Изображение ───────────────────────────────────────────── */
.gi-sp-thumb {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid #1e1e1e;
    max-height: 440px;
}

.gi-sp-thumb img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

/* ── Мета-полоска (период + территория) ────────────────────── */
.gi-sp-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px 22px;
    background: rgba(var(--gi-blue-rgb), 0.05);
    border: 1px solid rgba(var(--gi-blue-rgb), 0.12);
    border-radius: 12px;
    margin-bottom: 36px;
}

.gi-sp-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #aaa;
}

.gi-sp-meta-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--gi-blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── Контент (the_content) ─────────────────────────────────── */
.gi-sp-content {
    font-size: 15px;
    color: #bbb;
    line-height: 1.75;
    margin-bottom: 40px;
}

.gi-sp-content h2 {
    font-family: 'Geologica', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 36px 0 14px;
}

.gi-sp-content h3 {
    font-family: 'Geologica', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ddd;
    margin: 28px 0 10px;
}

.gi-sp-content p {
    margin-bottom: 16px;
}

.gi-sp-content ul,
.gi-sp-content ol {
    padding-left: 0;
    list-style: none;
    margin-bottom: 16px;
}

.gi-sp-content ul li,
.gi-sp-content ol li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}

.gi-sp-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gi-red);
}

.gi-sp-content ol {
    counter-reset: gi-ol;
}

.gi-sp-content ol li::before {
    counter-increment: gi-ol;
    content: counter(gi-ol) '.';
    position: absolute;
    left: 0;
    color: var(--gi-blue);
    font-weight: 600;
    font-size: 13px;
}

.gi-sp-content a {
    color: var(--gi-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--gi-blue-rgb), 0.3);
    transition: border-color 0.2s ease;
}
.gi-sp-content a:hover {
    border-color: var(--gi-blue);
}

.gi-sp-content blockquote {
    border-left: 3px solid var(--gi-red);
    padding: 16px 20px;
    margin: 24px 0;
    background: rgba(var(--gi-red-rgb), 0.04);
    border-radius: 0 10px 10px 0;
    color: #ccc;
    font-style: italic;
}

.gi-sp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.gi-sp-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.gi-sp-content table th,
.gi-sp-content table td {
    padding: 10px 14px;
    border: 1px solid #222;
    font-size: 13.5px;
}

.gi-sp-content table th {
    background: rgba(var(--gi-blue-rgb), 0.08);
    color: #fff;
    font-weight: 600;
    text-align: left;
}

.gi-sp-content table td {
    color: #aaa;
}

/* ── Кнопка CTA ────────────────────────────────────────────── */
.gi-sp-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gi-red), #FB8304);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
    margin-bottom: 40px;
}

.gi-sp-cta,
.gi-sp-cta:hover,
.gi-sp-cta:visited,
.gi-sp-cta:focus {
    color: #fff !important;
}

.gi-sp-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.gi-sp-cta svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Блок «Назад к акциям» ─────────────────────────────────── */
.gi-sp-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 10px 0;
}

.gi-sp-back:hover { color: var(--gi-blue); }

.gi-sp-back svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Адаптив ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .gi-single-promo { padding: 40px 16px 60px; }
    .gi-sp-meta-bar { flex-direction: column; gap: 10px; }
    .gi-sp-cta { width: 100%; justify-content: center; }
}
