/* softjet.ru/ai-agent — «Первый ИИ-агент за неделю». Сначала телефон, широкие экраны — надстройкой. */
html { overflow-x: clip; }
body.ag { background: #121316; color: var(--text); overflow-x: clip; }
.ag-sec, .ag-hero, .ag-days { overflow-x: clip; }
.ag-h2 { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: .01em; margin: 0 0 26px; text-transform: uppercase; }

/* ---------- 1. Hero ---------- */
.ag-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ag-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform-origin: 70% 70%; animation: ag-kb 26s ease-in-out infinite alternate; }
.ag-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,19,22,.35) 0%, rgba(18,19,22,.15) 35%, rgba(18,19,22,.75) 80%, #121316 100%); }
@keyframes ag-kb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.ag-hero { position: relative; padding: 56px 0 48px; overflow: hidden; isolation: isolate; }
.ag-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  animation: ag-grid 18s linear infinite; }
.ag-sky i { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(80px); opacity: .22; mix-blend-mode: screen; animation: ag-orb 16s ease-in-out infinite alternate; }
.ag-sky i:nth-child(1) { background: var(--sky); left: -140px; top: -80px; }
.ag-sky i:nth-child(2) { background: var(--mint); right: -160px; top: 220px; animation-delay: -6s; }
.ag-sky i:nth-child(3) { background: var(--coral); left: 30%; bottom: -220px; opacity: .25; animation-delay: -11s; }
@keyframes ag-grid { to { background-position: 0 32px, 32px 0; } }
@keyframes ag-orb { 50% { transform: translate(60px, 40px) scale(1.15); } 100% { transform: translate(-30px, 70px) scale(.9); } }

.ag-hero-in { display: grid; gap: 40px; }
.ag-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; color: var(--text-2); }
.ag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: ag-ping 2s infinite; }
@keyframes ag-ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ag-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 54px; line-height: .95; margin: 0 0 22px; }
.ag-title .w { display: inline-block; opacity: 0; transform: translateY(.4em) rotate(4deg); filter: blur(6px); animation: ag-word .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
.ag-title .w:nth-last-child(-n+3) { background: linear-gradient(90deg, var(--sky), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes ag-word { to { opacity: 1; transform: none; filter: none; } }
.ag-triggers { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ag-triggers li { position: relative; padding-left: 28px; font-size: 17px; line-height: 1.35; opacity: 0; transform: translateX(-10px); animation: ag-in .6s forwards; }
.ag-triggers li:nth-child(1) { animation-delay: .9s; } .ag-triggers li:nth-child(2) { animation-delay: 1.05s; } .ag-triggers li:nth-child(3) { animation-delay: 1.2s; } .ag-triggers li:nth-child(4) { animation-delay: 1.35s; }
.ag-triggers li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: rgba(120,220,190,.16); color: var(--mint); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
@keyframes ag-in { to { opacity: 1; transform: none; } }
.ag-cta { min-width: 220px; opacity: 0; animation: ag-in .6s 1.35s forwards; }

/* телефон с чатом */
.ag-phone-wrap { justify-self: center; width: 100%; max-width: 340px; opacity: 0; transform: translateY(30px) rotate(-2deg); animation: ag-in 1s .5s cubic-bezier(.2,.7,.2,1) forwards; }
.ag-phone { position: relative; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #3a3d44, #1b1c20 60%); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08), 0 0 60px rgba(90,170,255,.18); }
.ag-phone::after { content: ""; position: absolute; inset: -2px; border-radius: 36px; padding: 2px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--sky) 80%, var(--mint) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ag-spin 6s linear infinite; pointer-events: none; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ag-spin { to { --a: 360deg; } }
.ag-phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 26px 26px 0 0; background: #1f2126; border-bottom: 1px solid rgba(255,255,255,.06); }
.ag-ava { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #10151c; background: linear-gradient(135deg, var(--sky), var(--mint)); }
.ag-who { display: grid; line-height: 1.2; } .ag-who b { font-size: 15px; } .ag-who small { font-size: 12px; color: var(--mint); }
.ag-chat { height: 400px; padding: 14px 12px; border-radius: 0 0 26px 26px; background: #15171b radial-gradient(circle at 20% 10%, rgba(90,170,255,.08), transparent 50%); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.38; animation: ag-pop .35s cubic-bezier(.2,.9,.3,1.3) both; }
.msg.in { align-self: flex-start; background: #262931; border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: linear-gradient(135deg, #2f6fe0, #3a8bf0); color: #fff; border-bottom-right-radius: 5px; }
.msg.out .car { display: inline-block; width: 2px; height: 1em; background: #fff; vertical-align: -2px; margin-left: 1px; animation: ag-blink .7s steps(1) infinite; }
@keyframes ag-blink { 50% { opacity: 0; } }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3b2; animation: ag-dots 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ag-dots { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
@keyframes ag-pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.chip { align-self: center; font-size: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(120,220,190,.14); color: var(--mint); animation: ag-pop .4s both; }
.doc { align-self: flex-end; width: 78%; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #1f2a3a; border: 1px solid rgba(90,170,255,.35); animation: ag-pop .4s both; }
.doc .ic { width: 34px; height: 42px; border-radius: 6px; background: linear-gradient(180deg, #fff 0 22%, #e33 22% 34%, #fff 34%); position: relative; flex: none; }
.doc .ic::after { content: "PDF"; position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 9px; font-weight: 800; color: #e33; }
.doc b { display: block; font-size: 13px; } .doc span { font-size: 12px; color: #9fb6d6; }
.stat { align-self: flex-end; width: 82%; padding: 12px; border-radius: 14px; background: #1c2027; border: 1px solid rgba(255,255,255,.08); display: grid; gap: 8px; animation: ag-pop .4s both; }
.stat div { display: grid; grid-template-columns: 74px 1fr 24px; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.stat s { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--sky), var(--mint)); width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1); text-decoration: none; }
.stat b { color: var(--text); font-size: 13px; text-align: right; }
.ag-tabs { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.ag-tabs button { position: relative; overflow: hidden; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ag-tabs button.on { color: var(--text); border-color: var(--sky); }
.ag-tabs button.on { background: rgba(90,170,255,.12); }

/* карусель первого экрана: чат → ролики по очереди; старый уезжает вправо, новый падает сверху */
.ag-stage-wrap { justify-self: center; width: 100%; max-width: 540px; opacity: 0; transform: translateY(30px); animation: ag-in 1s .5s cubic-bezier(.2,.7,.2,1) forwards; }
.ag-stage { position: relative; height: 470px; }
.ag-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(-80px) scale(.9); transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s; pointer-events: none; }
.ag-slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ag-slide.is-out { opacity: 0; transform: translateX(115%) rotate(9deg) scale(.88); transition: transform .8s cubic-bezier(.55,0,.8,.45), opacity .7s .1s; }
.ag-slide .ag-phone { width: min(330px, 100%); }
.ag-stage .ag-chat { height: 370px; }
.ag-phone--vid { width: auto !important; height: 100%; }
.ag-phone--vid .vid { height: 100%; aspect-ratio: 400 / 626; border-radius: 26px; background: #efe9df; }
.ag-slide .lap { width: 100%; opacity: 1; transform: none; }
.ag-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.ag-pills button { position: relative; overflow: hidden; border: 1px solid var(--line-strong); background: rgba(18,19,22,.55); color: var(--text-2); border-radius: 99px; padding: 6px 11px; font: inherit; font-size: 12.5px; cursor: pointer; backdrop-filter: blur(6px); }
.ag-pills button.on { color: var(--text); border-color: var(--sky); background: rgba(90,170,255,.16); }
.ag-pills button.on::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--sky); animation: ag-bar var(--d, 8s) linear forwards; }
@keyframes ag-bar { to { width: 100%; } }

/* ---------- 2. Плитки ---------- */
.ag-sec { padding: 70px 0; position: relative; }
.ag-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ag-tiles li { position: relative; display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, #1d1f24, #17181c); border: 1px solid rgba(255,255,255,.07);
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s, transform .6s cubic-bezier(.2,.7,.2,1), border-color .3s; transition-delay: calc(var(--i) * 90ms); }
.ag-tiles.in li { opacity: 1; transform: none; }
.ag-tiles li:hover { border-color: rgba(90,170,255,.45); }
.ag-tiles b { grid-column: 2; font-size: 19px; line-height: 1.2; align-self: end; }
.ag-tiles span { grid-column: 2; font-size: 15px; line-height: 1.35; color: var(--text-2); align-self: start; margin-top: 3px; }
.mini { grid-row: 1 / 3; width: 76px; height: 64px; border-radius: 14px; background: #121418; border: 1px solid rgba(255,255,255,.06); position: relative; overflow: hidden; }
.mini * { animation-play-state: paused; }
.ag-tiles.in .mini * { animation-play-state: running; }
/* чат */
.mini-chat i { position: absolute; height: 12px; border-radius: 7px; animation: m-bub 3.6s infinite both; }
.mini-chat i:nth-child(1) { left: 8px; top: 8px; width: 38px; background: #333843; }
.mini-chat i:nth-child(2) { right: 8px; top: 26px; width: 46px; background: #3a8bf0; animation-delay: .6s; }
.mini-chat i:nth-child(3) { left: 8px; top: 44px; width: 28px; background: #333843; animation-delay: 1.2s; }
@keyframes m-bub { 0%, 8% { opacity: 0; transform: scale(.5); } 15%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
/* документ */
.mini-doc { background: #f3f5f8; }
.mini-doc i { position: absolute; left: 10px; height: 4px; border-radius: 2px; background: #9aa6b8; width: 0; animation: m-line 3.4s infinite; }
.mini-doc i:nth-child(1) { top: 12px; --w: 40px; } .mini-doc i:nth-child(2) { top: 22px; --w: 52px; animation-delay: .3s; }
.mini-doc i:nth-child(3) { top: 32px; --w: 34px; animation-delay: .6s; } .mini-doc i:nth-child(4) { top: 42px; --w: 46px; animation-delay: .9s; }
.mini-doc em { position: absolute; right: 8px; bottom: 6px; font-style: normal; font-weight: 800; font-size: 15px; color: #2f6fe0; opacity: 0; animation: m-stamp 3.4s infinite; }
@keyframes m-line { 0% { width: 0; } 25%, 85% { width: var(--w); } 100% { width: var(--w); opacity: 0; } }
@keyframes m-stamp { 0%, 40% { opacity: 0; transform: scale(2); } 50%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* звонок */
.mini-wave { display: flex; align-items: center; justify-content: center; gap: 3px; }
.mini-wave i { width: 3px; height: 10px; border-radius: 2px; background: var(--sky); animation: m-wave 1.1s ease-in-out infinite; }
.mini-wave i:nth-child(odd) { animation-delay: -.4s; } .mini-wave i:nth-child(3n) { animation-delay: -.7s; } .mini-wave i:nth-child(7) { background: var(--coral); }
.mini-wave em { position: absolute; left: 50%; top: 6px; width: 8px; height: 8px; margin-left: 2px; border-radius: 50%; background: var(--coral); animation: ag-ping 1.4s infinite; box-shadow: 0 0 0 0 var(--coral); }
@keyframes m-wave { 50% { height: 34px; } }
/* поиск */
.mini-search s { position: absolute; left: 8px; right: 8px; top: 8px; height: 13px; border-radius: 7px; background: #262a33; text-decoration: none; }
.mini-search s::after { content: ""; position: absolute; left: 7px; top: 3px; width: 2px; height: 7px; background: var(--mint); animation: m-caret 3s steps(10) infinite; }
.mini-search i { position: absolute; left: 8px; height: 6px; border-radius: 3px; background: #2c313b; }
.mini-search i:nth-child(2) { top: 28px; width: 50px; } .mini-search i:nth-child(3) { top: 39px; width: 58px; animation: m-hl 3s infinite; } .mini-search i:nth-child(4) { top: 50px; width: 40px; }
@keyframes m-caret { 0% { transform: translateX(0); } 50%, 100% { transform: translateX(44px); } }
@keyframes m-hl { 0%, 50% { background: #2c313b; } 60%, 92% { background: var(--mint); box-shadow: 0 0 10px var(--mint); } }
/* штамп */
.mini-stamp i { position: absolute; width: 34px; height: 44px; border-radius: 4px; background: #e9edf3; top: 10px; left: 20px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.mini-stamp i:nth-child(1) { transform: rotate(-10deg) translate(-6px, 2px); background: #c9d0db; } .mini-stamp i:nth-child(2) { transform: rotate(6deg) translate(4px, 0); background: #d9dfe8; }
.mini-stamp em { position: absolute; left: 30px; top: 22px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--mint-deep, #1fa37a); color: var(--mint-deep, #1fa37a); font-style: normal; font-weight: 800; display: grid; place-items: center; font-size: 14px; animation: m-stp 2.8s infinite; }
@keyframes m-stp { 0%, 30% { opacity: 0; transform: scale(2.2) rotate(-20deg); } 40%, 85% { opacity: 1; transform: rotate(-12deg); } 100% { opacity: 0; } }
/* столбики */
.mini-bars { display: flex; align-items: flex-end; justify-content: center; gap: 7px; padding-bottom: 10px; }
.mini-bars i { width: 9px; border-radius: 3px 3px 0 0; background: linear-gradient(var(--mint), var(--sky)); height: 6px; animation: m-bar 3s infinite; }
.mini-bars i:nth-child(1) { --h: 22px; } .mini-bars i:nth-child(2) { --h: 34px; animation-delay: .15s; } .mini-bars i:nth-child(3) { --h: 18px; animation-delay: .3s; } .mini-bars i:nth-child(4) { --h: 42px; animation-delay: .45s; }
@keyframes m-bar { 0% { height: 6px; } 30%, 85% { height: var(--h); } 100% { height: 6px; } }

/* ---------- 2б. Ролики в ноутбуках ---------- */
.ag-laps { display: grid; gap: 34px; }
.lap { margin: 0; opacity: 0; transform: translateY(40px) rotateX(18deg); transform-origin: 50% 100%; transition: opacity .7s, transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 160ms); perspective: 1200px; }
.ag-laps.in .lap { opacity: 1; transform: none; }
.lap-scr { position: relative; padding: 10px 10px 12px; border-radius: 14px 14px 4px 4px; background: linear-gradient(#2c2f36, #1a1b1f); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.5), 0 0 50px rgba(90,170,255,.12); }
.lap-scr::before { content: ""; position: absolute; top: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: #3b3f47; }
.vid { position: relative; aspect-ratio: 960 / 600; border-radius: 4px; overflow: hidden; background: #e9ecf1; }
.vid video, .vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vid.wait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); background-size: 250% 100%; animation: ag-shine 1.3s linear infinite; }
@keyframes ag-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.lap-base { height: 12px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#3a3d44, #202226); box-shadow: 0 12px 24px rgba(0,0,0,.5); position: relative; }
.lap-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #17181b; }
.lap figcaption { margin-top: 18px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.lap figcaption b { display: block; font-size: 19px; color: var(--text); margin-bottom: 2px; }

/* ---------- 3. 7 дней: календарь ---------- */
.ag-days { background: linear-gradient(#121316, #0f1a24 50%, #121316); }
.ag-sub { margin: -12px 0 22px; font-size: 16px; color: var(--text-2); }
.ag-cal { --s0: var(--sky); --s1: #a08cff; --s2: #43d19a; --s3: var(--coral);
  list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; max-width: 560px; }
.ag-cal li { aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: rgba(255,255,255,.35); transition: background .35s, color .35s, box-shadow .35s, transform .35s cubic-bezier(.2,.9,.3,1.5), border-color .35s; }
.ag-cal li[data-s="0"] { --c: var(--s0); } .ag-cal li[data-s="1"] { --c: var(--s1); } .ag-cal li[data-s="2"] { --c: var(--s2); } .ag-cal li[data-s="3"] { --c: var(--s3); }
.ag-cal li.lit { background: var(--c); border-color: var(--c); color: #0f1216; }
.ag-cal li.now { transform: scale(1.15); box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 0 24px var(--c); }
.ag-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ag-stages li { display: grid; grid-template-columns: 14px 1fr; column-gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.02); opacity: .45; transition: opacity .35s, background .35s, border-color .35s, transform .35s; }
.ag-stages li i { width: 14px; height: 14px; margin-top: 3px; border-radius: 4px; background: var(--c); }
.ag-stages li.on { opacity: 1; border-color: var(--c); background: rgba(255,255,255,.05); transform: translateX(4px); }
.ag-stages li.done { opacity: 1; }
.ag-stages em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .04em; }
.ag-stages b { display: block; font-size: 17px; margin-top: 2px; } .ag-stages span { display: block; font-size: 14px; color: var(--text-2); line-height: 1.35; margin-top: 2px; }
.ag-replay { margin-top: 16px; background: none; border: 0; color: var(--sky); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 0; opacity: 0; transition: opacity .4s; }
.ag-replay.show { opacity: 1; }

/* ---------- 4. Сдача, цена, форма ---------- */
.ag-gets { list-style: none; margin: 0 0 54px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; perspective: 900px; }
.ag-gets li { padding: 16px 14px; border-radius: 18px; background: #1b1d22; border: 1px solid rgba(255,255,255,.07); opacity: 0; transform: rotateX(70deg) translateY(30px); transform-origin: 50% 100%; transition: opacity .6s, transform .8s cubic-bezier(.2,.8,.2,1.15); transition-delay: calc(var(--i) * 140ms); }
.ag-gets.in li { opacity: 1; transform: none; }
.ag-gets em { display: block; font-style: normal; font-family: var(--font-display); font-size: 22px; color: var(--mint); margin-bottom: 6px; }
.ag-gets b { display: block; font-size: 17px; line-height: 1.2; } .ag-gets span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.35; color: var(--text-2); }

.ag-deal { display: grid; gap: 26px; }
.ag-me { display: flex; gap: 14px; align-items: center; }
.ag-me img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sky); flex: none; }
.ag-me b { display: block; font-size: 19px; } .ag-me span { display: block; font-size: 15px; color: var(--text-2); line-height: 1.4; margin-top: 3px; }
.ag-formbox { position: relative; padding: 22px 18px; border-radius: 24px; background: #17191d; isolation: isolate; }
.ag-formbox::before { content: ""; position: absolute; inset: -2px; border-radius: 26px; z-index: -1; background: conic-gradient(from var(--a, 0deg), var(--sky), var(--mint), var(--coral), var(--sky)); animation: ag-spin 8s linear infinite; }
.ag-formbox::after { content: ""; position: absolute; inset: 0; border-radius: 24px; z-index: -1; background: #17191d; }
.ag-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; }
.ag-price b { font-size: 46px; font-weight: 800; line-height: 1; }
.ag-price span { font-size: 15px; color: var(--text-2); }
.ag-note { margin: 0 0 14px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.ag-foot { padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
.ag-foot a { color: inherit; }

/* ---------- широкие экраны ---------- */
@media (min-width: 720px) {
  .ag-h2 { font-size: 54px; }
  .ag-title { font-size: 76px; }
  .ag-tiles { grid-template-columns: 1fr 1fr; }
  .ag-gets { grid-template-columns: repeat(4, 1fr); }
  .ag-cal { grid-template-columns: repeat(14, 1fr); gap: 8px; }
  .ag-stages { grid-template-columns: repeat(4, 1fr); }
  .ag-stages li.on { transform: translateY(-4px); }
}
@media (min-width: 1024px) {
  .ag-stage { height: 520px; }
  .ag-stage .ag-chat { height: 410px; }
  .ag-laps { grid-template-columns: 1fr 1fr; gap: 50px 40px; }
  .lap--wide { grid-column: 1 / -1; width: 78%; justify-self: center; }
  .ag-bg img { object-position: 60% 50%; }
  .ag-bg::after { background: linear-gradient(90deg, rgba(18,19,22,.85) 0%, rgba(18,19,22,.45) 45%, rgba(18,19,22,.15) 70%), linear-gradient(180deg, transparent 70%, #121316 100%); }
  .ag-hero { min-height: 92vh; display: flex; align-items: center; }
  .ag-hero-in { width: 100%; }
  .ag-hero { padding: 90px 0 80px; }
  .ag-hero-in { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; }
  .ag-title { font-size: 92px; }
  .ag-tiles { grid-template-columns: repeat(3, 1fr); }
  .ag-deal { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 50px; }
  .ag-me { flex-direction: column; align-items: flex-start; }
  .ag-me img { width: 140px; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ag-title .w, .ag-triggers li, .ag-cta, .ag-stage-wrap, .ag-tiles li, .ag-gets li, .lap { opacity: 1 !important; transform: none !important; filter: none !important; }
  .ag-stages li { opacity: 1; } .ag-cal li { background: var(--c); color: #0f1216; }
}
