/* Новая главная: страница личного бренда Сергея Никишова.
   Дополняет styles.css: первый экран про Сергея, три карточки «Чем занимаюсь», раздел «Эффективность» с анимацией. */

/* ===== первый экран: Сергей (строгий, чёрно-белый) ===== */
.ph2 { position: relative; overflow: hidden; background: #0b0d10; color: #fff; padding: clamp(28px, 4.5vw, 56px) 0 0; }
.ph2::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(-45deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 72% 85% at 74% 38%, #000 0, transparent 78%); mask-image: radial-gradient(ellipse 72% 85% at 74% 38%, #000 0, transparent 78%); }
.ph2-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 0 clamp(24px, 5vw, 72px); align-items: end; }
.ph2-copy { align-self: center; padding-bottom: clamp(20px, 3vw, 44px); }
.ph2-top { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(22px, 3.2vw, 38px); }
.ph2-znak { flex: none; width: clamp(76px, 8vw, 100px); height: auto; color: #fff; }
.ph2-roles { display: grid; grid-template-columns: auto auto; gap: 8px 26px; margin: 0; padding: 2px 0 2px 20px; list-style: none; border-left: 1px solid rgba(255, 255, 255, .3);
  font-size: 13px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--hero-steel); }
.ph2-roles li { white-space: nowrap; }
.ph2 h1 { margin: 0; font-size: clamp(52px, 8.4vw, 112px); line-height: .94; font-weight: 800; letter-spacing: -.055em; color: #fff; }
.ph2-mission { max-width: 470px; margin: clamp(16px, 2vw, 24px) 0 0; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.32; font-weight: 500; letter-spacing: -.02em; color: #dfe5ee; }
.ph2-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 34px); }
.ph2-cta .btn { min-height: 54px; padding: 14px 28px; font-size: 18px; }
.ph2-photo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 500px; }
.ph2-photo::before { content: ""; position: absolute; z-index: 0; left: -26%; width: 118%; top: 2%; aspect-ratio: 1; opacity: .24;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 3 197 100 100 197 3 100Z' fill='none' stroke='white' stroke-width='1.1'/%3E%3Cpath d='M100 30 170 100 100 170 30 100Z' fill='none' stroke='white' stroke-width='.7' opacity='.55'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph2-photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28%), linear-gradient(to top, transparent 0, #000 24%), linear-gradient(to bottom, transparent 0, #000 12%); -webkit-mask-composite: source-in, source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 28%), linear-gradient(to top, transparent 0, #000 24%), linear-gradient(to bottom, transparent 0, #000 12%); mask-composite: intersect, intersect; }
.ph2-facts { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .2); }
.ph2-facts li { min-width: 0; }
.ph2-facts li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.ph2-facts a { display: block; height: 100%; padding: 22px 22px 28px; color: #fff; text-decoration: none; }
.ph2-facts li:first-child a { padding-left: 0; }
.ph2-facts i { display: block; margin-bottom: 12px; font-style: normal; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: .14em; color: var(--hero-steel); }
.ph2-facts i.bars { display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; height: 27px; margin-bottom: 14px; }
.ph2-facts i.bars em { display: block; width: 30px; height: 3px; border-radius: 2px; background: #fff; }
.ph2-facts b { display: block; font-size: 19px; font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
.ph2-facts span { display: block; margin-top: 5px; font-size: 15px; line-height: 1.4; color: var(--hero-muted); }
.ph2-facts a:hover b { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; }
.ph2 a:focus-visible { outline-color: #fff; }
@media (max-width: 900px) {
  .ph2-grid { grid-template-columns: minmax(0, 1fr); }
  .ph2-copy { padding-bottom: 8px; }
  .ph2-photo { justify-self: center; max-width: 420px; margin-top: 22px; }
  .ph2-photo::before { left: -12%; right: -12%; }
  .ph2-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph2-facts a, .ph2-facts li:first-child a { padding: 18px 16px 22px 0; }
  .ph2-facts li:nth-child(odd) { border-left: 0; }
  .ph2-facts li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 560px) {
  .ph2-top { gap: 14px; }
  .ph2-roles { padding-left: 14px; gap: 7px 18px; font-size: 12px; letter-spacing: .12em; }
  .ph2-cta .btn { width: 100%; padding-left: 18px; padding-right: 18px; font-size: 17px; }
  .ph2-facts { grid-template-columns: minmax(0, 1fr); }
  .ph2-facts li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* ===== «Чем занимаюсь»: три карточки ===== */
.do-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.do-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px 28px 26px; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease; }
.do-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.do-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 16px; background: var(--hero-bg); }
.do-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.do-card .num { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.do-card h3 { margin: 2px 0 4px; font-size: 24px; letter-spacing: -.025em; }
.do-card p { margin: 0; color: var(--muted); font-size: 16px; }
.do-card .go { margin-top: auto; padding-top: 14px; font-weight: 500; color: var(--ink); }
.do-card .go::after { content: " ›"; }
.do-card .go-row { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 14px; }
.do-card .go-row .go { margin: 0; padding: 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.do-card .go-row .go:hover { text-decoration: underline; text-underline-offset: 3px; }
.do-quote { max-width: 780px; margin: clamp(32px, 5vw, 56px) auto 0; padding: 0; text-align: center; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.do-quote cite { display: block; margin-top: 14px; font-size: 15px; font-style: normal; font-weight: 600; color: var(--muted); }
.do-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 16px; }
@media (max-width: 900px) { .do-grid { grid-template-columns: minmax(0, 1fr); } }

/* ===== «Эффективность с ИИ»: раздел с анимацией ===== */
.eff { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); padding: clamp(56px, 8vw, 104px) 0; }
.eff a:focus-visible { outline-color: #fff; }
.eff-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "copy scene" "steps scene"; gap: clamp(20px, 3vw, 36px) clamp(24px, 5vw, 64px); align-items: start; }
.eff-copy { grid-area: copy; }
.eff-tag { display: block; margin-bottom: 14px; font-size: 15px; font-weight: 600; color: var(--hero-steel); }
.eff h2 { margin: 0 0 16px; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.1; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.eff-lead { margin: 0; max-width: 520px; font-size: clamp(18px, 2vw, 21px); line-height: 1.42; color: #dfe5ee; }
.eff-lead a { color: #fff; font-weight: 600; text-decoration-color: var(--hero-steel); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.eff-steps { grid-area: steps; display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hero-line); }
.eff-steps li + li { border-top: 1px solid var(--hero-line); }
.eff-steps a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 14px; padding: 18px 0; color: #fff; text-decoration: none; }
.eff-steps i { grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(157, 179, 208, .55); border-radius: 50%; font-style: normal; font-size: 14px; font-weight: 600; color: var(--hero-steel); }
.eff-steps b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.eff-steps b::after { content: "›"; display: inline-block; margin-left: 8px; color: var(--hero-steel); transition: transform .2s ease; }
.eff-steps a:hover b::after { transform: translateX(4px); }
.eff-steps span { font-size: 15px; line-height: 1.4; color: var(--hero-muted); }
.eff-scene { grid-area: scene; margin: 0; }
.eff-svg { display: block; width: 100%; height: auto; overflow: visible; }
.eff-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.eff-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--hero-line); border-radius: 980px; background: rgba(255, 255, 255, .04); font-size: 15px; font-weight: 500; color: #fff; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.eff-chip:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.eff-chip i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 700; line-height: 1; }
.eff-chip .c-rub { background: #f0b93a; color: #6b4300; }
.eff-chip .c-pct { background: #6a74c9; color: #fff; }
.eff-chip .c-doc { background: #cfd8e4; color: #1f2a3a; }
@media (max-width: 860px) {
  .eff-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "scene" "steps"; }
}

/* сцена: человек и ИИ-помощник */
.eff-svg a { cursor: pointer; text-decoration: none; }
.eff-svg a text { text-decoration: none; }
.eff-svg .ef-ring { opacity: 0; stroke: #fff; stroke-width: 2; fill: none; }
.eff-svg a:focus-visible { outline: none; }
.eff-svg a:focus-visible .ef-ring, .eff-svg a:hover .ef-ring { opacity: .9; }
.eff-svg .ef-glyph { font: 700 30px/1 var(--font); text-anchor: middle; }
.eff-svg .ef-ai { font: 700 19px/1 var(--font); text-anchor: middle; fill: #1c8aa8; letter-spacing: .02em; }
.eff-svg .ef-rl { fill: none; stroke: #dfe5ee; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.eff-svg .ef-rl-glow { fill: none; stroke: #9db3d0; stroke-width: 12; stroke-opacity: .16; stroke-linecap: round; stroke-linejoin: round; }
.eff-svg .ef-rh { fill: none; stroke: rgba(157, 179, 208, .28); stroke-width: 1.5; stroke-linejoin: round; }
.eff-svg .ef-rh-axis { fill: none; stroke: rgba(157, 179, 208, .22); stroke-width: 1.2; stroke-dasharray: 3 8; }
.eff-svg .ef-rh-dot { fill: rgba(157, 179, 208, .55); }
.eff-svg .ef-rh-t { font: 600 13px/1 var(--font); text-anchor: middle; fill: rgba(157, 179, 208, .7); }
.eff-svg .ef-spark { fill: #bcd2f0; opacity: .5; }
.eff-svg .ef-orbit { fill: none; stroke: rgba(157, 179, 208, .2); stroke-width: 1.2; stroke-dasharray: 2 7; }
.eff-svg .ef-bob, .eff-svg .ef-eyes, .eff-svg .ef-ant-tip, .eff-svg .ef-thr, .eff-svg .ef-halo, .eff-svg .ef-cone, .eff-svg .ef-spark, .eff-svg .ef-rh-dot,
.eff-heart .hb-in, .eff-heart .hb-glow { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .eff-svg .ef-bob { animation: ef-bob 3.8s ease-in-out infinite; }
  .eff-svg .ef-eyes { animation: ef-blink 5.4s infinite; }
  .eff-svg .ef-ant-tip { animation: ef-pulse 1.9s ease-in-out infinite; }
  .eff-svg .ef-thr { animation: ef-flick .55s ease-in-out infinite alternate; }
  .eff-svg .ef-halo { animation: ef-breathe 5.5s ease-in-out infinite; }
  .eff-svg .ef-cone { animation: ef-breathe 3.4s ease-in-out infinite; }
  .eff-svg .ef-spark { animation: ef-tw 4.4s ease-in-out infinite; }
  .eff-svg .ef-rh-dot { animation: ef-dot 6s ease-in-out infinite; }
  .eff-svg .ef-rh-dot:nth-of-type(2) { animation-delay: 1.5s; } .eff-svg .ef-rh-dot:nth-of-type(3) { animation-delay: 3s; } .eff-svg .ef-rh-dot:nth-of-type(4) { animation-delay: 4.5s; }
  .eff-heart .hb-in { animation: hb-beat 1.5s ease-in-out infinite; }
  .eff-heart .hb-glow { animation: hb-glow 1.5s ease-in-out infinite; }
  .eff-svg.is-paused *, .eff-svg.is-paused { animation-play-state: paused !important; }
}
@keyframes ef-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ef-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes ef-pulse { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes ef-flick { from { opacity: .55; transform: scale(.85, .8); } to { opacity: 1; transform: scale(1.1, 1.15); } }
@keyframes ef-breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes ef-tw { 0%, 100% { opacity: .12; transform: scale(.6); } 50% { opacity: .85; transform: scale(1.15); } }
@keyframes ef-dot { 0%, 78%, 100% { opacity: .5; transform: scale(1); } 88% { opacity: 1; transform: scale(1.7); } }

/* ===== знаки: ромб, сердце, ключ ===== */
.zan { display: block; width: 100%; height: auto; overflow: visible; color: #fff; }
.zan.on-light { color: var(--ink); }
.zan .zan-d, .zan .zan-h, .zan .zan-k { transform-box: view-box; transform-origin: 0 0; }
.zan .zan-pulse, .zan .zan-hin { transform-box: fill-box; transform-origin: center; }
.zan .zan-lab { font: 600 15px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; text-anchor: middle; fill: currentColor; opacity: 0; }
.zan .zan-glow { opacity: 0; }
.zan.on-light .zan-glow { display: none; }
.zan .zan-dot, .zan .zan-hout, .zan .zan-bow { opacity: 0; }
.zan .zan-hin { transform: scale(1); }
.ph2-top .zan { flex: none; width: clamp(230px, 27vw, 330px); }
.ph2-top .zan-labs { display: none; }
.ph2-roles { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 2px 20px; }
@media (max-width: 560px) { .ph2-top { flex-wrap: wrap; } .ph2-top .zan { width: min(100%, 250px); } .ph2-roles { gap: 7px; } .ph2-roles { padding-left: 14px; } }
@media (prefers-reduced-motion: no-preference) {
  .zan .zan-d { animation: zan-d 7.5s cubic-bezier(.65, 0, .25, 1) infinite; }
  .zan .zan-h { animation: zan-h 7.5s cubic-bezier(.65, 0, .25, 1) infinite; }
  .zan .zan-k { animation: zan-k 7.5s cubic-bezier(.65, 0, .25, 1) infinite; }
  .zan .zan-dot { animation: zan-dot 7.5s ease-in-out infinite; }
  .zan .zan-hout { animation: zan-hout 7.5s ease-in-out infinite; }
  .zan .zan-bow { animation: zan-bow 7.5s ease-in-out infinite; }
  .zan .zan-hin { animation: zan-hin 7.5s cubic-bezier(.65, 0, .25, 1) infinite; }
  .zan .zan-lab { animation: zan-lab 7.5s ease-in-out infinite; }
  .zan .zan-glow { animation: zan-glow 7.5s ease-in-out infinite; }
  .zan .zan-pulse, .zk-pulse { animation: zan-beat 1.6s ease-in-out infinite; }
  .zan.is-paused *, .zan.is-paused { animation-play-state: paused !important; }
}
@keyframes zan-d { 0%, 8% { transform: translate(80px, 100px) scale(.8); } 28%, 66% { transform: translate(240px, 80px) scale(1.24); } 86%, 100% { transform: translate(80px, 100px) scale(.8); } }
@keyframes zan-h { 0%, 8% { transform: translate(240px, 100px) scale(.95); } 28%, 66% { transform: translate(240px, 81px) scale(.66); } 86%, 100% { transform: translate(240px, 100px) scale(.95); } }
@keyframes zan-k { 0%, 8% { transform: translate(400px, 106px) scale(.9); } 28%, 66% { transform: translate(240px, 162px) scale(1); } 86%, 100% { transform: translate(400px, 106px) scale(.9); } }
@keyframes zan-dot { 0%, 14% { opacity: 1; } 22%, 72% { opacity: 0; } 80%, 100% { opacity: 1; } }
@keyframes zan-hout { 0%, 14% { opacity: 1; } 24%, 70% { opacity: 0; } 82%, 100% { opacity: 1; } }
@keyframes zan-bow { 0%, 12% { opacity: 1; } 24%, 70% { opacity: 0; } 82%, 100% { opacity: 1; } }
@keyframes zan-hin { 0%, 10% { transform: scale(.72); } 28%, 66% { transform: scale(1); } 84%, 100% { transform: scale(.72); } }
@keyframes zan-lab { 0%, 5.7% { opacity: 1; } 12%, 80% { opacity: 0; } 88.8%, 100% { opacity: 1; } }
@keyframes zan-glow { 0%, 22% { opacity: 0; } 34.3%, 61.8% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes zan-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.09); } 28% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .zan .zan-hin { transform: scale(1); }
}

/* раздел «Три знака» */
.zk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.zk-copy h2 { margin: 0 0 14px; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.zk-copy .lead { max-width: 560px; }
.zk-list { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.zk-list li + li { border-top: 1px solid var(--line); }
.zk-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 18px; align-items: start; padding: 20px 0; color: var(--ink); text-decoration: none; }
.zk-list a:hover b { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.zk-list i { display: block; margin-bottom: 4px; font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tint); }
.zk-list b { display: block; font-size: 20px; line-height: 1.22; letter-spacing: -.02em; }
.zk-list span { display: block; margin-top: 5px; font-size: 16px; line-height: 1.42; color: var(--muted); }
.zk-ico { display: block; width: 52px; height: 52px; color: var(--ink); }
.zk-fig { margin: 0; }
.zk-fig figcaption { margin-top: 14px; text-align: center; font-size: 17px; font-weight: 500; color: var(--ink); }
.zk-head { width: 56px; height: 56px; margin: 0 auto 14px; }
.rhomb-wrap, #rhomb .zk-head { color: var(--ink); }
.genid .zk-head { margin: 0 0 22px; color: #fff; }
.zk-eb { display: inline-flex; align-items: center; gap: 8px; }
.zk-sm { width: 26px; height: 26px; }
.zk-pulse { transform-box: fill-box; transform-origin: center; }
@media (max-width: 900px) { .zk-grid { grid-template-columns: minmax(0, 1fr); } .zk-fig { order: -1; } }
