/* ═══════════════════════════════════════════════════════════
   site.css · evergreen · поверх dark.css
   nav (як основний сайт) · scanbg (соти) · sticky-cta · blog
   ═══════════════════════════════════════════════════════════ */

/* ── фон: скан-промінь + соти (з лендоса-сканера) ── */
.scanbg{ position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scanbg::before{
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(50% 34% at 50% 0%, oklch(0.85 0.145 195 / 0.07), transparent 65%),
    linear-gradient(180deg, transparent 0%, oklch(0.85 0.145 195 / 0.012) 50%, transparent 100%);
}
.scanbg::after{
  content: ''; position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27.713' height='48'%3E%3Cg fill='none' stroke='white' stroke-width='1'%3E%3Cpath d='M0 -16 L13.856 -8 L13.856 8 L0 16 L-13.856 8 L-13.856 -8 Z'/%3E%3Cpath d='M27.713 -16 L41.569 -8 L41.569 8 L27.713 16 L13.857 8 L13.857 -8 Z'/%3E%3Cpath d='M13.856 8 L27.712 16 L27.712 32 L13.856 40 L0 32 L0 16 Z'/%3E%3Cpath d='M0 32 L13.856 40 L13.856 56 L0 64 L-13.856 56 L-13.856 40 Z'/%3E%3Cpath d='M27.713 32 L41.569 40 L41.569 56 L27.713 64 L13.857 56 L13.857 40 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 27.713px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 18%, black 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 18%, black 25%, transparent 85%);
}

/* ── NAV (як на основному сайті) ── */
.site-nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center;
  padding: 14px clamp(20px, 4vw, 56px);
  background: oklch(0.115 0.004 220 / 0.55);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.site-nav.scrolled{ background: oklch(0.11 0.004 220 / 0.9); border-bottom-color: var(--line-soft); }
.site-nav .nav-brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-nav .ymark{ width: 28px; height: 28px; display: grid; place-items: center; color: var(--cy);
  filter: drop-shadow(0 8px 24px color-mix(in oklch, var(--cy) 38%, transparent)); }
.site-nav .ymark svg{ display: block; }
.site-nav .nm{ font-family: var(--font); font-weight: 700; font-size: 17px; color: var(--ink-0); letter-spacing: -0.02em; }
.site-nav .nav-links{ display: flex; gap: 28px; margin-left: 34px; }
.site-nav .nav-links a{ font-size: 13.5px; color: var(--ink-2); font-weight: 500; text-decoration: none; transition: color .15s; }
.site-nav .nav-links a:hover{ color: var(--ink-0); }
.site-nav .nav-cta{ margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nb{
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; min-height: 40px; font-family: var(--font); font-size: 13px; font-weight: 550;
  border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: transparent; border: 1px solid var(--line); color: var(--ink-1);
  transition: color .15s, border-color .15s, background .15s, filter .15s;
}
.nb:hover{ color: var(--ink-0); border-color: var(--cy-deep); }
.nb.lang{ letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; padding: 9px 13px; }
.nb.brand{ background: var(--cy); border-color: var(--cy); color: oklch(0.15 0.02 220); font-weight: 650; box-shadow: var(--glow-cy); }
.nb.brand:hover{ filter: brightness(1.08); color: oklch(0.15 0.02 220); }
.nb .arr{ font-family: var(--mono); }
@media (max-width: 820px){ .site-nav .nav-links{ display: none; } .site-nav .nav-cta .nb:not(.brand){ display: none; } }

/* топбар dark.css ховаємо (замінено на site-nav) */
.topbar{ display: none !important; }
main, .footer{ position: relative; z-index: 1; }

/* ── STICKY-CTA (плаваючий блок) ── */
.sticky-cta{
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 150%);
  display: flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: oklch(0.2 0.012 220 / 0.55);
  backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid oklch(1 0 0 / 0.13);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.16), 0 22px 60px -16px oklch(0 0 0 / 0.85), 0 0 50px -14px oklch(0.85 0.145 195 / 0.35);
  opacity: 0; pointer-events: none; max-width: calc(100vw - 24px);
  transition: transform .55s cubic-bezier(.2,.9,.3,1.05), opacity .4s;
}
.sticky-cta.show{ transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.sticky-cta .logo{ display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink-0); white-space: nowrap; }
.sticky-cta .logo .y{ color: var(--cy); display: grid; place-items: center; }
.sticky-cta .logo .y svg{ display: block; }
.sticky-cta .tag{ font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.sticky-cta .tag b{ color: var(--ink-0); font-weight: 600; }
.sticky-cta .cta{
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 10px 18px; min-height: 42px; border-radius: 999px;
  background: var(--cy); color: oklch(0.15 0.02 220); font-weight: 650; font-size: 14px;
  text-decoration: none; cursor: pointer; box-shadow: var(--glow-cy); transition: filter .15s;
}
.sticky-cta .cta:hover{ filter: brightness(1.08); }
.sticky-cta .cta .ar{ font-family: var(--mono); }
@media (max-width: 640px){ .sticky-cta .tag{ display: none; } }

/* ── BLOG / Журнал ── */
.blog-sec{ position: relative; z-index: 1; padding: clamp(60px, 8vw, 100px) 0; }
.blog-sec .wrap{ max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.blog-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.blog-head .htext{ max-width: 40em; }
.blog-head h2{ font-weight: 750; font-size: clamp(28px, 5vw, 46px); line-height: 1.06; letter-spacing: -0.03em; }
.blog-head h2 em{ font-style: normal; color: var(--cy); }
.blog-head p{ margin-top: 12px; font-size: 16px; color: var(--ink-2); text-wrap: pretty; }
.blog-head .all{ font-family: var(--mono); font-size: 13px; color: var(--ink-2); text-decoration: none; letter-spacing: 0.04em; white-space: nowrap; }
.blog-head .all:hover{ color: var(--cy); }
.blog-grid{ display: grid; gap: 14px; grid-template-columns: 1fr; }
.blog-card{
  display: flex; flex-direction: column; gap: 12px;
  background: color-mix(in oklch, var(--bg-1) 70%, transparent);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 22px; text-decoration: none;
  transition: border-color .18s, transform .25s;
}
.blog-card:hover{ border-color: color-mix(in oklch, var(--cy) 30%, var(--line)); transform: translateY(-3px); }
.blog-cat{ align-self: flex-start; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cy);
  border: 1px solid color-mix(in oklch, var(--cy) 30%, transparent); border-radius: 6px; padding: 3px 9px; }
.blog-card h3{ font-size: 17px; font-weight: 650; line-height: 1.32; letter-spacing: -0.01em; color: var(--ink-0); text-wrap: pretty; }
.blog-card .meta{ margin-top: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
@media (min-width: 720px){ .blog-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px){ .blog-grid{ grid-template-columns: repeat(4, 1fr); } }
