/*
Theme Name: Corvo
Theme URI: https://corvo-mail.ru
Author: Corvo
Author URI: https://corvo-mail.ru
Description: Тёмная тема лендинга и блога для почтового клиента Corvo. Кастомная тема по фирменному дизайну (направление «Про», синий акцент #3D6DB3).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: corvo
Tags: dark, one-column, blog, landing, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Токены дизайна
   ========================================================================== */
:root {
  --bg: #0D1117;
  --bg-soft: #11161d;
  --title: #F2F5F9;
  --fg: #E6EAEF;
  --fg-muted: #9EA8B4;
  --fg-dim: #6C7683;
  --accent: #4C82CC;
  --accent-2: #6FA3E0;
  --accent-3: #3E7C8C;
  --grad-1: #5389D2;
  --grad-2: #3D6DB3;
  --ok: #57B98A;
  --warn: #D2A24A;
  --card-bg-1: rgba(255,255,255,0.045);
  --card-bg-2: rgba(255,255,255,0.015);
  --border: rgba(255,255,255,0.09);
  --border-soft: rgba(255,255,255,0.07);
  --maxw: 1220px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Сброс и база
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: #8FB4E6; }
h1, h2, h3, h4 { color: var(--title); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 13px; border: 0;
  background: linear-gradient(180deg, var(--grad-1), var(--grad-2));
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 36px -12px rgba(76,130,204,0.55), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.btn--sm { height: 40px; padding: 0 20px; border-radius: 11px; font-size: 14px; box-shadow: none; background: var(--accent); }
.btn--lg { height: 56px; padding: 0 32px; font-size: 16.5px; border-radius: 14px; }
.btn--ghost {
  background: transparent; box-shadow: none;
  border: 1px solid rgba(255,255,255,0.16); color: var(--fg);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); filter: none; color: var(--fg); }

/* ==========================================================================
   Шапка / навигация
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13,17,23,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container { display: flex; align-items: center; gap: 30px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,0.10); }
.brand .brand-name { font-size: 18px; font-weight: 750; letter-spacing: -0.3px; color: #F0F4F8; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a.nav-link { font-size: 14px; font-weight: 550; color: var(--fg-muted); }
.nav a.nav-link:hover { color: #8FB4E6; }
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 8px; }

/* ==========================================================================
   Общие секции
   ========================================================================== */
.section { padding: 100px 0 30px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #5E8FD6; text-align: center; margin-bottom: 14px; }
.section h2 { font-size: 44px; font-weight: 780; letter-spacing: -1.3px; text-align: center; margin: 0 auto 14px; max-width: 640px; }
.section .lead { font-size: 17px; color: var(--fg-muted); text-align: center; margin: 0 auto 58px; max-width: 560px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; }
.hero .glow { position: absolute; top: -180px; left: 50%; transform: translateX(-50%); width: 1100px; height: 700px; background: radial-gradient(ellipse, rgba(76,130,204,0.28), transparent 62%); pointer-events: none; animation: glow 6s ease-in-out infinite; }
.hero .glow2 { position: absolute; top: 280px; left: -200px; width: 600px; height: 500px; background: radial-gradient(ellipse, rgba(62,124,140,0.14), transparent 65%); pointer-events: none; }
.hero-inner { position: relative; padding-top: 92px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 22px; border: 1px solid rgba(125,165,220,0.32); background: rgba(76,130,204,0.10); color: #8FB4E6; font-size: 13px; font-weight: 600; margin-bottom: 30px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: 72px; font-weight: 800; line-height: 1.02; letter-spacing: -2.6px; max-width: 900px; margin: 0 auto 24px; }
.hero h1 .grad { background: linear-gradient(90deg, #6FA3E0, #4C82CC 55%, #3E7C8C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 19px; line-height: 1.6; color: var(--fg-muted); max-width: 620px; margin: 0 auto 38px; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--fg-dim); margin-bottom: 64px; }

/* CSS-мокап окна приложения */
.appshot { position: relative; max-width: 1100px; margin: 0 auto; padding-bottom: 100px; }
.appshot .under { position: absolute; inset: auto 10% -30px 10%; height: 120px; background: radial-gradient(ellipse, rgba(76,130,204,0.35), transparent 70%); filter: blur(30px); pointer-events: none; }
.appwin { position: relative; border-radius: 16px; overflow: hidden; transform: perspective(1600px) rotateX(6deg); animation: float 9s ease-in-out infinite; box-shadow: 0 60px 120px -35px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.09); background: #0f141b; text-align: left; }
.appwin-photo { display: block; width: 100%; height: auto; }
.appwin .titlebar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: #10151c; border-bottom: 1px solid var(--border-soft); }
.appwin .tl-dot { width: 11px; height: 11px; border-radius: 50%; background: #2a323d; }
.appwin .tl-title { margin-left: 8px; font-size: 12.5px; color: var(--fg-dim); }
.appwin .body { display: grid; grid-template-columns: 210px 300px 1fr; height: 520px; }
.appwin .pane { padding: 14px; overflow: hidden; }
.appwin .pane.sidebar { background: #0e131a; border-right: 1px solid var(--border-soft); }
.appwin .pane.list { background: #0f141b; border-right: 1px solid var(--border-soft); }
.appwin .pane.read { background: #0d1219; }
.appwin .row { display: flex; align-items: center; gap: 10px; height: 30px; border-radius: 8px; padding: 0 8px; color: var(--fg-muted); font-size: 12.5px; }
.appwin .row.active { background: rgba(76,130,204,0.16); color: #cfe0f6; }
.appwin .chip { width: 16px; height: 16px; border-radius: 5px; background: #223047; flex: 0 0 16px; }
.appwin .mail { padding: 11px 8px; border-bottom: 1px solid var(--border-soft); }
.appwin .mail .from { font-size: 12.5px; color: var(--fg); font-weight: 650; margin-bottom: 3px; }
.appwin .mail .subj { font-size: 12px; color: var(--fg-muted); margin-bottom: 3px; }
.appwin .mail .snip { font-size: 11.5px; color: var(--fg-dim); }
.appwin .skl { height: 9px; border-radius: 5px; background: rgba(255,255,255,0.06); margin: 10px 0; }

/* ---- Детальный мокап приложения (как в макете) ---- */
.appwin .body { grid-template-columns: 226px 316px 1fr; height: 560px; }
.aw-ctrls { display: flex; align-items: center; gap: 14px; margin-left: auto; color: var(--fg-dim); }
.aw-ctrls svg { width: 15px; height: 15px; }
.aw-spin { animation: aw-rot 2.2s linear infinite; }
@keyframes aw-rot { to { transform: rotate(360deg); } }

.aw-compose { display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 650; margin-bottom: 10px; }
.aw-nav { display: flex; align-items: center; gap: 10px; height: 30px; border-radius: 8px; padding: 0 8px; color: var(--fg-muted); font-size: 12.5px; }
.aw-nav.active { background: rgba(76,130,204,0.16); color: #cfe0f6; font-weight: 600; }
.aw-nav .ico { width: 15px; height: 15px; flex: 0 0 15px; color: inherit; opacity: .9; }
.aw-nav .cnt { margin-left: auto; font-size: 11px; font-weight: 700; color: #7ea6e0; }
.aw-nav.active .cnt { color: #cfe0f6; }
.aw-sec { padding: 12px 8px 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--fg-dim); }
.aw-acc { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.aw-acc .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.aw-acc .col { min-width: 0; flex: 1; }
.aw-acc .nm { font-size: 12px; font-weight: 650; color: var(--fg); }
.aw-acc .sb { font-size: 10.5px; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-acc .warn { color: var(--warn); }
.aw-foot { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.aw-ava { display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; flex-shrink: 0; }

.aw-search { display: flex; align-items: center; gap: 8px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: #10151c; padding: 0 11px; color: var(--fg-dim); font-size: 12px; margin-bottom: 10px; }
.aw-lhead { display: flex; align-items: center; gap: 8px; padding: 0 2px 8px; }
.aw-lhead .h { font-size: 14px; font-weight: 650; color: var(--title); }
.aw-lhead .u { font-size: 11.5px; color: var(--fg-dim); }
.aw-lhead .ic { margin-left: auto; display: flex; gap: 8px; color: var(--fg-dim); }
.aw-day { padding: 8px 4px 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--fg-dim); }

.aw-mail { position: relative; display: flex; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--border-soft); }
.aw-mail.sel { background: rgba(76,130,204,0.14); border-radius: 9px; }
.aw-mail .stripe { position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; }
.aw-mail .un { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); flex: 0 0 6px; margin-top: 14px; }
.aw-mail .un.off { background: transparent; }
.aw-mail .body2 { min-width: 0; flex: 1; }
.aw-mail .l1 { display: flex; align-items: baseline; gap: 6px; }
.aw-mail .fr { font-size: 12.5px; font-weight: 650; color: var(--fg); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-mail .tm { font-size: 11px; color: var(--fg-dim); flex-shrink: 0; }
.aw-mail .l2 { display: flex; align-items: center; gap: 5px; margin: 2px 0; }
.aw-mail .su { font-size: 12px; color: var(--fg-secondary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-mail .sn { font-size: 11px; color: var(--fg-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-mail .mini { width: 13px; height: 13px; flex-shrink: 0; color: var(--fg-dim); }
.aw-mail .star { color: var(--warn); }
.aw-snooze { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 2px 8px; border-radius: 8px; background: rgba(76,130,204,0.14); color: #8fb4e6; font-size: 10.5px; font-weight: 600; }
.aw-actions { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 9px; border: 1px solid var(--border); background: #141b24; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); }
.aw-actions svg { width: 15px; height: 15px; color: var(--fg-secondary); }

.appwin .pane.read { padding: 0; display: flex; flex-direction: column; }
.aw-rtb { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border-soft); color: var(--fg-secondary); }
.aw-rtb svg { width: 16px; height: 16px; }
.aw-rtb .sp { margin-left: auto; }
.aw-rbody { flex: 1; overflow: hidden; padding: 16px 20px; }
.aw-subj { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.aw-subj h4 { font-size: 17px; font-weight: 700; color: var(--title); margin: 0; flex: 1; }
.aw-subj .star { color: var(--warn); width: 16px; height: 16px; }
.aw-trow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: 9px; margin-bottom: 6px; }
.aw-trow .who { font-size: 12px; font-weight: 650; color: var(--fg); flex: 0 0 auto; }
.aw-trow .pre { font-size: 12px; color: var(--fg-dim); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-trow .tm { font-size: 11px; color: var(--fg-dim); }
.aw-msghd { display: flex; align-items: flex-start; gap: 11px; margin: 14px 0 12px; }
.aw-msghd .nm { font-size: 13px; font-weight: 700; color: var(--fg); }
.aw-msghd .em { font-size: 12px; color: var(--fg-dim); }
.aw-msghd .to { font-size: 11.5px; color: var(--fg-dim); margin-top: 2px; }
.aw-msghd .tm { margin-left: auto; font-size: 11.5px; color: var(--fg-dim); }
.aw-priv { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-soft); font-size: 11.5px; color: var(--fg-muted); margin-bottom: 14px; }
.aw-priv .lnk { color: var(--accent-2); font-weight: 600; }
.aw-text p { font-size: 12.5px; line-height: 1.65; color: #c7cfda; margin: 0 0 11px; }
.aw-reply { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border-soft); }
.aw-reply .b { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.aw-reply .b.primary { background: var(--accent); color: #fff; }
.aw-reply .b.ghost { border: 1px solid var(--border); color: var(--fg-secondary); }
.aw-reply .b svg { width: 15px; height: 15px; }

/* ==========================================================================
   Статистика
   ========================================================================== */
.stats { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.02); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); padding: 36px 32px; }
.stat { text-align: center; padding: 6px 12px; }
.stat .val { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--title); margin-bottom: 4px; }
.stat .lbl { font-size: 13.5px; color: #8A94A0; }

/* ==========================================================================
   Возможности
   ========================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fcard {
  background: linear-gradient(180deg, var(--card-bg-1), var(--card-bg-2));
  border: 1px solid var(--border); border-radius: 18px; padding: 28px 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.fcard:hover { border-color: rgba(125,165,220,0.45); transform: translateY(-3px); }
.fcard .ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.fcard .ftitle { font-size: 17.5px; font-weight: 700; color: #F0F4F8; margin-bottom: 8px; }
.fcard .ftext { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); }

/* ==========================================================================
   Приватность
   ========================================================================== */
.privacy .container { padding-top: 80px; padding-bottom: 80px; }
.privacy-card {
  position: relative; overflow: hidden; border-radius: 24px;
  border: 1px solid rgba(125,165,220,0.25);
  background: linear-gradient(135deg, rgba(46,74,108,0.35), rgba(20,28,40,0.6));
  padding: 52px 56px; display: flex; align-items: center; gap: 40px;
}
.privacy-card .pglow { position: absolute; top: -80px; right: -60px; width: 420px; height: 320px; background: radial-gradient(ellipse, rgba(76,130,204,0.22), transparent 65%); pointer-events: none; }
.privacy-card img { width: 120px; height: 120px; border-radius: 28px; flex: 0 0 120px; box-shadow: 0 24px 50px -16px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1); }
.privacy-card .ptitle { font-size: 28px; font-weight: 780; letter-spacing: -0.6px; margin-bottom: 12px; }
.privacy-card .ptext { font-size: 16px; line-height: 1.65; color: #A9B3BF; max-width: 640px; }

/* ==========================================================================
   О названии
   ========================================================================== */
.naming .container { padding: 20px 32px 60px; }
.naming-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  border: 1px solid var(--border); border-radius: 20px;
  background: linear-gradient(180deg, var(--card-bg-1), var(--card-bg-2));
  padding: 40px 44px;
}
.naming-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #5E8FD6; margin-bottom: 12px; }
.naming-card h3 { font-size: 26px; font-weight: 760; letter-spacing: -0.6px; margin: 0 0 12px; }
.naming-card p { font-size: 16px; line-height: 1.65; color: var(--fg-muted); margin: 0 auto; max-width: 620px; }

/* Аккордеон «Что нового» */
.changelog { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.cl-item { border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, var(--card-bg-1), var(--card-bg-2)); overflow: hidden; transition: border-color .2s ease; }
.cl-item[open] { border-color: rgba(125,165,220,0.35); }
.cl-item:hover { border-color: rgba(125,165,220,0.28); }
.cl-sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 20px; user-select: none; }
.cl-sum::-webkit-details-marker { display: none; }
.cl-ver { font-size: 16px; font-weight: 700; color: var(--title); letter-spacing: -0.2px; }
.cl-date { font-size: 13px; color: var(--fg-muted); }
.cl-chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted); transform: rotate(45deg); transition: transform .2s ease; }
.cl-item[open] .cl-chev { transform: rotate(-135deg); }
.cl-body { padding: 0 20px 16px; }
.cl-body.prose { font-size: 15px; }
.cl-body h3 { font-size: 14px; margin: 1.1em 0 .3em; }
.cl-body h3:first-child { margin-top: .2em; }
.cl-body ul { margin: .3em 0 .8em; }
.cl-body li { margin: .3em 0; }

/* Рендер CHANGELOG / BACKLOG (md-doc) */
.md-doc h2 { font-size: 22px; margin: 1.8em 0 .4em; padding-bottom: .3em; border-bottom: 1px solid var(--border-soft); }
.md-doc h2:first-child { margin-top: 0; }
.md-doc h3 { font-size: 16px; color: var(--fg-secondary); margin: 1.1em 0 .3em; text-transform: none; }
.md-doc ul { margin: .3em 0 1.1em; }
.md-doc li { margin: .3em 0; }

/* ==========================================================================
   Скачать
   ========================================================================== */
.download { position: relative; text-align: center; }
.download .container { padding-top: 70px; padding-bottom: 60px; }
.download .dglow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 500px; background: radial-gradient(ellipse, rgba(76,130,204,0.16), transparent 65%); pointer-events: none; }
.dl-card {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 40px 48px; border-radius: 24px; border: 1px solid rgba(125,165,220,0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); margin-bottom: 26px;
}
.dl-card .ic { width: 58px; height: 58px; border-radius: 15px; background: rgba(76,130,204,0.14); color: #8FB4E6; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.dl-card .dl-title { font-size: 22px; font-weight: 750; color: #F0F4F8; margin-bottom: 5px; }
.dl-card .dl-meta { font-size: 14px; color: #8A94A0; margin-bottom: 24px; }
.dl-card .btn { width: 320px; max-width: 100%; }
.dl-card .dl-fine { font-size: 12.5px; color: var(--fg-dim); margin-top: 12px; }
.dl-card .dl-whatsnew { margin-top: 14px; max-width: 320px; font-size: 12.5px; line-height: 1.5; color: var(--fg-muted); text-align: center; }
.dl-card .dl-whatsnew span { color: var(--accent-2); font-weight: 650; }
.soon { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.soon .item { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 14px; border: 1px dashed rgba(255,255,255,0.16); color: #8A94A0; }
.soon .item .name { font-size: 14px; font-weight: 600; color: #A9B3BF; }
.soon .item .tag { padding: 2px 9px; border-radius: 10px; background: rgba(210,162,74,0.14); color: var(--warn); font-size: 11.5px; font-weight: 650; }

/* ==========================================================================
   Футер
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border-soft); }
.site-footer .container { display: flex; align-items: center; gap: 24px; padding: 30px 32px; flex-wrap: wrap; }
.site-footer .brand img { width: 24px; height: 24px; border-radius: 7px; opacity: .9; }
.site-footer .brand .brand-name { font-size: 14px; font-weight: 700; color: var(--fg); }
.site-footer .copy { font-size: 13px; color: var(--fg-dim); }
.site-footer .fnav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.site-footer .fnav ul { display: flex; gap: 22px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.site-footer .fnav li { list-style: none; }
.site-footer .fnav a { font-size: 13.5px; color: #8A94A0; }

/* ==========================================================================
   Контент страниц и блога
   ========================================================================== */
.page-hero { padding: 70px 0 20px; text-align: center; }
.page-hero h1 { font-size: 46px; letter-spacing: -1.4px; }
.page-hero .lead { color: var(--fg-muted); max-width: 640px; margin: 10px auto 0; }
.content { max-width: 760px; margin: 0 auto; padding: 40px 32px 80px; }
.content.wide { max-width: var(--maxw); }
.prose { font-size: 16.5px; line-height: 1.75; color: #C7CFDA; }
.prose h2 { font-size: 30px; text-align: left; margin: 1.6em 0 .5em; letter-spacing: -0.6px; }
.prose h3 { font-size: 22px; margin: 1.4em 0 .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.4em 0; padding: .2em 1.2em; color: var(--fg-muted); background: rgba(255,255,255,0.02); border-radius: 0 10px 10px 0; }
.prose code { background: rgba(255,255,255,0.06); padding: .15em .4em; border-radius: 6px; font-size: .92em; }
.prose pre { background: #0b0f15; border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow: auto; }
.prose img { border-radius: 12px; margin: 1.2em 0; }

/* Лента блога */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard { background: linear-gradient(180deg, var(--card-bg-1), var(--card-bg-2)); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.pcard:hover { border-color: rgba(125,165,220,0.45); transform: translateY(-3px); }
.pcard .thumb { aspect-ratio: 16/9; background: #0e131a; overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard .pbody { padding: 20px 22px; }
.pcard .pmeta { font-size: 12.5px; color: var(--fg-dim); margin-bottom: 8px; }
.pcard .ptitle { font-size: 18px; font-weight: 700; color: #F0F4F8; margin-bottom: 8px; }
.pcard .pexc { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }
.pcard a.plink { color: inherit; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); color: var(--fg-muted); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: transparent; }

/* Одиночный пост */
.post-header { text-align: center; padding: 70px 0 10px; }
.post-header .pmeta { color: var(--fg-dim); font-size: 13.5px; margin-bottom: 12px; }
.post-header h1 { font-size: 42px; letter-spacing: -1.2px; max-width: 820px; margin: 0 auto; }
.post-cover { max-width: 900px; margin: 34px auto 0; padding: 0 32px; }
.post-cover img { width: 100%; border-radius: 16px; }

/* Обратная связь */
.fb { max-width: 640px; margin: 0 auto; }
.fb-note { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-size: 14.5px; border: 1px solid var(--border); }
.fb-ok { background: rgba(87,185,138,0.12); border-color: rgba(87,185,138,0.4); color: #7fd3ab; }
.fb-err { background: rgba(226,75,74,0.12); border-color: rgba(226,75,74,0.4); color: #f0a0a0; }
.fb-form { display: flex; flex-direction: column; gap: 16px; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fb-field { display: flex; flex-direction: column; gap: 7px; }
.fb-field > span { font-size: 13px; color: var(--fg-muted); }
.fb-field input, .fb-field select, .fb-field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  color: var(--fg); font: inherit; font-size: 15px; padding: 12px 14px; outline: none;
}
.fb-field input, .fb-field select { height: 46px; }
.fb-field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.fb-field input:focus, .fb-field select:focus, .fb-field textarea:focus { border-color: var(--accent); }
.fb-field select { appearance: none; cursor: pointer; }
.fb-form .btn { align-self: flex-start; }
.fb-fine { font-size: 12.5px; color: var(--fg-dim); }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 720px) { .fb-row { grid-template-columns: 1fr; } }

/* 404 / поиск */
.center-narrow { max-width: 560px; margin: 0 auto; text-align: center; padding: 90px 32px; }
.searchform { display: flex; gap: 8px; max-width: 440px; margin: 20px auto 0; }
.searchform input[type="search"] { flex: 1; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--fg); padding: 0 14px; font-size: 15px; outline: none; }
.searchform input[type="search"]:focus { border-color: var(--accent); }

/* ==========================================================================
   Анимации
   ========================================================================== */
@keyframes glow { 0%,100% { opacity: .7 } 50% { opacity: 1 } }
@keyframes float {
  0%,100% { transform: perspective(1600px) rotateX(6deg) translateY(0) }
  50% { transform: perspective(1600px) rotateX(6deg) translateY(-10px) }
}
@media (prefers-reduced-motion: reduce) {
  .hero .glow, .appwin { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 56px; }
  .appwin .body { grid-template-columns: 180px 1fr; }
  .appwin .pane.read { display: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 20px; background: rgba(13,17,23,0.98); border-bottom: 1px solid var(--border-soft); }
  .nav.open a.nav-link { padding: 8px 0; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .section { padding: 64px 0 20px; }
  .section h2 { font-size: 32px; letter-spacing: -0.8px; }
  .hero-inner { padding-top: 56px; }
  .hero h1 { font-size: 44px; letter-spacing: -1.4px; }
  .hero .sub { font-size: 17px; }
  .appwin { transform: none; animation: none; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 24px 8px; }
  .features-grid, .posts-grid { grid-template-columns: 1fr; }
  .appwin .body { grid-template-columns: 1fr; height: auto; }
  .appwin .pane.sidebar { display: none; }
  .privacy-card { flex-direction: column; text-align: center; padding: 36px 26px; }
  .privacy-card .ptext { text-align: left; }
  .page-hero h1 { font-size: 34px; }
  .post-header h1 { font-size: 32px; }
  .site-footer .fnav { margin-left: 0; width: 100%; }
}

/* Плашка статуса разработки (pre-alpha) — сквозная, над шапкой. */
.dev-banner {
  background: linear-gradient(90deg, rgba(210,162,74,0.16), rgba(210,162,74,0.09));
  border-bottom: 1px solid rgba(210,162,74,0.30);
  color: #E6C98A;
  font-size: 13px;
  line-height: 1.45;
}
.dev-banner .container {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 9px 20px; text-align: center;
}
.dev-banner svg { flex: none; color: var(--warn); }
.dev-banner strong { color: #F0D79A; font-weight: 700; }
@media (max-width: 640px) {
  .dev-banner { font-size: 12px; }
  .dev-banner .container { padding: 8px 14px; gap: 7px; }
  .dev-banner svg { display: none; }
}
