/*
Theme Name: AgentX
Theme URI: https://agentx.by
Author: AgentX
Description: Лендинг + блог AgentX — ИИ-агенты для автоматизации отделов продаж.
Version: 1.2
Text Domain: agentx
*/

  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Manrope:wght@700;800&display=swap');

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --ink: #0F1624;
    --ink-mid: #3D4468;
    --ink-soft: #7B82A8;
    --bg: #F5F6FB;
    --white: #ffffff;
    --accent: #3D5AF1;
    --accent-light: #EEF1FE;
    --accent-glow: rgba(61,90,241,0.14);
    --border: rgba(61,90,241,.09);
    --r: 14px;
    --navy-1: #0F1624;
    --navy-2: #1B2B6B;
    --navy-3: #2D45A8;
    --glass-bg: rgba(255,255,255,.06);
    --glass-border: rgba(255,255,255,.12);
    --navy-deep: #1B2B6B;
    --warm: #FF6B4A;
    --warm-glow: rgba(255,107,74,0.16);
    --card-glass: rgba(255,255,255,0.55);
    --hero-blob-blue: rgba(61,90,241,0.14);
    --hero-blob-warm: rgba(255,107,74,0.10);
  }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
  }

  /* NAV */
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 999px;
    position: sticky;
    top: 12px;
    z-index: 100;
    max-width: 1240px;
    margin: 12px auto 0;
    width: calc(100% - 40px);
    box-shadow: 0 4px 24px rgba(27,43,107,.10), inset 0 1px 0 rgba(255,255,255,.9);
  }
  .logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -0.5px;
  }
  .logo img { height: 46px !important; width: auto !important; }
  .logo span { color: var(--accent); }
  .nav-links { display: flex; gap: 28px; align-items: center; }
  nav a {
    font-size: 14px;
    color: var(--ink-mid);
    text-decoration: none;
    font-weight: 500;
  }
  nav a:hover { color: var(--accent); }
  .nav-cta {
    background: linear-gradient(135deg, #3D5AF1, #5B76FF);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: opacity .2s;
    box-shadow: 0 2px 10px rgba(61,90,241,.35);
  }
  .nav-cta:hover { opacity: .88; }

  /* HERO */
  .hero {
    position: relative;
    overflow: hidden;
    padding: 56px 40px 72px;
    background: var(--bg);
  }
  .hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
  }
  .hero::before {
    width: 500px; height: 400px;
    background: radial-gradient(ellipse, rgba(61,90,241,.13), transparent);
    top: -100px; left: 5%;
  }
  .hero::after {
    width: 420px; height: 420px;
    background: radial-gradient(ellipse, rgba(255,107,74,.09), transparent);
    top: 10%; right: 3%;
  }
  .hero-grid {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: start;
  }
  .hero-label-wrap {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
  }
  .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #1B2B6B;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.9);
    padding: 7px 18px 7px 12px;
    border-radius: 999px;
    line-height: 1.4;
    box-shadow: 0 2px 12px rgba(27,43,107,.10), inset 0 1px 0 rgba(255,255,255,.95);
  }
  .hero-label::before {
    content: '';
    width: 8px; height: 8px;
    background: #22C55E;
    border-radius: 50%;
    flex-shrink: 0;
    animation: liveDot 2s ease-in-out infinite;
  }
  @keyframes liveDot {
    0%   { box-shadow: 0 0 0 0   rgba(34,197,94,.5); }
    70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0);  }
    100% { box-shadow: 0 0 0 0   rgba(34,197,94,0);  }
  }
  .hero-label .label-dash { display: none; }
  .hero-content { display: flex; flex-direction: column; align-items: flex-start; }
  h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(32px, 4.6vw, 50px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -1.2px;
    color: var(--navy-deep);
    margin-bottom: 20px;
  }
  h1 em {
    display: block;
    font-style: normal;
    color: var(--accent);
  }
  .hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: var(--ink);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.65;
  }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
  .btn-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--warm);
    margin-right: 9px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(255,107,74,.7);
  }
  .hero-cta, .btn-outline {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
    padding: 15px 26px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, background .15s;
  }
  .hero-cta {
    background: linear-gradient(135deg, #1B2B6B 0%, #2D45A8 100%);
    color: var(--white);
    box-shadow: 0 10px 30px -8px rgba(27,43,107,0.4), inset 0 1px 0 rgba(255,255,255,.12);
  }
  .hero-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(27,43,107,.5); }
  .btn-outline {
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(10px);
    color: var(--navy-deep);
    border: 1.5px solid rgba(61,90,241,.2);
  }
  .btn-outline:hover { border-color: var(--accent); background: rgba(255,255,255,.85); }
  .hero-note {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-soft);
  }

  /* HERO CHAT DEMO ILLUSTRATION */
  .hero-chat-demo {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 16px;
    padding: 16px 18px;
    max-width: 360px;
    width: fit-content;
    box-shadow: 0 8px 32px rgba(27,43,107,.10), inset 0 1px 0 rgba(255,255,255,.9);
    margin-bottom: 24px;
    transform: rotate(-1.1deg);
  }
  .hero-glow-blob {
    position: absolute;
    width: 220px;
    height: 220px;
    top: -70px;
    right: -60px;
    z-index: 0;
    filter: blur(4px);
    pointer-events: none;
  }
  .chat-demo-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  .chat-demo-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px -2px rgba(108,63,232,0.5);
  }
  .chat-demo-name { font-size: 13px; font-weight: 700; color: var(--ink); }
  .chat-demo-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--ink-mid);
    margin-left: auto;
    white-space: nowrap;
  }
  .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #34C759; display: inline-block; flex-shrink: 0; }
  .chat-bubble {
    position: relative;
    z-index: 1;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.45;
    padding: 9px 13px;
    border-radius: 14px;
    margin-bottom: 8px;
    max-width: 88%;
  }
  .chat-bubble-client {
    background: rgba(15,17,23,0.06);
    color: var(--ink);
    border-radius: 14px 14px 14px 4px;
  }
  .chat-bubble-agent {
    background: linear-gradient(135deg, #2A5FE8 0%, #16245C 100%);
    color: var(--white);
    margin-left: auto;
    border-radius: 14px 14px 4px 14px;
  }
  .chat-demo-time {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 11.5px;
    font-weight: 300;
    color: var(--ink-mid);
    text-align: right;
  }
  @media (max-width: 480px) {
    .hero-chat-demo { max-width: 100%; transform: none; }
    .hero-glow-blob { width: 160px; height: 160px; top: -50px; right: -40px; }
  }

  /* HERO FORM CARD */
  /* DIAGRAM — Liquid Glass */
  .hero-diagram { display: flex; align-items: center; justify-content: center; padding-top: 4px; }
  .diagram { width: 100%; max-width: 460px; padding: 24px 20px 28px; background: rgba(255,255,255,0.52); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-radius: 28px; border: 1px solid rgba(255,255,255,0.82); box-shadow: 0 8px 40px rgba(27,43,107,.10), 0 2px 8px rgba(27,43,107,.06), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.4); }
  .d-label { font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(27,43,107,.35); text-align: center; margin-bottom: 14px; }
  .diagram-channels { display: flex; gap: 8px; justify-content: center; }
  .d-ch { width: 90px; padding: 11px 6px; background: rgba(255,255,255,.65); backdrop-filter: blur(10px); border-radius: 20px; text-align: center; border: 1px solid rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(27,43,107,.07), inset 0 1px 0 rgba(255,255,255,.95); transition: transform .25s, box-shadow .25s; }
  .d-ch:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(27,43,107,.12); }
  .d-ch-icon { width: 34px; height: 34px; border-radius: 11px; margin: 0 auto 7px; display: flex; align-items: center; justify-content: center; }
  .d-tg { background: linear-gradient(135deg,#1da8e0,#0e8fc4); }
  .d-wa { background: linear-gradient(135deg,#2ecc71,#1db954); }
  .d-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
  .d-si { background: rgba(27,43,107,.08); border: 1px solid rgba(27,43,107,.12); }
  .d-ch-name { font-size: 10px; font-weight: 600; color: #3D4468; }
  .d-conn { display: block; width: 100%; height: 48px; overflow: visible; }
  .diagram-agent { position: relative; width: 280px; margin: 0 auto; background: rgba(255,255,255,.7); backdrop-filter: blur(16px); border-radius: 24px; padding: 17px 20px; border: 2px solid #FF6B4A; display: flex; align-items: center; gap: 13px; box-shadow: 0 4px 24px rgba(255,107,74,.15), inset 0 1px 0 rgba(255,255,255,.95); animation: dAgPulse 3s ease-in-out infinite; }
  @keyframes dAgPulse { 0%,100%{box-shadow:0 4px 24px rgba(255,107,74,.15),0 0 40px rgba(255,107,74,.06);} 50%{box-shadow:0 4px 32px rgba(255,107,74,.28),0 0 60px rgba(255,107,74,.12);} }
  .d-agent-ava { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg,#1B2B6B,#3D5AF1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(61,90,241,.3); }
  .d-agent-name { font-size: 18px; font-weight: 800; color: #1B2B6B; letter-spacing: -.3px; }
  .d-agent-sub { font-size: 11px; color: #7B82A8; margin-top: 2px; }
  .d-agent-sub span { color: #5B50D6; font-weight: 700; }
  .d-cdot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #FF6B4A; box-shadow: 0 0 7px rgba(255,107,74,.8); animation: dCdot 2s ease-in-out infinite; }
  .d-tl{top:-3px;left:22px;} .d-tr{top:-3px;right:22px;animation-delay:.5s;} .d-bl{bottom:-3px;left:22px;animation-delay:1s;} .d-br{bottom:-3px;right:22px;animation-delay:1.5s;}
  @keyframes dCdot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.6)} }
  .diagram-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .d-col-label { font-size: 8px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(27,43,107,.3); margin-bottom: 8px; }
  .d-tool { background: rgba(255,255,255,.65); backdrop-filter: blur(10px); border-radius: 18px; padding: 11px 13px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(27,43,107,.06), inset 0 1px 0 rgba(255,255,255,.9); transition: transform .2s, box-shadow .2s; margin-bottom: 8px; }
  .d-tool:last-child { margin-bottom: 0; }
  .d-tool:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(27,43,107,.10); }
  .d-tool-te { border-color: rgba(20,184,166,.3); }
  .d-tool-or { border-color: rgba(255,107,74,.3); }
  .d-tool-pu { border-color: rgba(91,80,214,.25); }
  .d-tool-ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .d-tool-name { font-size: 12px; font-weight: 700; color: #1B2B6B; }
  .d-tool-desc { font-size: 9px; color: #7B82A8; margin-top: 1px; }
  .d-legend { display: flex; justify-content: center; gap: 20px; margin-top: 14px; }
  .d-leg-item { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #7B82A8; font-weight: 600; }
  .d-leg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero { padding: 40px 20px 56px; }
  }

  /* TRUST BAR */
  .trust-bar {
    border-top: 1px solid rgba(61,90,241,.08);
    border-bottom: 1px solid rgba(61,90,241,.08);
    background: linear-gradient(180deg, #ffffff 0%, #F5F6FB 100%);
    padding: 32px 24px;
  }
  .trust-bar-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 24px;
    border-right: 1px solid rgba(61,90,241,.08);
  }
  .trust-item:last-child { border-right: none; }
  .ti-badge {
    width: 34px; height: 34px; min-width: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EEF1FE, #dce4fe);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
  }
  .ti-text { display: flex; flex-direction: column; gap: 2px; }
  .ti-text strong { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; color: var(--navy-deep); line-height: 1.2; }
  .ti-text span { font-size: 13px; font-weight: 300; color: var(--ink-mid); line-height: 1.3; }
  @media (max-width: 860px) {
    .trust-bar-inner { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
    .trust-item:nth-child(2n) { border-right: none; }
    .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
    .trust-item:nth-child(3), .trust-item:nth-child(4) { padding-top: 2px; }
  }
  @media (max-width: 480px) {
    .trust-bar-inner { grid-template-columns: 1fr; row-gap: 18px; }
    .trust-item { border-right: none !important; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
    .trust-item:last-child { border-bottom: none; }
  }

  /* PAIN */
  .pain {
    position: relative;
    background: #f4f6fb;
    color: var(--ink);
    padding: 64px 24px;
    overflow: hidden;
  }
  .pain::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(42,95,232,.08), transparent 70%);
    top: -200px;
    right: -120px;
    pointer-events: none;
  }
  .pain-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
  }
  .section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 32px;
  }
  .pain .section-label { color: var(--ink-soft); }
  .pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .pain-item {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(18,28,61,.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(18,28,61,.06);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .pain-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(18,28,61,.12);
  }
  .pain-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .pain-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(61,90,241,.08); flex-shrink: 0; }
  .pain-num {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--ink-soft);
  }
  .pain-item p { font-size: 16px; font-weight: 300; color: var(--ink-mid); line-height: 1.55; }
  .pain-item strong { color: var(--ink); }
  @media (max-width: 640px) {
    .pain-grid { grid-template-columns: 1fr; }
  }

  /* HOW */
  .how {
    position: relative;
    overflow: hidden;
    padding: 72px 24px;
    background: linear-gradient(160deg, #0F1624 0%, #1B2B6B 55%, #0D1A3A 100%);
  }
  .how::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(61,90,241,.25), transparent 65%);
    top: -150px; right: -100px;
    pointer-events: none;
  }
  .how::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,107,74,.12), transparent 65%);
    bottom: -80px; left: -60px;
    pointer-events: none;
  }
  .how-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
  }
  .how .section-label { color: rgba(255,255,255,.4); }
  .how .section-h2 { color: var(--white); }
  .section-h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 40px;
    line-height: 1.2;
    color: var(--navy-deep);
  }
  .steps { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; position: relative; }
  .step {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 22px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
    transition: background .2s, border-color .2s;
  }
  .step:hover { background: rgba(255,255,255,.08); border-color: rgba(61,90,241,.4); }
  .step-num {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #90A8FF;
    background: linear-gradient(135deg, rgba(61,90,241,.4), rgba(61,90,241,.15));
    border: 1px solid rgba(61,90,241,.35);
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-bottom: 12px;
  }
  .step h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
  }
  .step p { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.55); line-height: 1.55; }

  /* PROCESS */
  .process {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #F5F6FB 100%);
    padding: 72px 24px;
    border-top: 1px solid rgba(61,90,241,.08);
    border-bottom: 1px solid rgba(61,90,241,.08);
  }
  .process::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(255,107,74,.06), transparent 70%);
    bottom: -220px; left: -160px;
    pointer-events: none;
  }
  .process-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
  .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 8px;
  }
  .p-step {
    padding: 24px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #F8F9FD 100%);
    border: 1px solid rgba(61,90,241,.08);
    border-radius: var(--r);
    position: relative;
    box-shadow: 0 2px 12px rgba(27,43,107,.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .p-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -12px rgba(27,43,107,.15);
    border-color: rgba(61,90,241,.25);
  }
  .p-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 26px; right: -21px;
    color: rgba(61,90,241,.2);
    font-size: 16px; font-weight: 700; z-index: 1;
  }
  @media (max-width: 780px) { .p-step:not(:last-child)::after { display: none; } }
  .p-step-num {
    font-family: 'Manrope', sans-serif;
    font-size: 11px; font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 10px;
  }
  .p-step h4 { font-size: 15px; font-weight: 600; color: var(--navy-deep); margin-bottom: 6px; }
  .p-step p { font-size: 14px; font-weight: 300; color: var(--ink-mid); line-height: 1.5; }
  .p-step-days {
    display: inline-block; font-size: 11px; font-weight: 600;
    color: var(--accent); background: var(--accent-light);
    padding: 2px 8px; border-radius: 4px; margin-top: 10px;
  }
  .p-step:first-child .p-step-days { color: var(--warm); background: rgba(255,107,74,.1); }

  /* RESULT */
  .result {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0D1A3A 0%, #0F1624 100%);
    padding: 72px 24px;
  }
  .result::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 600px; height: 200px;
    background: radial-gradient(ellipse, rgba(61,90,241,.18), transparent 70%);
    pointer-events: none;
  }
  .result .section-label { color: rgba(255,255,255,.4); }
  .result .section-h2 { color: var(--white); }
  .result-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
  .metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    margin-bottom: 28px;
    background: rgba(255,255,255,.06);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
  }
  .metric {
    background: rgba(15,22,36,.85);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    text-align: center;
    transition: background .2s;
  }
  .metric:hover { background: rgba(27,43,107,.4); }
  .metric:nth-child(2) .metric-val { background: linear-gradient(135deg, #FF6B4A, #FF9F8A); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
  .metric-val {
    font-family: 'Manrope', sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #90A8FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .metric p { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.45); line-height: 1.5; }
  .case-block {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r);
    padding: 28px 32px;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  }
  .case-block strong { color: var(--white); }
  .case-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
  }

  /* PRICING */
  .pricing {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #F5F6FB 0%, #ffffff 100%);
    padding: 72px 24px;
  }
  .pricing::before {
    content: '';
    position: absolute;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(61,90,241,.07), transparent 70%);
    bottom: -200px; right: -150px;
    pointer-events: none;
  }
  .pricing-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
  .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
  .price-card {
    background: linear-gradient(180deg, #ffffff 0%, #F8F9FD 100%);
    border: 1px solid rgba(61,90,241,.08);
    border-radius: var(--r);
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 2px 12px rgba(27,43,107,.05);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .price-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -12px rgba(27,43,107,.15); }
  .price-card.featured {
    border-color: var(--warm);
    box-shadow: 0 0 0 1px var(--warm), 0 4px 20px rgba(255,107,74,.1);
  }
  .price-card.featured:hover { box-shadow: 0 0 0 1px var(--warm), 0 16px 34px -10px rgba(255,107,74,.25); }
  .price-badge {
    position: absolute; top: -12px; left: 24px;
    background: linear-gradient(135deg, #FF6B4A, #FF8F73);
    color: var(--white); font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 6px; letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(255,107,74,.35);
  }
  .price-name { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
  .price-val { font-family: 'Manrope', sans-serif; font-size: 36px; font-weight: 800; color: var(--navy-deep); line-height: 1; margin-bottom: 4px; }
  .price-val span { font-size: 18px; font-weight: 600; color: var(--ink-soft); }
  .price-desc { font-size: 14px; font-weight: 300; color: var(--ink-mid); margin-bottom: 20px; line-height: 1.5; }
  .price-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
  .price-features li { font-size: 15px; font-weight: 300; color: var(--ink); padding-left: 20px; position: relative; line-height: 1.4; }
  .price-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; font-size: 13px; }
  .price-cta { display: block; text-align: center; padding: 11px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
  .price-cta-outline { border: 1.5px solid rgba(61,90,241,.2); color: var(--ink-mid); }
  .price-cta-outline:hover { border-color: var(--accent); color: var(--accent); }
  .price-cta-fill { background: linear-gradient(135deg, #3D5AF1, #5B76FF); color: var(--white); box-shadow: 0 2px 10px rgba(61,90,241,.3); }
  .price-cta-fill:hover { opacity: .88; }
  .pricing-note { font-size: 14px; font-weight: 300; color: var(--ink-mid); margin-top: 20px; text-align: center; }

  /* ABOUT */
  .about {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 72px 24px;
  }
  .about::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, var(--warm-glow), transparent 70%);
    top: -200px;
    left: -160px;
    pointer-events: none;
  }
  .about-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
  }
  .founder-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 28px;
    padding: 20px;
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: var(--r);
  }
  .founder-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--white);
    margin-top: 2px;
  }
  .founder-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .founder-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
  }
  .founder-role {
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-mid);
    line-height: 1.5;
  }
  .about-text .section-label { margin-bottom: 16px; }
  .about-text h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--navy-deep);
  }
  .about-text p {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .about-stats {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
  }
  .about-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .about-stat-val {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
  }
  .about-stat:nth-child(2) .about-stat-val { color: var(--warm); }
  .about-stat-label {
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-mid);
    line-height: 1.4;
    max-width: 100px;
  }

  /* FAQ */
  .faq {
    max-width: 820px;
    margin: 0 auto;
    padding: 72px 24px;
  }
  .faq-list { display: flex; flex-direction: column; gap: 0; }
  .faq-item {
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
  }
  .faq-item:first-child { border-top: 1px solid var(--border); }
  .faq-q {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    user-select: none;
  }
  .faq-q::after {
    content: '+';
    font-size: 20px;
    color: var(--accent);
    font-weight: 400;
    flex-shrink: 0;
    margin-top: -2px;
    display: inline-block;
    transition: transform .2s ease;
  }
  .faq-item.open .faq-q { margin-bottom: 10px; }
  .faq-item.open .faq-q::after { transform: rotate(45deg); }
  .faq-a {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.65;
    display: none;
  }
  .faq-item.open .faq-a { display: block; }

  /* FOR WHO */
  .for-who {
    position: relative;
    background: #f4f6fb;
    padding: 72px 24px;
    overflow: hidden;
  }
  .for-who::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(42,95,232,.07), transparent 70%);
    bottom: -240px;
    left: -160px;
    pointer-events: none;
  }
  .for-who-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
  }
  .for-who .section-label { color: var(--ink-soft); }
  .for-who .section-h2 { color: var(--ink); }
  .who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .who-item {
    background: #ffffff;
    border: 1px solid rgba(18,28,61,.08);
    border-radius: var(--r);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(18,28,61,.06);
    transition: box-shadow .2s, transform .2s;
  }
  .who-item:hover { box-shadow: 0 12px 32px rgba(18,28,61,.12); transform: translateY(-4px); }
  .who-check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--white);
    font-weight: 700;
    margin-top: 2px;
  }
  .who-item-text strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  .who-item-text span {
    font-size: 15px;
    font-weight: 300;
    color: var(--ink-mid);
    line-height: 1.5;
  }
  @media (max-width: 580px) {
    .who-grid { grid-template-columns: 1fr; }
  }

  /* CTA BLOCK */
  .cta-block {
    position: relative;
    background: linear-gradient(145deg, #0F1624 0%, #1B2B6B 100%);
    color: var(--white);
    padding: 80px 24px;
    overflow: hidden;
  }
  .cta-block::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,107,74,.16), transparent 65%);
    top: -80px; right: -80px;
    pointer-events: none;
  }
  .cta-block::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(61,90,241,.22), transparent 65%);
    bottom: -80px; left: 10%;
    pointer-events: none;
  }
  .cta-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .cta-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 16px;
  }
  .cta-left h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
    line-height: 1.2;
    color: var(--white);
  }
  .cta-text { color: rgba(255,255,255,.72); font-size: 17px; font-weight: 300; line-height: 1.5; margin-bottom: 32px; max-width: 420px; }
  .cta-channels { display: flex; flex-direction: column; gap: 16px; }
  .cta-channel-label { display: block; font-size: 13px; font-weight: 300; color: rgba(255,255,255,.5); margin-bottom: 3px; }
  .cta-channels a { color: var(--white); font-weight: 700; font-size: 16px; text-decoration: none; transition: color .15s; }
  .cta-channels a:hover { color: var(--warm); }
  .cta-tg { color: var(--warm) !important; }

  .cta-form-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 8px 32px rgba(0,0,0,.2);
  }
  .cta-form-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.7);
    margin-bottom: 6px;
  }
  .cta-form-card input {
    width: 100%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--white);
    margin-bottom: 16px;
    transition: border-color .15s, background .15s;
  }
  .cta-form-card input::placeholder { color: rgba(255,255,255,.35); }
  .cta-form-card input:focus {
    outline: none;
    border-color: var(--warm);
    background: rgba(255,255,255,.1);
  }
  .cta-submit {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B4A, #FF8F73);
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    padding: 15px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    transition: opacity .2s, transform .15s;
    box-shadow: 0 4px 16px rgba(255,107,74,.4), inset 0 1px 0 rgba(255,255,255,.2);
  }
  .cta-submit:hover { opacity: .94; transform: translateY(-2px); }
  .cta-sub { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.55); text-align: center; }
  @media (max-width: 760px) {
    .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  }

  .cert-group-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: 32px;
    margin-bottom: 14px;
  }
  .cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .cert-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .cert-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -12px rgba(18,28,61,.16); }
  .cert-thumb {
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .cert-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
  }
  @media (max-width: 560px) {
    .cert-grid { grid-template-columns: 1fr; }
  }

  footer {
    text-align: left;
    padding: 28px;
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-mid);
    border-top: 1px solid rgba(61,90,241,.08);
    background: linear-gradient(180deg, #F5F6FB 0%, #ffffff 100%);
  }
  footer a { color: var(--ink-mid); text-decoration: none; }
  footer a:hover { color: var(--accent); }

  @media (max-width: 640px) {
    nav { padding: 14px 16px; }
    .nav-links { display: none; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .p-step { border-right: none; border-bottom: 1px solid var(--border); }
    .p-step:last-child { border-bottom: none; }
  }

  /* FOOTER */
  .footer-inner { max-width: 820px; margin: 0 auto; }
  .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding: 48px 24px 36px;
    border-bottom: 1px solid var(--border);
  }
  .footer-brand { text-align: left; }
  .footer-tagline { font-size: 14px; font-weight: 300; color: var(--ink-mid); line-height: 1.65; text-align: left; }
  .footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink-mid);
    margin-bottom: 12px;
    text-align: left !important;
  }
  .footer-contacts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start !important; text-align: left !important; }
  .footer-contacts a { font-size: 15px; font-weight: 300; color: var(--ink); text-decoration: none; text-align: left !important; }
  .footer-contacts a:hover { color: var(--accent); }
  .footer-tg { color: var(--accent) !important; font-weight: 600; margin-top: 4px; }
  .footer-requisites { text-align: left !important; }
  .footer-requisites p { font-size: 14px; font-weight: 300; color: var(--ink-mid); line-height: 1.7; text-align: left !important; }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-mid);
    flex-wrap: wrap;
    gap: 8px;
  }
  .footer-bottom a { color: var(--ink-mid); text-decoration: none; }
  .footer-bottom a:hover { color: var(--accent); }
  @media (max-width: 640px) {
    .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
  }

/* ========================================================= */
/* BLOG: page header — светлый, с хлебными крошками           */
/* ========================================================= */
.blog-page-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f3ff 0%, #faf5ff 50%, #fff4f0 100%);
  padding: 48px 24px 40px;
}
.blog-page-header::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(61,90,241,.10), transparent 65%);
  top: -160px; left: -80px;
  pointer-events: none;
}
.blog-page-header::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,107,74,.10), transparent 65%);
  bottom: -100px; right: 5%;
  pointer-events: none;
}
.blog-page-header-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

/* Центрирование — только для страниц-листингов (блог, рубрика), не для статьи */
.blog-page-header--center .blog-page-header-inner { text-align: center; }
.blog-page-header--center .breadcrumbs { justify-content: center; }
.blog-page-header--center p.blog-page-desc { margin-left: auto; margin-right: auto; }

/* Хлебные крошки */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #7B82A8;
  margin-bottom: 20px;
}
.breadcrumbs a { color: #3D5AF1; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .bc-sep { color: rgba(123,130,168,.5); }
.breadcrumbs .bc-current {
  color: #1B2B6B;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.blog-page-header h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #1B2B6B;
  line-height: 1.2;
}
.blog-page-header p.blog-page-desc {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 300;
  color: #5A6280;
  max-width: 560px;
}

/* ========================================================= */
/* BLOG: post grid + cards                                    */
/* ========================================================= */
.blog-wrap { max-width: 1000px; margin: 0 auto; padding: 56px 24px 80px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #F8F9FD 100%);
  border: 1px solid rgba(61,90,241,.08);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(27,43,107,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px -12px rgba(27,43,107,.16); border-color: rgba(61,90,241,.18); }
.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--accent-light);
  overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex-grow: 1; }
.post-card-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 9px;
  border-radius: 5px;
  margin-bottom: 10px;
  width: fit-content;
}
.post-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.3;
  margin-bottom: 8px;
}
.post-card-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 14px;
}
.post-card-meta {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--ink-soft);
  border-top: 1px solid rgba(61,90,241,.08);
  padding-top: 12px;
}
.blog-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--ink-mid);
  font-size: 15px;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.blog-pagination a, .blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(61,90,241,.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  text-decoration: none;
}
.blog-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.blog-pagination .current { background: linear-gradient(135deg, #1B2B6B, #3D5AF1); border-color: transparent; color: var(--white); box-shadow: 0 2px 10px rgba(61,90,241,.3); }

/* ========================================================= */
/* SINGLE POST                                                 */
/* ========================================================= */
.single-post-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.single-post-main { min-width: 0; }

/* Сайдбар */
.single-post-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; margin-top: 106px; }
.sidebar-box {
  background: linear-gradient(180deg, #fff, #F8F9FD);
  border: 1px solid rgba(61,90,241,.08);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(27,43,107,.05);
}
.sidebar-box-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FF6B4A;
  margin-bottom: 14px;
}
.sidebar-box ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

/* Содержание */
.sidebar-toc ul { gap: 8px; }
.sidebar-toc a {
  font-size: 13px;
  color: #3D4468;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  border-left: 2px solid rgba(61,90,241,.12);
  padding-left: 10px;
  transition: border-color .15s, color .15s;
}
.sidebar-toc a:hover { color: #3D5AF1; border-color: #3D5AF1; }

/* Рубрики */
.sidebar-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #3D4468;
  text-decoration: none;
}
.sidebar-cats a:hover { color: #3D5AF1; }
.sidebar-cat-count {
  font-size: 11px;
  font-weight: 600;
  color: #7B82A8;
  background: rgba(61,90,241,.08);
  border-radius: 999px;
  padding: 1px 8px;
}

/* Популярное */
.sidebar-popular a { text-decoration: none; display: block; }
.sidebar-popular-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1B2B6B;
  line-height: 1.4;
  margin-bottom: 3px;
}
.sidebar-popular a:hover .sidebar-popular-title { color: #3D5AF1; }
.sidebar-popular-date { font-size: 11px; color: #7B82A8; }

@media (max-width: 900px) {
  .single-post-layout { grid-template-columns: 1fr; }
  .single-post-sidebar { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 24px; }
  .sidebar-box { flex: 1 1 260px; }
}
.single-post-thumb {
  margin: 28px 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(27,43,107,.25);
}
.single-post-thumb img,
.single-post-inline-img { width: 100%; height: auto; display: block; }
.single-post-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 36px;
}
.single-post-date {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-soft);
  display: block;
}
.single-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-mid);
}
.author-avatar,
.single-post-author img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}
.post-content {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.75;
}
.post-content p { margin-bottom: 20px; }
.post-content h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 40px 0 16px;
  letter-spacing: -.5px;
  scroll-margin-top: 100px;
}
.post-content h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 32px 0 14px;
}
.post-content ul, .post-content ol { margin: 0 0 20px 22px; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content blockquote {
  border-left: 3px solid var(--warm);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-style: italic;
  color: var(--ink-mid);
}
.post-content img { max-width: 100%; border-radius: var(--r); margin: 24px 0; }
.post-content strong { color: var(--ink); font-weight: 600; }

.single-post-tags { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; }
.single-post-tags a {
  font-size: 12.5px;
  color: var(--ink-mid);
  background: var(--bg-soft, #F3F5FA);
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
}
.single-post-tags a:hover { color: #FF6B4A; background: rgba(255,107,74,.08); }

.single-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
  text-decoration: none;
  margin-bottom: 28px;
}
.single-post-back:hover { color: var(--accent); }

/* Inline CTA banner at end of post */
.post-cta-banner {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  padding: 32px 28px;
  border-radius: 16px;
  background: linear-gradient(145deg, #0F1624 0%, #1B2B6B 100%);
  text-align: center;
}
.post-cta-banner::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,107,74,.15), transparent 65%);
  top: -100px; right: -80px;
  pointer-events: none;
}
.post-cta-banner::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(61,90,241,.2), transparent 65%);
  bottom: -60px; left: 10%;
  pointer-events: none;
}
.post-cta-banner h3 {
  position: relative; z-index: 1;
  font-family: 'Manrope', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.post-cta-banner p {
  position: relative; z-index: 1;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
}
.post-cta-banner a.hero-cta {
  position: relative; z-index: 1;
  display: inline-flex;
}

/* Generic static page (page.php) */
.static-page-wrap { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.static-page-wrap h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 28px;
  letter-spacing: -1px;
}
.static-page-wrap .post-content { font-size: 16px; }

/* ── BLOG — новый журнальный макет ── */
.blog-section { background: linear-gradient(180deg,#F5F6FB,#fff); padding: 40px 24px 64px; }
.blog-section-inner { max-width: 960px; margin: 0 auto; }

/* Группа: 1 большая слева + 2 маленьких справа */
.blog-group { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.blog-group-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.blog-group-single { margin-bottom: 16px; }
.blog-group-single .post-card { max-width: 100%; }

/* Базовая карточка */
.post-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg,#fff,#F8F9FD);
  border: 1px solid rgba(61,90,241,.08);
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(27,43,107,.05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27,43,107,.12); border-color: rgba(61,90,241,.2); }

/* Большая карточка — коралловый акцент сверху */
.post-card--featured { padding: 32px; position: relative; overflow: hidden; }
.post-card--featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6B4A, #3D5AF1);
}
.post-card--featured .post-card__title--lg { font-size: 22px; margin-bottom: 14px; }
.post-card--featured .post-card__excerpt { font-size: 15px; -webkit-line-clamp: 4; }

/* Маленькая карточка */
.post-card--small .post-card__title { font-size: 16px; }
.post-card--small .post-card__excerpt { font-size: 13px; -webkit-line-clamp: 3; }

/* Верхняя строка с рубрикой и лейблом */
.post-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.post-card__cat { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #3D5AF1; background: rgba(61,90,241,.08); padding: 3px 10px; border-radius: 999px; }
.post-card__label { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #FF6B4A; }

/* Заголовок */
.post-card__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800; color: #1B2B6B;
  line-height: 1.25; margin-bottom: 10px;
}

/* Excerpt */
.post-card__excerpt {
  font-size: 14px; font-weight: 300; color: #5A6280;
  line-height: 1.6; margin-bottom: 16px;
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}

/* Мета: время + просмотры + стрелка — прижата вниз карточки */
.post-card__meta { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(61,90,241,.08); flex-wrap: wrap; }
.post-card__date { font-size: 12px; font-weight: 500; color: #7B82A8; }
.post-card__time, .post-card__views { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #7B82A8; }
.post-card__arrow { margin-left: auto; font-size: 16px; color: #3D5AF1; font-weight: 700; transition: transform .2s, color .2s; }
.post-card:hover .post-card__arrow { transform: translateX(4px); color: #FF6B4A; }

/* Пагинация */
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.blog-pagination a, .blog-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(61,90,241,.12); font-size: 13px; font-weight: 600; color: #3D4468; text-decoration: none; transition: all .15s; }
.blog-pagination a:hover { border-color: #3D5AF1; color: #3D5AF1; }
.blog-pagination .current { background: linear-gradient(135deg,#1B2B6B,#3D5AF1); border-color: transparent; color: #fff; box-shadow: 0 2px 10px rgba(61,90,241,.3); }

@media (max-width: 680px) {
  .blog-group, .blog-group-pair { grid-template-columns: 1fr; }
}

/* Большая карточка через контейнер — фоллбэк если featured.php не находится */
.blog-group-featured .post-card {
  padding: 32px !important;
}
.blog-group-featured .post-card .post-card__title {
  font-size: 22px !important;
  margin-bottom: 14px !important;
}
.blog-group-featured .post-card .post-card__excerpt {
  font-size: 15px !important;
  -webkit-line-clamp: 5 !important;
}


/* ========================================================= */
/* BLOG: category pills                                       */
/* ========================================================= */
.category-pills-wrap { max-width: 900px; margin: 0 auto; padding: 24px 24px 0; }
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #3D4468;
  background: #fff;
  border: 1px solid rgba(61,90,241,.14);
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: all .15s ease;
  white-space: nowrap;
}
.cat-pill:hover { border-color: #3D5AF1; color: #3D5AF1; }
.cat-pill--active {
  background: linear-gradient(135deg, #1B2B6B, #3D5AF1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(61,90,241,.3);
}
.cat-pill--active:hover { color: #fff; }
