/* ============================================================
   ui.css — шапка, hero-композиции, постеры, футер
   ============================================================ */

/* ---------- шапка ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--line);
  padding: 11px 0;
}
.hdr-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-badge {
  background: #fff; border-radius: 13px;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.logo-badge img { width: 78%; height: 78%; object-fit: contain; }
.logo-badge.sm { width: 38px; height: 38px; border-radius: 11px; }
.logo-word { font-weight: 800; font-size: 1.18rem; letter-spacing: .01em; color: var(--text); }
.logo-word b { color: var(--accent); font-weight: 800; }

.nav-desktop { display: flex; gap: 26px; }
.nav-desktop a { color: var(--text-2); font-size: .95rem; transition: color .3s var(--ease); }
.nav-desktop a:hover { color: var(--text); }

.hdr-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 13px; color: var(--muted);
  font-size: .8rem; font-weight: 600; cursor: pointer; display: inline-flex; gap: 5px;
  transition: border-color .3s var(--ease);
}
.lang:hover { border-color: var(--line-strong); }
.lang .on { color: var(--text); }
.lang .sep { opacity: .5; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

.burger { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
.burger.x span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 28px 24px;
  background: rgba(0, 0, 0, .8); backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.show { display: flex; }
.mobile-menu a { padding: 13px 4px; color: var(--text); font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: 0; }

/* ---------- hero — общее ---------- */
.hero { position: relative; overflow: hidden; padding: 168px 0 96px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.hero-glow.g1 { width: 620px; height: 620px; top: -200px; right: -120px; background: radial-gradient(circle, rgba(var(--accent-rgb), .22), transparent 65%); }
.hero-glow.g2 { width: 560px; height: 560px; bottom: -220px; left: -160px; background: radial-gradient(circle, rgba(70, 110, 180, .18), transparent 65%); }
.hero-inner { position: relative; z-index: 2; }

.hero-title { margin-top: 22px; }
.hero-lead { margin-top: 26px; max-width: 560px; }
.hero-btns { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 52px; flex-wrap: wrap; }
.hero-stat .num { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.hero-stat .lbl { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* ---------- hero A: раскладка ---------- */
.hero-split .hero-media { display: flex; justify-content: flex-end; }
.portrait-card {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 4 / 5;
  border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 50px 110px rgba(0, 0, 0, .65);
}
.portrait-card img { position: absolute; inset: -9% 0; width: 100%; height: 118%; object-fit: cover; object-position: center 18%; will-change: transform; }
.name-plate {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: rgba(10, 10, 12, .55); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px 20px; z-index: 2;
}
.np-name { font-weight: 700; font-size: 1.1rem; }
.np-role { color: var(--muted); font-size: .9rem; margin-top: 3px; }

/* ---------- hero B: силуэт ---------- */
.hero-cutout { min-height: 92vh; padding: 190px 0 70px; }
.hero-cutout > .container { width: 100%; }
.hero-cutout-inner { position: relative; z-index: 2; }
.hero-cutout .hero-copy { max-width: 580px; }
.hero-cutout .hero-lead { max-width: 500px; }
.cutout-wrap { position: absolute; top: 0; bottom: 0; right: max(28px, calc((100vw - var(--container)) / 2)); width: 44%; max-width: 580px; display: flex; align-items: flex-end; justify-content: center; z-index: 1; pointer-events: none; }
.cutout-img { height: 92%; max-height: 1040px; width: auto; object-fit: contain; object-position: bottom; filter: drop-shadow(0 30px 70px rgba(0, 0, 0, .7)); -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 99%); mask-image: linear-gradient(180deg, #000 78%, transparent 99%); will-change: transform; }

/* ---------- hero C: кинокадр ---------- */
.hero-cinematic { min-height: 92vh; display: flex; align-items: flex-start; padding: 0; }
.cine-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cine-bg img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: center 22%; will-change: transform; }
.cine-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .78) 36%, rgba(0, 0, 0, .2) 72%, transparent 100%), linear-gradient(0deg, #000 1%, transparent 38%), linear-gradient(180deg, rgba(0,0,0,.7) 0%, transparent 22%); }
.cine-inner { position: relative; z-index: 2; padding: 168px 0 90px; width: 100%; }
.hero-cinematic .hero-copy { max-width: 640px; }

/* ---------- метрики (полоса) ---------- */
.stat .num { color: var(--text); }
.accent-num { color: var(--text); }
.stat .lbl.sub { color: var(--muted); opacity: .72; font-size: .85rem; margin-top: 4px; }

/* ---------- тезис ---------- */
.thesis { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.thesis-copy h2 { margin-top: 16px; }
.thesis-copy .lead { margin-top: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; margin-top: 26px; transition: gap .3s var(--ease), color .3s var(--ease); }
.text-link:hover { gap: 13px; color: var(--accent-2); }

/* ---------- инструменты ---------- */
.tools-grid .tool-card h3 { margin-top: 22px; }
.tools-grid .tool-card p { margin-top: 10px; }

/* ---------- постеры ---------- */
.sec-head { max-width: 640px; }
.poster-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.poster { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease); }
.poster:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }

.poster-big { min-height: 400px; }
.poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.poster-big:hover .poster-img { transform: scale(1.06); }
.poster-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .9) 6%, rgba(0, 0, 0, .35) 48%, rgba(0, 0, 0, .1) 100%); }
.poster-body { position: relative; z-index: 2; margin-top: auto; padding: 34px; }
.poster-body h3 { margin-top: 12px; font-size: 1.55rem; }
.poster-body p { margin-top: 10px; max-width: 90%; }
.poster-go { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-top: 22px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .06); transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.poster:hover .poster-go { background: var(--accent); color: var(--accent-on); border-color: transparent; transform: translateX(4px); }

.play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 12, .5); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); color: #fff; padding-left: 4px; transition: transform .4s var(--ease), background .4s var(--ease); }
.poster-big:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); color: var(--accent-on); border-color: transparent; }

.poster-glass { background: var(--surface); backdrop-filter: blur(12px); padding: 34px; min-height: 230px; }
.poster-glass:hover { background: var(--surface-hover); }
.poster-glass .ic { margin-bottom: 22px; }
.poster-glass h3 { margin-top: 12px; font-size: 1.4rem; }
.poster-glass p { margin-top: 10px; flex: 1; }
.poster-glass .eyebrow { order: -1; }

/* ---------- CTA ---------- */
.cta-btns { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ---------- футер ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-h { font-weight: 700; margin-bottom: 18px; font-size: .95rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-2); font-size: .95rem; transition: color .3s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .88rem; flex-wrap: wrap; gap: 10px; }

/* ---------- адаптив ---------- */
@media (max-width: 920px) {
  .nav-desktop { display: none; }
  .burger { display: block; }
  .hero { padding-top: 130px; }
  .hero-split .two-col { grid-template-columns: 1fr; }
  .hero-split .hero-media { justify-content: flex-start; margin-top: 20px; }
  .portrait-card { max-width: 380px; }
  .thesis { grid-template-columns: 1fr; gap: 40px; }
  .poster-feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cutout-wrap { width: 42%; opacity: .9; }
  .hero-cutout .hero-lead { max-width: 100%; }
}
@media (max-width: 680px) {
  .hdr-actions .btn-sm { display: none; }
  .hero-stats { gap: 28px; }
  .hero-stat .num { font-size: 1.9rem; }
  .cutout-wrap { position: relative; width: 100%; max-width: 320px; margin: 30px auto 0; right: auto; height: 380px; opacity: 1; }
  .cutout-img { height: 100%; }
  .hero-cutout { min-height: auto; display: block; }
  .poster-row.grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .poster-body { padding: 26px; }
}
