/* GEO-страница: вращающаяся орбита в первом экране + блок «Как работает GEO» */

/* ---------- Орбита: узлы летают по кольцам, кольца пунктирные — вращение видно ---------- */
.geo-orbit__ring--one { border-style: dashed; border-color: rgba(255,255,255,.32); }
.geo-orbit__ring--two { border-style: dashed; border-color: rgba(12,174,184,.6); }
.geo-orbit__node { left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; margin: -7px 0 0 -7px; transform: rotate(var(--a)) translateX(var(--r)); }
.geo-orbit__node--one { --a: 200deg; --r: 195px; }
.geo-orbit__node--two { --a: 10deg; --r: 137px; }
.geo-orbit__node--three { --a: 100deg; --r: 195px; }
@media (prefers-reduced-motion: no-preference) {
  .geo-orbit__node--one { animation: geoOrbit 28s linear infinite; }
  .geo-orbit__node--two { animation: geoOrbit 19s linear infinite reverse; }
  .geo-orbit__node--three { animation: geoOrbit 28s linear infinite; }
  @keyframes geoOrbit { from { transform: rotate(var(--a)) translateX(var(--r)); } to { transform: rotate(calc(var(--a) + 360deg)) translateX(var(--r)); } }
  .geo-orbit__core::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(146,113,247,.5); animation: geoRipple 3.6s ease-out infinite; }
  @keyframes geoRipple { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
}

/* ---------- Блок «Как работает GEO» ---------- */
.geo-how { padding: 120px 0 0; background: #fff; color: #1C1C1C; }
.geo-how + .geo-trend { padding-top: 96px; }
.geo-how__head { max-width: 760px; margin-bottom: 32px; }
.geo-how__kicker { color: #6E50E0; }
.geo-how h2 { font-weight: 700; font-size: 56px; line-height: 60px; letter-spacing: -0.04em; margin: 0 0 20px; }
.geo-how__head p { font-size: 20px; line-height: 30px; color: #6b6b75; margin: 0; }
.geo-how__switch { display: inline-flex; padding: 4px; margin-bottom: 20px; border-radius: 14px; background: #F6F5F8; }
.geo-how__mode { border: 0; background: none; padding: 10px 20px; border-radius: 10px; font: inherit; font-size: 16px; color: #8D8D8D; cursor: pointer; transition: background-color .25s, color .25s; }
.geo-how__mode.is-active { background: #fff; color: #1C1C1C; box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.geo-how__stage { position: relative; border-radius: 32px; padding: 32px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, rgba(110,80,224,.55), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(12,174,184,.35), transparent 60%), #0B0D2A; }
.geo-how__steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: none; }
.geo-how__step { position: relative; flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px 16px 18px; border-radius: 16px; background: rgba(255,255,255,.06); font-size: 17px; line-height: 22px; color: rgba(255,255,255,.55); overflow: hidden; transition: color .4s, background-color .4s; }
.geo-how__step span { flex: 0 0 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); font-size: 14px; font-weight: 500; transition: background .4s; }
.geo-how__step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #9271F7, #0CAEB8); transform: scaleX(0); transform-origin: left; }
.geo-how__step.is-active, .geo-how__step.is-done { color: #fff; background: rgba(255,255,255,.1); }
.geo-how__step.is-active span, .geo-how__step.is-done span { background: linear-gradient(118.75deg, #9271F7, #6E50E0); }
.geo-how__step.is-done::after { transform: scaleX(1); }
.geo-how__step.is-active::after { animation: geoBar var(--dur, 3s) linear forwards; }
@keyframes geoBar { to { transform: scaleX(1); } }

.geo-how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }

/* чат */
.geo-chat { border-radius: 24px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); min-height: 320px; display: flex; flex-direction: column; }
.geo-chat__bar { display: flex; align-items: center; gap: 6px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; color: rgba(255,255,255,.6); }
.geo-chat__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); }
.geo-chat__bar b { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin-left: 10px; color: rgba(255,255,255,.8); }
.geo-chat__bar svg { width: 16px; height: 16px; fill: #5BF5A0; }
.geo-chat__body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 24px 20px; }
.geo-msg { max-width: 90%; padding: 16px 20px; border-radius: 20px; font-size: 19px; line-height: 28px; }
.geo-msg--user { align-self: flex-end; background: linear-gradient(118.75deg, #9271F7 0%, #6E50E0 100%); border-bottom-right-radius: 6px; min-height: 60px; }
.geo-msg--ai { align-self: flex-start; background: rgba(255,255,255,.1); border-bottom-left-radius: 6px; }
.geo-msg mark { background: rgba(91,245,160,.18); color: #5BF5A0; padding: 0 4px; border-radius: 6px; }
.geo-answer--off { display: none; }
.geo-how__stage.is-off .geo-answer--on { display: none; }
.geo-how__stage.is-off .geo-answer--off { display: inline; }
.geo-cites { display: flex; gap: 6px; margin-top: 10px; }
.geo-cites em { font-style: normal; font-size: 13px; line-height: 18px; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.geo-cites em::before { content: "↗ "; opacity: .6; }
.geo-how__stage.is-off .geo-cites { display: none; }
.geo-dots { display: none; gap: 5px; padding: 6px 0; }
.geo-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.7); }

/* карта источников */
.geo-map { position: relative; aspect-ratio: 1 / .84; }
.geo-map__lines--m { display: none; }
.geo-map__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.geo-map__lines line { stroke: rgba(255,255,255,.14); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; }
.geo-how__stage.is-on .geo-map.is-lit .geo-map__lines line { stroke: rgba(91,245,160,.55); stroke-dasharray: none; }
.geo-map__core { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; line-height: 22px;
  background: linear-gradient(135deg, #9271F7, #0CAEB8); box-shadow: 0 0 0 10px rgba(146,113,247,.12), 0 20px 60px rgba(110,80,224,.55); }
.geo-src { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 196px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; text-align: left; background: #15183A; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: box-shadow .4s, background-color .4s, opacity .4s; }
.geo-src b { display: block; font-weight: 500; font-size: 17px; line-height: 22px; white-space: nowrap; }
.geo-src small { display: block; font-size: 13px; line-height: 18px; margin-top: 2px; color: rgba(255,255,255,.5); white-space: nowrap; }
.geo-src__ic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); transition: background .4s, color .4s; }
.geo-src__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.geo-src__t { min-width: 0; }
.geo-map__core svg { width: 28px; height: 28px; fill: #fff; }
.geo-src.is-lit .geo-src__ic { background: rgba(91,245,160,.14); color: #5BF5A0; }
.geo-how__stage.is-off .geo-src.is-lit .geo-src__ic { background: rgba(255,120,120,.12); color: #FF8C8C; }
.geo-src__off { display: none !important; }
.geo-how__stage.is-off .geo-src__on { display: none !important; }
.geo-how__stage.is-off .geo-src__off { display: block !important; }
.geo-src.is-lit { box-shadow: inset 0 0 0 1px rgba(91,245,160,.7), 0 0 24px rgba(91,245,160,.25); }
.geo-src.is-lit .geo-src__on { color: #5BF5A0; }
.geo-how__stage.is-off .geo-src.is-lit { box-shadow: inset 0 0 0 1px rgba(255,120,120,.55); }
.geo-how__stage.is-off .geo-src.is-lit .geo-src__off { color: #FF8C8C; }
.geo-how__note { margin: 24px 0 0; font-size: 18px; line-height: 28px; color: #8D8D8D; max-width: 760px; }

@media (prefers-reduced-motion: no-preference) {
  .geo-how.is-running .geo-msg { transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1); }
  .geo-how.is-running .geo-msg.is-hidden { opacity: 0; transform: translateY(10px); }
  .geo-how.is-running .geo-dots.is-on { display: inline-flex; }
  .geo-dots i { animation: geoDot 1.1s ease-in-out infinite; }
  .geo-dots i:nth-child(2) { animation-delay: .15s; } .geo-dots i:nth-child(3) { animation-delay: .3s; }
  @keyframes geoDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
  .geo-how.is-running .geo-msg--ai.is-thinking .geo-answer, .geo-how.is-running .geo-msg--ai.is-thinking .geo-cites { display: none; }
  .geo-how.is-running .geo-cites em { opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
  .geo-how.is-running .geo-cites.is-shown em { opacity: 1; transform: none; }
  .geo-how.is-running .geo-cites.is-shown em:nth-child(2) { transition-delay: .12s; } .geo-how.is-running .geo-cites.is-shown em:nth-child(3) { transition-delay: .24s; }
  .geo-how.is-running .geo-map__lines line { stroke-dashoffset: 0; }
  .geo-how.is-running .geo-map.is-scan .geo-map__lines line { animation: geoFlow 1s linear infinite; }
  @keyframes geoFlow { to { stroke-dashoffset: -20; } }
  .geo-how.is-running .geo-map.is-scan .geo-map__core { animation: geoCore 1.2s ease-in-out infinite; }
  @keyframes geoCore { 50% { box-shadow: 0 0 0 18px rgba(146,113,247,.08), 0 20px 60px rgba(110,80,224,.55); } }
  .geo-type.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: geoCaret .8s steps(1) infinite; }
  @keyframes geoCaret { 50% { opacity: 0; } }
}

@media (max-width: 1050px) {
  .geo-how { padding: 72px 0 0; }
  .geo-how + .geo-trend { padding-top: 64px; }
  .geo-how h2 { font-size: 36px; line-height: 40px; }
  .geo-how__head p { font-size: 17px; line-height: 26px; }
  .geo-how__grid { grid-template-columns: 1fr; gap: 24px; }
  .geo-how__stage { padding: 20px; border-radius: 24px; }
  .geo-map { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .geo-how__steps { flex-direction: column; gap: 6px; }
  .geo-how__step { padding: 10px 12px 13px; font-size: 15px; }
  .geo-chat { min-height: 290px; }
  .geo-msg { font-size: 16px; line-height: 24px; padding: 12px 16px; }
  .geo-map { aspect-ratio: 1 / 1.2; }
  .geo-map__lines--d { display: none; } .geo-map__lines--m { display: block; }
  .geo-src { top: var(--my); }
  .geo-src { width: 44%; gap: 8px; padding: 8px 10px; border-radius: 14px; left: clamp(23%, var(--x), 77%); }
  .geo-src__ic { flex-basis: 28px; height: 28px; border-radius: 9px; }
  .geo-src__ic svg { width: 16px; height: 16px; }
  .geo-src b { font-size: 13px; line-height: 17px; white-space: normal; }
  .geo-src small { font-size: 11px; line-height: 14px; white-space: normal; }
  .geo-map__core { top: 38%; width: 72px; height: 72px; margin: -36px 0 0 -36px; font-size: 15px; line-height: 16px; }
  .geo-map__core svg { width: 20px; height: 20px; }
}
