/* v11 – равные кнопки, единый зелёный фон со скрепкой, выбор услуг, мессенджеры, плашка nestudio */

/* 1. Кнопки рядом – одинаковой ширины */
.hero-actions, .get-actions, .call-actions, .docs-extra-actions, .requisites-actions, .board-foot-actions, .zavhoz-foot-actions, .risk-callout .btn-group {
  display: grid !important; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; align-items: stretch;
}
.hero-actions .btn, .get-actions .btn, .call-actions .btn, .docs-extra-actions .btn, .requisites-actions .btn, .board-foot-actions .btn, .zavhoz-foot-actions .btn {
  width: 100%; justify-content: center; text-align: center; white-space: normal; min-height: 52px;
}
.hero-actions { max-width: 560px; }
@media (max-width: 640px) {
  .hero-actions, .get-actions, .call-actions, .docs-extra-actions, .requisites-actions, .board-foot-actions, .zavhoz-foot-actions { grid-auto-flow: row; grid-auto-columns: auto; width: 100%; }
}

/* 2. Услуги: подсветка уходит с первой карточки, когда наводишь на другую */
.flagships:hover .flagship-accent:not(:hover) { border-color: var(--border-hairline); transform: none; }
.flagship:hover { border-color: var(--accent) !important; }

/* 3. Единый зелёный фон (градиент + скрепка) для всех зелёных плашек, кроме подвала */
.checker-output, .board-top, .price-card-featured .price-card-top {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 400px at 85% -10%, rgba(126,226,174,.18), transparent 60%), linear-gradient(135deg, #0E4F35 0%, #13683F 55%, #1A7F50 100%) !important;
}
.checker-output::after, .board-top::after, .price-card-featured .price-card-top::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 280px; height: 280px; z-index: -1;
  background: url(../assets/img/mark-white.svg) center / contain no-repeat; opacity: .08; pointer-events: none;
}
.zavhoz-card { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.16); }
.chip-btn.is-active, .filter-tab.is-active { background-color: var(--accent) !important; border-color: var(--accent) !important; }
.price-card-featured { border-color: var(--accent) !important; }

/* 4. Плавающая кнопка мессенджеров (как на nestudio.by) */
.contact-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 2147483001; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(14,79,53,.35); transition: transform .5s cubic-bezier(.22,1,.36,1), background-color .2s; }
.fab:hover { transform: translateY(-2px); background: #0E4F35; }
.fab:active { transform: scale(.96); }
.fab .ic { width: 28px; height: 28px; }
.fab span { grid-area: 1 / 1; display: grid; transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1); }
.fab .fab-off { opacity: 0; transform: rotate(-90deg) scale(.6); }
.contact-fab.open .fab .fab-on { opacity: 0; transform: rotate(90deg) scale(.6); }
.contact-fab.open .fab .fab-off { opacity: 1; transform: none; }
.fab-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-menu[hidden] { display: none; }
.fab-item { display: flex; align-items: center; gap: 12px; color: var(--ink-primary); text-decoration: none; opacity: 0; transform: translateY(12px); animation: fabin .5s cubic-bezier(.22,1,.36,1) forwards; }
.fab-item:nth-last-child(1) { animation-delay: 0s; } .fab-item:nth-last-child(2) { animation-delay: .04s; } .fab-item:nth-last-child(3) { animation-delay: .08s; } .fab-item:nth-last-child(4) { animation-delay: .12s; } .fab-item:nth-last-child(5) { animation-delay: .16s; }
@keyframes fabin { to { opacity: 1; transform: none; } }
.fab-c { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.fab-c .ic { width: 24px; height: 24px; }
.fab-item:hover .fab-c, .fab-item:focus-visible .fab-c { transform: scale(1.08); }
.fab-l { background: #fff; color: var(--ink-primary); border: 1px solid var(--border-hairline); padding: 6px 12px; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.fi-call .fab-c { background: #21915F; } .fi-tg .fab-c { background: #2AABEE; } .fi-viber .fab-c { background: #7360F2; } .fi-wa .fab-c { background: #25D366; } .fi-mail .fab-c { background: #0E4F35; }
.fi-wa .fab-c .ic, .fi-tg .fab-c .ic, .fi-viber .fab-c .ic { width: 26px; height: 26px; }
.contact-fab.open::before { content: ""; position: fixed; inset: 0; background: rgba(7,27,21,.22); z-index: -1; }
/* на телефоне – над нижней панелью «Позвонить / Запросить КП» */
@media (max-width: 900px) { .contact-fab { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } .fab { width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .fab, .fab span, .fab-item, .fab-c { transition: none; animation: none; opacity: 1; transform: none; } }

/* 5. Плашка «Разработка сайта: nestudio» */
.dev-row { display: flex; justify-content: center; padding-top: 18px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.dev-credit { display: inline-flex; align-items: center; gap: 10px; color: #a7f3d0; text-decoration: none; font-size: 14px; padding: 6px 14px 6px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; transition: border-color .2s, background .2s, color .2s; }
.dev-credit:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); color: #fff; }
.dev-credit .ns-mark { width: 25px; height: 26px; flex: none; color: inherit; display: block; }
.dev-credit b { font-weight: 600; font-size: 1.3em; letter-spacing: -.02em; color: #fff; }
