/* =========================================================
   Delow — "Реклама в Google" page graphics (on top of service.css)
   ========================================================= */

/* ---------- Hero: search → sponsored ad → click → call (8s loop) ---------- */
.adflow { position: relative; display: grid; gap: 12px; padding: 18px; border-radius: 28px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.adflow__bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; margin-right: 56px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(15,14,17,.06), 0 0 0 1px var(--line); font-weight: 500; }
.adflow__bar .ico { width: 18px; height: 18px; color: var(--muted); }
.adflow__ad { position: relative; display: grid; gap: 4px; padding: 18px 18px 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); }
.adflow__spons { font-size: .8125rem; color: var(--muted); }
.adflow__spons b { color: var(--ink); font-weight: 700; }
.adflow__title { margin-top: 2px; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; color: #1a0dab; }
.adflow__desc { font-size: .9375rem; color: var(--ink-2); }
.adflow__btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 600; }
.adflow__btn .ico { width: 14px; height: 14px; }
.adflow__cursor { position: absolute; left: 82px; bottom: 6px; width: 26px; height: 26px; opacity: 0; pointer-events: none; }
.adflow__cursor svg { width: 100%; height: 100%; fill: var(--ink); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.adflow__call { justify-self: end; position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin: -26px 8px 0 0; padding: 9px 16px 9px 9px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-float), 0 0 0 1px var(--line); }
.adflow__call-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #16a34a; color: #fff; }
.adflow__call-icon .ico { width: 19px; height: 19px; }
.adflow__call-icon i { position: absolute; inset: 0; border-radius: inherit; animation: pulse 2.4s var(--ease-out) infinite; }
.adflow__call strong { display: block; font-size: .9375rem; line-height: 1.2; }
.adflow__call small { display: block; font-size: .8125rem; color: var(--muted); }
.adflow__steps { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: .875rem; font-weight: 500; }
.adflow__steps span { padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--ink-2); }
.adflow__steps .ico { width: 14px; height: 14px; color: var(--muted); }
.adflow__steps .s3 { background: var(--ink); color: #fff; }

html.js .adflow .adflow__ad { animation: af-ad 8s var(--ease-out) infinite; }
html.js .adflow .adflow__cursor { animation: af-cursor 8s var(--ease-out) infinite; }
html.js .adflow .adflow__btn { animation: af-btn 8s ease infinite; }
html.js .adflow .adflow__call { animation: af-call 8s cubic-bezier(.34,1.56,.64,1) infinite; }
html.js .adflow .adflow__steps .s1 { animation: af-s1 8s ease infinite; }
html.js .adflow .adflow__steps .s2 { animation: af-s2 8s ease infinite; }
html.js .adflow .adflow__steps .s3 { animation: af-s3 8s ease infinite; }
.adflow.is-paused *, .adflow.is-paused .adflow__ad { animation-play-state: paused !important; }
@keyframes af-ad { 0%, 6% { opacity: 0; transform: translateY(12px); } 14%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes af-cursor { 0%, 18% { opacity: 0; transform: translate(150px, 60px); } 24% { opacity: 1; } 40% { opacity: 1; transform: translate(0, 0); } 43% { transform: translate(0, 0) scale(.8); } 47% { transform: translate(0, 0) scale(1); } 62% { opacity: 1; transform: translate(0, 0); } 70%, 100% { opacity: 0; transform: translate(0, 0); } }
@keyframes af-btn { 0%, 42% { transform: none; } 44% { transform: scale(.94); } 48%, 100% { transform: none; } }
@keyframes af-call { 0%, 50% { opacity: 0; transform: translateY(10px) scale(.9); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes af-s1 { 0%, 38% { background: var(--ink); color: #fff; } 40%, 100% { background: #fff; color: var(--ink-2); } }
@keyframes af-s2 { 0%, 40% { background: #fff; color: var(--ink-2); } 42%, 50% { background: var(--ink); color: #fff; } 52%, 100% { background: #fff; color: var(--ink-2); } }
@keyframes af-s3 { 0%, 50% { background: #fff; color: var(--ink-2); } 52%, 96% { background: #16a34a; color: #fff; } 100% { background: #fff; color: var(--ink-2); } }
@media (max-width: 559px) {
  .adflow { padding: 12px; gap: 10px; border-radius: 22px; }
  .adflow__bar { height: 40px; font-size: .9375rem; margin-right: 50px; padding: 0 14px; }
  .adflow__ad { padding: 14px 14px 16px; }
  .adflow__title { font-size: 1rem; }
  .adflow__desc { font-size: .875rem; }
  .adflow__call { padding: 7px 12px 7px 7px; gap: 10px; }
  .adflow__call-icon { width: 34px; height: 34px; border-radius: 10px; }
  .adflow__steps { font-size: .8125rem; }
  .adflow__steps span { padding: 6px 11px; }
}
@media (min-width: 1024px) { .adflow { padding: 24px; gap: 14px; } .adflow__ad { padding: 22px 22px 24px; } .adflow__title { font-size: 1.1875rem; } }

/* ---------- Auction (how Google Ads ranks) ---------- */
.auction { position: relative; display: grid; gap: 8px; padding: 22px 18px 20px; border-radius: 26px; background: var(--surface); }
.auction__title { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -.015em; margin-bottom: 6px; }
.auction__head, .auction__row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 32px; align-items: center; gap: 10px; }
.auction__head { padding: 0 12px; font-size: .75rem; font-weight: 500; color: var(--muted); }
.auction__head span:last-child { text-align: center; }
.auction__row { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.6); }
.auction__row b { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auction__bid, .auction__q { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.auction__bid i, .auction__q i { display: block; height: 100%; width: var(--w); border-radius: inherit; transform-origin: 0 50%; }
.auction__bid i { background: var(--muted); }
.auction__q i { background: var(--accent); }
.auction__row em { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: .875rem; }
.auction__row.is-you { background: #fff; box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); }
.auction__row.is-you em { background: var(--accent); color: #fff; }
.auction__note { margin-top: 6px; font-size: .875rem; font-weight: 600; color: #15803d; }
html.js .split__fig:not(.is-in) .auction i { transform: scaleX(0); }
html.js .split__fig .auction i { transition: transform 1s var(--ease-out) .3s; }

/* ---------- Two H3 cards: formats + conversion tracking ---------- */
.duo { display: grid; gap: 12px; margin-top: 40px; }
.duo__card { padding: 24px; border-radius: var(--r-card); background: var(--surface); }
.duo__card h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); letter-spacing: -.025em; }
.duo__card p { margin-top: 12px; color: var(--ink-2); }
.duo__chips, .duo__track { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.duo__chips li, .duo__track li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; font-size: .9375rem; font-weight: 500; }
.duo__chips .ico { width: 16px; height: 16px; color: var(--muted); }
.duo__chips li.is-on { background: var(--ink); color: #fff; }
.duo__chips li.is-on .ico { color: #fff; }
.duo__track .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ink); color: #fff; stroke-width: 2.6; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; gap: 16px; } .duo__card { padding: 30px; } }

/* ---------- Three levers (geography, time, words) ---------- */
.levers { position: relative; display: grid; gap: 10px; padding: 44px 16px 16px; border-radius: 26px; background: var(--surface); }
.lever { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: #fff; }
.lever__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .9375rem; }
.lever__body { display: grid; gap: 2px; min-width: 0; }
.lever__body strong { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.015em; }
.lever__body span { font-size: .875rem; color: var(--muted); }
.lever__radius { position: relative; display: grid; place-items: center; width: 70px; height: 56px; border-radius: 12px; background: #e7e4ea; overflow: hidden; }
.lever__ring { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--accent); background: rgba(203,169,197,.3); animation: ring-breathe 3s ease-in-out infinite; }
.lever__pin { position: relative; color: var(--accent); }
.lever__pin .ico { width: 20px; height: 20px; fill: var(--accent); stroke: #fff; }
@keyframes ring-breathe { 50% { transform: scale(1.15); } }
.lever__hours { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.lever__hours i { width: 5px; height: 14px; border-radius: 3px; background: var(--surface-2); }
.lever__hours i.on { height: 32px; background: var(--accent); }
.lever--words { grid-template-columns: auto minmax(0, 1fr); }
.lever__chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.lever__chips span { padding: 6px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 500; }
.lever__chips .yes { background: var(--accent-soft); color: var(--ink); }
.lever__chips .no { background: var(--surface); color: var(--muted); text-decoration: line-through; text-decoration-color: #dc2626; }
html.js .split__fig:not(.is-in) .lever__hours i.on { transform: scaleY(.3); }
html.js .split__fig .lever__hours i { transform-origin: 50% 100%; transition: transform .6s var(--ease-out); }
html.js .split__fig .lever__hours i:nth-child(n) { transition-delay: calc(.4s + var(--k, 0) * 40ms); }

/* ---------- Big number in the dark panel ---------- */
.bignum { display: grid; gap: 6px; margin-bottom: 24px; }
.bignum__val { font-family: var(--font-display); font-weight: 650; font-size: clamp(3.5rem, 2.4rem + 4vw, 6rem); line-height: .95; letter-spacing: -.045em; color: #fff; font-variant-numeric: tabular-nums; }
.bignum__label { font-size: 1rem; color: var(--on-dark-2); }
.panel-dark + .scrolly { margin-top: 48px; }

/* ---------- Sticky graphic figures ---------- */
/* 1. Clear goal */
.fig--goal { gap: 18px; }
.fig-goal__q { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; }
.fig-goal__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 360px; }
.fig-goal__chips span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 500; }
.fig-goal__chips .is-on { background: var(--ink); color: #fff; box-shadow: none; }
.fig-goal__chips .ico { width: 16px; height: 16px; }
.fig-goal__out { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lift); font-size: .9375rem; }
.fig-goal__out .ico { width: 20px; height: 20px; color: var(--accent); }
.fig-goal__out b { color: var(--accent); }

/* 2. The right page for each ad */
.fig--landing { gap: 14px; justify-items: stretch; }
.fig-land__ad { justify-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 600; }
.fig-land__ad b { padding: 2px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .75rem; }
.fig-land__paths { display: grid; gap: 8px; }
.fig-land__path { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; font-weight: 500; font-size: .9375rem; }
.fig-land__path > .ico { width: 18px; height: 18px; color: var(--muted); }
.fig-land__path em { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: .8125rem; }
.fig-land__path em .ico { width: 15px; height: 15px; stroke-width: 2.8; }
.fig-land__path.is-bad { color: var(--muted); }
.fig-land__path.is-bad span { text-decoration: line-through; }
.fig-land__path.is-bad em { background: #fee2e2; color: #dc2626; }
.fig-land__path.is-good { box-shadow: 0 0 0 1.5px var(--ink); }
.fig-land__path.is-good em { background: #16a34a; color: #fff; }
.fig-land__page { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fig-land__page span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); font-size: .8125rem; font-weight: 600; }
.fig-land__page .is-call { background: #16a34a; color: #fff; }
.fig-land__page .ico { width: 14px; height: 14px; }

/* 3. Attention after the click */
.fig--after { gap: 18px; }
.fig-after__flow { display: flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 500; }
.fig-after__flow span { padding: 7px 14px; border-radius: 999px; background: #fff; }
.fig-after__flow .is-on { background: var(--ink); color: #fff; }
.fig-after__flow .ico { width: 14px; height: 14px; color: var(--muted); }
.fig-after__phone { display: grid; gap: 9px; width: 190px; padding: 22px 16px 18px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 5px var(--ink), var(--shadow-lift); }
.fig-after__h { height: 13px; width: 78%; border-radius: 4px; background: var(--ink); }
.fig-after__p { height: 7px; border-radius: 4px; background: var(--surface-2); }
.fig-after__p--s { width: 62%; }
.fig-after__field { height: 30px; margin-top: 4px; border-radius: 8px; background: var(--surface); }
.fig-after__btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 999px; background: #16a34a; color: #fff; font-weight: 600; font-size: .8125rem; }
.fig-after__btn .ico { width: 15px; height: 15px; }
html.js .fig.is-active .fig-after__btn { animation: btn-glow 2.4s var(--ease-out) .8s infinite; }
@keyframes btn-glow { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(22,163,74,0); } }

/* 4. Ads and SEO together */
.fig--both { gap: 10px; justify-items: stretch; }
.fig-both__res { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; }
.fig-both__lbl { padding: 3px 8px; border-radius: 6px; background: var(--surface); font-size: .75rem; font-weight: 600; color: var(--muted); }
.fig-both__res.is-ad .fig-both__lbl { background: var(--ink); color: #fff; }
.fig-both__res b { font-weight: 600; }
.fig-both__res em { font-style: normal; font-size: .8125rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.fig-both__note { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.fig-both__note .ico { width: 16px; height: 16px; color: var(--accent); rotate: 90deg; }
@media (max-width: 479px) {
  .fig-both__res { grid-template-columns: auto minmax(0, 1fr); }
  .fig-both__res em { grid-column: 1 / -1; }
}

html.js .fig.is-active .fig-goal__chips span,
html.js .fig.is-active .fig-land__path,
html.js .fig.is-active .fig-both__res { animation: rise .55s var(--ease-out) both; }
html.js .fig.is-active .fig-goal__chips span:nth-child(2), html.js .fig.is-active .fig-land__path:nth-child(2), html.js .fig.is-active .fig-both__res:nth-of-type(2) { animation-delay: .12s; }
html.js .fig.is-active .fig-goal__chips span:nth-child(3) { animation-delay: .2s; }
html.js .fig.is-active .fig-goal__chips span:nth-child(4) { animation-delay: .28s; }
html.js .fig.is-active .fig-goal__out { animation: pop .5s cubic-bezier(.34,1.56,.64,1) .5s both; }
html.js .fig.is-active .fig-land__page { animation: rise .5s var(--ease-out) .35s both; }
html.js .fig.is-active .fig-after__phone { animation: rise .6s var(--ease-out) .15s both; }
html.js .fig.is-active .fig-both__note { animation: rise .5s var(--ease-out) .35s both; }

/* ---------- Reduced motion: final states ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .adflow *, html.js .adflow .adflow__ad, .lever__ring, .adflow__call-icon i { animation: none !important; }
  html.js .adflow .adflow__cursor { opacity: 0; }
  html.js .adflow .adflow__call { opacity: 1; transform: none; }
  html.js .split__fig .auction i, html.js .split__fig .lever__hours i { transform: none !important; transition: none; }
}
