/* ============================================================
   [TezTap] Group — /idea: посадочная для рекламы в ChatGPT.
   Подключается после css/v2.css, переопределяет только своё.
   ============================================================ */

/* ---------- Hero: строки заголовка поднимаются (без GSAP) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js.page-idea .hero-title .line > span,
  .js .page-idea .hero-title .line > span { transform: translateY(110%); animation: idea-rise 1s var(--ease-out) forwards; }
  .js .page-idea .hero-title .line:nth-child(2) > span { animation-delay: .1s; }
  .js .page-idea .hero-title .line:nth-child(3) > span { animation-delay: .2s; }
  @keyframes idea-rise { to { transform: none; } }
}

/* ---------- Hero: сцена «ChatGPT → WhatsApp → ответ» ---------- */
.page-idea .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.page-idea .hero-copy .kicker { margin-bottom: 4px; }
.page-idea .hero-visual { min-height: 460px; perspective: none; display: grid; align-items: center; }
.handoff { position: relative; width: min(100%, 440px); margin: 0 auto; display: grid; z-index: 2; }
.gpt-card {
  position: relative; z-index: 2;
  background: #fff; color: #1b1917;
  border-radius: 20px; padding: 18px 20px 20px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12);
  transform: rotate(-1.4deg);
}
.gpt-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #6b665f; letter-spacing: .02em; margin-bottom: 10px; }
.gpt-dot { width: 18px; height: 18px; border-radius: 50%; background: #10a37f; display: inline-grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; font-family: var(--font-logo); font-style: normal; }
.gpt-body { font-size: 14.5px; line-height: 1.5; min-height: 4.5em; }
.gpt-body .caret { display: inline-block; width: 2px; height: 1em; background: #1b1917; vertical-align: -2px; margin-left: 2px; animation: caret-blink 1s steps(2) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.gpt-copy {
  position: absolute; right: 16px; bottom: -14px;
  font-size: 12.5px; font-weight: 800; background: var(--copper); color: #fff;
  padding: 7px 12px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.gpt-copy.on { opacity: 1; transform: none; }
.handoff-link { position: relative; height: 54px; z-index: 1; display: grid; place-items: center; }
.handoff-link svg { width: 60px; height: 54px; overflow: visible; }
.handoff-link path { stroke: var(--copper-hi); stroke-width: 2; fill: none; stroke-dasharray: 6 7; opacity: .7; }
.handoff-link circle { fill: var(--copper-hi); filter: drop-shadow(0 0 8px rgba(232,154,98,.9)); opacity: 0; }
.handoff-link circle.go { animation: travel 1.1s var(--ease-out) forwards; }
@keyframes travel { 0% { opacity: 1; transform: translateY(-4px); } 100% { opacity: 0; transform: translateY(52px); } }
.wa-card {
  position: relative; z-index: 2;
  background: #0f1b14; border-radius: 22px; padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(1deg);
}
.wa-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.wa-head .ava { width: 30px; height: 30px; border-radius: 50%; background: var(--copper); color: #fff; display: grid; place-items: center; font-family: var(--font-logo); font-weight: 800; font-size: 12px; }
.wa-head b { display: block; font-size: 13.5px; }
.wa-head span { color: rgba(255,255,255,.45); font-size: 11.5px; }
.wa-head .wa-ico { margin-left: auto; color: #25D366; }
.wa-msgs { display: grid; gap: 7px; padding-top: 12px; min-height: 118px; align-content: start; }
.wa-msg { max-width: 86%; padding: 9px 12px; border-radius: 13px; font-size: 13.5px; line-height: 1.42; opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .35s, transform .45s var(--ease-out); }
.wa-msg.on { opacity: 1; transform: none; }
.wa-msg.me { background: #1F3D2B; justify-self: end; border-bottom-right-radius: 4px; border-left: 3px solid var(--copper-hi); color: rgba(255,255,255,.88); }
.wa-msg.them { background: #1e1b18; justify-self: start; border-bottom-left-radius: 4px; }
.wa-msg .typing { display: inline-flex; gap: 4px; }
.wa-msg .typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); animation: tdot 1s infinite; }
.wa-msg .typing i:nth-child(2) { animation-delay: .15s; }
.wa-msg .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.wa-msg b { color: var(--copper-hi); font-weight: 700; }
.page-idea .float-chip { font-size: 14px; padding: 11px 16px; border-radius: 16px; }
.page-idea .float-chip--1 { top: 0; left: -4%; }
.page-idea .float-chip--2 { top: 46%; right: -6%; }
.page-idea .float-chip--3 { bottom: -2%; left: 0; }
.float-chip .k { color: var(--copper-hi); }

/* ---------- Заголовки секций в одну колонку ---------- */
.sec-head--one { grid-template-columns: 1fr; align-items: start; gap: 18px; max-width: 820px; }
.sec-head--one .lead { justify-self: start; max-width: 60ch; }

/* ---------- Что прислать ---------- */
.send-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.send-list { border-top: 1px solid var(--line-ink); }
.send-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-ink); }
.send-item .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.send-item .ico svg { width: 22px; height: 22px; }
.send-item h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: -.01em; line-height: 1.2; }
.send-item p { margin: 0; color: var(--ink-tx-dim); font-size: 15.5px; max-width: 52ch; }
.send-cta { background: var(--ink); color: var(--tx); border-radius: 24px; padding: 30px 28px; display: grid; gap: 14px; justify-items: start; position: sticky; top: 100px; }
.send-cta-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(64px, 8vw, 110px); line-height: .9; letter-spacing: -.04em; color: var(--copper-hi); }
.send-cta p { margin: 0; color: var(--tx-dim); font-size: 16px; max-width: 30ch; }

/* ---------- Что ответим ---------- */
.promise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.promise { border: 1px solid var(--line); border-radius: 18px; padding: 28px 28px 26px; background: linear-gradient(180deg, rgba(243,234,219,.03), transparent); display: grid; gap: 10px; align-content: start; transition: border-color .4s, transform .5s var(--ease-out); }
.promise:hover { border-color: rgba(232,154,98,.5); transform: translateY(-3px); }
.promise .tag { font-family: var(--font-display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--copper-hi); }
.promise h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -.015em; line-height: 1.22; }
.promise p { margin: 0; color: var(--tx-dim); font-size: 15.5px; }
.promise--key { border-color: rgba(198,113,57,.5); background: linear-gradient(180deg, rgba(198,113,57,.16), rgba(198,113,57,.03)); }

/* ---------- Кто мы: список проектов ---------- */
.page-idea .about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.page-idea .about-quote { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.2; }
.page-idea .about-text { color: var(--ink-tx-dim); }
.page-idea .director-ava { background: var(--ink); color: var(--paper); }
.page-idea .director span { color: var(--ink-tx-dim); }
.proof-head { font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-tx-dim); padding-bottom: 12px; }
.proj { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-ink); }
.proj:last-of-type { border-bottom: 1px solid var(--line-ink); }
.proj b { display: block; font-size: 16px; }
.proj span { font-size: 14px; color: var(--ink-tx-dim); }
.proj a.pill { font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--ink-tx); white-space: nowrap; transition: background .2s, color .2s; }
.proj a.pill:hover { background: var(--ink); color: var(--paper); }
.proj .muted { font-size: 12.5px; color: var(--ink-tx-dim); white-space: nowrap; }
.proof-more { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--copper-deep); }
.proof-more:hover { color: var(--ink-tx); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .page-idea .hero-in { grid-template-columns: 1fr; }
  .page-idea .hero-visual { min-height: 0; order: 2; margin-top: 18px; }
  .page-idea .float-chip { display: none; }
  .send-grid { grid-template-columns: 1fr; }
  .send-cta { position: static; }
  .page-idea .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .promise-grid { grid-template-columns: 1fr; }
  .promise { padding: 22px 20px; }
  .gpt-card, .wa-card { transform: none; }
  .proj { grid-template-columns: 1fr; gap: 8px; }
  .proj a.pill, .proj .muted { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .gpt-body .caret, .handoff-link circle, .wa-msg .typing i { animation: none; }
}
