/* ==========================================================================
   blog.css — общий каркас блога flashreport (лента + статьи)
   Тёмная navy-тема, синхронна с landing2.html. Версионировать ?v=N при правках.
   ========================================================================== */

@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/f-inter-400-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/f-inter-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/f-inter-500-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/f-inter-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/f-inter-600-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/f-inter-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/f-inter-700-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/f-inter-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('/f-manrope-600-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('/f-manrope-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('/f-manrope-700-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('/f-manrope-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('/f-manrope-800-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('/f-manrope-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; outline: none; background: none; }

:root {
  --navy: #0a1728; --navy-2: #0e2038; --card: #10233d; --card-2: #14294a;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.14);
  --teal: #2dd4bf; --teal-2: #14b8a6; --text: #e7eef6; --muted: #93a6bc; --text-soft: rgba(231,238,246,.82);
  --radius: 14px; --radius-sm: 10px; --shadow-md: 0 8px 30px rgba(0,0,0,.35); --shadow-glow: 0 0 44px rgba(45,212,191,.28);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--navy); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; }
h1, h2, h3 { font-family: 'Manrope', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: #fff; }
strong { font-weight: 700; color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* видимый фокус с клавиатуры (a11y) */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; cursor: pointer; transition: transform .2s, box-shadow .25s, background .2s; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #06231f; box-shadow: 0 6px 20px rgba(20,184,166,.28); }
.btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.arrow-icon { transition: transform .2s; }
.btn:hover .arrow-icon { transform: translateX(4px); }
@media (max-width: 600px) { .btn { white-space: normal; max-width: 100%; } }

/* ===== SCROLL PROGRESS ===== */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--teal), var(--teal-2)); z-index: 100; transition: width .1s linear; }

/* ===== HEADER ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 16px 0; transition: all .3s; }
.header.scrolled { background: rgba(10,23,40,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); padding: 11px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; font-size: 22px; color: #fff; flex-shrink: 0; white-space: nowrap; letter-spacing: -.02em; }
.logo span { color: var(--teal); }
.header-nav { display: flex; gap: 26px; align-items: center; flex-shrink: 0; margin: 0 24px; }
.header-nav a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.72); transition: color .2s; white-space: nowrap; }
.header-nav a:hover, .header-nav a.active { color: var(--teal); }
.header .btn-primary { padding: 10px 20px; font-size: 14px; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 60; }
.burger i { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(10,23,40,.98); z-index: 55; flex-direction: column; align-items: center; justify-content: center; gap: 26px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: #fff; font-size: 21px; font-weight: 600; }
.mobile-close { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; color: #fff; cursor: pointer; opacity: .85; display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .header-nav, .header-cta { display: none; } .burger { display: flex; } .mobile-menu { display: flex; } }

/* ===== FOOTER ===== */
.footer { background: var(--navy); border-top: 1px solid var(--line); padding: 40px 0 32px; margin-top: 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-brand .logo { font-size: 20px; }
.footer-brand p { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 420px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; line-height: 1.6; }

/* ==========================================================================
   ЛЕНТА (/blog)
   ========================================================================== */
.blog-hero { padding: 128px 0 24px; }
@media (min-width: 768px) { .blog-hero { padding: 156px 0 32px; } }
.blog-hero .eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.blog-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.blog-hero p { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 620px; }

.blog-grid-wrap { padding: 24px 0 80px; }
/* auto-fill: одна карточка не растягивается на треть, много — заполняют ряды (макс ~3 на 1200px) */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 360px)); gap: 26px; justify-content: start; }

.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease; height: 100%; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,.4); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.post-card .cat { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.post-card h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: #fff; margin-bottom: 10px; }
.post-card .excerpt { font-size: 14.5px; color: var(--text-soft); line-height: 1.55; margin-bottom: 16px; flex: 1; }
.post-card .meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.post-card .meta .dot { opacity: .5; }
.post-card .more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.post-card .more .arrow { transition: transform .2s; }
.post-card:hover .more .arrow { transform: translateX(4px); }

/* ==========================================================================
   СТАТЬЯ (/blog/<slug>)
   ========================================================================== */
.article-wrap { padding: 120px 0 72px; }
@media (min-width: 768px) { .article-wrap { padding: 148px 0 96px; } }
.article { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--muted); transition: color .2s; }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs .current { color: var(--text-soft); }

.article h1 { font-size: clamp(25px, 3.2vw, 33px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.article-meta .dot { opacity: .5; }

.article-cover { width: 100%; border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.article-cover img { width: 100%; height: auto; }

/* ТЕЛО (выравнивание по ширине — правило Даши; переносы включены) */
.prose { font-size: 16px; line-height: 1.65; color: var(--text-soft); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
@media (min-width: 768px) { .prose { font-size: 17px; } }
.prose > p { margin: 0 0 18px; }
.prose .lead { font-size: 17px; color: var(--text); font-weight: 500; }
@media (min-width: 768px) { .prose .lead { font-size: 18px; } }
.prose h2 { font-size: clamp(19px, 2.2vw, 23px); font-weight: 800; letter-spacing: -.02em; color: #fff; margin: 32px 0 14px; text-align: left; -webkit-hyphens: none; hyphens: none; }
.prose ol.steps { counter-reset: step; margin: 0 0 24px; display: grid; gap: 14px; }
.prose ol.steps > li { counter-increment: step; position: relative; padding: 15px 18px 15px 52px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.prose ol.steps > li::before { content: counter(step); position: absolute; left: 15px; top: 15px; width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 14px; color: #06231f; background: linear-gradient(135deg, var(--teal), var(--teal-2)); }
.prose ol.steps > li strong { display: block; margin-bottom: 4px; text-align: left; -webkit-hyphens: none; hyphens: none; }
.prose .callout { margin: 0 0 24px; padding: 18px 22px; border-left: 3px solid var(--teal); background: rgba(45,212,191,.06); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); }
.prose a:not(.btn) { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(45,212,191,.42); text-underline-offset: 2px; transition: text-decoration-color .2s; }
.prose a:not(.btn):hover { text-decoration-color: var(--teal); }

/* CTA в статье */
.article-cta { margin: 40px 0; padding: 28px 26px; background: linear-gradient(135deg, rgba(45,212,191,.08), rgba(20,184,166,.05)); border: 1px solid rgba(45,212,191,.26); border-radius: 16px; text-align: center; }
.article-cta h3 { font-size: 20px; margin-bottom: 8px; }
.article-cta p { font-size: 15px; color: var(--muted); margin-bottom: 18px; text-align: center; }
.cta-bridge { margin: 26px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.cta-bridge a { color: var(--teal); font-weight: 600; }
.cta-bridge a .arrow-icon { white-space: nowrap; }
.cta-bridge a:hover { text-decoration: underline; }

/* Возврат к ленте */
.back-to-blog { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.back-to-blog a { font-size: 15px; font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: 8px; }
.back-to-blog a .arrow { transition: transform .2s; }
.back-to-blog a:hover .arrow { transform: translateX(-4px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
