/* ═══════════════════════════════════════════════════════════════════════
   Космический Оракул — v1.57 «E-E-A-T + блог + 404» (eeat.css).

   Стили страниц доверия (о проекте, контакты, политика), мини-блога
   и 404-гадания. Загружается поверх style.css + landings.css + oracle-wow.css.
   Без JS всё читается: прогресс-бар и веер 404 — прогрессивные улучшения.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Автор (E-E-A-T блок) ─────────────────────────────────────────────── */
.ow-author {
    display: inline-flex; align-items: center; gap: 12px;
    margin-top: 18px; padding: 10px 18px 10px 12px;
    border-radius: 999px;
    background: rgba(240, 199, 94, .07);
    border: 1px solid rgba(240, 199, 94, .3);
}
.ow-author-ava {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, #f7d98b, #c99b3f);
    color: #120a24; font-size: 20px; font-weight: 700;
    box-shadow: 0 0 18px rgba(240, 199, 94, .45);
}
.ow-author-info { display: flex; flex-direction: column; text-align: left; }
.ow-author-info b { color: #ffe9a8; font-size: 14px; }
.ow-author-info span { font-size: 12px; opacity: .75; }

/* ── Блог: сетка статей на хабе ───────────────────────────────────────── */
.ow-blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px; margin-top: 18px;
}
.ow-blog-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 18px; border-radius: 16px;
    background: linear-gradient(160deg, rgba(240, 199, 94, .07), rgba(28, 17, 54, .6));
    border: 1px solid rgba(240, 199, 94, .22);
    color: inherit; text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ow-blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(240, 199, 94, .55);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.ow-blog-glyph { font-size: 34px; line-height: 1; }
.ow-blog-meta { font-size: 12px; opacity: .7; letter-spacing: .02em; }
.ow-blog-card b { font-size: 16px; line-height: 1.35; color: #ffe9a8; }
.ow-blog-lead { font-size: 13.5px; line-height: 1.55; opacity: .82; }
.ow-blog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ow-blog-tags i {
    font-style: normal; font-size: 11px; padding: 3px 10px; border-radius: 999px;
    background: rgba(240, 199, 94, .12); border: 1px solid rgba(240, 199, 94, .3);
    color: #f0c75e;
}

/* ── Статья ───────────────────────────────────────────────────────────── */
.ow-article-h1 { font-size: clamp(26px, 4.4vw, 40px); }
.ow-article { font-size: 16.5px; line-height: 1.75; }
.ow-article h2 {
    font-size: 22px; margin: 26px 0 10px; color: #ffe9a8;
    padding-left: 14px; border-left: 3px solid rgba(240, 199, 94, .55);
}
.ow-article h2:first-child { margin-top: 4px; }
.ow-article p { margin: 0 0 14px; }
.ow-article .ow-list { margin: 8px 0 16px; }
.ow-quote {
    margin: 20px auto; padding: 18px 26px; max-width: 640px;
    border-radius: 16px; text-align: center;
    font-size: 18px; line-height: 1.55; font-style: italic; color: #ffe9a8;
    background: rgba(240, 199, 94, .08);
    border: 1px solid rgba(240, 199, 94, .35);
    position: relative;
}
.ow-quote::before { content: '✦'; display: block; margin-bottom: 6px; color: #f0c75e; }

/* Навигация между статьями */
.ow-blog-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ow-blog-neighbor {
    display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
    border-radius: 14px; text-decoration: none; color: inherit;
    background: rgba(240, 199, 94, .06);
    border: 1px solid rgba(240, 199, 94, .22);
    transition: border-color .3s ease, transform .3s ease;
}
.ow-blog-neighbor:hover { border-color: rgba(240, 199, 94, .5); transform: translateY(-3px); }
.ow-blog-neighbor.right { text-align: right; }
.ow-blog-neighbor span { font-size: 12px; opacity: .65; }
.ow-blog-neighbor b { font-size: 14px; line-height: 1.35; color: #ffe9a8; }

/* Прогресс чтения */
.ow-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, #f0c75e, #ffdf9e);
    box-shadow: 0 0 12px rgba(240, 199, 94, .8);
    z-index: 999; transition: width .12s linear;
}

/* ── Политика ─────────────────────────────────────────────────────────── */
.ow-policy h2 { scroll-margin-top: 80px; }
.ow-policy a { color: #f0c75e; }

/* ── Контакты: форма ──────────────────────────────────────────────────── */
.ow-contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.ow-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ow-field span { opacity: .8; }
.ow-field input, .ow-field textarea {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px; border-radius: 12px;
    background: rgba(18, 10, 36, .7);
    border: 1px solid rgba(240, 199, 94, .3);
    color: #f4ecdc; font: inherit; font-size: 15px;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.ow-field input:focus, .ow-field textarea:focus {
    outline: none; border-color: rgba(240, 199, 94, .65);
    box-shadow: 0 0 0 3px rgba(240, 199, 94, .14);
}
.ow-field textarea { resize: vertical; min-height: 120px; }
.ow-hp { position: absolute; left: -9999px; height: 1px; width: 1px; opacity: 0; }
.ow-form-status { min-height: 20px; font-size: 14px; margin: 0; }
.ow-form-status.ok { color: #9fe6a8; }
.ow-form-status.err { color: #ff9e9e; }
.ow-note {
    padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.55;
    background: rgba(240, 199, 94, .08); border: 1px solid rgba(240, 199, 94, .3);
}
.ow-dialog-link {
    display: flex; flex-direction: column; gap: 8px; padding: 16px;
    border-radius: 14px; background: rgba(159, 230, 168, .07);
    border: 1px solid rgba(159, 230, 168, .35); font-size: 14px;
}
.ow-dialog-link b { color: #9fe6a8; }
.ow-dialog-link p { margin: 0; opacity: .85; }
.ow-dialog-link input {
    width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
    background: rgba(18, 10, 36, .7); border: 1px solid rgba(159, 230, 168, .3);
    color: #f4ecdc; font-size: 13px;
}
.ow-dialog-link a { color: #9fe6a8; font-size: 13px; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.ow404-code {
    display: block; font-family: 'Unbounded', sans-serif;
    font-size: clamp(72px, 16vw, 150px); line-height: 1; letter-spacing: .04em;
    color: #f0c75e; text-shadow: 0 0 40px rgba(240, 199, 94, .45);
    margin-bottom: 10px;
}
.ow404-code i {
    font-style: normal; display: inline-block;
    animation: ow404Spin 6s linear infinite; transform-origin: 50% 54%;
}
@keyframes ow404Spin { to { transform: rotate(360deg); } }
html:not(.ow404-js) .ow404-draw .ow-draw-fan,
html:not(.ow404-js) .ow404-draw .ow-draw-result { display: none; }
html.ow404-js .ow404-static { display: none; }
.ow404-card-name {
    font-family: 'Unbounded', sans-serif; font-size: 20px;
    color: #ffe9a8; margin: 0 0 12px; text-align: center;
}
.ow404-static { text-align: center; margin-top: 14px; }
.ow404-static .ow-draw-text { margin-bottom: 16px; }

/* ── Правовые ссылки в футере главной ─────────────────────────────────── */
.footer-docs {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid rgba(240, 199, 94, .15);
}
.footer-docs a {
    font-size: 13px; color: rgba(244, 236, 220, .75);
    text-decoration: none; border-bottom: 1px dashed rgba(240, 199, 94, .35);
    transition: color .25s ease, border-color .25s ease;
}
.footer-docs a:hover { color: #f0c75e; border-color: #f0c75e; }

/* ── Мини-FAQ на главной (index.php не грузит landings.css) ───────────── */
.faq-mini { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.faq-mini details {
    border-radius: 14px;
    background: rgba(240, 199, 94, .06);
    border: 1px solid rgba(240, 199, 94, .25);
    padding: 4px 16px;
}
.faq-mini summary {
    cursor: pointer; padding: 10px 0; font-size: 15.5px; font-weight: 600;
    color: #ffe9a8; list-style: none; position: relative; padding-right: 30px;
}
.faq-mini summary::-webkit-details-marker { display: none; }
.faq-mini summary::after {
    content: '+'; position: absolute; right: 4px; top: 50%;
    transform: translateY(-50%); font-size: 20px; color: #f0c75e;
    transition: transform .25s ease;
}
.faq-mini details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-mini details p { margin: 2px 0 12px; font-size: 14.5px; line-height: 1.6; opacity: .88; }
.home-faq h2 { text-align: center; font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 6px; }
.home-faq .home-faq-sub { text-align: center; opacity: .7; font-size: 14px; margin: 0 0 6px; }

/* ── адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .ow-blog-grid { grid-template-columns: 1fr; }
    .ow-blog-nav { grid-template-columns: 1fr; }
    .ow-blog-neighbor.right { text-align: left; }
    .ow-article { font-size: 15.5px; }
    .ow-quote { font-size: 16px; padding: 14px 18px; }
}

/* ── reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ow404-code i, .ow-progress { animation: none !important; transition: none !important; }
    .ow-blog-card:hover, .ow-blog-neighbor:hover { transform: none; }
}
