/* Стандарт кнопок контактів сайту (.contact-btn, як на contact-page.html), 07.10.2026.
   Головна - обгортка .contacts-card (підключено в index.html); інші сторінки - обгортка .fa-cb,
   файл підвантажує js/fa-footer.js, він же ставить затримку хвильки --cb-d по черзі. */
:is(.contacts-card, .fa-cb) .contact-btn-grid { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 5; }
:is(.contacts-card, .fa-cb) .contact-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(255,255,255,0.03);
  text-decoration: none; color: #fff;
  position: relative; overflow: hidden;
  transition: transform .22s ease, background .22s ease;
  -webkit-tap-highlight-color: transparent;
}
:is(.contacts-card, .fa-cb) .contact-btn::before {
  content: ""; position: absolute; inset: 0; padding: 1.2px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255,90,31,.55), rgba(122,44,255,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 2; opacity: .45; transition: opacity .22s ease;
}
:is(.contacts-card, .fa-cb) .contact-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); color: #fff; }
:is(.contacts-card, .fa-cb) .contact-btn:hover::before { opacity: .85; }
:is(.contacts-card, .fa-cb) .contact-btn:active { transform: scale(.98); }
/* біла хвилька - по черзі по кнопках (затримка --cb-d з fa-enhance.js) */
:is(.contacts-card, .fa-cb) .contact-btn::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); pointer-events: none; z-index: 3;
  animation: faCbShine 5s ease-in-out infinite; animation-delay: var(--cb-d, 0s);
}
:is(.contacts-card, .fa-cb) .contact-btn:hover::after { animation: faCbShineHover .6s ease forwards; }
@keyframes faCbShine { 0% { left: -75%; } 14% { left: 130%; } 100% { left: 130%; } }
@keyframes faCbShineHover { from { left: -75%; } to { left: 130%; } }
@media (prefers-reduced-motion: reduce) { :is(.contacts-card, .fa-cb) .contact-btn::after { animation: none !important; } }
:is(.contacts-card, .fa-cb) .contact-btn-icon {
  width: 46px; height: 46px; min-width: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}
:is(.contacts-card, .fa-cb) .contact-btn-icon.addr  { background: linear-gradient(135deg, #FA500A, #6207BC); color: #fff; box-shadow: 0 4px 15px rgba(98,7,188,0.4); }
:is(.contacts-card, .fa-cb) .contact-btn-icon.phone { background: linear-gradient(135deg, #6207BC, #FA500A); color: #fff; border-radius: 50%; box-shadow: 0 4px 15px rgba(250,80,10,0.4); }
:is(.contacts-card, .fa-cb) .contact-btn-icon.viber { background: #7360F2; color: #fff; }
:is(.contacts-card, .fa-cb) .contact-btn-icon.tg    { background: #2AABEE; color: #fff; }
:is(.contacts-card, .fa-cb) .contact-btn-icon.wa    { background: #25D366; color: #fff; }
:is(.contacts-card, .fa-cb) .contact-btn-icon.mail  { background: rgba(255,255,255,0.08); color: #FA500A; }
:is(.contacts-card, .fa-cb) .contact-btn-body { flex: 1; min-width: 0; }
:is(.contacts-card, .fa-cb) .contact-btn-body strong { display: block; font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(.contacts-card, .fa-cb) .contact-btn-body span { display: block; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
:is(.contacts-card, .fa-cb) .contact-btn-arrow { color: rgba(255,255,255,0.35); font-size: 13px; margin-left: auto; flex-shrink: 0; transition: transform .2s ease, color .2s ease; }
:is(.contacts-card, .fa-cb) .contact-btn:hover .contact-btn-arrow { transform: translateX(3px); color: #FA500A; }

:is(.contacts-card, .fa-cb) .contact-btn-icon.inst { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
:is(.contacts-card, .fa-cb) .contact-btn-icon.fb   { background: #1877F2; color: #fff; }
:is(.contacts-card, .fa-cb) .contact-btn-icon.yt   { background: #FF0000; color: #fff; }
.fa-cb .contact-btn-grid { margin: 0 0 14px; }
.fa-cb a.contact-btn, .fa-cb a.contact-btn:hover, .fa-cb a.contact-btn:focus { color: #fff; text-decoration: none; }
