/* ===========================================================
   components.css — кнопки, бейджі, картки, FAQ, cookie, FAB
   =========================================================== */

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 27, 26, .18);
}
.btn--primary:hover { background: var(--ink-2); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14,27,26,.24); }

.btn--accent {
  background: linear-gradient(120deg, var(--aqua-500), var(--lime-500));
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(31, 214, 163, .35);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(31, 214, 163, .45); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--aqua-500); color: var(--aqua-600); background: var(--surface); }

.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }

/* ---------- Бейдж ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  font-size: .86rem;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.badge__pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--aqua-500);
  box-shadow: 0 0 0 0 rgba(31, 214, 163, .55);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 214, 163, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(31, 214, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 214, 163, 0); }
}

.pill {
  display: inline-flex; align-items: center; gap: .4em;
  background: var(--soft-2); color: var(--aqua-600);
  font-weight: 700; font-size: .8rem;
  padding: 5px 13px; border-radius: var(--r-pill);
}

/* ---------- Картки послуг ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; inset: auto -40% -60% auto;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(159,240,62,.22), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::after { opacity: 1; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--soft-2), var(--soft));
  color: var(--aqua-600);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--slate); font-size: .97rem; margin-bottom: 16px; }
.card__price {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  background: var(--soft);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: .95rem;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: var(--aqua-500); box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ink);
  position: relative;
  font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute; right: 22px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--aqua-600);
  border-bottom: 2.5px solid var(--aqua-600);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-35%) rotate(225deg); }
.faq__body { padding: 0 22px 20px; color: var(--slate); }
.faq__body p { margin: 0; }

/* ---------- Cookie-плашка ---------- */
.cookie {
  position: fixed;
  left: clamp(12px, 4vw, 24px);
  right: clamp(12px, 4vw, 24px);
  bottom: clamp(12px, 4vw, 24px);
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie p { margin: 0; font-size: .92rem; color: var(--slate); }
.cookie a { color: var(--aqua-600); font-weight: 700; text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Плаваюча кнопка дзвінка (FAB) ---------- */
.fab {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 60px; height: 60px;
  display: none;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--aqua-500), var(--lime-500));
  color: var(--ink);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(31, 214, 163, .5);
  z-index: 70;
  animation: fab-pop 2.6s ease-in-out infinite;
}
@keyframes fab-pop {
  0%, 92%, 100% { transform: scale(1); }
  96%           { transform: scale(1.08); }
}

/* ---------- Дрібні елементи ---------- */
.ticklist { display: grid; gap: 12px; margin: 0 0 26px; }
.ticklist li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-2);
  font-weight: 500;
}
.ticklist li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--aqua-500), var(--lime-500));
}
.ticklist li::after {
  content: "";
  position: absolute; left: 7px; top: 8px;
  width: 6px; height: 10px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(40deg);
}
