/* «В результате 2-х месяцев работы с нами» - вариант 2 (Илья 25.11 01:49: «Давай 2 варик, но добавь обводку с пульсацией самой обводки, а точнее переливом»).
   Восемь одинаковых карточек по две в ряд, в ряду одной высоты. Обводка - тонкое кольцо-псевдоэлемент с conic-gradient бренда,
   угол крутится через @property: перерисовывается только кольцо, без box-shadow и filter. Крутится, лишь пока карточка в экране
   (.is-on из fg-results.js), у каждой своя скорость и фаза. Телефон - вдвое медленнее, prefers-reduced-motion - стоит. */
.fgr { padding: clamp(64px, 8vw, 112px) 0 0; }
.fr2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fr2-c { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.6vw, 34px); border-radius: 24px;
  background: #fff; box-shadow: 0 24px 50px -36px rgba(40, 32, 110, .45); transition: transform .5s var(--ease-out); }
.fr2-c h3 { margin: 0; font: 650 clamp(20px, 1.7vw, 24px)/1.22 var(--font-d); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.fr2-c p { margin: 0; color: var(--ink-2); text-wrap: pretty; }
.fr2-k { display: block; margin-bottom: 4px; font-size: 15px; letter-spacing: 0; color: var(--accent); }
.fr2-sum { margin-top: auto !important; padding-top: 12px; font: 700 clamp(40px, 4.4vw, 64px)/1 var(--font-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink) !important; }
.fr2-lead { color: var(--ink) !important; font-weight: 600; }
.fr2-claim { font-weight: 700; color: var(--accent) !important; }
.fr2-ico { display: block; width: 44px; height: 44px; margin: -4px 0 6px -4px; overflow: visible; }
.fr2-ico * { fill: none; stroke: url(#m95-grad); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fr2-ico .fr2-dot { fill: url(#m95-grad); stroke: none; }

/* Кольцо-перелив */
@property --fr2-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes fr2-spin { to { --fr2-a: 360deg; } }
.fr2-c::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  --fr2-a: var(--fr2-a0, 0deg);
  background: conic-gradient(from var(--fr2-a), #7C6CF2, #BC269B 24%, #E9799C 40%, #C098F5 62%, #A0A9FC 80%, #7C6CF2);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .45s var(--ease-out);
  animation: fr2-spin var(--fr2-t, 8s) linear infinite var(--fr2-d, 0s) paused; }
/* Илья 25.11 13:05: рамки до наведения нет, появляется только под курсором - и только тогда переливается */
.fr2-c.is-on:hover::before { animation-play-state: running; }
/* разные скорости и фазы: соседние кольца не крутятся в ногу */
.fr2-c:nth-child(1) { --fr2-t: 8s;   --fr2-d: 0s; }
.fr2-c:nth-child(2) { --fr2-t: 9.5s; --fr2-d: -3.1s; }
.fr2-c:nth-child(3) { --fr2-t: 7s;   --fr2-d: -5.2s; }
.fr2-c:nth-child(4) { --fr2-t: 10s;  --fr2-d: -1.7s; }
.fr2-c:nth-child(5) { --fr2-t: 8.5s; --fr2-d: -6.4s; }
.fr2-c:nth-child(6) { --fr2-t: 6.5s; --fr2-d: -2.6s; }
.fr2-c:nth-child(7) { --fr2-t: 9s;   --fr2-d: -7.3s; }
.fr2-c:nth-child(8) { --fr2-t: 7.5s; --fr2-d: -4.4s; }
@media (hover: hover) {
  .fr2-c:hover { transform: translateY(-4px); }
  .fr2-c:hover::before { opacity: 1; }
}
@media (max-width: 860px) {
  .fr2 { grid-template-columns: minmax(0, 1fr); }
  .fr2-sum { font-size: 36px; }
}
/* телефон: вдвое медленнее (у каждой карточки своя скорость, поэтому множитель - через длительность) */
@media (hover: none) and (max-width: 860px) {
  .fr2-c::before { animation-duration: 18s; }
  .fr2-c:nth-child(even)::before { animation-duration: 21s; }
}
@media (prefers-reduced-motion: reduce) {
  .fr2-c { transition: none; }
  .fr2-c:hover { transform: none; }
  .fr2-c::before { animation: none; }
  .fr2-c:nth-child(even)::before { --fr2-a: 140deg; }
}

/* Карточка «Деньги» (правки Кати 25.11): «От 20%» сверху, без пустоты; мини-калькулятор - два поля и сразу «≈ N ₽».
   Считает 20% базы × средний чек, без кнопки «посчитать»; логика - fg-results.js. */
.fr2-sum.fr2-sum-top { margin-top: 0 !important; padding-top: 4px; }
.fcalc { margin: 2px 0 0; padding: 14px 16px 12px; border-radius: 16px; background: var(--field-2); display: grid; gap: 8px; }
.fcalc p { margin: 0; }
.fcalc-t { font-size: 15px; font-weight: 600; color: var(--ink) !important; }
.fcalc-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fcalc label { display: grid; gap: 4px; min-width: 0; }
.fcalc label span { font-size: 13px; line-height: 1.2; color: var(--ink-2); }
.fcalc input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  font: 600 16px/1 var(--font-t); font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.fcalc input::placeholder { color: var(--ink-3); opacity: .6; font-weight: 400; }
.fcalc input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--glow), .9); }
.fcalc-out { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; color: var(--ink) !important; }
.fcalc-ap { font: 600 26px/1 var(--font-d); background: linear-gradient(135deg, #7C6CF2, #BC269B 60%, #E9799C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fcalc-out output { font: 700 clamp(24px, 2.3vw, 30px)/1.1 var(--font-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.fcalc-out.is-empty output { color: var(--ink-3); }
.fcalc-note { font-size: 14px; font-weight: 600; color: var(--ink-2) !important; }
.fr2-first { color: var(--ink) !important; }
.fr2-first b { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Иконки карточек (Илья 25.11 16:41 и 16:56, ТЗ 115): одинаково в «Почему уникально» (.m95-ico) и здесь (.fr2-ico) -
   линии прорисовываются по pathLength, точка проявляется в конце. Один раз, когда карточка наполовину в экране (.is-drawn из fg-results.js);
   до входа - пусто (.ico-anim на секции ставит скрипт, без JS иконки целые). Через 2,4 с - .is-done: дальше под курсором рисунок
   прорисовывается заново (m95-draw, fg-motion.css). prefers-reduced-motion - скрипт класс не ставит, иконки сразу нарисованы. */
.ico-anim :not(.is-done) > :is(.fr2-ico, .m95-ico) :is(path, rect, circle:not(.fr2-dot, .m95-dot)) { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
.ico-anim :not(.is-done) > :is(.fr2-ico, .m95-ico) :is(.fr2-dot, .m95-dot) { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; }
.ico-anim .is-drawn:not(.is-done) > :is(.fr2-ico, .m95-ico) :is(path, rect, circle:not(.fr2-dot, .m95-dot)) { animation: fr2-draw 1.4s var(--ease-out) var(--fr2-dd, 0s) forwards; }
.ico-anim .is-drawn:not(.is-done) > :is(.fr2-ico, .m95-ico) :is(.fr2-dot, .m95-dot) { animation: fr2-pop .6s var(--ease-out) calc(var(--fr2-dd, 0s) + 1s) forwards; }
@keyframes fr2-draw { to { stroke-dashoffset: 0; } }
@keyframes fr2-pop { to { opacity: 1; transform: none; } }
@media (hover: hover) {
  .ico-anim .fr2-c.is-done:hover .fr2-ico :is(path, rect, circle:not(.fr2-dot)) { animation: m95-draw 1.1s var(--ease-out) both; }
}
